26 py::class_<CPS::Base::Ph1::Switch, std::shared_ptr<CPS::Base::Ph1::Switch>>(
28 py::class_<CPS::Base::Ph3::Switch, std::shared_ptr<CPS::Base::Ph3::Switch>>(
32 std::shared_ptr<CPS::MNASyncGenInterface>>(
33 mBase,
"MNASyncGenInterface", py::multiple_inheritance())
41 std::shared_ptr<CPS::Base::ReducedOrderSynchronGenerator<CPS::Complex>>,
43 mBase,
"ReducedOrderSynchronGeneratorComplex", py::multiple_inheritance())
44 .def(
"set_base_parameters",
47 "nom_power"_a,
"nom_voltage"_a,
"nom_frequency"_a)
48 .def(
"set_initial_values",
51 "init_complex_electrical_power"_a,
"init_mechanical_power"_a,
52 "init_complex_terminal_voltage"_a)
53 .def(
"scale_inertia_constant",
57 .def(
"set_model_as_norton_source",
60 "model_as_norton_source"_a)
64 std::shared_ptr<CPS::Base::Exciter> exciter,
65 std::shared_ptr<CPS::Base::ExciterParameters> parameters) {
68 "exciter"_a,
"parameters"_a)
72 std::shared_ptr<CPS::Base::Exciter> exciter) {
82 "Ta"_a,
"Ka"_a,
"Te"_a,
"Ke"_a,
"Tf"_a,
"Kf"_a,
"Tr"_a)
84 py::overload_cast<std::shared_ptr<CPS::Base::PSS>,
85 std::shared_ptr<CPS::Base::PSSParameters>>(
87 "pss"_a,
"parameters"_a)
89 py::overload_cast<std::shared_ptr<CPS::Base::PSS>>(
95 std::shared_ptr<CPS::Signal::TurbineGovernorType1> governor) {
105 self.
addGovernor(T3, T4, T5, Tc, Ts, R, Pmin, Pmax, OmRef, TmRef);
107 "T3"_a,
"T4"_a,
"T5"_a,
"Tc"_a,
"Ts"_a,
"R"_a,
"Pmin"_a,
"Pmax"_a,
108 "OmRef"_a,
"TmRef"_a)
110 "add_governor_and_turbine",
112 std::shared_ptr<CPS::Base::Governor> governor,
113 std::shared_ptr<CPS::Base::GovernorParameters> govParams,
114 std::shared_ptr<CPS::Base::Turbine> turbine,
115 std::shared_ptr<CPS::Base::TurbineParameters> turbineParams) {
119 "governor"_a,
"gov_params"_a,
"turbine"_a,
"turbine_params"_a)
121 "add_governor_and_turbine",
123 std::shared_ptr<CPS::Base::Governor> governor,
124 std::shared_ptr<CPS::Base::Turbine> turbine) {
127 "governor"_a,
"turbine"_a);
131 std::shared_ptr<CPS::Base::ReducedOrderSynchronGenerator<CPS::Real>>,
133 py::multiple_inheritance())
134 .def(
"set_base_parameters",
137 "nom_power"_a,
"nom_voltage"_a,
"nom_frequency"_a)
138 .def(
"set_initial_values",
141 "init_complex_electrical_power"_a,
"init_mechanical_power"_a,
142 "init_complex_terminal_voltage"_a)
143 .def(
"scale_inertia_constant",
147 .def(
"set_model_as_norton_source",
150 "model_as_norton_source"_a)
154 std::shared_ptr<CPS::Base::Exciter> exciter,
155 std::shared_ptr<CPS::Base::ExciterParameters> parameters) {
158 "exciter"_a,
"parameters"_a)
162 std::shared_ptr<CPS::Base::Exciter> exciter) {
172 "Ta"_a,
"Ka"_a,
"Te"_a,
"Ke"_a,
"Tf"_a,
"Kf"_a,
"Tr"_a)
174 py::overload_cast<std::shared_ptr<CPS::Base::PSS>,
175 std::shared_ptr<CPS::Base::PSSParameters>>(
177 "pss"_a,
"parameters"_a)
179 py::overload_cast<std::shared_ptr<CPS::Base::PSS>>(
185 std::shared_ptr<CPS::Signal::TurbineGovernorType1> governor) {
195 self.
addGovernor(T3, T4, T5, Tc, Ts, R, Pmin, Pmax, OmRef, TmRef);
197 "T3"_a,
"T4"_a,
"T5"_a,
"Tc"_a,
"Ts"_a,
"R"_a,
"Pmin"_a,
"Pmax"_a,
198 "OmRef"_a,
"TmRef"_a)
200 "add_governor_and_turbine",
202 std::shared_ptr<CPS::Base::Governor> governor,
203 std::shared_ptr<CPS::Base::GovernorParameters> govParams,
204 std::shared_ptr<CPS::Base::Turbine> turbine,
205 std::shared_ptr<CPS::Base::TurbineParameters> turbineParams) {
209 "governor"_a,
"gov_params"_a,
"turbine"_a,
"turbine_params"_a)
211 "add_governor_and_turbine",
213 std::shared_ptr<CPS::Base::Governor> governor,
214 std::shared_ptr<CPS::Base::Turbine> turbine) {
217 "governor"_a,
"turbine"_a);
void addGovernor(Real T3, Real T4, Real T5, Real Tc, Real Ts, Real R, Real Pmin, Real Pmax, Real OmRef, Real TmRef)
Add governor and turbine (TurbineGovernorType1 legacy API)