Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

“Invalid Syntax” Error in a Basic Cosine Expression

    • Larz_Johnston
      Subscriber

      Hello, 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.

    • DrAmine
      Ansys Employee
      Your 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.