53 void Foam::fv::heatTransfer::readCoeffs()
63 heatTransferAv_.reset(
new heatTransferAv(
coeffs(),
mesh()));
65 heatTransferCoefficientModel_ =
70 template<
class AlphaFieldType>
71 void Foam::fv::heatTransfer::add
73 const AlphaFieldType&
alpha,
85 tmp<volScalarField> mask =
87 UIndirectList<scalar>(mask.ref().primitiveFieldRef(), set_.cells()) = 1;
90 alpha*mask*heatTransferCoefficientModel_->htc()*heatTransferAv_->Av()
97 const basicThermo&
thermo =
98 mesh().lookupObject<basicThermo>
105 eqn += htcAv*(Ta_ -
T) + htcAvByCpv*
he -
fvm::Sp(htcAvByCpv,
he);
114 eqn += htcAv*(Ta_ -
T);
124 const word& modelType,
130 set_(mesh, coeffs()),
131 phaseName_(
word::null),
132 semiImplicit_(false),
135 heatTransferAv_(nullptr),
136 heatTransferCoefficientModel_(nullptr)
197 heatTransferCoefficientModel_->correct();
210 set_.topoChange(map);
222 set_.distribute(map);
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
static word groupName(Name name, const word &group)
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Finite volume model abstract base class.
const dictionary & coeffs() const
Return dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
static autoPtr< heatTransferCoefficientModel > New(const dictionary &dict, const fvMesh &mesh)
Select from dictionary and mesh.
Model for heat exchange. Requires specification of an ambient temperature with which to exchange heat...
virtual bool movePoints()
Update for mesh motion.
virtual ~heatTransfer()
Destructor.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
virtual void correct()
Correct the model.
virtual void addSup(const volScalarField &he, fvMatrix< scalar > &eqn) const
Source term to energy equation.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
heatTransfer(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from dictionary.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
static const word null
An empty word.
Volume integrate volField creating a volField.
Calculate the matrix for implicit and explicit sources.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
List< word > wordList
A List of words.
const dimensionSet dimEnergy
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
const dimensionSet dimTemperature
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
VolField< scalar > volScalarField
const dimensionSet dimMass
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fluidMulticomponentThermo & thermo