CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Understanding code (https://www.cfd-online.com/Forums/openfoam/183506-understanding-code.html)

HRobertHS February 5, 2017 21:00

Understanding code
 
Hi,

I am an extreme beginner to OpenFOAM.
I am having confusion on what exactly in specifications of a solution and what fixedFluxPressure, totalPressure, and uniform means. Can anyone explain?
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 0;

boundaryField
{
leftWall
{
type fixedFluxPressure;
value uniform 0;
}

rightWall
{
type fixedFluxPressure;
value uniform 0;
}

lowerWall
{
type fixedFluxPressure;
value uniform 0;
}

atmosphere
{
type totalPressure;
p0 uniform 0;
}

defaultFaces
{
type empty;
}
}

// ************************************************** *********************** //

vatavuk February 7, 2017 07:45

Hi Robert,

I suggest that you have a look at the material of the training course: "Learning how to use free surface flows in OpenFOAM 3.0"
The couse material can be found in the following link:
http://openfoam-extend.sourceforge.n...s/courses.html

Best Regards,
Paulo


All times are GMT -4. The time now is 00:12.