Assigning different velocities to different phases at inlet
Hello everyone,
I am doing a multiphase simulation in which there are two fluids at the inlet. If I want to assign different velocities to the two at the inlet, what should I do? Should I initialize the velocity values at the inlet in the setFields file like this: defaultFieldValues ( volScalarFieldValue alpha1 0 volVectorFieldValue U (0 0 0) ); regions ( boxToCell { box (0 0 0) (20 0.1 1.5); fieldValues ( volScalarFieldValue alpha1 1 volVectorFieldValue U (1 0 0) ); } ); If yes, then what boundary condition should I specify at the inlet in the 0/U file? Thanks, Sagun |
If you are using a single patch for both phases, take a look at GroovyBC, or possibly the codeStreams functionality in OpenFOAM.
|
Thanks. Got it to work using funkySetFields. :)
|
All times are GMT -4. The time now is 02:51. |