TAGGED: named-expressions
-
-
March 9, 2021 at 7:24 pm
ecrod
SubscriberI am trying to use a named expression as velocity boundary condition at inlet. My expression is working fine as you can see in the plot.
March 9, 2021 at 7:28 pmYasserSelima
SubscriberHow is u_a, u_b and u_p defined?nMarch 9, 2021 at 7:39 pmYasserSelima
Subscriberby looking back at the photos you provided, it is a matter of defining real and integer.nnGo to u_a definition and make the units [m/s] ... do not have 1.000. Same for u_b and u_pnMarch 10, 2021 at 2:19 amMarch 10, 2021 at 2:42 amYasserSelima
Subscribertry thisnu_vel * 1 [m/s] / 1 [m s^-1.000]nlet me know if it worksnMarch 10, 2021 at 4:14 pmecrod
SubscriberHello Yasser,nIt does not work. This problem is due to Herschel-Bulkley consistency index definition K [Pa*s^n] in named expressions, because the flow index n = 0.34 is real number.nProbably it is not possible to use the above velocity equations using Named Expressions, maybe only UDF. However, I do not know anything about UDF.nThanks.nnMarch 10, 2021 at 10:14 pmecrod
SubscriberThe solution was to use everything dimensionless, included Y coordinate. In the end I used only u_vel [m s^-1] unit.nThanks your help Yasser.nMarch 11, 2021 at 1:14 amYasserSelima
SubscriberYou are welcome. I was actually into suggesting this but I thought it is less hassle to try changing the units first nMarch 11, 2021 at 6:54 amAmine Ben Hadj Ali
Ansys EmployeeThanks for getting back with your solution. Yes I recommend to keep things dimensionsless when running into troubles or to correct at least the output by just adjusting the units as I think checking the whole parts of the formula might be complicated.nViewing 8 reply threads- The topic ‘Incorrect expression unit’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
5069
-
1771
-
1387
-
1248
-
1021
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.


