DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
Sfx_PhysicalAlgorithm.h
Go to the documentation of this file.
1#pragma once
2
3// forward declarations
4namespace dbpp {
5 class PhysicalSystem;
7}
8namespace Sfx { class Simulation; }
9
10namespace Sfx
11{
20 {
21 public:
25 virtual ~PhysicalAlgorithm() = default;
30 virtual bool isTimeDependent() const noexcept { return false; }
31 // Design Note
32 // i need to think about this, passing the discretization allow to retireve
33 // numerical method. But may be we should create the discretization and method
34 // in the physical algorithm insted of doing it in side simulator as i do!!
35 // Open question!!!
36
43 virtual void calculate( dbpp::PhysicalSystem* aPhysys, //something wrong with this!!
44 const std::shared_ptr<dbpp::FiniteVolumeDiscretization>& aGdiscr, Sfx::Simulation* aSim) = 0;
45 };
46}// End of namespace
Abstract class provide an interface with services to implement physical based algorithm to solve st-V...
Definition Sfx_PhysicalAlgorithm.h:20
virtual ~PhysicalAlgorithm()=default
dtor
virtual bool isTimeDependent() const noexcept
time dependent algorihm
Definition Sfx_PhysicalAlgorithm.h:30
virtual void calculate(dbpp::PhysicalSystem *aPhysys, const std::shared_ptr< dbpp::FiniteVolumeDiscretization > &aGdiscr, Sfx::Simulation *aSim)=0
Compute the numerical model (numerical integrate)
Bean that represents a simulation in the framework. Many of the attributes of the simulation bean are...
Definition Sfx_Simulation.h:22
global discretized domain is defined as a set of all nodes and all elements. PHYSICAL ENTITIES includ...
Definition dbpp_FiniteVolumeDiscretization.h:26
Physical system made of physical objects under study and described by the state variables....
Definition dbpp_PhysicalSystem.h:32
Definition HydUtils.h:15
Definition DamBreakProb.h:15