Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable linear solver #199

Merged
merged 17 commits into from
Mar 24, 2023
Merged

Configurable linear solver #199

merged 17 commits into from
Mar 24, 2023

Conversation

LennartSchu
Copy link

@LennartSchu LennartSchu commented Mar 8, 2023

This PR adds a configuration class for the direct linear solver in MNA simulations, named DirectLinearSolverConfiguration. The configuration can be defined in an example and passed to the simulation and ultimately to the direct linear solver adapter by setDirectLinearSolverConfiguration, which is so far supported by KLUAdapter when performing system matrix recomputations. Besides, factorization, refactorization and solving times are measured now per default and can be written to a log file by the user.

Closes #191

@LennartSchu LennartSchu self-assigned this Mar 8, 2023
Lennart Schumacher added 8 commits March 18, 2023 18:14
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
Lennart Schumacher added 3 commits March 19, 2023 09:46
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
dpsim/examples/cxx/CIM/DP_WSCC9bus_SGReducedOrderVBR.cpp Outdated Show resolved Hide resolved
dpsim/examples/cxx/CIM/EMT_WSCC-9bus_VBR.cpp Outdated Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolver.h Outdated Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolverConfiguration.h Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolver.h Outdated Show resolved Hide resolved
Lennart Schumacher added 3 commits March 22, 2023 16:46
Signed-off-by: Lennart Schumacher <[email protected]>
Signed-off-by: Lennart Schumacher <[email protected]>
dpsim/include/dpsim/DirectLinearSolver.h Outdated Show resolved Hide resolved
dpsim/include/dpsim/KLUAdapter.h Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolver.h Outdated Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolver.h Outdated Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolver.h Outdated Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolverConfiguration.h Outdated Show resolved Hide resolved
dpsim/include/dpsim/DirectLinearSolverConfiguration.h Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Outdated Show resolved Hide resolved
dpsim/src/KLUAdapter.cpp Show resolved Hide resolved
dpsim/src/MNASolverDirect.cpp Outdated Show resolved Hide resolved
dpsim/include/dpsim/MNASolverDirect.h Outdated Show resolved Hide resolved
Lennart Schumacher added 2 commits March 24, 2023 13:51
@sonarcloud
Copy link

sonarcloud bot commented Mar 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 11 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dinkelbachjan dinkelbachjan merged commit c40e283 into master Mar 24, 2023
@stv0g stv0g deleted the configurable-linear-solver branch March 29, 2023 09:07
dinkelbachjan added a commit that referenced this pull request Jul 4, 2023
This PR covers the implementation of iterative reduced-order synchronous
generator models, namely the PCM and TPM models. Besides, it removes the
DCIM implementations, which are covered now by PCM models with zero
iterations in the DP domain. It also refactors the VBR model
implementations and involves a new DP-DQ interface, which is used by all
DP reduced-order synchronous generator models (PCM, TPM, VBR) and shall
be reused by other DQ based components in the future. Furthermore, it
adds several validation notebooks to compare the different reduced-order
models against each other and to compare the results of the 4th order
VBR model in the WSCC benchmark system against results from PSAT.

Based on #199 
Rebase of #207  
Related to #75, #221 and #225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Create linear solver configuration class
2 participants