1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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 \*---------------------------------------------------------------------------*/
27 #include "addToRunTimeSelectionTable.H"
28 #include "volFields.H"
30 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
34 namespace regionModels
36 namespace thermoBaffleModels
39 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
41 defineTypeNameAndDebug(noThermo, 0);
42 addToRunTimeSelectionTable(thermoBaffleModel, noThermo, mesh);
43 addToRunTimeSelectionTable(thermoBaffleModel, noThermo, dictionary);
45 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
49 return regionModel1D::read();
53 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
55 noThermo::noThermo(const word& modelType, const fvMesh& mesh)
57 thermoBaffleModel(mesh)
63 const word& modelType,
65 const dictionary& dict
68 thermoBaffleModel(mesh)
72 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
77 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
79 void noThermo::preEvolveRegion()
83 void noThermo::evolveRegion()
87 const tmp<volScalarField> noThermo::Cp() const
89 FatalErrorIn("const tmp<volScalarField>& noThermo::Cp() const")
90 << "Cp field not available for " << type() << abort(FatalError);
92 return tmp<volScalarField>
106 dimensionedScalar("zero", dimEnergy/dimVolume/dimTime, 0.0)
111 const volScalarField& noThermo::kappa() const
113 FatalErrorIn("const volScalarField& noThermo::kappa() const")
114 << "kappa field not available for " << type() << abort(FatalError);
115 return volScalarField::null();
119 const volScalarField& noThermo::rho() const
121 FatalErrorIn("const volScalarField& noThermo::rho() const")
122 << "rho field not available for " << type() << abort(FatalError);
123 return volScalarField::null();
127 const volScalarField& noThermo::K() const
129 FatalErrorIn("const volScalarField& noThermo::K() const")
130 << "K field not available for " << type() << abort(FatalError);
131 return volScalarField::null();
135 const volScalarField& noThermo::T() const
137 FatalErrorIn("const volScalarField& noThermo::T() const")
138 << "T field not available for " << type() << abort(FatalError);
139 return volScalarField::null();
143 const basicSolidThermo& noThermo::thermo() const
145 FatalErrorIn("const volScalarField& noThermo::T() const")
146 << "T field not available for " << type() << abort(FatalError);
147 return reinterpret_cast<const basicSolidThermo&>(null);
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 } // End namespace thermoBaffleModels
154 } // End namespace regionModels
155 } // End namespace Foam
157 // ************************************************************************* //