Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emt syngen trstab #185

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
cab7c3a
wip
gnakti Aug 2, 2021
0f34b41
add first working version
gnakti Aug 19, 2021
14961ab
fix initialisation of internal voltage
gnakti Aug 20, 2021
cbb2b29
add comments
gnakti Aug 20, 2021
32b7462
update EMT SMIB fault example
gnakti Aug 20, 2021
dab4652
update namespace of SMIB examples
gnakti Aug 24, 2021
9ec4fdb
remove emt line model in 1ph
gnakti Aug 25, 2021
0d3ffa6
comment out emt part in SMIB notebooks
gnakti Aug 26, 2021
dac3a6c
add EMT varResSwitch model
gnakti Sep 15, 2021
c358b1a
use varResSwitch in EMT SMIB example
gnakti Sep 15, 2021
dfff59f
add EMT 3Bus examples
gnakti Sep 16, 2021
801e572
add model flags
gnakti Sep 22, 2021
d12cf28
use three bus parameters of Marti paper
gnakti Mar 14, 2022
eed69f5
update to version used in publication
gnakti Mar 14, 2022
862c1d2
fix pipeline build error
gnakti Mar 14, 2022
e737682
use new method getOptionReal from utils
gnakti Mar 14, 2022
617ba72
post-rebase remaining adaption to new attribute system
gnakti Nov 28, 2022
3c40464
add emt 3ph SynGenTrStab to pybind
gnakti Nov 28, 2022
97f8707
fix attribute and task system
gnakti Jan 20, 2023
efe5e87
set correct frequency of external network injection
gnakti Jan 20, 2023
c681774
use new task system
gnakti Jan 26, 2023
ad70800
add EMT simulation to jupyter notebooks
gnakti Jan 31, 2023
38a061d
rename notebooks
gnakti Jan 31, 2023
dbdc663
fix and clean up C++ examples
gnakti Jan 31, 2023
1d441ab
remove unused attributes from EMT varResSwitch
gnakti Jan 31, 2023
217dae7
pybind: update EMT SynGenTrStab functions
gnakti Jan 31, 2023
f6bd2cf
add new task function of composite components
gnakti Jan 31, 2023
0258838
replace regular switch with varResSwitch
gnakti Jan 31, 2023
02b4287
fix prestep task order for DP SynGenTrStab
gnakti Jan 31, 2023
2dd95e2
[post rebase fixes]: Attributes, SPDLOG & MNA interface
gnakti Jul 16, 2023
bac8ad8
[post rebase fixes] solver
gnakti Jul 16, 2023
c5cb0f9
[Post rebase fixes] notebooks
gnakti Jul 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pybind: update EMT SynGenTrStab functions
Signed-off-by: Ghassen Nakti <[email protected]>
  • Loading branch information
gnakti committed Jul 16, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 217dae75c8835c9ae4dae9f1def8f5ab2509eb81
4 changes: 2 additions & 2 deletions dpsim/src/pybind/EMTComponents.cpp
Original file line number Diff line number Diff line change
@@ -130,10 +130,10 @@ void addEMTPh3Components(py::module_ mEMTPh3) {
"nom_power"_a, "nom_volt"_a, "nom_freq"_a, "Ll"_a, "Lmd"_a, "Llfd"_a, "H"_a, "D"_a = 0)
.def("set_initial_values", &CPS::EMT::Ph3::SynchronGeneratorTrStab::setInitialValues, "elec_power"_a, "mech_power"_a)
.def("connect", &CPS::EMT::Ph3::SynchronGeneratorTrStab::connect)
.def("set_model_flags", &CPS::EMT::Ph3::SynchronGeneratorTrStab::setModelFlags, "use_omega_ref"_a, "convert_with_omega_mech"_a)
.def("set_model_flags", &CPS::EMT::Ph3::SynchronGeneratorTrStab::setModelFlags, "convert_with_omega_mech"_a)
.def("set_reference_omega", [](CPS::EMT::Ph3::SynchronGeneratorTrStab &gen, std::string refOmegaName, CPS::IdentifiedObject::Ptr refOmegaComp,
std::string refDeltaName, CPS::IdentifiedObject::Ptr refDeltaComp) {
gen.setReferenceOmega(refOmegaComp->attribute<CPS::Real>(refOmegaName), refDeltaComp->attribute<CPS::Real>(refDeltaName));
gen.setReferenceOmega(refOmegaComp->attributeTyped<CPS::Real>(refOmegaName), refDeltaComp->attributeTyped<CPS::Real>(refDeltaName));
}, "ref_omega_name"_a="w_r", "ref_omage_comp"_a, "ref_delta_name"_a="delta_r", "ref_delta_comp"_a);

py::class_<CPS::EMT::Ph3::SynchronGeneratorDQTrapez, std::shared_ptr<CPS::EMT::Ph3::SynchronGeneratorDQTrapez>, CPS::SimPowerComp<CPS::Real>>(mEMTPh3, "SynchronGeneratorDQTrapez", py::multiple_inheritance())