summaryrefslogtreecommitdiffstats
path: root/Project/ElectricCalculation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/ElectricCalculation.cpp')
-rw-r--r--Project/ElectricCalculation.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Project/ElectricCalculation.cpp b/Project/ElectricCalculation.cpp
index a0667d9..2fcab57 100644
--- a/Project/ElectricCalculation.cpp
+++ b/Project/ElectricCalculation.cpp
@@ -676,23 +676,23 @@ std::vector<std::complex<double> > ElectricCalculation::GaussianElimination(
return solution;
}
-SyncMachineModel ElectricCalculation::GetMachineModel(SyncGenerator* generator)
+Machines::SyncMachineModel ElectricCalculation::GetMachineModel(SyncGenerator* generator)
{
auto data = generator->GetElectricalData();
if(data.transTd0 != 0.0) {
if(data.transTq0 != 0.0) {
if(data.subTd0 != 0.0) {
if(data.subTq0 != 0.0)
- return SM_MODEL_5;
+ return Machines::SM_MODEL_5;
else
- return SM_MODEL_4;
+ return Machines::SM_MODEL_4;
} else
- return SM_MODEL_3;
+ return Machines::SM_MODEL_3;
} else
- return SM_MODEL_2;
+ return Machines::SM_MODEL_2;
}
- return SM_MODEL_1;
+ return Machines::SM_MODEL_1;
}
std::vector<std::complex<double> > ElectricCalculation::ComplexMatrixTimesVector(