TAGGED: expression, expression-language
-
-
January 26, 2022 at 4:23 am
Larz_Johnston
SubscriberHello, I'm trying to use this cosine equation to determine the heat flux of a surface:
(-0.1955*cos(<(Time/1[s])*PI/43200>)+0.239) [W/m^2]
it has a 1-day period, and was calculated to have a specific total heat flux for each day (the math there is irrelevant), but I get a message saying "invalid syntax" when I try to use it, which has not been changed by minor fiddling. I suspect that I'm messing up with defining either time, or making it clear that the result of this equation is the output of the expression. whatever the case, I have nothing to the expression apart from what I've posted above, and I'm pretty sure I'm just making a silly mistake, so some assistance is appreciated.
thank you for your time.
January 26, 2022 at 7:30 amDrAmine
Ansys EmployeeYour expression is Wrong.
(-0.1955*(cos((Time/1[s]))*PI/43200)+0.239)*1[W/m^2] should work. Please check Fluent User's Guide and start debugging the expressions stepwise
Viewing 1 reply thread- The topic ‘“Invalid Syntax” Error in a Basic Cosine Expression’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3597
-
1283
-
1107
-
1068
-
983
Top Rated Tags© 2025 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.
-