mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added non-const access to local density
This commit is contained in:
@ -70,4 +70,10 @@ Foam::tmp<Foam::volScalarField> Foam::basicRhoThermo::rho() const
|
||||
}
|
||||
|
||||
|
||||
Foam::volScalarField& Foam::basicRhoThermo::rho()
|
||||
{
|
||||
return rho_;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -46,7 +46,7 @@ namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class basicRhoThermo Declaration
|
||||
Class basicRhoThermo Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class basicRhoThermo
|
||||
@ -106,6 +106,9 @@ public:
|
||||
|
||||
//- Density [kg/m^3]
|
||||
virtual tmp<volScalarField> rho() const;
|
||||
|
||||
//- Return non-const access to the local density field [kg/m^3]
|
||||
virtual volScalarField& rho();
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user