93 #ifndef Foam_fv_fanMomentumSource_H 94 #define Foam_fv_fanMomentumSource_H 109 class fanMomentumSource
111 public fv::cellSetOption
117 List<labelPair> upstreamPatchFaceInfo_;
123 autoPtr<Function1<scalar>> fanCurvePtr_;
138 label surroundingFaceZoneID_;
150 void writeProps(
const scalar
gradP,
const scalar flowRate)
const;
154 void initUpstreamFaces();
177 const word& sourceName,
178 const word& modelType,
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void operator=(const fanMomentumSource &)=delete
No copy assignment.
volVectorField gradP(fvc::grad(p))
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
fanMomentumSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
A class for handling words, derived from Foam::string.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
virtual ~fanMomentumSource()=default
Destructor.
TypeName("fanMomentumSource")
Runtime type information.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
Mesh data needed to do the Finite Volume discretisation.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
This source term models the action of a fan on the flow. It calculates flow rate through a set of ups...
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))
virtual bool read(const dictionary &dict)
Read source dictionary.