DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
Sfx::EMcNeilBndCnd Class Reference

Calculate the characteristic information to set boundary node values (A,Q,H) More...

#include <Sfx_ImposeBnd.h>

Classes

struct  DownstreamCelerity
 aggregate that hold celerity wave downstream (characteristic) More...
struct  UpstreamCelerity
 aggregate that hold celerity wave upstream (characteristic) More...

Public Types

using pair_node = std::pair<Nodal_Value,Nodal_Value>
 alias

Public Member Functions

void applyBC (const Sfx::PhysicalSystem *aPhySys, double aDt)
pair_node getBC () const
 return boundary value (upstream/downstream)
void setBC (Sfx::NumArray< float64 > &aU1, Sfx::NumArray< float64 > &aU2)
 set physical boundary node (upstream/downstream)

Private Member Functions

DownstreamCelerity computeAval (const Sfx::StateVector &aVal, const dbpp::SectionFlow &aSectAval, float64 aDt)
 compute nodal values at boundary nodes according to characteristic information
UpstreamCelerity computeAmont (const Sfx::StateVector &aVal, const dbpp::SectionFlow &aSectAval, float64 aDt)

Private Attributes

Nodal_Value m_upstream
Nodal_Value m_downstream

Detailed Description

Calculate the characteristic information to set boundary node values (A,Q,H)

Member Typedef Documentation

◆ pair_node

using Sfx::EMcNeilBndCnd::pair_node = std::pair<Nodal_Value,Nodal_Value>

alias

Member Function Documentation

◆ applyBC()

void Sfx::EMcNeilBndCnd::applyBC ( const Sfx::PhysicalSystem * aPhySys,
double aDt )

◆ computeAmont()

EMcNeilBndCnd::UpstreamCelerity Sfx::EMcNeilBndCnd::computeAmont ( const Sfx::StateVector & aVal,
const dbpp::SectionFlow & aSectAval,
float64 aDt )
private

@ brief compute nodal values at boundary nodes according to characteristic information

Parameters
aValstate vector of state variables
aSectAvalsection flow downstream
aDttime step
Returns
celerity speed

◆ computeAval()

EMcNeilBndCnd::DownstreamCelerity Sfx::EMcNeilBndCnd::computeAval ( const Sfx::StateVector & aVal,
const dbpp::SectionFlow & aSectAval,
float64 aDt )
private

compute nodal values at boundary nodes according to characteristic information

Parameters
aValstate vector of state variables
aSectAvalsection flow downstream
aDttime step
Returns
celerity speed

◆ getBC()

pair_node Sfx::EMcNeilBndCnd::getBC ( ) const
inline

return boundary value (upstream/downstream)

Returns
pair

◆ setBC()

void Sfx::EMcNeilBndCnd::setBC ( Sfx::NumArray< float64 > & aU1,
Sfx::NumArray< float64 > & aU2 )

set physical boundary node (upstream/downstream)

Parameters
aU1array of values (state variable)
aU2array of values (state variable)

Member Data Documentation

◆ m_downstream

Nodal_Value Sfx::EMcNeilBndCnd::m_downstream
private

boundary value at downstream

◆ m_upstream

Nodal_Value Sfx::EMcNeilBndCnd::m_upstream
private

boundary value at upstream


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