CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Assigning different velocities to different phases at inlet (https://www.cfd-online.com/Forums/openfoam/108172-assigning-different-velocities-different-phases-inlet.html)

Sagun October 16, 2012 10:40

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

kev4573 October 16, 2012 10:53

If you are using a single patch for both phases, take a look at GroovyBC, or possibly the codeStreams functionality in OpenFOAM.

Sagun October 17, 2012 07:59

Thanks. Got it to work using funkySetFields. :)


All times are GMT -4. The time now is 23:52.