Skip to content

Commit

Permalink
NR optimized and documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
Thales1330 committed Sep 29, 2023
1 parent a1f4db4 commit 8c3005b
Show file tree
Hide file tree
Showing 397 changed files with 7,401 additions and 6,507 deletions.
8 changes: 4 additions & 4 deletions Project/PowerFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ std::vector<std::vector<double> > PowerFlow::CalculateJacobianMatrix(std::vector
#else
double gij = m_yBus[i][j].real();
double bij = m_yBus[i][j].imag();
j11[busNumI][busNumJ] = vi * vj * (gij * std::sin(tij) - bij * std::cos(tij));
j11[busNumI][busNumJ] = vi * vj * (gij * std::sin(ti - tj) - bij * std::cos(ti - tj));
#endif
} else { // busNumI == busNumJ
std::complex<double> sj = std::complex<double>(0.0, 0.0);
Expand Down Expand Up @@ -701,7 +701,7 @@ std::vector<std::vector<double> > PowerFlow::CalculateJacobianMatrix(std::vector
#else
double gij = m_yBus[i][j].real();
double bij = m_yBus[i][j].imag();
j12[busNumI][busNumJ] = vi * (gij * std::cos(tij) - bij * std::sin(tij));
j12[busNumI][busNumJ] = vi * (gij * std::cos(ti - tj) - bij * std::sin(ti - tj));
#endif
} else { // busNumI == busNumJ
std::complex<double> sj = std::complex<double>(0.0, 0.0);
Expand Down Expand Up @@ -746,7 +746,7 @@ std::vector<std::vector<double> > PowerFlow::CalculateJacobianMatrix(std::vector
#else
double gij = m_yBus[i][j].real();
double bij = m_yBus[i][j].imag();
j21[busNumI][busNumJ] = -vi * vj * (gij * std::cos(tij) + bij * std::sin(tij));
j21[busNumI][busNumJ] = -vi * vj * (gij * std::cos(ti - tj) + bij * std::sin(ti - tj));
#endif
} else { // busNumI == busNumJ
std::complex<double> sj = std::complex<double>(0.0, 0.0);
Expand Down Expand Up @@ -790,7 +790,7 @@ std::vector<std::vector<double> > PowerFlow::CalculateJacobianMatrix(std::vector
#else
double gij = m_yBus[i][j].real();
double bij = m_yBus[i][j].imag();
j22[busNumI][busNumJ] = vi * (gij * std::sin(tij) - bij * std::cos(tij));
j22[busNumI][busNumJ] = vi * (gij * std::sin(ti - tj) - bij * std::cos(ti - tj));
#endif
} else { // busNumI == busNumJ
std::complex<double> sj = std::complex<double>(0.0, 0.0);
Expand Down
2 changes: 1 addition & 1 deletion Project/PowerFlow.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#ifndef POWERFLOW_H
#define POWERFLOW_H

#define STD_NR
//#define STD_NR

#include "ElectricCalculation.h"

Expand Down
24 changes: 13 additions & 11 deletions docs/404.html

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/assets/css/styles.e61e0da8.css

This file was deleted.

1 change: 1 addition & 0 deletions docs/assets/css/styles.ff60c5c0.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/js/01a85c17.2022f866.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/assets/js/01a85c17.e96eea39.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/assets/js/042f27db.bc327750.js

This file was deleted.

Loading

0 comments on commit 8c3005b

Please sign in to comment.