mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use simpler lookupPatchField form
This commit is contained in:
@ -112,8 +112,7 @@ functions
|
||||
|
||||
codeWrite
|
||||
#{
|
||||
const volScalarField& rho =
|
||||
mesh().lookupObject<volScalarField>("rho");
|
||||
const auto& rho = mesh().lookupObject<volScalarField>("rho");
|
||||
|
||||
Info<< "rho volume = " << rho.weightedAverage(mesh().Vsc()) << endl;
|
||||
#};
|
||||
|
||||
Reference in New Issue
Block a user