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.
const dimensionSet dimViscosity
Run-time selectable general function of one variable.
#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.
An abstract base class for incompressible viscosityModels.
Macros for easy insertion into run-time selection tables.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
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(rho0+psi *p, rhoMin);# 1 "/home/ubuntu/OpenFOAM-9/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 &name, const dictionary &dict)
Selector.