37 namespace laminarModels
42 template<
class BasicMomentumTransportModel>
50 const viscosity& viscosity
78 template<
class BasicMomentumTransportModel>
81 viscosityModel_->read(this->coeffDict_);
87 template<
class BasicMomentumTransportModel>
99 template<
class BasicMomentumTransportModel>
106 return viscosityModel_->nu(patchi);
110 template<
class BasicMomentumTransportModel>
113 viscosityModel_->correct();
virtual bool read()
Read momentumTransport dictionary.
static autoPtr< generalisedNewtonianViscosityModel > New(const dictionary &viscosityProperties, const viscosity &viscosity, const volVectorField &U)
Return a reference to the selected viscosity model.
virtual tmp< volScalarField > nuEff() const
Return the effective viscosity.
volScalarField alpha(IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< GeometricField< scalar, fvPatchField, volMesh > > New(const word &name, const Internal &, const PtrList< fvPatchField< scalar >> &)
Return a temporary field constructed from name,.
Calculate the matrix for the laplacian of the field.
Linear viscous stress turbulence model base class.
BasicMomentumTransportModel::rhoField rhoField
virtual void correct()
Correct the generalisedNewtonian viscosity.
Calculate the gradient of the given field.
static word groupName(Name name, const word &group)
Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict());mesh.schemes().setFluxRequired(p.name());Info<< "Reading field pa\"<< endl;volScalarField pa(IOobject("pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Ua\"<< endl;volVectorField Ua(IOobject("Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);# 65 "/home/ubuntu/OpenFOAM-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr< viscosityModel > viscosity(viscosityModel::New(mesh))
BasicMomentumTransportModel::alphaField alphaField
Calculate the divergence of the given field.
generalisedNewtonian(const alphaField &alpha, const rhoField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const viscosity &viscosity)
Construct from components.
virtual void correct()
Correct the laminar viscosity.
A class for managing temporary objects.