DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
Testvs19_NujicPhysicsAlgorithm.h
Go to the documentation of this file.
1#pragma once
2
3// SfxBase include
5
6// forward declaration
7namespace Sfx {
8 class Simulation;
9 //class PhysicalSystem;
10}
11
12namespace Testvs19
13{
20 {
21 public:
33 const std::shared_ptr<dbpp::FiniteVolumeDiscretization>& aGblDiscr, Sfx::Simulation* aSim) override final
34 {
35 auto w_stateVar = aPhysys->getStateVariables();
36 auto w_listSections = aPhysys->getListSections();
37
38 // call protected method below to implement the physics algorithm
39 calculFF(aGblDiscr.Omega());
40
41 // time integrator
42 }
43 protected: // these can be overridedn by subclass (EMcNeilPhysicsAlgorithm calculFF(HLL))
47 virtual void evaluation_H( const ListOfSections& aList);
51 virtual void evaluation_Z( const std::valarray<float64>& aZvec);
56 virtual void calculFF( const dbpp::Omega& aDomain);
60 virtual void calculS0();
64 virtual void calculS2(const Sfx::StateVectorField& aStateVec,);
65 private:
66 // Nujic explicit integrator
67 };
68}// End of namespace
Abstract class provide an interface with services to implement physical based algorithm to solve st-V...
Definition Sfx_PhysicalAlgorithm.h:20
Bean that represents a simulation in the framework. Many of the attributes of the simulation bean are...
Definition Sfx_Simulation.h:22
virtual void evaluation_H(const ListOfSections &aList)
Evaluate H (water depth) with second-order derivative.
virtual void calculFF(const dbpp::Omega &aDomain)
Numerical flux (Nujic ENO type scheme implementation)
void calculate(dbpp::PhysicalSystem *aPhysys, const std::shared_ptr< dbpp::FiniteVolumeDiscretization > &aGblDiscr, Sfx::Simulation *aSim) override final
Main algorithm.
Definition Testvs19_NujicPhysicsAlgorithm.h:32
virtual void calculS2(const Sfx::StateVectorField &aStateVec,)
source terms
virtual void calculS0()
bed slope term
virtual void evaluation_Z(const std::valarray< float64 > &aZvec)
Evaluate Z (bathymetry) with second-order derivative.
Global Domain (part of global discretization) list of elements and geomeric nodes used by numerical m...
Definition dbpp_Omega.h:19
Physical system made of physical objects under study and described by the state variables....
Definition dbpp_PhysicalSystem.h:32
Definition HydUtils.h:15
Definition Testvs19_BaseRhsPhysicsAlgorithm.cpp:19