turbulentIntensityKineticEnergyInletFvPatchSymmTensorField.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
28 #include "volFields.H"
29 
30 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31 
34 (
35  const fvPatch& p,
36  const DimensionedField<symmTensor, volMesh>& iF
37 )
38 :
39  fixedValueFvPatchSymmTensorField(p, iF)
40 {}
41 
42 
45 (
46  const turbulentIntensityKineticEnergyInletFvPatchSymmTensorField& ptf,
47  const fvPatch& p,
48  const DimensionedField<symmTensor, volMesh>& iF,
49  const fvPatchFieldMapper& mapper
50 )
51 :
52  fixedValueFvPatchSymmTensorField(ptf, p, iF, mapper)
53 {}
54 
55 
58 (
59  const fvPatch& p,
60  const DimensionedField<symmTensor, volMesh>& iF,
61  const dictionary& dict
62 )
63 :
64  fixedValueFvPatchSymmTensorField(p, iF)
65 {
66 
67  fvPatchSymmTensorField::operator=(symmTensorField("value", dict, p.size()));
68 }
69 
70 
73 (
74  const turbulentIntensityKineticEnergyInletFvPatchSymmTensorField& ptf
75 )
76 :
77  fixedValueFvPatchSymmTensorField(ptf)
78 {}
79 
80 
83 (
84  const turbulentIntensityKineticEnergyInletFvPatchSymmTensorField& ptf,
85  const DimensionedField<symmTensor, volMesh>& iF
86 )
87 :
88  fixedValueFvPatchSymmTensorField(ptf, iF)
89 {}
90 
91 
92 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
93 
95 (
96  Ostream& os
97 ) const
98 {
100  writeEntry("value", os);
101 }
102 
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 namespace Foam
107 {
109  (
111  turbulentIntensityKineticEnergyInletFvPatchSymmTensorField
112  );
113 }
114 
115 // ************************************************************************* //
volFields.H
Foam::fvPatchField::write
virtual void write(Ostream &) const
Write.
Definition: fvPatchField.C:349
p
p
Definition: pEqn.H:62
turbulentIntensityKineticEnergyInletFvPatchSymmTensorField.H
Foam::turbulentIntensityKineticEnergyInletFvPatchSymmTensorField::write
virtual void write(Ostream &) const
Write.
Foam::symmTensorField
Field< symmTensor > symmTensorField
Specialisation of Field<T> for symmTensor.
Definition: primitiveFieldsFwd.H:51
Foam::turbulentIntensityKineticEnergyInletFvPatchSymmTensorField::turbulentIntensityKineticEnergyInletFvPatchSymmTensorField
turbulentIntensityKineticEnergyInletFvPatchSymmTensorField(const fvPatch &, const DimensionedField< symmTensor, volMesh > &)
Construct from patch and internal field.
dict
dictionary dict
Definition: searchingEngine.H:14
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::makePatchTypeField
makePatchTypeField(fvPatchVectorField, SRFFreestreamVelocityFvPatchVectorField)
Foam::fvPatchSymmTensorField
fvPatchField< symmTensor > fvPatchSymmTensorField
Definition: fvPatchFieldsFwd.H:43