calculated 边界条件怎么用？有谁知道啊？

• This boundary condition

• 你不需要指定其他信息，这样即可：

type calculated;


• FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 3e+06;

boundaryField
{
INLET
{
type calculated;
}

WALL
{
}

OUTLET
{
type            calculated;
}


}

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

• FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField uniform 3e+06;

boundaryField
{
INLET
{
type fixedValue;
value uniform 10e+06;
}

WALL
{
}

OUTLET
{
type            waveTransmissive;
value           uniform 3e+06;
field           p;
gamma           1.17;
phi             phi;
rho             rho;
psi             psi;
lInf            0.05;
fieldInf        3e+06;
}


}

• PIMPLE: iteration 1
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::divide(Foam::Field<double>&, double const&, Foam::UList<double> const&) at ??:?
#4 void Foam::divide<Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&, Foam::dimensioned<double> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#5 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(Foam::dimensioned<double> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#6 Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::operator/<Foam::fvPatchField, Foam::volMesh>(double const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#7 Foam::phaseChangeTwoPhaseMixture::vDotAlphal() const at ??:?
#8 ? at ??:?
#9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10 ? at ??:?

• 这样设置好像不行啊@cfd-china

• @mark
这不是因为边界条件导致的哦。估计是除以0了:sunglasses: