Folder Structure of the Repository
The repository folder structure is as follows. The docs and scripts folders are self-explanatory.
The C++ calculation core is inside power_grid_model_c/power_grid_model/include/power_grid_model.
The C API is inside power_grid_model_c/power_grid_model_c.
The C program example to use the C API is inside power_grid_model_c_example.
The python interface code is in src/power_grid_model
The code for validation of input data is in validation folder.
The tests folder is divided in the following way:
cpp_unit_testscontains the tests for the C++ calculation core.c_api_testscontains the tests for communication with the C API.benchmark_cppcontains a benchmark test case generator in C++.package_testscontains an integration test CMake project that tests whether the C API package is correctly installed.unitfolder contains tests for the python code.datacontains validation test cases designed for every component and algorithm. Some sample network types are also included. The validation is either against popular power system analysis software or hand calculation.