forked from deepflameCFD/deepflame-dev
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Releated code:
deepflame-dev/applications/solvers/dfLowMachFoam/createFields.H
Lines 14 to 18 in 1be82b6
| volScalarField& p = thermo.p(); | |
| volScalarField& T = thermo.T(); | |
| T.correctBoundaryConditions(); | |
| volScalarField rho | |
| ( |
Bug description
-
For
inletOutletboundary condition, needsphifield to determine the flow direction. While thephiis not yet created before callingT.correctBoundaryConditions();. -
For
totalTemperatureboundary 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"**
Metadata
Metadata
Assignees
Labels
No labels