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