CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Cfx (https://www.cfd-online.com/Forums/cfx/83207-cfx.html)

Pavelko December 20, 2010 00:43

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.

Lance December 20, 2010 02:20

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.

cougarCFD December 20, 2010 02:41

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].

Pavelko December 22, 2010 05:26

Ok, it works!

Thank you very much!
P.K.


All times are GMT -4. The time now is 11:37.