KASKADE 7 development version
Loading...
Searching...
No Matches
Kaskade::FluxDensityConcept Struct Reference

Flux density concept. More...

#include <radiativeTransfer.hh>

Public Types

using Real = double

Public Member Functions

template<class Cell, class LocalPosition>
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
template<class Cell, class LocalPosition, class GlobalPosition>
std::array< Real, 2 > operator() (Cell cell, LocalPosition xi, GlobalPosition ray) const
 computes the unilateral flux density coefficients along a background direction

Detailed Description

Flux density concept.

This is the interface that has to be implemented by flux density objects for direction dependent flux simulations such as radiation.

The total flux is defined as the integral over the visible hemisphere \( S = \{ s\in \R^d \mid \|s\|=1 \wedge s^T n > 0 \}\):

\[ f = \frac{1}{|S|}\int_S n^T s \left[ (1-\chi(s)) (f_c(s) + f_l(s) T(x)) + \chi(s) (f_l(x,y) T(x) + f_s(x,y) (T(y)-T(x)))\right] \,ds. \]

Here, \( |S| = \int_S n^T s \, ds \) is the angle-weighted hemisphere surface, \( \chi \) is the characteristic function of view directions \( s \) in which an opposite boundary point \( y \in \partial\Omega \) is visible. \( f_l \) corresponds to the unilateral flux component unaffected by \( T(y) \), such as may arise from convective heat transfer. \( f_s \) corresponds to the symmetric exchange of flux between two boundary points, generally from warmer to colder.

Definition at line 47 of file radiativeTransfer.hh.

Member Typedef Documentation

◆ Real

Definition at line 50 of file radiativeTransfer.hh.

Member Function Documentation

◆ operator()() [1/2]

template<class Cell, class LocalPosition>
std::array< Real, 3 > Kaskade::FluxDensityConcept::operator() ( Cell cell,
LocalPosition xi,
Cell oCell,
LocalPosition oXi ) const

computes the flux density coefficients along the line between two given points

Parameters
cella grid cell
xithe local position within the cell, specifying a boundary point
oCellthe grid cell of the opposite boundary point
oXithe cell-local position of the opposite point
Returns
a triple \( (f_c, f_l, f_s)(x,y) \)

The method must be thread-safe, as it is called in parallel.

◆ operator()() [2/2]

template<class Cell, class LocalPosition, class GlobalPosition>
std::array< Real, 2 > Kaskade::FluxDensityConcept::operator() ( Cell cell,
LocalPosition xi,
GlobalPosition ray ) const

computes the unilateral flux density coefficients along a background direction

Parameters
cella grid cell
xithe local position within the cell, specifying a boundary point
raythe view direction
Returns
a pair \( (f_c, f_l)(s) \)

The method must be thread-safe, as it is called in parallel.


The documentation for this struct was generated from the following file: