35 namespace functionObjects
51 bool Foam::functionObjects::energyFluxBase::calc()
60 if (!foundObject<thermophysicalTransportModel>(ttmName))
65 const thermophysicalTransportModel& ttm =
66 lookupObject<thermophysicalTransportModel>(ttmName);
75 Foam::functionObjects::energyFlux::calc
77 const thermophysicalTransportModel& ttm
80 return calcPhihs(ttm) + calcQ(ttm);
85 Foam::functionObjects::energyAdvectiveFlux::calc
87 const thermophysicalTransportModel& ttm
90 return calcPhihs(ttm);
95 Foam::functionObjects::heatFlux::calc
97 const thermophysicalTransportModel& ttm
112 if (isA<fluidThermophysicalTransportModel>(ttm))
115 refCast<const fluidThermophysicalTransportModel>(ttm);
119 const word& schemesField =
129 "div(" + phi.
name() +
"," + schemesField +
")"
158 schemesField_(
dict.lookupOrDefault<
word>(
"schemesField",
word::null)),
159 phaseName_(
word::null)
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
const word & name() const
Return name.
static word groupName(Name name, const word &group)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual tmp< volScalarField > hs() const =0
Sensible enthalpy [J/kg].
virtual const volScalarField & he() const =0
Enthalpy/Internal energy [J/kg].
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Abstract base class for fluid thermophysical transport models RAS, LES and laminar.
const compressibleMomentumTransportModel & momentumTransport() const
Access function to momentum transport model.
virtual const fluidThermo & thermo() const =0
Access function to fluid thermophysical properties.
Abstract base-class for Time/database functionObjects.
energyAdvectiveFlux(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
virtual ~energyFluxBase()
Destructor.
tmp< surfaceScalarField > calcPhihs(const thermophysicalTransportModel &ttm) const
Return the advective energy flux.
tmp< surfaceScalarField > calcQ(const thermophysicalTransportModel &ttm) const
Return the heat flux.
energyFluxBase(const word &name, const Time &runTime, const dictionary &, const word &typeName)
Construct from Time and dictionary.
virtual bool read(const dictionary &)
Read the data.
These functions calculate the energy-flux and write it as a surfaceScalarField. There are three such ...
energyFlux(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
word resultName_
Name of result field.
heatFlux(const word &name, const Time &runTime, const dictionary &dict)
Construct from Time and dictionary.
ObjectType & store(const tmp< ObjectType > &tfield)
Store the given field in the objectRegistry.
virtual bool read(const dictionary &)
Read optional controls.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
Abstract base class for all fluid and solid thermophysical transport models.
virtual tmp< surfaceScalarField > q() const =0
Return the heat flux [W/m^2].
A class for managing temporary objects.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
A class for handling words, derived from string.
static const word null
An empty word.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the face-flux of the given field.
defineTypeNameAndDebug(fvMeshFunctionObject, 0)
addToRunTimeSelectionTable(functionObject, fvModel, dictionary)
tmp< SurfaceField< typename innerProduct< vector, Type >::type > > flux(const VolField< Type > &vf)
Return the face-flux field obtained from the given volVectorField.
String typeName(const std::type_info &info)
Return the un-mangled name given the standard type info.
const dimensionSet & dimPower
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.