55 #ifndef Foam_porosityModels_DarcyForchheimer_H 56 #define Foam_porosityModels_DarcyForchheimer_H 65 namespace porosityModels
72 class DarcyForchheimer
103 template<
class RhoFieldType>
109 const RhoFieldType&
rho,
115 template<
class RhoFieldType>
119 const RhoFieldType&
rho,
140 const word& modelType,
143 const wordRe& cellZoneName
bool writeData(Ostream &os) const
Write.
const dictionary & dict() const
Return dictionary used for model construction.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual tmp< vectorField > force(const volVectorField &U, const volScalarField &rho, const volScalarField &mu)
Return the force over the cell zone(s)
virtual void calcTransformModelData()
Transform the model data wrt mesh changes.
virtual void calcForce(const volVectorField &U, const volScalarField &rho, const volScalarField &mu, vectorField &force) const
Calculate the porosity force.
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.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
Darcy-Forchheimer law porosity model, given by:
const dimensionedScalar mu
Atomic mass unit.
TypeName("DarcyForchheimer")
Runtime type information.
const word & name() const
Return const access to the porosity model name.
virtual void correct(fvVectorMatrix &UEqn) const
Add resistance.
Mesh data needed to do the Finite Volume discretisation.
virtual ~DarcyForchheimer()=default
Destructor.