Skip to content

Commit

Permalink
Post rebase fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Ghassen Nakti <[email protected]>
  • Loading branch information
gnakti committed Nov 5, 2024
1 parent 9b418f1 commit 5610f5b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int main(int argc, char* argv[]) {
SystemComponentList{loadDP, lineDP, pv});

// Initialization of dynamic topology
systemDP.initWithPowerflow(systemPF);
systemDP.initWithPowerflow(systemPF, Domain::DP);
Complex initial1PhPowerVSI= Complex(linePF->attributeTyped<Real>("p_inj")->get(), linePF->attributeTyped<Real>("q_inj")->get());

pv->terminal(0)->setPower(initial1PhPowerVSI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*********************************************************************************/

#include "../Examples.h"
#include <DPsim.h>
#include "../Examples.h"

using namespace DPsim;
using namespace CPS;
Expand Down Expand Up @@ -151,7 +151,7 @@ int main(int argc, char *argv[]) {
SystemComponentList{extnetEMT, lineEMT, pv});

// Initialization of dynamic topology
systemEMT.initWithPowerflow(systemPF, CPS::Domain::EMT);
systemEMT.initWithPowerflow(systemPF, Domain::EMT);

// Logging
auto loggerEMT = DataLogger::make(simName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ int main(int argc, char* argv[]) {
SystemComponentList{pv,lineEMT, load1SwitchEMT, load1EMT, load2SwitchEMT, load2EMT});

// Initialization of dynamic topology
systemEMT.initWithPowerflow(systemPF);
systemEMT.initWithPowerflow(systemPF, Domain::EMT);

Complex initial3PhPowerVSI = Complex(linePF->attributeTyped<Real>("p_inj")->get(), linePF->attributeTyped<Real>("q_inj")->get());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int main(int argc, char* argv[]) {
SystemComponentList{loadEMT, lineEMT, pv});

// Initialization of dynamic topology
systemEMT.initWithPowerflow(systemPF);
systemEMT.initWithPowerflow(systemPF, Domain::EMT);
Complex initial3PhPowerVSI= Complex(linePF->attributeTyped<Real>("p_inj")->get(), linePF->attributeTyped<Real>("q_inj")->get());

pv->terminal(0)->setPower(initial3PhPowerVSI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ int main(int argc, char* argv[]) {
SystemComponentList{loadSP, lineSP, pv});

// Initialization of dynamic topology
systemSP.initWithPowerflow(systemPF);
systemSP.initWithPowerflow(systemPF, Domain::SP);
Complex initial1PhPowerVSI= Complex(linePF->attributeTyped<Real>("p_inj")->get(), linePF->attributeTyped<Real>("q_inj")->get());

pv->terminal(0)->setPower(initial1PhPowerVSI);
Expand Down
4 changes: 0 additions & 4 deletions dpsim/examples/cxx/Examples.h
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,6 @@ struct ScenarioConfig {
Real systemOmega = 2 * PI * systemFrequency;
};
} // namespace SGIB
// Further parameters
Real systemOmega = 2 * PI * systemFrequency;
};
}
namespace GridForming {

struct ScenarioConfig1 {
Expand Down

0 comments on commit 5610f5b

Please sign in to comment.