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:
@ -161,15 +161,11 @@ Foam::functionObjects::extractEulerianParticles::phiU() const
|
||||
{
|
||||
DebugInFunction << endl;
|
||||
|
||||
const surfaceScalarField& phi
|
||||
(
|
||||
mesh_.lookupObject<surfaceScalarField>(phiName_)
|
||||
);
|
||||
const auto& phi = mesh_.lookupObject<surfaceScalarField>(phiName_);
|
||||
|
||||
if (phi.dimensions() == dimMass/dimTime)
|
||||
{
|
||||
const volScalarField& rho =
|
||||
mesh_.lookupObject<volScalarField>(rhoName_);
|
||||
const auto& rho = mesh_.lookupObject<volScalarField>(rhoName_);
|
||||
|
||||
return phi/fvc::interpolate(rho);
|
||||
}
|
||||
|
||||
@ -147,7 +147,7 @@ Foam::functionObjects::momentumError::momentumError
|
||||
{
|
||||
read(dict);
|
||||
|
||||
const auto& phi =lookupObject<surfaceScalarField>(phiName_);
|
||||
const auto& phi = lookupObject<surfaceScalarField>(phiName_);
|
||||
|
||||
const dimensionSet momDims
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user