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,
74 fvMatrix<scalar>& eqn,
86 tmp<volScalarField> mask =
88 UIndirectList<scalar>(mask.ref().primitiveFieldRef(), set_.cells()) = 1;
91 alpha*mask*heatTransferCoefficientModel_->htc()*heatTransferAv_->Av()
98 const basicThermo&
thermo =
99 mesh().lookupObject<basicThermo>
106 eqn += htcAv*(Ta_ -
T) + htcAvByCpv*
he -
fvm::Sp(htcAvByCpv,
he);
115 eqn += htcAv*(Ta_ -
T);
125 const word& modelType,
131 set_(mesh, coeffs()),
132 phaseName_(
word::null),
133 semiImplicit_(false),
136 heatTransferAv_(nullptr),
137 heatTransferCoefficientModel_(nullptr)
166 const word& fieldName
177 const word& fieldName
189 const word& fieldName
198 heatTransferCoefficientModel_->correct();
211 set_.topoChange(map);
223 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 >> &)
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,.
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(fvMatrix< scalar > &eqn, const word &fieldName) 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 > &)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
List< word > wordList
A List of words.
const dimensionSet dimEnergy
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
word name(const complex &)
Return a string representation of a complex.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fluidMulticomponentThermo & thermo