Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions ComponentLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@
# - Cameron Rutherford <cameron.rutherford@pnnl.gov>
#]]

add_subdirectory(Branch)
add_subdirectory(Bus)
add_subdirectory(Generator)
add_subdirectory(Generator2)
add_subdirectory(Generator4)
add_subdirectory(Generator4Governor)
add_subdirectory(Generator4Param)
add_subdirectory(Load)
add_subdirectory(MiniGrid)
add_subdirectory(PowerElectronicsComponents)
add_subdirectory(PowerFlow)
add_subdirectory(PowerElectronics)

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>

namespace ModelLib
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>
#include <tuple>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <ModelEvaluatorImpl.hpp>
#include <PowerSystemData.hpp>
#include <ComponentLib/PowerElectronicsComponents/CircuitComponent.hpp>
#include <ComponentLib/PowerElectronics/CircuitComponent.hpp>


namespace ModelLib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

#include <iostream>
#include <cmath>
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>
#include <PowerSystemData.hpp>

#include "Branch.hpp"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
#pragma once

#include <PowerSystemData.hpp>
#include <ComponentLib/Bus/BusPQ.hpp>
#include <ComponentLib/Bus/BusPV.hpp>
#include <ComponentLib/Bus/BusSlack.hpp>
#include <ComponentLib/PowerFlow/Bus/BusPQ.hpp>
#include <ComponentLib/PowerFlow/Bus/BusPV.hpp>
#include <ComponentLib/PowerFlow/Bus/BusSlack.hpp>

