13#ifndef RADIATIVETRANSFER_HH
14#define RADIATIVETRANSFER_HH
20#include "dune/common/fmatrix.hh"
21#include "dune/common/fvector.hh"
22#include "dune/istl/bvector.hh"
64 template <
class Cell,
class LocalPosition>
78 template <
class Cell,
class LocalPosition,
class GlobalPosition>
104 template <
class Emissivity>
166 template <
class Cell,
class LocalPosition>
170 double ex = e(cell,xi);
171 double ey = e(oCell,oXi);
173 assert(0<=ex && ex<=1);
174 assert(0<=ey && ey<=1);
177 double fc = 4*ex*sigma*(1-ey)*
power(T0,3)*Tamb;
180 double fl = -4*ex*(1-ey)*sigma*
power(T0,3);
183 double fs = 4*ex*ey*sigma*
power(T0,3);
209 template <
class Cell,
class LocalPosition,
class GlobalPosition>
213 double ex = e(cell,xi);
214 assert(0<=ex && ex<=1);
216 double fc = 4*ex*sigma*
power(T0,3)*Tamb;
218 double fl = -4*ex*sigma*
power(T0,3);
267 assert(0<=e && e<=1);
303 template <
class Cell,
class LocalPosition>
309 double fc = 3*e*sigma*(1-e)*
power(T0,4);
312 double fl = -4*e*(1-e)*sigma*
power(T0,3);
315 double fs = 4*e*sigma*
power(T0,3);
341 template <
class Cell,
class LocalPosition,
class GlobalPosition>
346 double fc = 4*e*sigma*
power(T0,3)*Tamb;
348 double fl = -4*e*sigma*
power(T0,3);
419 template <
class Space,
class FluxDensity>
420 std::pair<NumaBCRSMatrix<Dune::FieldMatrix<double,1,1>>,
std::array< double, 2 > operator()(Cell cell, LocalPosition xi, GlobalPosition) const
Computes the unidirectional radiative flux coefficients in a direction to the ambient background.
std::array< double, 3 > operator()(Cell cell, LocalPosition xi, Cell oCell, LocalPosition oXi) const
Computes the flux between given surface points and .
HomogeneousRadiativeFluxDensity(double Tamb_, double T0_, double emissivity)
Constructor.
std::array< double, 3 > operator()(Cell cell, LocalPosition xi, Cell oCell, LocalPosition oXi) const
Computes the flux between given surface points and .
RadiativeFluxDensity(double Tamb_, double T0_, Emissivity const &emissivity)
Constructor.
std::array< double, 2 > operator()(Cell cell, LocalPosition xi, GlobalPosition) const
Computes the unidirectional radiative flux coefficients in a direction to the ambient background.
std::pair< NumaBCRSMatrix< Dune::FieldMatrix< double, 1, 1 > >, Dune::BlockVector< Dune::FieldVector< double, 1 > > > radiativeTransfer(Space const &space, FluxDensity const &fluxDensity, int n)
Assembles a Galerkin matrix and a right hand side contribution for direction-dependent fluxes,...
typename GridView::template Codim< 0 >::Entity Cell
The type of cells (entities of codimension 0) in the grid view.
Dune::FieldVector< typename GridView::ctype, GridView::dimensionworld > GlobalPosition
The type of global positions within the grid view.
Dune::FieldVector< typename GridView::ctype, GridView::dimension > LocalPosition
The type of local positions within cells of the grid view.
double emissivity(std::string const &name)
Emissivity of several materials (dimensionless)
constexpr double stefanBoltzmannConstant
The Stefan-Boltzmann constant .
constexpr R power(R base, int exp)
Computes integral powers of values in a multiplicative half-group.
std::array< Real, 3 > operator()(Cell cell, LocalPosition xi, Cell oCell, LocalPosition oXi) const
computes the flux density coefficients along the line between two given points
std::array< Real, 2 > operator()(Cell cell, LocalPosition xi, GlobalPosition ray) const
computes the unilateral flux density coefficients along a background direction