File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212#include < cmath>
1313#include < iostream>
1414
15- #include < Model/PhasorDynamics/Bus/Bus.hpp>
1615#include < Model/PhasorDynamics/Branch/BranchData.hpp>
16+ #include < Model/PhasorDynamics/Bus/Bus.hpp>
1717
1818namespace GridKit
1919{
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ namespace GridKit
2020
2121 template <typename RealT, typename IdxT>
2222 struct BranchData ;
23- }
23+ } // namespace PhasorDynamics
2424} // namespace GridKit
2525
2626namespace GridKit
Original file line number Diff line number Diff line change 22 * @file BranchData.hpp
33 * @author Slaven Peles (peless@ornl.gov)
44 * @brief Modeling data for branches (transmission lines)
5- *
5+ *
66 */
77#pragma once
88
9-
109namespace GridKit
1110{
1211 namespace PhasorDynamics
1312 {
1413 /* *
1514 * @brief Contains modeling data for a Branch
16- *
15+ *
1716 * @tparam RealT Real parameter data type
1817 * @tparam IdxT Integer parameter data type
19- *
18+ *
2019 * Integer parameters are of the same type as matrix and vector indices.
21- *
20+ *
2221 * @todo Decide on naming scheme for model parameters.
2322 */
2423 template <typename RealT, typename IdxT>
@@ -27,10 +26,10 @@ namespace GridKit
2726 RealT R{0.0 }; // /< line series resistance
2827 RealT X{0.0 }; // /< line series reactance
2928 RealT G{0.0 }; // /< line shunt conductance
30- RealT B{0.0 }; // /< line shunt charging
29+ RealT B{0.0 }; // /< line shunt charging
3130
3231 IdxT bus1_id{0 }; // /< Unique ID of bus 1
3332 IdxT bus2_id{0 }; // /< Unique ID of bus 2
3433 };
35- }
36- }
34+ } // namespace PhasorDynamics
35+ } // namespace GridKit
Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ namespace GridKit
101101 return f_[1 ];
102102 }
103103
104-
105104 private:
106105 ScalarT Vr0_{0.0 };
107106 ScalarT Vi0_{0.0 };
Original file line number Diff line number Diff line change 22 * @file BusData.hpp
33 * @author Slaven Peles (peless@ornl.gov)
44 * @brief Modeling data for buses (nodes)
5- *
5+ *
66 */
77#pragma once
88
9-
109namespace GridKit
1110{
1211 namespace PhasorDynamics
1312 {
1413 /* *
1514 * @brief Contains modeling data for a Bus
16- *
15+ *
1716 * @tparam RealT Real parameter data type
1817 * @tparam IdxT Integer parameter data type
19- *
18+ *
2019 * Integer parameters are of the same type as matrix and vector indices.
21- *
20+ *
2221 * @todo Decide on naming scheme for model parameters.
2322 */
2423 template <typename RealT, typename IdxT>
@@ -29,5 +28,5 @@ namespace GridKit
2928
3029 IdxT bus_id{0 }; // /< Unique ID of bus 1
3130 };
32- }
33- }
31+ } // namespace PhasorDynamics
32+ } // namespace GridKit
Original file line number Diff line number Diff line change 22 * @file LoadData.hpp
33 * @author Slaven Peles (peless@ornl.gov)
44 * @brief Modeling data for loads
5- *
5+ *
66 */
77#pragma once
88
9-
109namespace GridKit
1110{
1211 namespace PhasorDynamics
1312 {
1413 /* *
1514 * @brief Contains modeling data for a Load
16- *
15+ *
1716 * @tparam RealT Real parameter data type
1817 * @tparam IdxT Integer parameter data type
19- *
18+ *
2019 * Integer parameters are of the same type as matrix and vector indices.
21- *
20+ *
2221 * @todo Decide on naming scheme for model parameters.
2322 */
2423 template <typename RealT, typename IdxT>
@@ -29,5 +28,5 @@ namespace GridKit
2928
3029 IdxT bus_id{0 }; // /< Unique ID of bus 1
3130 };
32- }
33- }
31+ } // namespace PhasorDynamics
32+ } // namespace GridKit
You can’t perform that action at this time.
0 commit comments