Cfx
Hello All,
I want to use the following expression in inlet boundary condition: Pmax*((sin(omega*t))^2)*(step(t)-step(t-0.02))+Pmax*step(t-0.02) where omega,Pmax are defined. But I get the following error: Bad expression value 'Pin' detected in parameter 'Relative Pressure' in object '/FLOW:Flow Analysis 1/DOMAIN:Default Domain/BOUNDARY:Inlet/BOUNDARY CONDITIONS/MASS AND MOMENTUM'. CEL error: The dimensions of the argument to function 'step' are inconsistent with expected dimensions. Argument dimensions resolve to 's'; expected '<dimensionless>'. Please help. |
Your step functions need to be dimensionless, just as the error says.
Change step(t-0.02) to step((t-0.02[s])/1[s]) for example. |
Yes, Lance is right! Wherever you have something that has a dimension in your expression, you need to divide it for its dimension unit. So, wherever you have time, you need to divide by 1 [s].
|
Ok, it works!
Thank you very much! P.K. |
All times are GMT -4. The time now is 20:26. |