I'm very new to OpenFOAM, and not familiar with the BC of OpenFOAM.
I am doing a simulation with a pipe flow with Stagnation inlet and Pressure outlet. But it diverges with the setting below, which part did I do wrong?
And anyone help me please.
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web:
www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 2 -2 0 0 0 0];
internalField uniform 101.629889;
boundaryField
{
inlet
{
type totalPressure;
p0 uniform 97.5;
value uniform 97.5;
}
outlet
{
type totalPressure;
p0 uniform 0;
value uniform 0;
}
wall
{
type zeroGradient;
}
}
// ************************************************** *********************** //
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 5 |
| \\ / A nd | Web:
www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
inlet
{
type pressureInletVelocity;
value $internalField;
}
outlet
{
type pressureInletOutletVelocity;
tangentialVelocity $internalField;
value $internalField;
}
wall
{
type noSlip;
}
}
// ************************************************** *********************** //