diff --git a/examples/AdjointSensitivity/AdjointSensitivity.cpp b/examples/AdjointSensitivity/AdjointSensitivity.cpp index 83e3890ef..11cbe8ba2 100644 --- a/examples/AdjointSensitivity/AdjointSensitivity.cpp +++ b/examples/AdjointSensitivity/AdjointSensitivity.cpp @@ -79,7 +79,7 @@ */ int main() { - using namespace ModelLib; + using namespace GridKit; using namespace AnalysisManager::Sundials; using namespace AnalysisManager; using namespace GridKit::Testing; diff --git a/examples/DistributedGeneratorTest/DGTest.cpp b/examples/DistributedGeneratorTest/DGTest.cpp index 22903c609..2c35ec7d1 100644 --- a/examples/DistributedGeneratorTest/DGTest.cpp +++ b/examples/DistributedGeneratorTest/DGTest.cpp @@ -20,7 +20,7 @@ int main(int argc, char const *argv[]) { - ModelLib::DistributedGeneratorParameters parms; + GridKit::DistributedGeneratorParameters parms; //Parameters from MATLAB Microgrid code for first DG parms.wb_ = 2.0*M_PI*50.0; parms.wc_ = 31.41; @@ -38,7 +38,7 @@ int main(int argc, char const *argv[]) parms.rLc_ = 0.03; parms.Lc_ = 0.35e-3; - ModelLib::DistributedGenerator *dg = new ModelLib::DistributedGenerator(0, parms, true); + GridKit::DistributedGenerator *dg = new GridKit::DistributedGenerator(0, parms, true); std::vector t1(16,0.0); std::vector t2{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5}; diff --git a/examples/DynamicConstrainedOpt/DynamicConstrainedOpt.cpp b/examples/DynamicConstrainedOpt/DynamicConstrainedOpt.cpp index df24ad597..4a90a4b1a 100644 --- a/examples/DynamicConstrainedOpt/DynamicConstrainedOpt.cpp +++ b/examples/DynamicConstrainedOpt/DynamicConstrainedOpt.cpp @@ -74,7 +74,7 @@ int main() { - using namespace ModelLib; + using namespace GridKit; using namespace AnalysisManager::Sundials; using namespace AnalysisManager; using namespace GridKit::Testing; diff --git a/examples/GenConstLoad/GenConstLoad.cpp b/examples/GenConstLoad/GenConstLoad.cpp index 836b40cb8..5f8a9e834 100644 --- a/examples/GenConstLoad/GenConstLoad.cpp +++ b/examples/GenConstLoad/GenConstLoad.cpp @@ -75,7 +75,7 @@ int main() { - using namespace ModelLib; + using namespace GridKit; using namespace AnalysisManager::Sundials; using namespace AnalysisManager; using namespace GridKit::Testing; diff --git a/examples/GenInfiniteBus/GenInfiniteBus.cpp b/examples/GenInfiniteBus/GenInfiniteBus.cpp index a215e26b6..63cfd8c1d 100644 --- a/examples/GenInfiniteBus/GenInfiniteBus.cpp +++ b/examples/GenInfiniteBus/GenInfiniteBus.cpp @@ -75,7 +75,7 @@ int main() { - using namespace ModelLib; + using namespace GridKit; using namespace AnalysisManager::Sundials; using namespace AnalysisManager; using namespace GridKit::Testing; diff --git a/examples/Grid3Bus/Grid3BusSys.cpp b/examples/Grid3Bus/Grid3BusSys.cpp index 551869872..10601a43b 100644 --- a/examples/Grid3Bus/Grid3BusSys.cpp +++ b/examples/Grid3Bus/Grid3BusSys.cpp @@ -134,7 +134,7 @@ mpc.gencost = [ )"; -using namespace ModelLib; +using namespace GridKit; using namespace AnalysisManager::Sundials; using namespace AnalysisManager; using namespace GridKit::Testing; diff --git a/examples/Microgrid/Microgrid.cpp b/examples/Microgrid/Microgrid.cpp index 3168b12bd..901433b18 100644 --- a/examples/Microgrid/Microgrid.cpp +++ b/examples/Microgrid/Microgrid.cpp @@ -27,13 +27,13 @@ int main(int argc, char const *argv[]) bool usejac = true; //Create model - ModelLib::PowerElectronicsModel* sysmodel = new ModelLib::PowerElectronicsModel(reltol, abstol, usejac, max_step_amount); + GridKit::PowerElectronicsModel* sysmodel = new GridKit::PowerElectronicsModel(reltol, abstol, usejac, max_step_amount); //Modeled after the problem in the paper double RN = 1.0e4; //DG Params - ModelLib::DistributedGeneratorParameters parms1; + GridKit::DistributedGeneratorParameters parms1; parms1.wb_ = 2.0*M_PI*50.0; parms1.wc_ = 31.41; parms1.mp_ = 9.4e-5; @@ -50,7 +50,7 @@ int main(int argc, char const *argv[]) parms1.rLc_ = 0.03; parms1.Lc_ = 0.35e-3; - ModelLib::DistributedGeneratorParameters parms2; + GridKit::DistributedGeneratorParameters parms2; //Parameters from MATLAB Microgrid code for first DG parms2.wb_ = 2.0*M_PI*50.0; parms2.wc_ = 31.41; @@ -103,7 +103,7 @@ int main(int argc, char const *argv[]) size_t indexv = 0; //dg 1 - ModelLib::DistributedGenerator *dg1 = new ModelLib::DistributedGenerator(0, parms1, true); + GridKit::DistributedGenerator *dg1 = new GridKit::DistributedGenerator(0, parms1, true); //ref motor dg1->setExternalConnectionNodes(0,vec_size_internals); //outputs @@ -121,7 +121,7 @@ int main(int argc, char const *argv[]) sysmodel->addComponent(dg1); //dg 2 - ModelLib::DistributedGenerator *dg2 = new ModelLib::DistributedGenerator(1, parms1, false); + GridKit::DistributedGenerator *dg2 = new GridKit::DistributedGenerator(1, parms1, false); //ref motor dg2->setExternalConnectionNodes(0,vec_size_internals); //outputs @@ -138,7 +138,7 @@ int main(int argc, char const *argv[]) //dg 3 - ModelLib::DistributedGenerator *dg3 = new ModelLib::DistributedGenerator(2, parms2, false); + GridKit::DistributedGenerator *dg3 = new GridKit::DistributedGenerator(2, parms2, false); //ref motor dg3->setExternalConnectionNodes(0,vec_size_internals); //outputs @@ -155,7 +155,7 @@ int main(int argc, char const *argv[]) //dg 4 - ModelLib::DistributedGenerator *dg4 = new ModelLib::DistributedGenerator(3, parms2, false); + GridKit::DistributedGenerator *dg4 = new GridKit::DistributedGenerator(3, parms2, false); //ref motor dg4->setExternalConnectionNodes(0,vec_size_internals); //outputs @@ -174,7 +174,7 @@ int main(int argc, char const *argv[]) // Lines //line 1 - ModelLib::MicrogridLine *l1 = new ModelLib::MicrogridLine(4, rline1, Lline1); + GridKit::MicrogridLine *l1 = new GridKit::MicrogridLine(4, rline1, Lline1); //ref motor l1->setExternalConnectionNodes(0,vec_size_internals); //input connections @@ -194,7 +194,7 @@ int main(int argc, char const *argv[]) //line 2 - ModelLib::MicrogridLine *l2 = new ModelLib::MicrogridLine(5, rline2, Lline2); + GridKit::MicrogridLine *l2 = new GridKit::MicrogridLine(5, rline2, Lline2); //ref motor l2->setExternalConnectionNodes(0,vec_size_internals); //input connections @@ -213,7 +213,7 @@ int main(int argc, char const *argv[]) sysmodel->addComponent(l2); //line 3 - ModelLib::MicrogridLine *l3 = new ModelLib::MicrogridLine(6, rline3, Lline3); + GridKit::MicrogridLine *l3 = new GridKit::MicrogridLine(6, rline3, Lline3); //ref motor l3->setExternalConnectionNodes(0,vec_size_internals); //input connections @@ -234,7 +234,7 @@ int main(int argc, char const *argv[]) // loads //load 1 - ModelLib::MicrogridLoad *load1 = new ModelLib::MicrogridLoad(7, rload1, Lload1); + GridKit::MicrogridLoad *load1 = new GridKit::MicrogridLoad(7, rload1, Lload1); //ref motor load1->setExternalConnectionNodes(0,vec_size_internals); //input connections @@ -250,7 +250,7 @@ int main(int argc, char const *argv[]) sysmodel->addComponent(load1); //load 2 - ModelLib::MicrogridLoad *load2 = new ModelLib::MicrogridLoad(8, rload2, Lload2); + GridKit::MicrogridLoad *load2 = new GridKit::MicrogridLoad(8, rload2, Lload2); //ref motor load2->setExternalConnectionNodes(0,vec_size_internals); //input connections @@ -266,25 +266,25 @@ int main(int argc, char const *argv[]) sysmodel->addComponent(load2); //Virtual PQ Buses - ModelLib::MicrogridBusDQ *bus1 = new ModelLib::MicrogridBusDQ(9, RN); + GridKit::MicrogridBusDQ *bus1 = new GridKit::MicrogridBusDQ(9, RN); bus1->setExternalConnectionNodes(0,dqbus1); bus1->setExternalConnectionNodes(1,dqbus1 + 1); sysmodel->addComponent(bus1); - ModelLib::MicrogridBusDQ *bus2 = new ModelLib::MicrogridBusDQ(10, RN); + GridKit::MicrogridBusDQ *bus2 = new GridKit::MicrogridBusDQ(10, RN); bus2->setExternalConnectionNodes(0,dqbus2); bus2->setExternalConnectionNodes(1,dqbus2 + 1); sysmodel->addComponent(bus2); - ModelLib::MicrogridBusDQ *bus3 = new ModelLib::MicrogridBusDQ(11, RN); + GridKit::MicrogridBusDQ *bus3 = new GridKit::MicrogridBusDQ(11, RN); bus3->setExternalConnectionNodes(0,dqbus3); bus3->setExternalConnectionNodes(1,dqbus3 + 1); sysmodel->addComponent(bus3); - ModelLib::MicrogridBusDQ *bus4 = new ModelLib::MicrogridBusDQ(12, RN); + GridKit::MicrogridBusDQ *bus4 = new GridKit::MicrogridBusDQ(12, RN); bus4->setExternalConnectionNodes(0,dqbus4); bus4->setExternalConnectionNodes(1,dqbus4 + 1); diff --git a/examples/ParameterEstimation/ParameterEstimation.cpp b/examples/ParameterEstimation/ParameterEstimation.cpp index 91406e37d..54a243133 100644 --- a/examples/ParameterEstimation/ParameterEstimation.cpp +++ b/examples/ParameterEstimation/ParameterEstimation.cpp @@ -80,7 +80,7 @@ int main() { - using namespace ModelLib; + using namespace GridKit; using namespace AnalysisManager::Sundials; using namespace AnalysisManager; using namespace GridKit::Testing; diff --git a/examples/RLCircuit/RLCircuit.cpp b/examples/RLCircuit/RLCircuit.cpp index c00be85fb..46afe8727 100644 --- a/examples/RLCircuit/RLCircuit.cpp +++ b/examples/RLCircuit/RLCircuit.cpp @@ -24,7 +24,7 @@ int main(int argc, char const *argv[]) //TODO:setup as named parameters //Create circuit model - ModelLib::PowerElectronicsModel* sysmodel = new ModelLib::PowerElectronicsModel(reltol, abstol, usejac); + GridKit::PowerElectronicsModel* sysmodel = new GridKit::PowerElectronicsModel(reltol, abstol, usejac); size_t idoff = 0; @@ -35,7 +35,7 @@ int main(int argc, char const *argv[]) //inductor - ModelLib::Inductor* induct = new ModelLib::Inductor(idoff,linit); + GridKit::Inductor* induct = new GridKit::Inductor(idoff,linit); //Form index to node uid realations // input induct->setExternalConnectionNodes(0,1); @@ -49,7 +49,7 @@ int main(int argc, char const *argv[]) //resistor idoff++; - ModelLib::Resistor* resis = new ModelLib::Resistor(idoff, rinit); + GridKit::Resistor* resis = new GridKit::Resistor(idoff, rinit); //Form index to node uid realations //input resis->setExternalConnectionNodes(0,0); @@ -60,7 +60,7 @@ int main(int argc, char const *argv[]) //voltage source idoff++; - ModelLib::VoltageSource* vsource = new ModelLib::VoltageSource(idoff, vinit); + GridKit::VoltageSource* vsource = new GridKit::VoltageSource(idoff, vinit); //Form index to node uid realations //input vsource->setExternalConnectionNodes(0,-1); diff --git a/examples/ScaleMicrogrid/ScaleMicrogrid.cpp b/examples/ScaleMicrogrid/ScaleMicrogrid.cpp index 86fc27dd9..a145c0be3 100644 --- a/examples/ScaleMicrogrid/ScaleMicrogrid.cpp +++ b/examples/ScaleMicrogrid/ScaleMicrogrid.cpp @@ -64,7 +64,7 @@ int main(int argc, char const *argv[]) */ int test(index_type Nsize, real_type error_tol, bool debug_output) { - using namespace ModelLib; + using namespace GridKit; bool usejac = true; @@ -105,7 +105,7 @@ int test(index_type Nsize, real_type error_tol, bool debug_output) // DG Params Vector // All DGs have the same set of parameters except for the first two. - ModelLib::DistributedGeneratorParameters DG_parms1; + GridKit::DistributedGeneratorParameters DG_parms1; DG_parms1.wb_ = 2.0*M_PI*50.0; DG_parms1.wc_ = 31.41; DG_parms1.mp_ = 9.4e-5; @@ -122,7 +122,7 @@ int test(index_type Nsize, real_type error_tol, bool debug_output) DG_parms1.rLc_ = 0.03; DG_parms1.Lc_ = 0.35e-3; - ModelLib::DistributedGeneratorParameters DG_parms2; + GridKit::DistributedGeneratorParameters DG_parms2; DG_parms2.wb_ = 2.0*M_PI*50.0; DG_parms2.wc_ = 31.41; DG_parms2.mp_ = 12.5e-5; @@ -139,7 +139,7 @@ int test(index_type Nsize, real_type error_tol, bool debug_output) DG_parms2.rLc_ = 0.03; DG_parms2.Lc_ = 0.35e-3; - std::vector> DGParams_list(2*Nsize, DG_parms2); + std::vector> DGParams_list(2*Nsize, DG_parms2); DGParams_list[0] = DG_parms1; DGParams_list[1] = DG_parms1; diff --git a/src/Model/PhasorDynamics/Branch/Branch.cpp b/src/Model/PhasorDynamics/Branch/Branch.cpp index b8782a654..0433e0caa 100644 --- a/src/Model/PhasorDynamics/Branch/Branch.cpp +++ b/src/Model/PhasorDynamics/Branch/Branch.cpp @@ -64,7 +64,7 @@ #include "Branch.hpp" -namespace ModelLib { // change to GridKit +namespace GridKit { namespace PhasorDynamics { /*! diff --git a/src/Model/PhasorDynamics/Branch/Branch.hpp b/src/Model/PhasorDynamics/Branch/Branch.hpp index e8aa3df03..d1d973e8b 100644 --- a/src/Model/PhasorDynamics/Branch/Branch.hpp +++ b/src/Model/PhasorDynamics/Branch/Branch.hpp @@ -70,7 +70,7 @@ namespace PowerSystemData } } -namespace ModelLib +namespace GridKit { namespace PhasorDynamics { @@ -78,7 +78,7 @@ namespace PhasorDynamics } } -namespace ModelLib +namespace GridKit { namespace PhasorDynamics { diff --git a/src/Model/PhasorDynamics/Bus/Bus.cpp b/src/Model/PhasorDynamics/Bus/Bus.cpp index e7e4e14c8..ff3f99696 100644 --- a/src/Model/PhasorDynamics/Bus/Bus.cpp +++ b/src/Model/PhasorDynamics/Bus/Bus.cpp @@ -63,7 +63,7 @@ #include #include "Bus.hpp" -namespace ModelLib // change to GridKit +namespace GridKit { namespace PhasorDynamics { @@ -223,5 +223,5 @@ template class Bus; template class Bus; } // namespace PhasorDynamic -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PhasorDynamics/Bus/Bus.hpp b/src/Model/PhasorDynamics/Bus/Bus.hpp index f3a9e5cd7..575124e27 100644 --- a/src/Model/PhasorDynamics/Bus/Bus.hpp +++ b/src/Model/PhasorDynamics/Bus/Bus.hpp @@ -72,7 +72,7 @@ namespace PowerSystemData } } -namespace ModelLib // change to GridKit +namespace GridKit { namespace PhasorDynamics { diff --git a/src/Model/PowerElectronics/Capacitor/Capacitor.cpp b/src/Model/PowerElectronics/Capacitor/Capacitor.cpp index 779b8a627..6a8844460 100644 --- a/src/Model/PowerElectronics/Capacitor/Capacitor.cpp +++ b/src/Model/PowerElectronics/Capacitor/Capacitor.cpp @@ -6,7 +6,7 @@ #include #include "Capacitor.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for Capacitor @@ -141,5 +141,5 @@ template class Capacitor; template class Capacitor; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/Capacitor/Capacitor.hpp b/src/Model/PowerElectronics/Capacitor/Capacitor.hpp index 76cdc3504..145ad807d 100644 --- a/src/Model/PowerElectronics/Capacitor/Capacitor.hpp +++ b/src/Model/PowerElectronics/Capacitor/Capacitor.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a Capacitor class. diff --git a/src/Model/PowerElectronics/CircuitComponent.hpp b/src/Model/PowerElectronics/CircuitComponent.hpp index 8186c7272..290054c84 100644 --- a/src/Model/PowerElectronics/CircuitComponent.hpp +++ b/src/Model/PowerElectronics/CircuitComponent.hpp @@ -9,7 +9,7 @@ #include -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a CircuitComponent class. diff --git a/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.cpp b/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.cpp index 00d174ae4..4ab6ddd34 100644 --- a/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.cpp +++ b/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.cpp @@ -6,7 +6,7 @@ #include #include "DistributedGenerator.hpp" -namespace ModelLib { +namespace GridKit { /*! @@ -359,5 +359,5 @@ template class DistributedGenerator; template class DistributedGenerator; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp b/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp index bbb9475fa..b2a96cdef 100644 --- a/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp +++ b/src/Model/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp @@ -8,7 +8,7 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; @@ -34,7 +34,7 @@ namespace ModelLib } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a DistributedGenerator class. diff --git a/src/Model/PowerElectronics/InductionMotor/InductionMotor.cpp b/src/Model/PowerElectronics/InductionMotor/InductionMotor.cpp index fa0da7fbc..4b66e7e9b 100644 --- a/src/Model/PowerElectronics/InductionMotor/InductionMotor.cpp +++ b/src/Model/PowerElectronics/InductionMotor/InductionMotor.cpp @@ -7,7 +7,7 @@ #include "InductionMotor.hpp" -namespace ModelLib { +namespace GridKit { @@ -141,5 +141,5 @@ template class InductionMotor; template class InductionMotor; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/InductionMotor/InductionMotor.hpp b/src/Model/PowerElectronics/InductionMotor/InductionMotor.hpp index 0a502d556..5a3002d5c 100644 --- a/src/Model/PowerElectronics/InductionMotor/InductionMotor.hpp +++ b/src/Model/PowerElectronics/InductionMotor/InductionMotor.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a InductionMotor class. diff --git a/src/Model/PowerElectronics/Inductor/Inductor.cpp b/src/Model/PowerElectronics/Inductor/Inductor.cpp index 2bb4dd1d9..b157af0e8 100644 --- a/src/Model/PowerElectronics/Inductor/Inductor.cpp +++ b/src/Model/PowerElectronics/Inductor/Inductor.cpp @@ -6,7 +6,7 @@ #include #include "Inductor.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a inductor @@ -140,5 +140,5 @@ template class Inductor; template class Inductor; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/Inductor/Inductor.hpp b/src/Model/PowerElectronics/Inductor/Inductor.hpp index fbab06496..ec196fb65 100644 --- a/src/Model/PowerElectronics/Inductor/Inductor.hpp +++ b/src/Model/PowerElectronics/Inductor/Inductor.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a Inductor class. diff --git a/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.cpp b/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.cpp index b53fbd278..84a7c5a75 100644 --- a/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.cpp +++ b/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.cpp @@ -6,7 +6,7 @@ #include #include "LinearTransformer.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a LinearTransformer model @@ -119,5 +119,5 @@ template class LinearTransformer; template class LinearTransformer; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.hpp b/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.hpp index 7938ed76b..f11f5e310 100644 --- a/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.hpp +++ b/src/Model/PowerElectronics/LinearTransformer/LinearTransformer.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a LinearTransformer class. diff --git a/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.cpp b/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.cpp index f486e1720..063b9e0e2 100644 --- a/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.cpp +++ b/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.cpp @@ -4,7 +4,7 @@ #include #include "MicrogridBusDQ.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant MicrogridBusDQ model @@ -134,5 +134,5 @@ template class MicrogridBusDQ; template class MicrogridBusDQ; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.hpp b/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.hpp index 027143e66..f8dd201db 100644 --- a/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.hpp +++ b/src/Model/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a MicrogridBusDQ class. diff --git a/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.cpp b/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.cpp index 3198af2e5..21deeb80b 100644 --- a/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.cpp +++ b/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.cpp @@ -4,7 +4,7 @@ #include #include "MicrogridLine.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant MicrogridLine model @@ -171,5 +171,5 @@ template class MicrogridLine; template class MicrogridLine; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.hpp b/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.hpp index 17cc18ba9..cf81f888c 100644 --- a/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.hpp +++ b/src/Model/PowerElectronics/MicrogridLine/MicrogridLine.hpp @@ -7,13 +7,13 @@ #include #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a MicrogridLine class. diff --git a/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.cpp b/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.cpp index ddfa9ab94..36508ee56 100644 --- a/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.cpp +++ b/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.cpp @@ -4,7 +4,7 @@ #include #include "MicrogridLoad.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant MicrogridLoad model @@ -168,5 +168,5 @@ template class MicrogridLoad; template class MicrogridLoad; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.hpp b/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.hpp index f64626bee..9fc5befb6 100644 --- a/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.hpp +++ b/src/Model/PowerElectronics/MicrogridLoad/MicrogridLoad.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a passive MicrogridLoad class. diff --git a/src/Model/PowerElectronics/Resistor/Resistor.cpp b/src/Model/PowerElectronics/Resistor/Resistor.cpp index caf0335f1..564c12199 100644 --- a/src/Model/PowerElectronics/Resistor/Resistor.cpp +++ b/src/Model/PowerElectronics/Resistor/Resistor.cpp @@ -6,7 +6,7 @@ #include #include "Resistor.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a resistor model @@ -122,5 +122,5 @@ template class Resistor; template class Resistor; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/Resistor/Resistor.hpp b/src/Model/PowerElectronics/Resistor/Resistor.hpp index f3c925abd..885373f83 100644 --- a/src/Model/PowerElectronics/Resistor/Resistor.hpp +++ b/src/Model/PowerElectronics/Resistor/Resistor.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a Resistor class. diff --git a/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.cpp b/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.cpp index e3f65bed5..cc0e0d846 100644 --- a/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.cpp +++ b/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.cpp @@ -7,7 +7,7 @@ #include "SynchronousMachine.hpp" -namespace ModelLib { +namespace GridKit { @@ -149,5 +149,5 @@ template class SynchronousMachine; template class SynchronousMachine; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.hpp b/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.hpp index f2b9b842f..190ebad64 100644 --- a/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.hpp +++ b/src/Model/PowerElectronics/SynchronousMachine/SynchronousMachine.hpp @@ -9,13 +9,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a SynchronousMachine class. diff --git a/src/Model/PowerElectronics/SystemModelPowerElectronics.hpp b/src/Model/PowerElectronics/SystemModelPowerElectronics.hpp index 32b7ddd71..50128b93b 100644 --- a/src/Model/PowerElectronics/SystemModelPowerElectronics.hpp +++ b/src/Model/PowerElectronics/SystemModelPowerElectronics.hpp @@ -11,7 +11,7 @@ #include #include -namespace ModelLib +namespace GridKit { template @@ -329,4 +329,4 @@ namespace ModelLib }; // class PowerElectronicsModel -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.cpp b/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.cpp index 010f38e1f..4dfc33200 100644 --- a/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.cpp +++ b/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.cpp @@ -4,7 +4,7 @@ #include #include "TransmissionLine.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a TransmissionLine model @@ -201,5 +201,5 @@ template class TransmissionLine; template class TransmissionLine; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.hpp b/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.hpp index 09355a8ab..4da149e9c 100644 --- a/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.hpp +++ b/src/Model/PowerElectronics/TransmissionLine/TransmissionLine.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a TransmissionLine class. diff --git a/src/Model/PowerElectronics/VoltageSource/VoltageSource.cpp b/src/Model/PowerElectronics/VoltageSource/VoltageSource.cpp index 2e4041519..ec9d5b19e 100644 --- a/src/Model/PowerElectronics/VoltageSource/VoltageSource.cpp +++ b/src/Model/PowerElectronics/VoltageSource/VoltageSource.cpp @@ -6,7 +6,7 @@ #include #include "VoltageSource.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant VoltageSource model @@ -118,5 +118,5 @@ template class VoltageSource; template class VoltageSource; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerElectronics/VoltageSource/VoltageSource.hpp b/src/Model/PowerElectronics/VoltageSource/VoltageSource.hpp index 46f2ddc6f..8b15381f8 100644 --- a/src/Model/PowerElectronics/VoltageSource/VoltageSource.hpp +++ b/src/Model/PowerElectronics/VoltageSource/VoltageSource.hpp @@ -8,13 +8,13 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a VoltageSource class. diff --git a/src/Model/PowerFlow/Branch/Branch.cpp b/src/Model/PowerFlow/Branch/Branch.cpp index 993e3dbd1..d2ff225f8 100644 --- a/src/Model/PowerFlow/Branch/Branch.cpp +++ b/src/Model/PowerFlow/Branch/Branch.cpp @@ -64,7 +64,7 @@ #include "Branch.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a pi-model branch @@ -215,4 +215,4 @@ int Branch::evaluateAdjointIntegrand() template class Branch; template class Branch; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerFlow/Branch/Branch.hpp b/src/Model/PowerFlow/Branch/Branch.hpp index 4637784cd..022fc1df0 100644 --- a/src/Model/PowerFlow/Branch/Branch.hpp +++ b/src/Model/PowerFlow/Branch/Branch.hpp @@ -62,12 +62,12 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a pi-model branch between two buses. diff --git a/src/Model/PowerFlow/Bus/BaseBus.hpp b/src/Model/PowerFlow/Bus/BaseBus.hpp index 0413201db..87247e814 100644 --- a/src/Model/PowerFlow/Bus/BaseBus.hpp +++ b/src/Model/PowerFlow/Bus/BaseBus.hpp @@ -62,7 +62,7 @@ #include -namespace ModelLib +namespace GridKit { /*! * @brief Base class for all power flow buses. @@ -151,7 +151,7 @@ namespace ModelLib const IdxT busID_; }; // class BaseBus -} // namespace ModelLib +} // namespace GridKit #endif // _BASE_BUS_HPP_ diff --git a/src/Model/PowerFlow/Bus/BusFactory.hpp b/src/Model/PowerFlow/Bus/BusFactory.hpp index 9b514c297..66ff943f3 100644 --- a/src/Model/PowerFlow/Bus/BusFactory.hpp +++ b/src/Model/PowerFlow/Bus/BusFactory.hpp @@ -64,7 +64,7 @@ #include #include -namespace ModelLib { +namespace GridKit { template class BusFactory @@ -97,4 +97,4 @@ namespace ModelLib { } }; -} // namespace ModelLib \ No newline at end of file +} // namespace GridKit \ No newline at end of file diff --git a/src/Model/PowerFlow/Bus/BusPQ.cpp b/src/Model/PowerFlow/Bus/BusPQ.cpp index 18c6ec22c..07627e0a9 100644 --- a/src/Model/PowerFlow/Bus/BusPQ.cpp +++ b/src/Model/PowerFlow/Bus/BusPQ.cpp @@ -61,7 +61,7 @@ #include #include "BusPQ.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a PQ bus @@ -209,5 +209,5 @@ template class BusPQ; template class BusPQ; -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerFlow/Bus/BusPQ.hpp b/src/Model/PowerFlow/Bus/BusPQ.hpp index 6d0c963d6..f4081993f 100644 --- a/src/Model/PowerFlow/Bus/BusPQ.hpp +++ b/src/Model/PowerFlow/Bus/BusPQ.hpp @@ -63,7 +63,7 @@ #include "BaseBus.hpp" #include -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a PQ bus. @@ -193,7 +193,7 @@ namespace ModelLib }; -} // namespace ModelLib +} // namespace GridKit #endif // _BUS_PQ_HPP_ diff --git a/src/Model/PowerFlow/Bus/BusPV.cpp b/src/Model/PowerFlow/Bus/BusPV.cpp index d5a05dc98..75ae6d05c 100644 --- a/src/Model/PowerFlow/Bus/BusPV.cpp +++ b/src/Model/PowerFlow/Bus/BusPV.cpp @@ -61,7 +61,7 @@ #include #include "BusPV.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a PV bus @@ -202,5 +202,5 @@ template class BusPV; template class BusPV; -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerFlow/Bus/BusPV.hpp b/src/Model/PowerFlow/Bus/BusPV.hpp index 14f8def55..08f407a2f 100644 --- a/src/Model/PowerFlow/Bus/BusPV.hpp +++ b/src/Model/PowerFlow/Bus/BusPV.hpp @@ -64,7 +64,7 @@ #include "BaseBus.hpp" #include -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a PV bus. @@ -207,7 +207,7 @@ namespace ModelLib ScalarT QB_; }; -} // namespace ModelLib +} // namespace GridKit #endif // _BUS_PV_HPP_ diff --git a/src/Model/PowerFlow/Bus/BusSlack.cpp b/src/Model/PowerFlow/Bus/BusSlack.cpp index 54318de74..5abe099df 100644 --- a/src/Model/PowerFlow/Bus/BusSlack.cpp +++ b/src/Model/PowerFlow/Bus/BusSlack.cpp @@ -61,7 +61,7 @@ #include #include "BusSlack.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a slack bus @@ -141,5 +141,5 @@ template class BusSlack; template class BusSlack; -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerFlow/Bus/BusSlack.hpp b/src/Model/PowerFlow/Bus/BusSlack.hpp index a4fce8f5a..61e56a176 100644 --- a/src/Model/PowerFlow/Bus/BusSlack.hpp +++ b/src/Model/PowerFlow/Bus/BusSlack.hpp @@ -63,7 +63,7 @@ #include "BaseBus.hpp" #include -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a slack bus. @@ -198,7 +198,7 @@ namespace ModelLib }; // class BusSlack -} // namespace ModelLib +} // namespace GridKit #endif // _BUS_SLACK_HPP_ diff --git a/src/Model/PowerFlow/Generator/GeneratorBase.hpp b/src/Model/PowerFlow/Generator/GeneratorBase.hpp index e1efa22bd..3044d9394 100644 --- a/src/Model/PowerFlow/Generator/GeneratorBase.hpp +++ b/src/Model/PowerFlow/Generator/GeneratorBase.hpp @@ -62,13 +62,13 @@ #include #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /** * @brief Generator base class template diff --git a/src/Model/PowerFlow/Generator/GeneratorFactory.hpp b/src/Model/PowerFlow/Generator/GeneratorFactory.hpp index bddffc9c3..571224b6e 100644 --- a/src/Model/PowerFlow/Generator/GeneratorFactory.hpp +++ b/src/Model/PowerFlow/Generator/GeneratorFactory.hpp @@ -66,7 +66,7 @@ #include -namespace ModelLib { +namespace GridKit { template class GeneratorFactory @@ -99,4 +99,4 @@ namespace ModelLib { } }; -} // namespace ModelLib \ No newline at end of file +} // namespace GridKit \ No newline at end of file diff --git a/src/Model/PowerFlow/Generator/GeneratorPQ.cpp b/src/Model/PowerFlow/Generator/GeneratorPQ.cpp index a0d73ddfa..db59fc24e 100644 --- a/src/Model/PowerFlow/Generator/GeneratorPQ.cpp +++ b/src/Model/PowerFlow/Generator/GeneratorPQ.cpp @@ -64,7 +64,7 @@ #include "GeneratorPQ.hpp" #include -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant load model @@ -164,5 +164,5 @@ template class GeneratorPQ; template class GeneratorPQ; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerFlow/Generator/GeneratorPQ.hpp b/src/Model/PowerFlow/Generator/GeneratorPQ.hpp index ba72d022a..c0ecfcf93 100644 --- a/src/Model/PowerFlow/Generator/GeneratorPQ.hpp +++ b/src/Model/PowerFlow/Generator/GeneratorPQ.hpp @@ -64,13 +64,13 @@ #include #include "GeneratorBase.hpp" -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a PV generator. diff --git a/src/Model/PowerFlow/Generator/GeneratorPV.cpp b/src/Model/PowerFlow/Generator/GeneratorPV.cpp index 036ea8c96..c1a156933 100644 --- a/src/Model/PowerFlow/Generator/GeneratorPV.cpp +++ b/src/Model/PowerFlow/Generator/GeneratorPV.cpp @@ -64,7 +64,7 @@ #include "GeneratorPV.hpp" #include -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant load model @@ -164,5 +164,5 @@ template class GeneratorPV; template class GeneratorPV; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerFlow/Generator/GeneratorPV.hpp b/src/Model/PowerFlow/Generator/GeneratorPV.hpp index c34df84ad..88c1f8aad 100644 --- a/src/Model/PowerFlow/Generator/GeneratorPV.hpp +++ b/src/Model/PowerFlow/Generator/GeneratorPV.hpp @@ -64,13 +64,13 @@ #include #include "GeneratorBase.hpp" -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a PV generator. diff --git a/src/Model/PowerFlow/Generator/GeneratorSlack.cpp b/src/Model/PowerFlow/Generator/GeneratorSlack.cpp index 7d451b457..623cd32bf 100644 --- a/src/Model/PowerFlow/Generator/GeneratorSlack.cpp +++ b/src/Model/PowerFlow/Generator/GeneratorSlack.cpp @@ -64,7 +64,7 @@ #include "GeneratorSlack.hpp" #include -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant load model @@ -164,5 +164,5 @@ template class GeneratorSlack; template class GeneratorSlack; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerFlow/Generator/GeneratorSlack.hpp b/src/Model/PowerFlow/Generator/GeneratorSlack.hpp index e821f8a6b..38cac14e0 100644 --- a/src/Model/PowerFlow/Generator/GeneratorSlack.hpp +++ b/src/Model/PowerFlow/Generator/GeneratorSlack.hpp @@ -64,13 +64,13 @@ #include #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a power grid. diff --git a/src/Model/PowerFlow/Generator2/Generator2.cpp b/src/Model/PowerFlow/Generator2/Generator2.cpp index 74c620385..e4ac50a7c 100644 --- a/src/Model/PowerFlow/Generator2/Generator2.cpp +++ b/src/Model/PowerFlow/Generator2/Generator2.cpp @@ -62,7 +62,7 @@ #include #include "Generator2.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a simple generator model @@ -230,4 +230,4 @@ template class Generator2; template class Generator2; -} // namespace ModelLib \ No newline at end of file +} // namespace GridKit \ No newline at end of file diff --git a/src/Model/PowerFlow/Generator2/Generator2.hpp b/src/Model/PowerFlow/Generator2/Generator2.hpp index 3604ce335..8f352339b 100644 --- a/src/Model/PowerFlow/Generator2/Generator2.hpp +++ b/src/Model/PowerFlow/Generator2/Generator2.hpp @@ -59,12 +59,12 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a second order generator model. @@ -156,4 +156,4 @@ namespace ModelLib bus_type* bus_; }; -} // namespace ModelLib \ No newline at end of file +} // namespace GridKit \ No newline at end of file diff --git a/src/Model/PowerFlow/Generator4/Generator4.cpp b/src/Model/PowerFlow/Generator4/Generator4.cpp index a8e014afb..70fa61eca 100644 --- a/src/Model/PowerFlow/Generator4/Generator4.cpp +++ b/src/Model/PowerFlow/Generator4/Generator4.cpp @@ -63,7 +63,7 @@ #include #include "Generator4.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a simple generator model @@ -396,5 +396,5 @@ template class Generator4; template class Generator4; -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerFlow/Generator4/Generator4.hpp b/src/Model/PowerFlow/Generator4/Generator4.hpp index ff4333ef8..9af37c6e5 100644 --- a/src/Model/PowerFlow/Generator4/Generator4.hpp +++ b/src/Model/PowerFlow/Generator4/Generator4.hpp @@ -62,12 +62,12 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a fourth order generator model. @@ -256,7 +256,7 @@ namespace ModelLib bus_type* bus_; }; -} // namespace ModelLib +} // namespace GridKit #endif // _GENERATOR_4_H_ diff --git a/src/Model/PowerFlow/Generator4Governor/Generator4Governor.cpp b/src/Model/PowerFlow/Generator4Governor/Generator4Governor.cpp index 6c5d02527..0f64a6832 100644 --- a/src/Model/PowerFlow/Generator4Governor/Generator4Governor.cpp +++ b/src/Model/PowerFlow/Generator4Governor/Generator4Governor.cpp @@ -63,7 +63,7 @@ #include "Generator4Governor.hpp" #include "Model/PowerFlow/Bus/BaseBus.hpp" -namespace ModelLib { +namespace GridKit { /*! @@ -501,4 +501,4 @@ template class Generator4Governor; template class Generator4Governor; -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerFlow/Generator4Governor/Generator4Governor.hpp b/src/Model/PowerFlow/Generator4Governor/Generator4Governor.hpp index c8fd2c424..f21be6936 100644 --- a/src/Model/PowerFlow/Generator4Governor/Generator4Governor.hpp +++ b/src/Model/PowerFlow/Generator4Governor/Generator4Governor.hpp @@ -62,12 +62,12 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a fourth order generator model with @@ -319,7 +319,7 @@ namespace ModelLib bus_type* bus_; }; -} // namespace ModelLib +} // namespace GridKit #endif // _GENERATOR_4_GOVERNOR_B_HPP_ diff --git a/src/Model/PowerFlow/Generator4Param/Generator4Param.cpp b/src/Model/PowerFlow/Generator4Param/Generator4Param.cpp index d0bb84561..e8272d0bd 100644 --- a/src/Model/PowerFlow/Generator4Param/Generator4Param.cpp +++ b/src/Model/PowerFlow/Generator4Param/Generator4Param.cpp @@ -63,7 +63,7 @@ #include #include "Generator4Param.hpp" -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a simple generator model @@ -471,5 +471,5 @@ template class Generator4Param; template class Generator4Param; -} // namespace ModelLib +} // namespace GridKit diff --git a/src/Model/PowerFlow/Generator4Param/Generator4Param.hpp b/src/Model/PowerFlow/Generator4Param/Generator4Param.hpp index ea8774b82..1a2ba327d 100644 --- a/src/Model/PowerFlow/Generator4Param/Generator4Param.hpp +++ b/src/Model/PowerFlow/Generator4Param/Generator4Param.hpp @@ -62,12 +62,12 @@ #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a fourth order generator model. @@ -273,7 +273,7 @@ namespace ModelLib std::vector> table_; }; -} // namespace ModelLib +} // namespace GridKit #endif // _GENERATOR_4_H_ diff --git a/src/Model/PowerFlow/Load/Load.cpp b/src/Model/PowerFlow/Load/Load.cpp index 398623657..b51130512 100644 --- a/src/Model/PowerFlow/Load/Load.cpp +++ b/src/Model/PowerFlow/Load/Load.cpp @@ -64,7 +64,7 @@ #include "Load.hpp" #include -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant load model @@ -178,5 +178,5 @@ template class Load; template class Load; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerFlow/Load/Load.hpp b/src/Model/PowerFlow/Load/Load.hpp index c6d3d55a2..4586cb46d 100644 --- a/src/Model/PowerFlow/Load/Load.hpp +++ b/src/Model/PowerFlow/Load/Load.hpp @@ -63,13 +63,13 @@ #include #include -namespace ModelLib +namespace GridKit { template class BaseBus; } -namespace ModelLib +namespace GridKit { /*! * @brief Declaration of a passive load class. diff --git a/src/Model/PowerFlow/MiniGrid/MiniGrid.cpp b/src/Model/PowerFlow/MiniGrid/MiniGrid.cpp index c937f3d78..f50ebb0b7 100644 --- a/src/Model/PowerFlow/MiniGrid/MiniGrid.cpp +++ b/src/Model/PowerFlow/MiniGrid/MiniGrid.cpp @@ -64,7 +64,7 @@ #include "MiniGrid.hpp" #include -namespace ModelLib { +namespace GridKit { /*! * @brief Constructor for a constant load model @@ -144,5 +144,5 @@ template class MiniGrid; template class MiniGrid; -} //namespace ModelLib +} //namespace GridKit diff --git a/src/Model/PowerFlow/MiniGrid/MiniGrid.hpp b/src/Model/PowerFlow/MiniGrid/MiniGrid.hpp index 1ec9e431a..ea81e4167 100644 --- a/src/Model/PowerFlow/MiniGrid/MiniGrid.hpp +++ b/src/Model/PowerFlow/MiniGrid/MiniGrid.hpp @@ -61,7 +61,7 @@ #include #include -namespace ModelLib +namespace GridKit { /*! * @brief Implementation of a power grid. diff --git a/src/Model/PowerFlow/SystemModelPowerFlow.hpp b/src/Model/PowerFlow/SystemModelPowerFlow.hpp index ca1af16f0..281668f6f 100644 --- a/src/Model/PowerFlow/SystemModelPowerFlow.hpp +++ b/src/Model/PowerFlow/SystemModelPowerFlow.hpp @@ -73,7 +73,7 @@ #include #include -namespace ModelLib +namespace GridKit { /** @@ -426,4 +426,4 @@ class SystemSteadyStateModel : public ModelEvaluatorImpl }; // class SystemSteadyStateModel -} // namespace ModelLib \ No newline at end of file +} // namespace GridKit \ No newline at end of file diff --git a/src/ModelEvaluator.hpp b/src/ModelEvaluator.hpp index f502acf25..28ed6531a 100644 --- a/src/ModelEvaluator.hpp +++ b/src/ModelEvaluator.hpp @@ -64,7 +64,7 @@ #include #include -namespace ModelLib +namespace GridKit { /*! @@ -152,6 +152,6 @@ namespace ModelLib }; -} // namespace ModelLib +} // namespace GridKit #endif // _MODEL_EVALUATOR_HPP_ \ No newline at end of file diff --git a/src/ModelEvaluatorImpl.hpp b/src/ModelEvaluatorImpl.hpp index 0f8969f0b..87bc6a403 100644 --- a/src/ModelEvaluatorImpl.hpp +++ b/src/ModelEvaluatorImpl.hpp @@ -63,7 +63,7 @@ #include #include -namespace ModelLib +namespace GridKit { /*! @@ -318,6 +318,6 @@ namespace ModelLib }; -} // namespace ModelLib +} // namespace GridKit #endif // _MODEL_EVALUATOR_IMPL_HPP_ \ No newline at end of file diff --git a/src/Solver/Dynamic/DynamicSolver.hpp b/src/Solver/Dynamic/DynamicSolver.hpp index 7094d8a45..3f1fb546f 100644 --- a/src/Solver/Dynamic/DynamicSolver.hpp +++ b/src/Solver/Dynamic/DynamicSolver.hpp @@ -69,18 +69,18 @@ namespace AnalysisManager class DynamicSolver { public: - DynamicSolver(ModelLib::ModelEvaluator* model) : model_(model) + DynamicSolver(GridKit::ModelEvaluator* model) : model_(model) { } virtual ~DynamicSolver(){} - ModelLib::ModelEvaluator* getModel() + GridKit::ModelEvaluator* getModel() { return model_; } protected: - ModelLib::ModelEvaluator* model_; + GridKit::ModelEvaluator* model_; }; } diff --git a/src/Solver/Dynamic/Ida.cpp b/src/Solver/Dynamic/Ida.cpp index 2c7df1d30..bc38376e8 100644 --- a/src/Solver/Dynamic/Ida.cpp +++ b/src/Solver/Dynamic/Ida.cpp @@ -75,7 +75,7 @@ namespace Sundials { template - Ida::Ida(ModelLib::ModelEvaluator* model) : DynamicSolver(model) + Ida::Ida(GridKit::ModelEvaluator* model) : DynamicSolver(model) { int retval = 0; @@ -579,7 +579,7 @@ namespace Sundials template int Ida::Residual(sunrealtype tres, N_Vector yy, N_Vector yp, N_Vector rr, void *user_data) { - ModelLib::ModelEvaluator* model = static_cast*>(user_data); + GridKit::ModelEvaluator* model = static_cast*>(user_data); model->updateTime(tres, 0.0); copyVec(yy, model->y()); @@ -596,7 +596,7 @@ namespace Sundials int Ida::Jac(sunrealtype t, sunrealtype cj, N_Vector yy, N_Vector yp, N_Vector resvec, SUNMatrix J, void *user_data, N_Vector tmp1, N_Vector tmp2, N_Vector tmp3) { - ModelLib::ModelEvaluator* model = static_cast*>(user_data); + GridKit::ModelEvaluator* model = static_cast*>(user_data); model->updateTime(t, cj); @@ -637,7 +637,7 @@ namespace Sundials template int Ida::Integrand(sunrealtype tt, N_Vector yy, N_Vector yp, N_Vector rhsQ, void *user_data) { - ModelLib::ModelEvaluator* model = static_cast*>(user_data); + GridKit::ModelEvaluator* model = static_cast*>(user_data); model->updateTime(tt, 0.0); copyVec(yy, model->y()); @@ -653,7 +653,7 @@ namespace Sundials template int Ida::adjointResidual(sunrealtype tt, N_Vector yy, N_Vector yp, N_Vector yyB, N_Vector ypB, N_Vector rrB, void *user_data) { - ModelLib::ModelEvaluator* model = static_cast*>(user_data); + GridKit::ModelEvaluator* model = static_cast*>(user_data); model->updateTime(tt, 0.0); copyVec(yy, model->y()); @@ -672,7 +672,7 @@ namespace Sundials template int Ida::adjointIntegrand(sunrealtype tt, N_Vector yy, N_Vector yp, N_Vector yyB, N_Vector ypB, N_Vector rhsQB, void *user_data) { - ModelLib::ModelEvaluator* model = static_cast*>(user_data); + GridKit::ModelEvaluator* model = static_cast*>(user_data); model->updateTime(tt, 0.0); copyVec(yy, model->y()); diff --git a/src/Solver/Dynamic/Ida.hpp b/src/Solver/Dynamic/Ida.hpp index f7524a733..540113446 100644 --- a/src/Solver/Dynamic/Ida.hpp +++ b/src/Solver/Dynamic/Ida.hpp @@ -83,7 +83,7 @@ namespace AnalysisManager typedef typename GridKit::ScalarTraits::real_type real_type; public: - Ida(ModelLib::ModelEvaluator* model); + Ida(GridKit::ModelEvaluator* model); ~Ida(); int configureSimulation(); diff --git a/src/Solver/Optimization/OptimizationSolver.hpp b/src/Solver/Optimization/OptimizationSolver.hpp index 4da398145..ad7a286d7 100644 --- a/src/Solver/Optimization/OptimizationSolver.hpp +++ b/src/Solver/Optimization/OptimizationSolver.hpp @@ -83,7 +83,7 @@ namespace AnalysisManager virtual ~OptimizationSolver(){} protected: - ModelLib::ModelEvaluator* model_; + GridKit::ModelEvaluator* model_; Sundials::Ida* integrator_; }; diff --git a/src/Solver/SteadyState/Kinsol.cpp b/src/Solver/SteadyState/Kinsol.cpp index 5f6e27392..2a764b315 100644 --- a/src/Solver/SteadyState/Kinsol.cpp +++ b/src/Solver/SteadyState/Kinsol.cpp @@ -85,7 +85,7 @@ namespace Sundials { template - Kinsol::Kinsol(ModelLib::ModelEvaluator* model) + Kinsol::Kinsol(GridKit::ModelEvaluator* model) : SteadyStateSolver(model) { int retval = 0; @@ -216,8 +216,8 @@ namespace Sundials template int Kinsol::Residual(N_Vector yy, N_Vector rr, void *user_data) { - ModelLib::ModelEvaluator* model = - static_cast*>(user_data); + GridKit::ModelEvaluator* model = + static_cast*>(user_data); copyVec(yy, model->y()); diff --git a/src/Solver/SteadyState/Kinsol.hpp b/src/Solver/SteadyState/Kinsol.hpp index acfab9a72..eed77cdbf 100644 --- a/src/Solver/SteadyState/Kinsol.hpp +++ b/src/Solver/SteadyState/Kinsol.hpp @@ -90,7 +90,7 @@ namespace AnalysisManager typedef typename GridKit::ScalarTraits::real_type real_type; public: - Kinsol(ModelLib::ModelEvaluator* model); + Kinsol(GridKit::ModelEvaluator* model); ~Kinsol(); int configureSimulation(); diff --git a/src/Solver/SteadyState/SteadyStateSolver.hpp b/src/Solver/SteadyState/SteadyStateSolver.hpp index eb9380cfc..78a172552 100644 --- a/src/Solver/SteadyState/SteadyStateSolver.hpp +++ b/src/Solver/SteadyState/SteadyStateSolver.hpp @@ -66,18 +66,18 @@ namespace AnalysisManager class SteadyStateSolver { public: - SteadyStateSolver(ModelLib::ModelEvaluator* model) : model_(model) + SteadyStateSolver(GridKit::ModelEvaluator* model) : model_(model) { } virtual ~SteadyStateSolver(){} - ModelLib::ModelEvaluator* getModel() + GridKit::ModelEvaluator* getModel() { return model_; } protected: - ModelLib::ModelEvaluator* model_; + GridKit::ModelEvaluator* model_; }; } diff --git a/src/SystemModel.hpp b/src/SystemModel.hpp index 14b7e4e97..4dee38e03 100644 --- a/src/SystemModel.hpp +++ b/src/SystemModel.hpp @@ -67,7 +67,7 @@ #include #include -namespace ModelLib +namespace GridKit { /** @@ -710,6 +710,6 @@ class SystemModel : public ModelEvaluatorImpl }; // class SystemModel -} // namespace ModelLib +} // namespace GridKit #endif // _SYSTEM_MODEL_HPP_ \ No newline at end of file