solidAbsorption.H 3.89 KB
Newer Older
1
2
3
4
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
sergio's avatar
ENH:    
sergio committed
5
    \\  /    A nd           | Copyright (C) 2015-2018 OpenCFD Ltd.
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
     \\/     M anipulation  |
-------------------------------------------------------------------------------
License
    This file is part of OpenFOAM.

    OpenFOAM is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    for more details.

    You should have received a copy of the GNU General Public License
    along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.

Class
sergio's avatar
ENH:    
sergio committed
25
    Foam::radiation::solidAbsorption
26

27

28
Description
29
30
    Radiation absorptivity-emissivity model to be used on walls on
    inter-region patches when the solid opaque radiation model is used
sergio's avatar
ENH:    
sergio committed
31
32
33
34
    in the solid and the wall emissivity and absorptivity are taken from
    the solid radiation properties

Usage
35
    Example usage
sergio's avatar
ENH:    
sergio committed
36
37
38
39
40
    \verbatim
        wallAbsorptionEmissionModel
        {
            type            solidAbsorption;
        };
41
    \endverbatim
sergio's avatar
ENH:    
sergio committed
42

43
44

SourceFiles
sergio's avatar
ENH:    
sergio committed
45
    solidAbsorption.C
46
47
48

\*---------------------------------------------------------------------------*/

sergio's avatar
ENH:    
sergio committed
49
50
#ifndef radiation_solidAbsorption_H
#define radiation_solidAbsorption_H
51

sergio's avatar
ENH:    
sergio committed
52
53
#include "wallAbsorptionEmissionModel.H"
#include "fvMesh.H"
54
55
56
57
58
59
60
61
62

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

namespace Foam
{
namespace radiation
{

/*---------------------------------------------------------------------------*\
sergio's avatar
ENH:    
sergio committed
63
                        Class solidAbsorption Declaration
64
65
\*---------------------------------------------------------------------------*/

sergio's avatar
ENH:    
sergio committed
66
class solidAbsorption
67
:
sergio's avatar
ENH:    
sergio committed
68
    public wallAbsorptionEmissionModel
69
70
{

sergio's avatar
ENH:    
sergio committed
71
    // Private members
72

sergio's avatar
ENH:    
sergio committed
73
74
        //- Nbr region
        const fvMesh& nbrRegion() const;
75

sergio's avatar
ENH:    
sergio committed
76
77
        //- Nbr index patch
        label nbrPatchIndex() const;
78
79
80
81

public:

    //- Runtime type information
sergio's avatar
ENH:    
sergio committed
82
    TypeName("solidAbsorption");
83
84
85
86
87


    // Constructors

        //- Construct from components
sergio's avatar
ENH:    
sergio committed
88
        solidAbsorption(const dictionary& dict, const polyPatch& pp);
89
90
91


    //- Destructor
sergio's avatar
ENH:    
sergio committed
92
    virtual ~solidAbsorption();
93
94
95
96


    // Member Functions

sergio's avatar
ENH:    
sergio committed
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
        //- absorptivity coefficient
        tmp<scalarField> a
        (
            const label bandI = 0,
            vectorField* incomingDirection = nullptr,
            scalarField* T = nullptr
        ) const;

        //- Return absorptivity on face
        scalar a
        (
            const label faceI,
            const label bandI = 0,
            const vector dir = Zero,
            const scalar T = 0
        ) const;

        //- Return emission coefficient
        tmp<scalarField> e
        (
            const label bandI = 0,
            vectorField* incomingDirection = nullptr,
            scalarField* T = nullptr
        ) const;

        //- Return emission coefficient
        scalar e
        (
            const label faceI,
            const label bandI = 0,
            const vector dir = Zero,
            const scalar T = 0
        ) const;
130
131
132
133
134
135
136
137
138


        //- Is Grey
        inline bool isGrey() const
        {
            return true;
        }

        //- Number of bands
sergio's avatar
ENH:    
sergio committed
139
        inline label nBands() const;
140
141
142
143
144
145
146
147
148
149
150
151
152
};


// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

} // End namespace radiation
} // End namespace Foam

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#endif

// ************************************************************************* //