1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 adiabaticFvPatchScalarField
28 adiabatic boundary (with radiation)
34 K K; // Name of K field
35 value 300.0; // Initial temperature / [K]
40 adiabaticFvPatchScalarField.C
42 \*---------------------------------------------------------------------------*/
44 #ifndef adiabaticFvPatchScalarField_H
45 #define adiabaticFvPatchScalarField_H
47 #include "mixedFvPatchFields.H"
49 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 /*---------------------------------------------------------------------------*\
55 Class adiabaticFvPatchScalarField Declaration
56 \*---------------------------------------------------------------------------*/
58 class adiabaticFvPatchScalarField
60 public mixedFvPatchScalarField
64 //- Name of thermal conductivity field
70 //- Runtime type information
71 TypeName("adiabatic");
76 //- Construct from patch and internal field
77 adiabaticFvPatchScalarField
80 const DimensionedField<scalar, volMesh>&
83 //- Construct from patch, internal field and dictionary
84 adiabaticFvPatchScalarField
87 const DimensionedField<scalar, volMesh>&,
91 //- Construct by mapping given
92 // adiabaticFvPatchScalarField
94 adiabaticFvPatchScalarField
96 const adiabaticFvPatchScalarField&,
98 const DimensionedField<scalar, volMesh>&,
99 const fvPatchFieldMapper&
102 //- Construct as copy
103 adiabaticFvPatchScalarField
105 const adiabaticFvPatchScalarField&
108 //- Construct and return a clone
109 virtual tmp<fvPatchScalarField> clone() const
111 return tmp<fvPatchScalarField>
113 new adiabaticFvPatchScalarField(*this)
117 //- Construct as copy setting internal field reference
118 adiabaticFvPatchScalarField
120 const adiabaticFvPatchScalarField&,
121 const DimensionedField<scalar, volMesh>&
124 //- Construct and return a clone setting internal field reference
125 virtual tmp<fvPatchScalarField> clone
127 const DimensionedField<scalar, volMesh>& iF
130 return tmp<fvPatchScalarField>
132 new adiabaticFvPatchScalarField(*this, iF)
139 // Evaluation functions
141 //- Update the coefficients associated with the patch field
142 virtual void updateCoeffs();
151 void write(Ostream&) const;
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 } // End namespace Foam
159 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 // ************************************************************************* //