93#ifndef Foam_fv_fanMomentumSource_H
94#define Foam_fv_fanMomentumSource_H
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,
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Mesh data needed to do the Finite Volume discretisation.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
This source term models the action of a fan on the flow. It calculates flow rate through a set of ups...
virtual ~fanMomentumSource()=default
Destructor.
fanMomentumSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from explicit source name and mesh.
virtual bool read(const dictionary &dict)
Read source dictionary.
TypeName("fanMomentumSource")
Runtime type information.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldi)
Add explicit contribution to momentum equation.
void operator=(const fanMomentumSource &)=delete
No copy assignment.
fanMomentumSource(const fanMomentumSource &)=delete
No copy construct.
const fvMesh & mesh() const noexcept
Return const access to the mesh database.
A class for handling words, derived from Foam::string.
volVectorField gradP(fvc::grad(p))
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"))
Namespace for finite-volume.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.