DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
dbpp_CellFaceFlux.h
Go to the documentation of this file.
1#pragma once
2
3// SfxBase19 library include
4#include "include/Sfx_DefineTypes.h"
5
6namespace dbpp
7{
12 {
13 // Design Note could be implemented as an aggregate!! That's it That's all!!
14 public:
18 cellFaceFlux() = default;
26 constexpr cellFaceFlux(float64 aFL1, float64 aFL2, float64 aFR1, float64 aFR2)
27 : m_FL1{ aFL1 },
28 m_FL2{ aFL2 },
29 m_FR1{ aFR1 },
30 m_FR2{ aFR2 }
31 {
32 // constexpr ctor cannot have a body
33 }
34
38 constexpr float64 FL1() const noexcept { return m_FL1; }
43 constexpr float64 FL2() const noexcept { return m_FL2; }
48 constexpr float64 FR1() const noexcept { return m_FR1; }
53 constexpr float64 FR2() const noexcept { return m_FR2; }
58 constexpr void setFL1(float64 aFL1) { m_FL1 = aFL1; }
63 constexpr void setFL2(float64 aFL2) { m_FL2 = aFL2; }
68 constexpr void setFR1(float64 aFR1) { m_FR1 = aFR1; }
73 constexpr void setFR2(float64 aFr2) { m_FR2 = aFr2; }
74
75 private:
76 // left state
79 // right state
82 };
83} // End of namespace
constexpr void setFL1(float64 aFL1)
face flux left state variable (first component)
Definition dbpp_CellFaceFlux.h:58
float64 m_FL2
Definition dbpp_CellFaceFlux.h:78
constexpr float64 FR1() const noexcept
face flux right state variable (first component)
Definition dbpp_CellFaceFlux.h:48
constexpr void setFR2(float64 aFr2)
face flux right state variable (second component)
Definition dbpp_CellFaceFlux.h:73
constexpr void setFR1(float64 aFR1)
face flux right state variable (first component)
Definition dbpp_CellFaceFlux.h:68
constexpr float64 FL1() const noexcept
face flux left state variable (first component)
Definition dbpp_CellFaceFlux.h:38
float64 m_FL1
Definition dbpp_CellFaceFlux.h:77
float64 m_FR1
Definition dbpp_CellFaceFlux.h:80
float64 m_FR2
Definition dbpp_CellFaceFlux.h:81
cellFaceFlux()=default
default ctor
constexpr cellFaceFlux(float64 aFL1, float64 aFL2, float64 aFR1, float64 aFR2)
Definition dbpp_CellFaceFlux.h:26
constexpr float64 FL2() const noexcept
face flux left state variable (second component)
Definition dbpp_CellFaceFlux.h:43
constexpr float64 FR2() const noexcept
face flux right state variable (second component)
Definition dbpp_CellFaceFlux.h:53
constexpr void setFL2(float64 aFL2)
face flux left state variable (second component)
Definition dbpp_CellFaceFlux.h:63
Definition DamBreakProb.h:15
double float64
Definition dbpp_LDeltaOperator.h:12