69 void Foam::solvers::shockFluid::clearTemporaryFields()
103 thermo_(thermoPtr_()),
150 max(thermo_.
mu().primitiveField()) > 0
181 mesh.schemes().
dict().lookupOrDefault<
word>(
"fluxScheme",
"Kurganov")
207 correctCoNum(amaxSf);
227 extrapolatedCalculatedFvPatchScalarField::typeName
252 correctCoNum(amaxSf);
262 if (mesh.topoChanging() || mesh.stitcher().stitches())
267 clearTemporaryFields();
277 if (!inviscid &&
pimple.correctTransport())
279 momentumTransport->correct();
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const word & name() const
Return name.
Templated abstract base class for thermophysical transport models.
scalar deltaTValue() const
Return time step value.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void validate(const string &app, const word &) const
Check that the thermodynamics package is consistent.
Base class for single-phase compressible turbulence models.
const word & name() const
Return const reference to name.
Mesh data needed to do the Finite Volume discretisation.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvSchemes & schemes() const
Return the fvSchemes.
virtual void preUpdateMesh()
Prepare for mesh update.
void setFluxRequired(const word &name) const
static word rDeltaTName
Name of the reciprocal local time-step field.
Abstract base class for turbulence models (RAS, LES and laminar).
Base-class for fluid thermodynamic properties based on compressibility.
Abstract base class for run-time selectable region solvers.
bool LTS
Switch for local time step transient operation.
const Time & runTime
Time.
const fvMesh & mesh
Region mesh.
Base solver module for fluid solvers.
const scalar & CoNum
Current maximum Courant number for time-step control.
scalar CoNum_
Current maximum Courant number for time-step control.
Solver module for density-based solution of compressible flow.
shockFluid(fvMesh &mesh)
Construct from region mesh.
virtual void postSolve()
Called after the PIMPLE loop at the end of the time-step.
tmp< surfaceScalarField > aphiv_pos
virtual ~shockFluid()
Destructor.
const psiThermo & thermo
Reference to the fluid thermophysical properties.
tmp< volScalarField > trDeltaT
Optional LTS reciprocal time-step field.
const volVectorField & U
Reference to the velocity field.
virtual void postCorrector()
Correct the momentum and thermophysical transport modelling.
virtual void preSolve()
Called at the start of the time-step, before the PIMPLE loop.
tmp< surfaceScalarField > aphiv_neg
autoPtr< compressible::momentumTransportModel > momentumTransport
Pointer to the momentum transport model.
A class for managing temporary objects.
A class for handling words, derived from string.
Foam::fvModels & fvModels(Foam::fvModels::New(mesh))
pimpleControl pimple(mesh)
Calculate the mesh motion flux and convert fluxes from absolute to relative and back.
Reconstruct volField from a face flux field.
Calculate the snGrad of the given volField.
Volume integrate volField creating a volField.
Info<< "Creating thermophysical transport model\n"<< endl;turbulenceThermophysicalTransportModels::unityLewisEddyDiffusivity< RASThermophysicalTransportModel< ThermophysicalTransportModel< compressibleMomentumTransportModel, fluidThermo > >> thermophysicalTransport(turbulence(), thermo, true)
const dimensionedScalar mu
Atomic mass unit.
tmp< VolField< Type > > surfaceSum(const SurfaceField< Type > &ssf)
addToRunTimeSelectionTable(solver, compressibleMultiphaseVoF, fvMesh)
defineTypeNameAndDebug(compressibleMultiphaseVoF, 0)
dimensionedScalar pos(const dimensionedScalar &ds)
Type gSum(const FieldField< Field, Type > &f)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
SurfaceField< scalar > surfaceScalarField
tmp< SurfaceField< Type > > linearInterpolate(const VolField< Type > &vf)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const dimensionSet dimTime
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
Type gMax(const FieldField< Field, Type > &f)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
fluidMulticomponentThermo & thermo