TurbulenceModels: Do not register temporaries
This commit is contained in:
parent
ee9bef30fe
commit
6f63b722e0
2 changed files with 10 additions and 5 deletions
|
|
@ -94,7 +94,8 @@ Foam::eddyViscosity<BasicTurbulenceModel>::R() const
|
|||
this->runTime_.timeName(),
|
||||
this->mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
),
|
||||
((2.0/3.0)*I)*tk() - (nut_)*dev(twoSymm(fvc::grad(this->U_))),
|
||||
tk().boundaryField().types()
|
||||
|
|
|
|||
|
|
@ -120,7 +120,8 @@ Foam::laminar<BasicTurbulenceModel>::nut() const
|
|||
this->runTime_.timeName(),
|
||||
this->mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("nut", dimViscosity, 0.0)
|
||||
|
|
@ -182,7 +183,8 @@ Foam::laminar<BasicTurbulenceModel>::k() const
|
|||
this->runTime_.timeName(),
|
||||
this->mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar("k", sqr(this->U_.dimensions()), 0.0)
|
||||
|
|
@ -205,7 +207,8 @@ Foam::laminar<BasicTurbulenceModel>::epsilon() const
|
|||
this->runTime_.timeName(),
|
||||
this->mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedScalar
|
||||
|
|
@ -231,7 +234,8 @@ Foam::laminar<BasicTurbulenceModel>::R() const
|
|||
this->runTime_.timeName(),
|
||||
this->mesh_,
|
||||
IOobject::NO_READ,
|
||||
IOobject::NO_WRITE
|
||||
IOobject::NO_WRITE,
|
||||
false
|
||||
),
|
||||
this->mesh_,
|
||||
dimensionedSymmTensor
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue