mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: uniformTotalPressure BC updates
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -88,46 +88,60 @@ uniformTotalPressureFvPatchScalarField
|
|||||||
const fvPatchFieldMapper& mapper
|
const fvPatchFieldMapper& mapper
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchScalarField(ptf, p, iF, mapper),
|
fixedValueFvPatchScalarField(p, iF), // bypass mapper
|
||||||
UName_(ptf.UName_),
|
UName_(ptf.UName_),
|
||||||
phiName_(ptf.phiName_),
|
phiName_(ptf.phiName_),
|
||||||
rhoName_(ptf.rhoName_),
|
rhoName_(ptf.rhoName_),
|
||||||
psiName_(ptf.psiName_),
|
psiName_(ptf.psiName_),
|
||||||
gamma_(ptf.gamma_),
|
gamma_(ptf.gamma_),
|
||||||
pressure_(ptf.pressure_().clone().ptr())
|
pressure_(ptf.pressure_().clone().ptr())
|
||||||
{}
|
{
|
||||||
|
// Evaluate since value not mapped
|
||||||
|
const scalar t = this->db().time().timeOutputValue();
|
||||||
|
fvPatchScalarField::operator==(pressure_->value(t));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::uniformTotalPressureFvPatchScalarField::
|
Foam::uniformTotalPressureFvPatchScalarField::
|
||||||
uniformTotalPressureFvPatchScalarField
|
uniformTotalPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const uniformTotalPressureFvPatchScalarField& tppsf
|
const uniformTotalPressureFvPatchScalarField& ptf
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchScalarField(tppsf),
|
fixedValueFvPatchScalarField(ptf),
|
||||||
UName_(tppsf.UName_),
|
UName_(ptf.UName_),
|
||||||
phiName_(tppsf.phiName_),
|
phiName_(ptf.phiName_),
|
||||||
rhoName_(tppsf.rhoName_),
|
rhoName_(ptf.rhoName_),
|
||||||
psiName_(tppsf.psiName_),
|
psiName_(ptf.psiName_),
|
||||||
gamma_(tppsf.gamma_),
|
gamma_(ptf.gamma_),
|
||||||
pressure_(tppsf.pressure_().clone().ptr())
|
pressure_
|
||||||
|
(
|
||||||
|
ptf.pressure_.valid()
|
||||||
|
? ptf.pressure_().clone().ptr()
|
||||||
|
: NULL
|
||||||
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
Foam::uniformTotalPressureFvPatchScalarField::
|
Foam::uniformTotalPressureFvPatchScalarField::
|
||||||
uniformTotalPressureFvPatchScalarField
|
uniformTotalPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const uniformTotalPressureFvPatchScalarField& tppsf,
|
const uniformTotalPressureFvPatchScalarField& ptf,
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
const DimensionedField<scalar, volMesh>& iF
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedValueFvPatchScalarField(tppsf, iF),
|
fixedValueFvPatchScalarField(ptf, iF),
|
||||||
UName_(tppsf.UName_),
|
UName_(ptf.UName_),
|
||||||
phiName_(tppsf.phiName_),
|
phiName_(ptf.phiName_),
|
||||||
rhoName_(tppsf.rhoName_),
|
rhoName_(ptf.rhoName_),
|
||||||
psiName_(tppsf.psiName_),
|
psiName_(ptf.psiName_),
|
||||||
gamma_(tppsf.gamma_),
|
gamma_(ptf.gamma_),
|
||||||
pressure_(tppsf.pressure_().clone().ptr())
|
pressure_
|
||||||
|
(
|
||||||
|
ptf.pressure_.valid()
|
||||||
|
? ptf.pressure_().clone().ptr()
|
||||||
|
: NULL
|
||||||
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user