34 namespace viscosityModels
59 strainRateFunctionCoeffs_
97 return nu_.boundaryField()[
patchi];
106 nu_.primitiveFieldRef() = strainRateFunction_->value(
sigma());
108 volScalarField::Boundary& nuBf = nu_.boundaryFieldRef();
109 const volScalarField::Boundary& sigmaBf = sigma.
boundaryField();
113 nuBf[
patchi] = strainRateFunction_->value(sigmaBf[
patchi]);
130 strainRateFunction_.
clear();
134 strainRateFunctionCoeffs_
virtual bool read(const dictionary &viscosityProperties)
Read transportProperties dictionary.
Top level data entry class for use in dictionaries. Provides a mechanism to specify a variable as a c...
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const dimensionSet dimViscosity
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
An abstract base class for incompressible viscosityModels.
Macros for easy insertion into run-time selection tables.
addToRunTimeSelectionTable(viscosityModel, BirdCarreau, dictionary)
const dictionary & optionalSubDict(const word &) const
Find and return a sub-dictionary if found.
virtual bool read(const dictionary &viscosityProperties)=0
Read transportProperties dictionary.
A class for handling words, derived from string.
Info<< "Predicted p max-min : "<< max(p).value()<< " "<< min(p).value()<< endl;rho==max(psi *p+alphal *rhol0+((alphav *psiv+alphal *psil) - psi) *pSat, rhoMin);# 1 "/home/ubuntu/OpenFOAM-5.0/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()
defineTypeNameAndDebug(BirdCarreau, 0)
strainRateFunction(const word &name, const dictionary &viscosityProperties, const volVectorField &U, const surfaceScalarField &phi)
Construct from components.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
A class for managing temporary objects.
void clear()
Clear the dictionary.
virtual void correct()
Correct the laminar viscosity.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
static autoPtr< Function1< Type > > New(const word &entryName, const dictionary &dict)
Selector.