BioCMAMC-ST
discontinuous_fmt.hpp
1#ifndef __CMA_UTILS_D_FMT_HPP__
2#define __CMA_UTILS_D_FMT_HPP__
3
4#include <transitionner/transitionner.hpp>
5
6namespace CmaUtils
7{
15 {
16 public:
17 DiscontinuousFMT(std::size_t _n_flowmap,
18 std::size_t _n_per_flowmap,
19 std::size_t number_time_step,
20 std::unique_ptr<CmaRead::FlowIterator>&& _iterator,
22 void update_flow() final;
23
24 protected:
25 [[nodiscard]] const CmaRead::ReactorState&
26 get_current_reactor_state() const noexcept final;
28 current_liq_hydro_state() noexcept final;
30 current_gas_hydro_state() noexcept final;
31 };
32} // namespace CmaUtils
33
34#endif
void update_flow() final
Calculate the current state based on the selected method, may be caching or direct calculation.
Definition discontinuousfmt.cpp:44
CmaUtils::ProxyPreCalculatedHydroState & current_gas_hydro_state() noexcept final
Get current gas state read from CmaRead.
Definition discontinuousfmt.cpp:17
CmaUtils::ProxyPreCalculatedHydroState & current_liq_hydro_state() noexcept final
Get current liquid state read from CmaRead.
Definition discontinuousfmt.cpp:9
DiscontinuousFMT(std::size_t _n_flowmap, std::size_t _n_per_flowmap, std::size_t number_time_step, std::unique_ptr< CmaRead::FlowIterator > &&_iterator, bool is_two_phase_flow)
Definition discontinuousfmt.cpp:30
const CmaRead::ReactorState & get_current_reactor_state() const noexcept final
Provides a const reference to the current reactor state.
Definition discontinuousfmt.cpp:25
bool is_two_phase_flow() const noexcept
Checks whether a gas flowmap is provided.
Definition transitionner.hpp:223
Proxy class for PreCalculatedHydroState used to fill this struct with data from an external library.
Definition proxy_cache.hpp:28
Namespace to handle algorithms and structures related to reading compartment mesh.
Definition host_specific.hpp:18