Commit f2569515 authored by Georg Martin Reinke's avatar Georg Martin Reinke
Browse files

add getCurrent for CurrentSource again

parent 115d5f09
......@@ -19,3 +19,7 @@ void CurrentSource::applyRightSideVectorStamp(SystemModel& system) {
void CurrentSource::step(SystemModel& system, Real time) {
this->applyRightSideVectorStamp(system);
}
Complex CurrentSource::getCurrent(SystemModel &system) {
return Complex(currentr, currenti);
}
......@@ -19,6 +19,7 @@ namespace DPsim {
void applyRightSideVectorStamp(SystemModel& system);
void step(SystemModel& system, Real time);
void postStep(SystemModel& system) { }
Complex getCurrent(SystemModel& system);
};
}
#endif
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