isotropic.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) 2022 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::solidThermophysicalTransportModels::isotropic
26 
27 Description
28  Solid thermophysical transport model for isotropic thermal conductivity
29 
30  This is the default transport model for solids and selected automatically if
31  the thermophysicalTransport dictionary is not present in the constant or
32  region directory.
33 
34 SourceFiles
35  isotropic.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef isotropic_H
40 #define isotropic_H
41 
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 namespace solidThermophysicalTransportModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class isotropic Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class isotropic
56 :
58 {
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("isotropic");
64 
65 
66  // Constructors
67 
68  //- Construct from solid thermophysical properties
70 
71 
72  //- Destructor
73  virtual ~isotropic()
74  {}
75 
76 
77  // Member Functions
78 
79  //- Const access to the coefficients dictionary
80  virtual const dictionary& coeffDict() const;
81 
82  //- Read thermophysicalTransport dictionary
83  virtual bool read();
84 
85  //- Return the heat flux [W/m^2]
86  virtual tmp<surfaceScalarField> q() const;
87 
88  //- Return null patch heat flux correction [W/m^2]
89  virtual tmp<scalarField> qCorr(const label patchi) const;
90 
91  //- Return the source term for the energy equation
92  virtual tmp<fvScalarMatrix> divq(volScalarField& he) const;
93 
94  //- Correct the isotropic viscosity
95  virtual void predict();
96 };
97 
98 
99 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
100 
101 } // End namespace solidThermophysicalTransportModels
102 } // End namespace Foam
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 #endif
107 
108 // ************************************************************************* //
Generic GeometricField class.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Base-class for solid thermodynamic properties.
Definition: solidThermo.H:56
Abstract base class for solid thermophysical transport models.
virtual const solidThermo & thermo() const
Access function to solid thermophysical properties.
Solid thermophysical transport model for isotropic thermal conductivity.
Definition: isotropic.H:57
virtual tmp< scalarField > qCorr(const label patchi) const
Return null patch heat flux correction [W/m^2].
Definition: isotropic.C:96
virtual void predict()
Correct the isotropic viscosity.
Definition: isotropic.C:120
virtual const dictionary & coeffDict() const
Const access to the coefficients dictionary.
Definition: isotropic.C:71
virtual tmp< surfaceScalarField > q() const
Return the heat flux [W/m^2].
Definition: isotropic.C:84
TypeName("isotropic")
Runtime type information.
isotropic(const solidThermo &thermo)
Construct from solid thermophysical properties.
Definition: isotropic.C:52
virtual bool read()
Read thermophysicalTransport dictionary.
Definition: isotropic.C:77
virtual tmp< fvScalarMatrix > divq(volScalarField &he) const
Return the source term for the energy equation.
Definition: isotropic.C:106
A class for managing temporary objects.
Definition: tmp.H:55
label patchi
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
thermo he()