-
-
July 16, 2023 at 3:32 am
-
July 17, 2023 at 6:52 am
NickFL
SubscriberThere is a couple of things I notice here. Do you see how the ( is italicized before the [ ? That is letting you know it is treating the ( as part of the units. The easiest solution would be to add a * 1 before each of the units. This will multiply you scalar by a unit value of each. The alternative would be to put the units inside the (). I would also double check your order of operations. Do you want (15^3)/2 or do you want 15^1.5? I would assume 15 [m/s] ^ 1.5 to obtain units of pressure. -
July 17, 2023 at 12:34 pm
Maria Perez
SubscriberThat's not giving me an error, what gives me an error is the sqrt(X)Â
-
July 17, 2023 at 12:35 pm
NickFL
SubscriberThe sqrt root is giving you an error because the () are not closed on the function.
-
July 17, 2023 at 12:47 pm
Maria Perez
SubscriberÂ
Â
It is closed, if I change X for 1[m] it works and gives me Pa as a result which is what I need. So the expression is not the problem. The problem is that the sqrt is taking negative values of X and that’s why it gives me an error. That’s why I specifically asked how to make the expression take only positive values of X.Â
Â
Â
-
July 17, 2023 at 12:52 pm
NickFL
SubscriberX is based on the geometry. So if you have cells in your domain that have a negative X, then you will have problems. Basically in DesignModeler or SpaceClaim you created the domain with negative values of X. Without going back into these programs and having to remesh, the simple solution would be to scale it by adding whatever the min(X) to your X.
Example, if you have a domain that has X values that go to -5 [ m ], change the X to ( X + 5 [m] ).
-
July 17, 2023 at 1:59 pm
Rob
Forum ModeratorBy Scale, you mean Transform: that'll allow you to shift the domain. I would question linking shear to domain position, but that's for your model.Â
-
July 17, 2023 at 2:03 pm
Maria Perez
SubscriberGotcha, I will try that. Thank you so muchÂ
-
-
-
- The topic ‘Help with expression’ is closed to new replies.
- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- I am doing a corona simulation. But particles are not spreading.
- Issue to compile a UDF in ANSYS Fluent
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
-
3862
-
1414
-
1241
-
1118
-
1015
© 2025 Copyright ANSYS, Inc. All rights reserved.