ExternalVoltageSource.cpp 330 Bytes
Newer Older
1
2
3
4
#include "ExternalVoltageSource.h"

using namespace DPsim;

5
6
ExternalVoltageSource::ExternalVoltageSource(std::string name, int src, int dest, Complex voltage, int num) :
	IdealVoltageSource(name, src, dest, voltage, num) {
7
8
}

9
void ExternalVoltageSource::setVoltage(Real real, Real imag) {
10
	this->mVoltage = Complex(real, imag);
11
}