summaryrefslogtreecommitdiffstats
path: root/Project/SyncMotor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/SyncMotor.cpp')
-rw-r--r--Project/SyncMotor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Project/SyncMotor.cpp b/Project/SyncMotor.cpp
index 2f9c3ce..13ea5e4 100644
--- a/Project/SyncMotor.cpp
+++ b/Project/SyncMotor.cpp
@@ -97,3 +97,10 @@ SyncMotorElectricalData SyncMotor::GetPUElectricalData(double systemPowerBase)
return data;
}
+
+Element* SyncMotor::GetCopy()
+{
+ SyncMotor* copy = new SyncMotor();
+ *copy = *this;
+ return copy;
+}