VoltSourceResEMT.h 692 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#ifndef VOLTSOURCERESEMT_H
#define VOLTSOURCERESEMT_H

#include "BaseComponent.h"

namespace DPsim {

	class VoltSourceResEMT : public BaseComponent {
	protected:
10
		Complex mVoltage;
11
12
13
14
15
16
17
18
19
		Real mVoltageAmp;
		Real mVoltagePhase;
		Real mVoltageDiff;			
		Real mResistance;
		Real mConductance;
		Real mCurrent;
		
	public:
		VoltSourceResEMT() { ; };
20
		VoltSourceResEMT(std::string name, int src, int dest, Complex voltage, Real resistance);
21

22
		void init(Real om, Real dt) { }
23
		void applySystemMatrixStamp(SystemModel& system);
24
25
26
		void applyRightSideVectorStamp(SystemModel& system);
		void step(SystemModel& system, Real time);
		void postStep(SystemModel& system) { }
27
28
29
30
	};
}
#endif
#pragma once