Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Navigation
- Simcenter
- Forums
- Blogs
- Knowledge Bases

- Siemens PLM Community
- Simcenter
- 3D Simulation - Simcenter 3D Forum
- [NX10] Can I apply a cut off value for an independ...

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-18-2016 07:40 AM

Can I apply a cut off value for an independent in the Formula Field editor?

If I set a value at maximum in the Domain section of the Formula Field editor it has no effect.

Solved! Go to Solution.

Labels:

5 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-26-2016 08:49 AM

You can create cutoff values for independent domains in a formula field by using IF statements in the formula expression. Here is an example of a pressure that ramps linearly with z, but is bounded by a start and end value for z:

If (z>LoadStart && z<LoadEnd) PressureRamp else 0.0

LoadStart and LoadEnd are expressions defined as a length in mm. In the expression above, they are interpreted as z coordinates in the field's coordinate system. PressureRamp is another expression that linearly ramps a pressure with respect to z.

The key for you is that the formula is evaluated only between z values LoadStart and LoadEnd. For all other Z values, the pressure is set to zero.

For reference, I used NX 10. Older versions support IF statements in formula fields as well.

Regards,

Mark

Mark Lamping

Simulation Product Management

Simulation and Test Solutions

Siemens Industry Sector

Siemens Product Lifecycle Management Software Inc.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-26-2016 10:21 AM

Hi Mark,

Thank you for your reply.

I tried the following:

if (z<0) -0.000001025[kg/mm^3]*9.81[m/sec^2]*z else 0.0

with

-0.000001025[kg/mm^3]*9.81[m/sec^2]*z being the function I want

And all positive values of z cut-off.

But I'm afraid that didn't work. Can you maybe tell me what I'm doing wrong in this example?

Regards,

Rogier

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-26-2016 11:07 AM

I reproduced your error as well with that expression. NX is getting confused by z<0 where there is no unit assigned to 0. Add a length unit to 0, such as 0[mm], and the expression should work.

NX should have issued an Alert with the application of the expression without the unit on 0. It did for me:

Alert

Dimension mismatch (binary operation)

That is hinting at a dimension error in the expression. When in doubt, spell out units explicitly on all numerical values in the expression. I think NX was incorrectly interpreting 0 as a pressure rather than as a length. I will submit a PR for development to review this. I don't think you should have needed the unit on 0.

Regards,

Mark

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-27-2016 02:50 AM

Hi Mark,

That worked!

Thanks a lot

Regards,

Rogier

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

07-27-2016 10:41 AM

Rogier,

I'm glad to see that you are able to move forward with your model. I did get feedback from development regarding the measure/units issue on the conditional statement. The expressions system currently assumes that the conditional statement's measure matches the measure of the expression itself. So, the expression measure is pressure, which means the conditional statement's assumed measure is also pressure. My PR turned into an enhancement request such that the conditional statement's assumed measure would match the measure of the left hand side of the conditional statement (length in your example). For now, you will have to specify the unit of conditional statement quantities.

Regards,

Mark

Follow Siemens PLM Software

© 2018 Siemens Product Lifecycle Management Software Inc