diff options
Diffstat (limited to 'Project/Electromechanical.cpp')
-rw-r--r-- | Project/Electromechanical.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/Project/Electromechanical.cpp b/Project/Electromechanical.cpp index 4b40c53..4b8a711 100644 --- a/Project/Electromechanical.cpp +++ b/Project/Electromechanical.cpp @@ -1,3 +1,20 @@ +/* + * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + #include "Electromechanical.h" #include "ControlElementSolver.h" @@ -502,7 +519,7 @@ bool Electromechanical::InitializeDynamicElements() eq0 = data.terminalVoltage + std::complex<double>(ra, xqs) * ia; delta = std::arg(eq0);*/ } - + double ef0 = vq0 + ra * iq0 - xds * id0; data.initialFieldVoltage = ef0 * sd; @@ -523,7 +540,7 @@ bool Electromechanical::InitializeDynamicElements() data.oldPe = data.pe; data.oldSd = sd; data.oldSq = sq; - + m_sdC = sd; m_sqC = sq; @@ -818,7 +835,7 @@ bool Electromechanical::SolveSynchronousMachines() pe = 2.0 * pe - data.oldPe; sd = 2.0 * sd - data.oldSd; sq = 2.0 * sq - data.oldSq; - + m_sdC = sd; m_sqC = sq; |