40 os <<
"# Values: magSf value qDot htc" <<
endl;
120 <<
": writing data to " << os.
name()
142 if (
db().foundObject<cmpTurbModelType>(turbName))
144 const cmpTurbModelType& turbModel =
151 qDot = turbModel.alphaEff(patchI)*hep.
snGrad();
153 else if (
db().foundObject<basicThermo>(thermoName))
165 "void Foam::externalCoupledTemperatureMixedFvPatchScalarField::" 170 ) <<
"Condition requires either compressible turbulence and/or " 181 const scalarField htc(qDot/(Tp - Tc + ROOTVSMALL));
virtual void transferData(OFstream &os) const
Transfer data for external source.
static bool & parRun()
Is this a parallel run?
virtual tmp< Field< Type > > snGrad() const
Return patch-normal gradient.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
GeometricBoundaryField & boundaryField()
Return reference to GeometricBoundaryField.
This boundary condition provides a temperatue interface to an external application. Values are transferred as plain text files, where OpenFOAM data is written as:
static void gatherList(const List< commsStruct > &comms, List< T > &Values, const int tag, const label comm)
Gather data but keep individual values separate.
const char *const group
Group name for atomic constants.
Abstract base-class for fluid and solid thermodynamic properties.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Foam::fvPatchFieldMapper.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const word & name() const
Return name.
static word groupName(Name name, const word &group)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static label nProcs(const label communicator=0)
Number of processes in parallel run.
void setSize(const label)
Reset size of List.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual void flush()
Flush stream.
virtual tmp< Field< Type > > patchInternalField() const
Return internal field next to patch as patch field.
const fileName & name() const
Return the name of the stream.
commsTypes
Types of communications.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
static int & msgType()
Message tag of standard messages.
Macros for easy insertion into run-time selection tables.
externalCoupledTemperatureMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
bool log() const
Return the log flag.
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
label index() const
Return the index of this patch in the fvBoundaryMesh.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
virtual ~externalCoupledTemperatureMixedFvPatchScalarField()
Destructor.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
virtual void write(Ostream &) const
Write.
const objectRegistry & db() const
Return local objectRegistry.
virtual const volScalarField & alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
virtual void write(Ostream &) const
Write.
label size() const
Return the number of elements in the UList.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const word propertiesName
Default name of the turbulence properties dictionary.
static bool master(const label communicator=0)
Am I the master process.
const DimensionedField< Type, volMesh > & dimensionedInternalField() const
Return dimensioned internal field reference.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
const word dictName() const
Return the local dictionary name (final part of scoped name)
const scalarField & magSf() const
Return face area magnitudes.
const fvPatch & patch() const
Return patch.
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
virtual void writeHeader(OFstream &os) const
Write header to transfer file.