Finite Volume Solver  prototype
A framework to build finite volume solvers for the AG Klein at the Freie Universität Berlin.
Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform > Class Template Reference

This is an outflow boundary condition that models the massflow condition of a turbine machine. More...

#include <TurbineMassflowBoundary.hpp>

Public Types

using Complete = ::fub::Complete< EulerEquation >
 
using Conservative = ::fub::Conservative< EulerEquation >
 

Public Member Functions

 TurbineMassflowBoundary (const EulerEquation &eq, const TurbineMassflowBoundaryOptions &options)
 
void FillBoundary (::amrex::MultiFab &mf, const GriddingAlgorithm &gridding, int level)
 
void FillBoundary (::amrex::MultiFab &mf, const ::amrex::MultiFab &alphas, const ::amrex::Geometry &geom)
 
void FillBoundary (::amrex::MultiFab &mf, const ::amrex::MultiFab &alphas, const ::amrex::Geometry &geom, double required_massflow)
 
void FillBoundary (::amrex::MultiFab &mf, const GriddingAlgorithm &gridding, int level, Direction dir)
 
double ComputeRequiredMassflow (const Complete &state) const
 Returns the required mass flow for a given complete state. More...
 
double AverageRequiredMassflow (::amrex::MultiFab &mf, const GriddingAlgorithm &grid, int level)
 Returns the averaged required mass flow over all boundary cells. More...
 
void TransformState (Complete &expanded, const Complete &source)
 Compute the new complete state from the old complete state to enforce the required massflow. This is done by solving the exact Riemann Problem as described in Toro or by following the method from Jirasek. TODO: cite references. More...
 
void TransformState (Complete &expanded, const Complete &source, double required_massflow)
 Compute the new complete state from the old complete state to enforce the required massflow. This is done by solving the exact Riemann Problem as described in Toro or by following the method from Jirasek. TODO: cite references. More...
 

Static Private Member Functions

template<typename I >
static I MapToSrc (I &dest, const ::amrex::Geometry &geom, int side, Direction dir) noexcept
 

Private Attributes

EulerEquation equation_
 
TurbineMassflowBoundaryOptions options_
 
Transform transform_
 

Detailed Description

template<typename EulerEquation, typename Transform = RequireMassflow_SolveExactRiemannProblem>
class fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >

This is an outflow boundary condition that models the massflow condition of a turbine machine.

The massflow is given by the relation

    \f$\dot{m} / A \cdot \frac{\sqrt{T_0}}{p_0} = \text{const}\f$

Therefore, for given surface area \(A\), total pressure \(p_0\) and total temperature \(T_0\) one determines the required massflow \(\dot m\) and recomputes the static pressure and temperature values.

Member Typedef Documentation

◆ Complete

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
using fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::Complete = ::fub::Complete<EulerEquation>

◆ Conservative

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
using fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::Conservative = ::fub::Conservative<EulerEquation>

Constructor & Destructor Documentation

◆ TurbineMassflowBoundary()

template<typename EulerEquation , typename Transform >
fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::TurbineMassflowBoundary ( const EulerEquation &  eq,
const TurbineMassflowBoundaryOptions options 
)

Member Function Documentation

◆ AverageRequiredMassflow()

template<typename EulerEquation , typename Transform >
double fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::AverageRequiredMassflow ( ::amrex::MultiFab &  mf,
const GriddingAlgorithm grid,
int  level 
)

Returns the averaged required mass flow over all boundary cells.

◆ ComputeRequiredMassflow()

template<typename EulerEquation , typename Transform >
double fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::ComputeRequiredMassflow ( const Complete state) const

Returns the required mass flow for a given complete state.

◆ FillBoundary() [1/4]

template<typename EulerEquation , typename Transform >
void fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::FillBoundary ( ::amrex::MultiFab &  mf,
const ::amrex::MultiFab &  alphas,
const ::amrex::Geometry geom 
)

◆ FillBoundary() [2/4]

template<typename EulerEquation , typename Transform >
void fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::FillBoundary ( ::amrex::MultiFab &  mf,
const ::amrex::MultiFab &  alphas,
const ::amrex::Geometry geom,
double  required_massflow 
)

◆ FillBoundary() [3/4]

template<typename EulerEquation , typename Transform >
void fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::FillBoundary ( ::amrex::MultiFab &  mf,
const GriddingAlgorithm gridding,
int  level 
)

◆ FillBoundary() [4/4]

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
void fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::FillBoundary ( ::amrex::MultiFab &  mf,
const GriddingAlgorithm gridding,
int  level,
Direction  dir 
)
inline

◆ MapToSrc()

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
template<typename I >
static I fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::MapToSrc ( I &  dest,
const ::amrex::Geometry geom,
int  side,
Direction  dir 
)
inlinestaticprivatenoexcept

◆ TransformState() [1/2]

template<typename EulerEquation , typename Transform >
void fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::TransformState ( Complete expanded,
const Complete source 
)

Compute the new complete state from the old complete state to enforce the required massflow. This is done by solving the exact Riemann Problem as described in Toro or by following the method from Jirasek. TODO: cite references.

Parameters
sourcethe old complete state
expandedthe new complete state which enforces the required massflow condition

◆ TransformState() [2/2]

template<typename EulerEquation , typename Transform >
void fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::TransformState ( Complete expanded,
const Complete source,
double  required_massflow 
)

Compute the new complete state from the old complete state to enforce the required massflow. This is done by solving the exact Riemann Problem as described in Toro or by following the method from Jirasek. TODO: cite references.

Parameters
sourcethe old complete state
expandedthe new complete state which enforces the required massflow condition

Member Data Documentation

◆ equation_

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
EulerEquation fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::equation_
private

◆ options_

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
TurbineMassflowBoundaryOptions fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::options_
private

◆ transform_

template<typename EulerEquation , typename Transform = RequireMassflow_SolveExactRiemannProblem>
Transform fub::amrex::cutcell::TurbineMassflowBoundary< EulerEquation, Transform >::transform_
private

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