Go to the documentation of this file.
51 const word& sourceName,
52 const word& modelType,
59 TName_(
dict.getOrDefault<
word>(
"T",
"T")),
60 TprimaryName_(
dict.get<
word>(
"Tprimary")),
61 Tp_(
mesh().lookupObject<volScalarField>(TprimaryName_)),
69 IOobject::READ_IF_PRESENT,
74 zeroGradientFaPatchScalarField::typeName
76 thicknessLayers_(
Zero),
81 fieldNames_.resize(1, TName_);
83 fa::option::resetApplied();
119 vsm().mapInternalToSurface<scalar>(vfb)()
122 if (contactRes_ != 0)
161 const volScalarField::Boundary& vfb = Tp_.boundaryField();
163 Tw1_.primitiveFieldRef() =
164 this->
vsm().mapInternalToSurface<scalar>(vfb);
168 eqn += -
fam::Sp(htcw(), eqn.
psi()) + htcw()*Tw1_;
170 curTimeIndex_ =
mesh().time().timeIndex();
180 coeffs_.readIfPresent(
"T", TName_);
182 if (
dict.readIfPresent(
"thicknessLayers", thicknessLayers_))
184 dict.readEntry(
"kappaLayers", kappaLayers_);
186 if (thicknessLayers_.size() > 0)
189 forAll(thicknessLayers_, iLayer)
191 contactRes_ += thicknessLayers_[iLayer]/kappaLayers_[iLayer];
193 contactRes_ = scalar(1)/contactRes_;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A special matrix type and solver, designed for finite area solutions of scalar equations....
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const fvPatch & patch() const noexcept
Return const access to fvPatch.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Intermediate abstract class for handling face-set options for the derived faOptions.
Common functions used in temperature coupled boundaries.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Calculate the matrix for implicit and explicit sources.
defineTypeNameAndDebug(limitVelocity, 0)
#define forAll(list, i)
Loop across all elements in list.
volSurfaceMapping vsm(aMesh)
tmp< faMatrix< Type > > Sp(const areaScalarField &sp, const GeometricField< Type, faPatchField, areaMesh > &vf)
const dimensionSet dimArea(sqr(dimLength))
const dimensionedScalar h
Planck constant.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const faMesh & regionMesh() const
Return the region mesh database (demand-driven)
const dimensionSet dimPower
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const volSurfaceMapping & vsm() const
Return volSurfaceMapping (demand-driven)
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &dict)
Read source dictionary.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
#define DebugInfo
Report an information message using Foam::Info.
const std::string patch
OpenFOAM patch number as a std::string.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
const GeometricField< Type, faPatchField, areaMesh > & psi() const
const scalarField & deltaCoeffs() const
virtual tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
addToRunTimeSelectionTable(option, limitVelocity, dictionary)
const Boundary & boundaryField() const
Return const-reference to the boundary field.