Initial release of the new fireFoam solver and ancillary libraries.
[OpenFOAM-1.6.x.git] / applications / solvers / combustion / fireFoam / sensibleEnthalpyCombustionThermophysicalModels / basic / psiThermo / basicSensiblePsiThermo / basicSensiblePsiThermo.H
blobf2eadec321fb63924e029cba5a70d7ca17f66571
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     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
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::basicSensiblePsiThermo
28 Description
29     Basic thermodynamic properties based on compressibility
31 SourceFiles
32     basicSensiblePsiThermo.C
33     newBasicSensiblePsiThermo.C
35 \*---------------------------------------------------------------------------*/
37 #ifndef basicSensiblePsiThermo_H
38 #define basicSensiblePsiThermo_H
40 #include "basicThermo.H"
41 #include "runTimeSelectionTables.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 /*---------------------------------------------------------------------------*\
49                         Class basicSensiblePsiThermo Declaration
50 \*---------------------------------------------------------------------------*/
52 class basicSensiblePsiThermo
54     public basicThermo
57 protected:
59     // Protected member functions
61         //- Construct as copy (not implemented)
62         basicSensiblePsiThermo(const basicSensiblePsiThermo&);
65 public:
67     //- Runtime type information
68     TypeName("basicSensiblePsiThermo");
71     //- Declare run-time constructor selection table
72     declareRunTimeSelectionTable
73     (
74         autoPtr,
75         basicSensiblePsiThermo,
76         fvMesh,
77         (const fvMesh& mesh),
78         (mesh)
79     );
81     // Constructors
83         //- Construct from mesh
84         basicSensiblePsiThermo(const fvMesh&);
87     //- Selector
88     static autoPtr<basicSensiblePsiThermo> New(const fvMesh&);
90     //- Destructor
91     virtual ~basicSensiblePsiThermo();
94     // Member functions
96         // Fields derived from thermodynamic state variables
98             //- Density [kg/m^3] - uses current value of pressure
99             virtual tmp<volScalarField> rho() const
100             {
101                 return p_*psi();
102             }
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 } // End namespace Foam
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 #endif
114 // ************************************************************************* //