namespace ModelLib {

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions ComponentLib/PowerFlow/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [[
# Author(s):
# - Cameron Rutherford <cameron.rutherford@pnnl.gov>
#]]

add_subdirectory(Branch)
add_subdirectory(Bus)
add_subdirectory(Generator)
add_subdirectory(Generator2)
add_subdirectory(Generator4)
add_subdirectory(Generator4Governor)
add_subdirectory(Generator4Param)
add_subdirectory(Load)
add_subdirectory(MiniGrid)
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
#pragma once

#include <PowerSystemData.hpp>
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/Generator/GeneratorSlack.hpp>
#include <ComponentLib/Generator/GeneratorPQ.hpp>
#include <ComponentLib/Generator/GeneratorPV.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Generator/GeneratorSlack.hpp>
#include <ComponentLib/PowerFlow/Generator/GeneratorPQ.hpp>
#include <ComponentLib/PowerFlow/Generator/GeneratorPV.hpp>


namespace ModelLib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <cmath>
#include <vector>
#include "GeneratorPQ.hpp"
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>

namespace ModelLib {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <cmath>
#include <vector>
#include "GeneratorPV.hpp"
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>

namespace ModelLib {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <cmath>
#include <vector>
#include "GeneratorSlack.hpp"
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>

namespace ModelLib {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

#include <iostream>
#include <cmath>
#include <ComponentLib/Bus/BusSlack.hpp>
#include <ComponentLib/PowerFlow/Bus/BusSlack.hpp>
#include "Generator2.hpp"

namespace ModelLib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#include <iostream>
#include <cmath>
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>
#include "Generator4.hpp"

namespace ModelLib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
#include <iostream>
#include <cmath>
#include "Generator4Governor.hpp"
#include "ComponentLib/Bus/BaseBus.hpp"
#include "ComponentLib/PowerFlow/Bus/BaseBus.hpp"

namespace ModelLib {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#include <iostream>
#include <cmath>
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>
#include "Generator4Param.hpp"

namespace ModelLib {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <cmath>
#include <vector>
#include "Load.hpp"
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>

namespace ModelLib {

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include <cmath>
#include <vector>
#include "MiniGrid.hpp"
#include <ComponentLib/Bus/BaseBus.hpp>
#include <ComponentLib/PowerFlow/Bus/BaseBus.hpp>

namespace ModelLib {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Component Models

GridKit™ provides component models for power flow and electromechanical transient simulations, as well as experimental component models for dynamic constrained optimal power flow analysis. GridKit™ assembles components into a grid model using power flow equations.

## Network Equations

The relation between all the bus current injections and bus voltage is given by the following node equation:
Expand Down
4 changes: 2 additions & 2 deletions Examples/AdjointSensitivity/AdjointSensitivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
#include <iostream>
#include <iomanip>

#include <ComponentLib/Bus/BusSlack.hpp>
#include <ComponentLib/Generator4/Generator4.hpp>
#include <ComponentLib/PowerFlow/Bus/BusSlack.hpp>
#include <ComponentLib/PowerFlow/Generator4/Generator4.hpp>
#include <SystemModel.hpp>
#include <Solver/Dynamic/Ida.hpp>
#include <Utilities/Testing.hpp>
Expand Down
2 changes: 1 addition & 1 deletion Examples/DistributedGeneratorTest/DGTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <filesystem>
#include <math.h>

#include <ComponentLib/PowerElectronicsComponents/DistributedGenerator/DistributedGenerator.hpp>
#include <ComponentLib/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp>


/**
Expand Down
4 changes: 2 additions & 2 deletions Examples/DynamicConstrainedOpt/DynamicConstrainedOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
#include <iostream>
#include <iomanip>

#include <ComponentLib/Bus/BusSlack.hpp>
#include <ComponentLib/Generator2/Generator2.hpp>
#include <ComponentLib/PowerFlow/Bus/BusSlack.hpp>
#include <ComponentLib/PowerFlow/Generator2/Generator2.hpp>
#include <SystemModel.hpp>
#include <Solver/Dynamic/Ida.hpp>

Expand Down
6 changes: 3 additions & 3 deletions Examples/GenConstLoad/GenConstLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@
#include <iostream>
#include <iomanip>

#include <ComponentLib/Bus/BusPQ.hpp>
#include <ComponentLib/Load/Load.hpp>
#include <ComponentLib/Generator4Governor/Generator4Governor.hpp>
#include <ComponentLib/PowerFlow/Bus/BusPQ.hpp>
#include <ComponentLib/PowerFlow/Load/Load.hpp>
#include <ComponentLib/PowerFlow/Generator4Governor/Generator4Governor.hpp>
#include <Solver/Dynamic/Ida.hpp>
#include <SystemModel.hpp>

Expand Down
4 changes: 2 additions & 2 deletions Examples/GenInfiniteBus/GenInfiniteBus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
#include <iostream>
#include <iomanip>

#include <ComponentLib/Bus/BusSlack.hpp>
#include <ComponentLib/Generator4/Generator4.hpp>
#include <ComponentLib/PowerFlow/Bus/BusSlack.hpp>
#include <ComponentLib/PowerFlow/Generator4/Generator4.hpp>
#include <SystemModel.hpp>
#include <Solver/Dynamic/Ida.hpp>

Expand Down
10 changes: 5 additions & 5 deletions Examples/Grid3Bus/Grid3BusSys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
#include <fstream>
#include <filesystem>

#include <ComponentLib/MiniGrid/MiniGrid.hpp>
#include <ComponentLib/Bus/BusFactory.hpp>
#include <ComponentLib/Generator/GeneratorFactory.hpp>
#include <ComponentLib/Branch/Branch.hpp>
#include <ComponentLib/Load/Load.hpp>
#include <ComponentLib/PowerFlow/MiniGrid/MiniGrid.hpp>
#include <ComponentLib/PowerFlow/Bus/BusFactory.hpp>
#include <ComponentLib/PowerFlow/Generator/GeneratorFactory.hpp>
#include <ComponentLib/PowerFlow/Branch/Branch.hpp>
#include <ComponentLib/PowerFlow/Load/Load.hpp>
#include <SystemSteadyStateModel.hpp>
#include <Solver/SteadyState/Kinsol.hpp>
#include <PowerSystemData.hpp>
Expand Down
8 changes: 4 additions & 4 deletions Examples/Microgrid/Microgrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#include <filesystem>


#include <ComponentLib/PowerElectronicsComponents/DistributedGenerator/DistributedGenerator.hpp>
#include <ComponentLib/PowerElectronicsComponents/MicrogridLine/MicrogridLine.hpp>
#include <ComponentLib/PowerElectronicsComponents/MicrogridLoad/MicrogridLoad.hpp>
#include <ComponentLib/PowerElectronicsComponents/MicrogridBusDQ/MicrogridBusDQ.hpp>
#include <ComponentLib/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp>
#include <ComponentLib/PowerElectronics/MicrogridLine/MicrogridLine.hpp>
#include <ComponentLib/PowerElectronics/MicrogridLoad/MicrogridLoad.hpp>
#include <ComponentLib/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.hpp>

#include <PowerElectronicsModel.hpp>
#include <Solver/Dynamic/Ida.hpp>
Expand Down
4 changes: 2 additions & 2 deletions Examples/ParameterEstimation/ParameterEstimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
#include <iostream>
#include <iomanip>

#include <ComponentLib/Bus/BusSlack.hpp>
#include <ComponentLib/Generator4Param/Generator4Param.hpp>
#include <ComponentLib/PowerFlow/Bus/BusSlack.hpp>
#include <ComponentLib/PowerFlow/Generator4Param/Generator4Param.hpp>
#include <SystemModel.hpp>
#include <Solver/Dynamic/Ida.hpp>

Expand Down
8 changes: 4 additions & 4 deletions Examples/RLCircuit/RLCircuit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
#include <fstream>
#include <filesystem>

#include <ComponentLib/PowerElectronicsComponents/Capacitor/Capacitor.hpp>
#include <ComponentLib/PowerElectronicsComponents/Inductor/Inductor.hpp>
#include <ComponentLib/PowerElectronicsComponents/Resistor/Resistor.hpp>
#include <ComponentLib/PowerElectronicsComponents/VoltageSource/VoltageSource.hpp>
#include <ComponentLib/PowerElectronics/Capacitor/Capacitor.hpp>
#include <ComponentLib/PowerElectronics/Inductor/Inductor.hpp>
#include <ComponentLib/PowerElectronics/Resistor/Resistor.hpp>
#include <ComponentLib/PowerElectronics/VoltageSource/VoltageSource.hpp>

#include <PowerElectronicsModel.hpp>
#include <Solver/Dynamic/Ida.hpp>
Expand Down
8 changes: 4 additions & 4 deletions Examples/ScaleMicrogrid/ScaleMicrogrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

#include <Utilities/Testing.hpp>

#include <ComponentLib/PowerElectronicsComponents/DistributedGenerator/DistributedGenerator.hpp>
#include <ComponentLib/PowerElectronicsComponents/MicrogridLine/MicrogridLine.hpp>
#include <ComponentLib/PowerElectronicsComponents/MicrogridLoad/MicrogridLoad.hpp>
#include <ComponentLib/PowerElectronicsComponents/MicrogridBusDQ/MicrogridBusDQ.hpp>
#include <ComponentLib/PowerElectronics/DistributedGenerator/DistributedGenerator.hpp>
#include <ComponentLib/PowerElectronics/MicrogridLine/MicrogridLine.hpp>
#include <ComponentLib/PowerElectronics/MicrogridLoad/MicrogridLoad.hpp>
#include <ComponentLib/PowerElectronics/MicrogridBusDQ/MicrogridBusDQ.hpp>

#include <PowerElectronicsModel.hpp>
#include <Solver/Dynamic/Ida.hpp>
Expand Down
Loading