rhoThermo: Standardised the renaming of rho -> rhoThermo:rho using the typedName function
This renaming only occurs for single-phase compressible solvers instantiating a rhoThermo, e.g. for liquids, and usually the rhoThermo:rho is not looked-up by sub-models or boundary conditions and if needed is better obtained from the thermo package directly.
This commit is contained in:
@ -127,7 +127,7 @@ Foam::tmp<Foam::scalarField> Foam::rhoThermo::implementation::rho
|
||||
|
||||
Foam::tmp<Foam::volScalarField> Foam::rhoThermo::implementation::renameRho()
|
||||
{
|
||||
rho_.rename(phasePropertyName("thermo:rho"));
|
||||
rho_.rename(phasePropertyName(Foam::typedName<rhoThermo>("rho")));
|
||||
return rho_;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user