21 #ifndef NETWORK_BALANCE_HPP
22 #define NETWORK_BALANCE_HPP
45 CalcMode mode()
const;
46 double interval()
const;
47 double pressure_tolerance()
const;
48 std::size_t pressure_max_iter()
const;
49 double thp_tolerance()
const;
50 std::size_t thp_max_iter()
const;
51 double target_balance_error()
const;
52 double max_balance_error()
const;
53 double min_tstep()
const;
55 static Balance serializeObject();
56 bool operator==(
const Balance& other)
const;
58 template<
class Serializer>
61 serializer(this->calc_mode);
62 serializer(this->calc_interval);
63 serializer(this->ptol);
64 serializer(this->m_pressure_max_iter);
65 serializer(this->m_thp_tolerance);
66 serializer(this->m_thp_max_iter);
67 serializer(this->target_branch_balance_error);
68 serializer(this->max_branch_balance_error);
69 serializer(this->m_min_tstep);
74 CalcMode calc_mode{CalcMode::None};
75 std::optional<double> calc_interval;
77 std::size_t m_pressure_max_iter;
79 double m_thp_tolerance;
80 std::size_t m_thp_max_iter;
82 double target_branch_balance_error;
83 double max_branch_balance_error;
Definition: DeckKeyword.hpp:36
Definition: Balance.hpp:32
Definition: Serializer.hpp:38
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: Tuning.hpp:24