Go to the documentation of this file.
81 #ifndef directionalPressureGradientExplicitSource_H
82 #define directionalPressureGradientExplicitSource_H
204 TypeName(
"directionalPressureGradientExplicitSource");
212 const word& sourceName,
213 const word& modelType,
scalar relaxationFactor_
Relaxation factor.
@ pVolumetricFlowRateTable
scalar pressureDrop_
Constant pressure drop.
A class for handling words, derived from string.
Cell-set options abtract base class. Provides a base set of controls, e.g.
pressureDropModel model_
Pressure drop model.
interpolationTable< scalar > flowRate_
Volumetric flow rate vs pressure drop table.
scalar length_
Porous media length.
word faceZoneName_
Name of the faceZone at the heat exchange inlet.
vectorField gradP0_
Pressure gradient before correction.
vector flowDir_
Flow direction.
virtual void constrain(fvMatrix< vector > &eqn, const label fieldI)
Set 1/A coefficient.
label zoneID_
Id for the face zone.
virtual void writeData(Ostream &) const
Write the source properties.
directionalPressureGradientExplicitSource(const directionalPressureGradientExplicitSource &)
Disallow default bitwise copy construct.
static const NamedEnum< pressureDropModel, 3 > PressureDropModelNames_
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
scalar D_
Darcy pressure loss coefficient.
TypeName("directionalPressureGradientExplicitSource")
Runtime type information.
labelList facePatchId_
Local list of patch ID per face.
scalar I_
Inertia pressure lost coefficient.
A list of keyword definitions, which are a keyword followed by any number of values (e....
dimensionedVector gradP("gradP", dimensionSet(0, 1, -2, 0, 0), vector::zero)
Mesh data needed to do the Finite Volume discretisation.
pressureDropModel
Modes of pressure drop.
Creates an explicit pressure gradient source in such a way to deflect the flow towards an specific di...
labelList cellFaceMap_
Cells faces mapping.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
vectorField dGradP_
Change in pressure gradient.
virtual void addSup(fvMatrix< vector > &eqn, const label fieldI)
Add explicit contribution to momentum equation.
void operator=(const directionalPressureGradientExplicitSource &)
Disallow default bitwise assignment.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
autoPtr< volScalarField > invAPtr_
Matrix 1/A coefficients field pointer.
void writeProps(const vectorField &gradP) const
Write the pressure gradient to file (for restarts etc)
const fvMesh & mesh() const
Return const access to the mesh database.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
labelList faceId_
Local list of face IDs.
vectorField gradPporous_
Pressure drop due to porous media.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void correct(volVectorField &U)
Correct the pressure gradient.
Generic GeometricField class.
virtual bool read(const dictionary &dict)
Read source dictionary.
void update(fvMatrix< vector > &eqn)
Correct driving force for a constant mass flow rate.