1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "fixedRhoFvPatchScalarField.H"
27 #include "addToRunTimeSelectionTable.H"
28 #include "fvPatchFieldMapper.H"
29 #include "volFields.H"
30 #include "surfaceFields.H"
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
38 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
40 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
43 const DimensionedField<scalar, volMesh>& iF
46 fixedValueFvPatchScalarField(p, iF)
50 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
52 const fixedRhoFvPatchScalarField& ptf,
54 const DimensionedField<scalar, volMesh>& iF,
55 const fvPatchFieldMapper& mapper
58 fixedValueFvPatchScalarField(ptf, p, iF, mapper)
62 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
65 const DimensionedField<scalar, volMesh>& iF,
66 const dictionary& dict
69 fixedValueFvPatchScalarField(p, iF, dict)
73 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
75 const fixedRhoFvPatchScalarField& tppsf
78 fixedValueFvPatchScalarField(tppsf)
82 fixedRhoFvPatchScalarField::fixedRhoFvPatchScalarField
84 const fixedRhoFvPatchScalarField& tppsf,
85 const DimensionedField<scalar, volMesh>& iF
88 fixedValueFvPatchScalarField(tppsf, iF)
92 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
94 void fixedRhoFvPatchScalarField::updateCoeffs()
101 const fvPatchField<scalar>& psip =
102 patch().lookupPatchField<volScalarField, scalar>("psi");
104 const fvPatchField<scalar>& pp =
105 patch().lookupPatchField<volScalarField, scalar>("p");
109 fixedValueFvPatchScalarField::updateCoeffs();
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 fixedRhoFvPatchScalarField
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace Foam
125 // ************************************************************************* //