eddyViscosity: Allow external classes to modify nut

This commit is contained in:
Henry
2015-02-01 12:38:50 +00:00
parent 3d8f0aa575
commit 1471d3df87

View File

@ -102,6 +102,13 @@ public:
//- Re-read model coefficients if they have changed //- Re-read model coefficients if they have changed
virtual bool read() = 0; virtual bool read() = 0;
//- Return non-const access to the turbulence viscosity
// to allow modification by means other than derivation
volScalarField& evNut()
{
return nut_;
}
//- Return the turbulence viscosity //- Return the turbulence viscosity
virtual tmp<volScalarField> nut() const virtual tmp<volScalarField> nut() const
{ {