Go to the documentation of this file.
120 #ifndef directionalPressureGradientExplicitSource_H
121 #define directionalPressureGradientExplicitSource_H
141 class directionalPressureGradientExplicitSource
143 public fv::cellSetOption
162 static const Enum<pressureDropModel> pressureDropModelNames_;
180 autoPtr<volScalarField> invAPtr_;
192 scalar pressureDrop_;
195 interpolationTable<scalar> flowRate_;
210 scalar relaxationFactor_;
231 TypeName(
"directionalPressureGradientExplicitSource");
239 const word& sourceName,
240 const word& modelType,
List< label > labelList
A List of labels.
@ pVolumetricFlowRateTable
volVectorField gradP(fvc::grad(p))
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
virtual void constrain(fvMatrix< vector > &eqn, const label fieldI)
Field< vector > vectorField
Specialisation of Field<T> for vector.
Generic templated field type.
TypeName("directionalPressureGradientExplicitSource")
directionalPressureGradientExplicitSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvMesh &mesh)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Mesh data needed to do the Finite Volume discretisation.
Vector< scalar > vector
A scalar version of the templated Vector.
Applies an explicit pressure gradient source in such a way to deflect the flow towards an specific di...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const fvMesh & mesh() const noexcept
virtual void addSup(fvMatrix< vector > &eqn, const label fieldI)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A special matrix type and solver, designed for finite volume solutions of scalar equations....
virtual void writeData(Ostream &os) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void correct(volVectorField &U)
Generic GeometricField class.
virtual ~directionalPressureGradientExplicitSource()=default
virtual bool read(const dictionary &dict)