34 enum class FlowTarget {
46 std::optional<std::size_t> report_step{};
47 double error_integral{};
48 double initial_rate{};
50 static State serializationTestObject();
52 bool operator==(
const State& rhs)
const;
54 template<
class Serializer>
57 serializer(report_step);
58 serializer(error_integral);
59 serializer(initial_rate);
65 static GPMaint serializationTestObject();
67 double pressure_target()
const;
68 double prop_constant()
const;
69 double time_constant()
const;
70 double rate(
State& state,
double current_rate,
double error,
double dt)
const;
71 void resetState(
State& state)
const;
72 std::optional<std::pair<std::string, int>> region()
const;
73 FlowTarget flow_target()
const;
74 bool operator==(
const GPMaint& other)
const;
75 template<
class Serializer>
78 serializer(m_flow_target);
79 serializer(m_region_number);
80 serializer(m_region_name);
81 serializer(m_pressure_target);
82 serializer(m_prop_constant);
83 serializer(m_time_constant);
84 serializer(m_report_step);
88 static FlowTarget FlowTargetFromString(
const std::string& stringvalue);
90 FlowTarget m_flow_target{FlowTarget::RESV_GINJ};
91 int m_region_number{};
92 std::string m_region_name{};
93 double m_pressure_target{};
94 double m_prop_constant{};
95 double m_time_constant{};
96 std::size_t m_report_step{};
Definition GPMaint.hpp:32
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Definition GPMaint.hpp:45