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

#include "CurrentSource.h"

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

12
		ExternalCurrentSource(std::string name, int src, int dest, Complex current);
13

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