49 #ifndef Foam_porosityModels_powerLaw_H 50 #define Foam_porosityModels_powerLaw_H 58 namespace porosityModels
84 template<
class RhoFieldType>
89 const RhoFieldType&
rho,
94 template<
class RhoFieldType>
98 const RhoFieldType&
rho,
106 void operator=(
const powerLaw&) =
delete;
118 const word& modelType,
121 const wordRe& cellZoneName
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...
virtual tmp< vectorField > force(const volVectorField &U, const volScalarField &rho, const volScalarField &mu)
Return the force over the cell zone(s)
TypeName("powerLaw")
Runtime type information.
virtual ~powerLaw()=default
Destructor.
virtual void calcTransformModelData()
Transform the model data wrt mesh changes.
A class for handling words, derived from Foam::string.
Power law porosity model, given by:
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...
virtual void calcForce(const volVectorField &U, const volScalarField &rho, const volScalarField &mu, vectorField &force) const
Calculate the porosity force.
OBJstream os(runTime.globalPath()/outputName)
virtual void correct(fvVectorMatrix &UEqn) const
Add resistance.
bool writeData(Ostream &os) const
Write.
const dimensionedScalar mu
Atomic mass unit.
const word & name() const
Return const access to the porosity model name.
Mesh data needed to do the Finite Volume discretisation.