Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

how to write an expression in ansys

    • pc_singh
      Subscriber
      this is an expression for specific heat (CP). Please help me to write an expression for it in Ansys. CP which is used here is a polynomial function of temperature T.ntTime = CURRENT_TIME;ntfor(;n {n tif(Time<=4.2)n ttbreak;n tTime=Time-4.2;n t}n t CP=0;n if(Time<=0.1)n tttCP=a+b*T+c*T*T+d*T*T*T+e*T*T*T*T;n tttif(Time<=2.1 && Time>0.1)n CP=f+g*T+h*T*T+i*T*T*T+j*T*T*T*T;n tttif(Time>2.1 && Time<=2.2)n tt CP=a+b*T+c*T*T+d*T*T*T+e*T*T*T*T;n tttif(Time>2.2)n tt CP=k+l*T+h*T*T+m*T*T*T+n*T*T*T*T;nthanking you in advance.
    • YasserSelima
      Subscriber
      make expression called virtual time ... IF(t<=4.2 [s], 4.2 [s], t- 4.2 [s])nmake an expression called exp_1 .. 1[ J kg^-1 k^-1 ] *(a +b [k^-1] *StaticTemperature +c [k^-2] *StaticTemperature^2+d [k^-3] *StaticTemperature^3+e [k^-4]*StaticTemperature^4)nsame procedure for exp_2 , exp_3 and exp_4nnAnd for Cp use ... IF( virtual time <= 0.1 [s] , exp_1, IF( virtual time <=2.1, exp_2, IF( virtual time <= 2.2 , exp_3 , exp_4 )))n
    • pc_singh
      Subscriber
      thank you very much n
    • pc_singh
      Subscriber