33 namespace laminarModels
35 namespace generalisedNewtonianViscosityModels
41 generalisedNewtonianViscosityModel,
84 strainRateFunction_.clear();
116 tnu.
ref().primitiveFieldRef() = strainRateFunction_->value(strainRate);
123 nuBf[
patchi] = strainRateFunction_->value(sigmaBf[
patchi]);
const dimensionSet dimViscosity
static word group(const word &name)
Return group (extension part of name)
Run-time selectable general function of one variable.
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-10/applications/solvers/multiphase/cavitatingFoam/alphavPsi.H" 1{ alphav=max(min((rho - rholSat)/(rhovSat - rholSat), scalar(1)), scalar(0));alphal=1.0 - alphav;Info<< "max-min alphav: "<< max(alphav).value()<< " "<< min(alphav).value()<< endl;psiModel-> correct()
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
addToRunTimeSelectionTable(generalisedNewtonianViscosityModel, Newtonian, dictionary)
strainRateFunction(const dictionary &viscosityProperties, const Foam::viscosity &viscosity, const volVectorField &U)
Construct from components.
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
Macros for easy insertion into run-time selection tables.
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
static word groupName(Name name, const word &group)
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
An abstract base class for strain-rate dependent generalised Newtonian viscosity models.
const Mesh & mesh() const
Return mesh.
Abstract base class for all fluid physical properties.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
A class for managing temporary objects.
defineTypeNameAndDebug(Newtonian, 0)
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
static autoPtr< Function1< Type > > New(const word &name, const dictionary &dict)
Selector.