Fresnel.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2017 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::radiation::Fresnel
28
29Description
30 General Fresnel reflection model bewtween a dialectric and an absorbing
31 medium.
32
33 Radiative heat transfer. Micheal Modest. 3dr Edition. Chapter 2.5
34
35SourceFiles
36 scatterModel.C
37
38\*---------------------------------------------------------------------------*/
39
40#ifndef radiation_Fresnel_H
41#define radiation_Fresnel_H
42
43#include "reflectionModel.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace radiation
50{
51
52/*---------------------------------------------------------------------------*\
53 Class Fresnel Declaration
54\*---------------------------------------------------------------------------*/
56class Fresnel
57:
58 public reflectionModel
59{
60 // Private data
61
62 //- Coefficients dictionary
63 dictionary coeffsDict_;
64
65 //- Complex index of refraction for medium 1
66 Pair<scalar> nk1_;
67
68 //- Complex index of refraction for medium 2
69 Pair<scalar> nk2_;
70
71
72public:
73
74 //- Runtime type information
75 TypeName("Fresnel");
76
77 //- Construct from components
78 Fresnel(const dictionary& dict, const fvMesh& mesh);
79
80 //- Destructor
81 virtual ~Fresnel() = default;
82
83
84 // Member Functions
85
86 //- Return reflected direction
87 virtual vector R(const vector& incident, const vector& n) const;
88
89 //- Return reflectivity from medium1 to medium2 and a incident angle.
90 // nk1 = (n1 - i k1) from medium 1.
91 virtual scalar rho(const scalar incidentAngle) const;
92};
93
94
95// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96
97} // End namespace radiation
98} // End namespace Foam
99
100// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102#endif
103
104// ************************************************************************* //
#define R(A, B, C, D, E, F, K, M)
label n
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:69
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
General Fresnel reflection model bewtween a dialectric and an absorbing medium.
Definition: Fresnel.H:58
virtual ~Fresnel()=default
Destructor.
Fresnel(const dictionary &dict, const fvMesh &mesh)
Construct from components.
virtual vector R(const vector &incident, const vector &n) const
Return reflected direction.
TypeName("Fresnel")
Runtime type information.
Base class for radiation scattering.
dynamicFvMesh & mesh
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73