mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Simplified lookup from database
This commit is contained in:
@ -199,10 +199,7 @@ void Foam::flowRateInletVelocityFvPatchVectorField::updateCoeffs()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// mass flow-rate
|
// mass flow-rate
|
||||||
if
|
if (db().foundObject<volScalarField>(rhoName_))
|
||||||
(
|
|
||||||
patch().boundaryMesh().mesh().foundObject<volScalarField>(rhoName_)
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
const fvPatchField<scalar>& rhop =
|
const fvPatchField<scalar>& rhop =
|
||||||
patch().lookupPatchField<volScalarField, scalar>(rhoName_);
|
patch().lookupPatchField<volScalarField, scalar>(rhoName_);
|
||||||
|
|||||||
Reference in New Issue
Block a user