Skip to content
Open
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
35 changes: 26 additions & 9 deletions GridKit/Model/PhasorDynamics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,50 @@ add_library(phasor_dynamics_components_dependency_tracking INTERFACE)

gridkit_add_library(
phasor_dynamics_core
SOURCES SystemModelData.cpp
INTERFACE_TARGET
HEADERS BusBase.hpp
Component.hpp
ComponentData.hpp
ComponentLibrary.hpp
ComponentSignals.hpp
SystemModel.hpp
SystemModelData.hpp
LINK_LIBRARIES
PUBLIC
INTERFACE
GridKit::definitions
PUBLIC
INTERFACE
GridKit::utilities_logger
PUBLIC
GridKit::sparse_matrix
INTERFACE
GridKit::sparse_matrix)

target_link_libraries(
phasor_dynamics_components
INTERFACE GridKit::phasor_dynamics_core)
target_link_libraries(
phasor_dynamics_components_dependency_tracking
INTERFACE GridKit::phasor_dynamics_core)

gridkit_add_library(
phasor_dynamics_systemmodel
SOURCES SystemModel.cpp SystemModelData.cpp
HEADERS SystemModel.hpp SystemModelData.hpp
LINK_LIBRARIES PUBLIC GridKit::phasor_dynamics_core
INCLUDE_DIRECTORIES
PRIVATE
${GRIDKIT_THIRD_PARTY_DIR}/nlohmann-json/include
PRIVATE
${GRIDKIT_THIRD_PARTY_DIR}/magic-enum/include)

gridkit_add_library(
phasor_dynamics_systemmodel_dependency_tracking
SOURCES SystemModelDependencyTracking.cpp
HEADERS SystemModel.hpp
LINK_LIBRARIES PUBLIC GridKit::phasor_dynamics_core)

target_link_libraries(
phasor_dynamics_components
INTERFACE GridKit::phasor_dynamics_core)
INTERFACE GridKit::phasor_dynamics_systemmodel)
target_link_libraries(
phasor_dynamics_components_dependency_tracking
INTERFACE GridKit::phasor_dynamics_core)
INTERFACE GridKit::phasor_dynamics_systemmodel_dependency_tracking)

add_subdirectory(Branch)
add_subdirectory(Bus)
Expand Down
1 change: 1 addition & 0 deletions GridKit/Model/PhasorDynamics/ComponentLibrary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <GridKit/Model/PhasorDynamics/Branch/Branch.hpp>
#include <GridKit/Model/PhasorDynamics/Bus/Bus.hpp>
#include <GridKit/Model/PhasorDynamics/Bus/BusInfinite.hpp>
#include <GridKit/Model/PhasorDynamics/BusFault/BusFault.hpp>
#include <GridKit/Model/PhasorDynamics/BusToSignalAdapter/BusToSignalAdapter.hpp>
#include <GridKit/Model/PhasorDynamics/Exciter/IEEET1/Ieeet1.hpp>
Expand Down
12 changes: 12 additions & 0 deletions GridKit/Model/PhasorDynamics/SystemModel.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "SystemModelImpl.hpp"

namespace GridKit
{
namespace PhasorDynamics
{
// Available template instantiations
// template class SystemModel<double, long int>;
template class SystemModel<double, size_t>;

} // namespace PhasorDynamics
} // namespace GridKit
Loading
Loading