CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Interfoam for Beginner (https://www.cfd-online.com/Forums/openfoam-solving/234044-interfoam-beginner.html)

Miguel Hernandez February 21, 2021 14:05

Interfoam for Beginner
 
Hello, everyone,
I'm just getting started with openFoam; I've studied a few tutorials but I need some help. For professional reasons I am interested in open channel simulations, so I thought of using the interFoam solver.
I have several problems with the boundary conditions. My aim is, for now, to figure out how to set the inlet boundary condition in order to consider a volume flow rate chosen by the user. In a simple example made by myself, I have set the boundary condition in the alpha.water file for the inlet as:

inlet
{
type variableHeightFlowRate;
lowerBound 0;
upperBound 1;
value uniform 0;
}


and for the velocity boundary condition file as follow:

inlet
{
type variableHeightFlowRateInletVelocity;
flowRate 20;
alpha alpha.water;
value uniform (0 0 0);
}


Can this be a good strategy? To be honest, cheking the results in paraview, the flowRate appears to not be correct.

Where can I find a guide, if any, on how to use inteFoam?

Thanks in advance.

Miguel


All times are GMT -4. The time now is 20:49.