Assigning different velocities to different phases at inlet
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:
volScalarFieldValue alpha1 0
volVectorFieldValue U (0 0 0)
box (0 0 0) (20 0.1 1.5);
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?
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:20.|