Commit 3b65b3cf authored by Jan Dinkelbach's avatar Jan Dinkelbach Committed by Markus Mirz
Browse files

Move 3ph system shifting constants to cps definitions

parent aa02f371
......@@ -42,6 +42,9 @@
#define PI M_PI
#endif
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
namespace CPS {
// ### Types ###
......
......@@ -8,10 +8,6 @@
#include <cps/EMT/EMT_Ph3_AvVoltageSourceInverterDQ.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
EMT::Ph3::AvVoltageSourceInverterDQ::AvVoltageSourceInverterDQ(String uid, String name, Logger::Level logLevel, Bool withTrafo)
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_Capacitor.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_Inductor.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_NetworkInjection.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_PiLine.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_RXLoad.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -10,10 +10,6 @@
using namespace CPS;
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
EMT::Ph3::Resistor::Resistor(String uid, String name, Logger::Level logLevel)
: SimPowerComp<Real>(uid, name, logLevel), TopologicalPowerComp(uid, name, logLevel) {
mPhaseType = PhaseType::ABC;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_RxLine.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_Switch.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_Transformer.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
......@@ -7,8 +7,6 @@
*********************************************************************************/
#include <cps/EMT/EMT_Ph3_Transformer.h>
#define SHIFT_TO_PHASE_B Complex(cos(-2 * M_PI / 3), sin(-2 * M_PI / 3))
#define SHIFT_TO_PHASE_C Complex(cos(2 * M_PI / 3), sin(2 * M_PI / 3))
using namespace CPS;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment