solidPressureThermo.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2019 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 Class
25  Foam::solidPressureThermo
26 
27 Description
28  Fundamental solid thermodynamic properties including pressure.
29 
30 SourceFiles
31  solidPressureThermo.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef solidPressureThermo_H
36 #define solidPressureThermo_H
37 
38 #include "solidThermo.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class solidPressureThermo Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 :
51  public solidThermo
52 {
53 
54 protected:
55 
56  // Fields
57 
58  //- Pressure [Pa]
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("solidPressureThermo");
66 
67  // Constructors
68 
69  //- Construct from mesh and phase name
71  (
72  const fvMesh&,
73  const word& phaseName
74  );
75 
76  //- Construct from mesh, dictionary and phase name
78  (
79  const fvMesh&,
80  const dictionary& dict,
81  const word& phaseName
82  );
83 
84 
85  //- Destructor
86  virtual ~solidPressureThermo();
87 
88 
89  // Member Functions
90 
91  // Access to thermodynamic state variables
92 
93  //- Pressure [Pa]
94  // Non-const access allowed for transport equations
95  virtual volScalarField& p();
96 
97  //- Pressure [Pa]
98  virtual const volScalarField& p() const;
99 };
100 
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 } // End namespace Foam
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 #endif
109 
110 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
volScalarField & p_
Pressure [Pa].
virtual ~solidPressureThermo()
Destructor.
Fundamental solid thermodynamic properties including pressure.
A class for handling words, derived from string.
Definition: word.H:59
TypeName("solidPressureThermo")
Runtime type information.
Fundamental solid thermodynamic properties.
Definition: solidThermo.H:48
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
virtual volScalarField & p()
Pressure [Pa].
solidPressureThermo(const fvMesh &, const word &phaseName)
Construct from mesh and phase name.
Namespace for OpenFOAM.