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:
Henry Weller
2022-10-28 12:16:26 +01:00
parent 4bd90bc969
commit 2835a5423b

View File

@ -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_;
}