ExternalVoltageSource.h 449 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include "IdealVoltageSource.h"

namespace DPsim {
	/** Ideal voltage source, but the voltage value can be changed between simulation
	 * steps (for example for interfacing with another simulator) */
	class ExternalVoltageSource : public IdealVoltageSource {
	public:
		ExternalVoltageSource() {};

12
		ExternalVoltageSource(std::string name, int src, int dest, Complex voltage, int num);
13

14
		void setVoltage(Real real, Real imag);
15
16
	};
}