Skip to content
Snippets Groups Projects
Commit fc7f16c6 authored by andy's avatar andy Committed by Andrew Heather
Browse files

ENH: uniformTotalPressure BC updates

parent 27cc083c
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -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 ...@@ -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
)
{} {}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment