"if" function in boundary condition
Hello all,
i want to simulate a pressure-boundary condition consisting of two parts depending on time. basically, the first part (from t=0 till t=t1)is changing the pressure from 0 to the maximum and the second part (t1<) is making this pressure harmonically change. In MATLAB/octave it looks like this: Code:
All help apriciated!! |
Hi Supersale,
OpenFOAM can handle time-dependent boundaries, described here: http://www.openfoam.org/version2.1.0...conditions.php But regarding your function I would suggest using groovyBC from swak4Foam: https://openfoamwiki.net/index.php/Contrib/groovyBC http://www.cfd-online.com/Forums/ope...end-inlet.html Regards Squirrel |
Hi!
thanks for the reply, it seems to work using groovyBC. I used this code: Code:
|
All times are GMT -4. The time now is 11:04. |