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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::radiation::Fresnel
28 
29 Description
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 
35 SourceFiles
36  scatterModel.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef radiation_Fresnel_H
41 #define radiation_Fresnel_H
42 
43 #include "reflectionModel.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace radiation
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class Fresnel Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class 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 
72 public:
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 // ************************************************************************* //
Foam::radiation::Fresnel::~Fresnel
virtual ~Fresnel()=default
Destructor.
Foam::radiation::Fresnel::rho
virtual scalar rho(const scalar incidentAngle) const
Return reflectivity from medium1 to medium2 and a incident angle.
Foam::radiation::Fresnel::R
virtual vector R(const vector &incident, const vector &n) const
Return reflected direction.
Foam::radiation::Fresnel::Fresnel
Fresnel(const dictionary &dict, const fvMesh &mesh)
Construct from components.
n
label n
Definition: TABSMDCalcMethod2.H:31
Foam::radiation::Fresnel
General Fresnel reflection model bewtween a dialectric and an absorbing medium.
Definition: Fresnel.H:55
reflectionModel.H
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::Pair< scalar >
Foam::Vector< scalar >
Foam::radiation::reflectionModel
Base class for radiation scattering.
Definition: reflectionModel.H:53
Foam::radiation::Fresnel::TypeName
TypeName("Fresnel")
Runtime type information.