Skip to content

dfLowMachFoam doesn't support inletOutlet or totalTemperature boundary condition for the T field #567

Description

@TimoLin

Releated code:

volScalarField& p = thermo.p();
volScalarField& T = thermo.T();
T.correctBoundaryConditions();
volScalarField rho
(

Bug description

  1. For inletOutlet boundary condition, needs phi field to determine the flow direction. While the phi is not yet created before calling T.correctBoundaryConditions(); .

  2. For totalTemperature boundary condition, the U field is needed, which is not yet created in here.
    $ T_p = \frac{T_0}{1 + \frac{\gamma - 1}{2 \gamma} \psi \mag{\u}^2} $

Error message:

--> FOAM FATAL ERROR:

    request for volVectorField U from objectRegistry region0 failed
    available objects of type volVectorField are
0()

    From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>]
    in file /opt/openfoam7/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::error::abort() at ??:?
#2  Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const& Foam::objectRegistry::lookupObject<Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const in "/home/zt/OpenFOAM/deepflame-dev/platforms/linux64GccDPInt32Opt/bin/dfLowMachFoam"
#3  Foam::totalTemperatureFvPatchScalarField::updateCoeffs() at ??:?
#4  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::evaluate() in "/home/zt/OpenFOAM/deepflame-dev/platforms/linux64GccDPInt32Opt/bin/dfLowMachFoam"
#5  ? in "/home/zt/OpenFOAM/deepflame-dev/platforms/linux64GccDPInt32Opt/bin/dfLowMachFoam"
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7  ? in **"/home/zt/OpenFOAM/deepflame-dev/platforms/linux64GccDPInt32Opt/bin/dfLowMachFoam"**

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions