DPsim
Loading...
Searching...
No Matches
DirectLinearSolverConfiguration.h
Go to the documentation of this file.
1/* Copyright 2017-2021 Institute for Automation of Complex Power Systems,
2* EONERC, RWTH Aachen University
3*
4* This Source Code Form is subject to the terms of the Mozilla Public
5* License, v. 2.0. If a copy of the MPL was not distributed with this
6* file, You can obtain one at https://mozilla.org/MPL/2.0/.
7*********************************************************************************/
8
9#pragma once
10
11#include <dpsim/Config.h>
12#include <dpsim/Definitions.h>
13
14namespace DPsim {
15// Define method to scale the input matrix
17
18// Define preordering to reduce fill-in
21 AMD_NV, // AMD ordering with non-varying preference
22 AMD_RA, // AMD ordering with right arranging of varying entries
24};
25
26// Define partial refactorization method, if applicable
32
33// Define BTF usage, if applicable
34enum class USE_BTF { NO_BTF, DO_BTF };
35
37 SCALING_METHOD mScalingMethod;
38 FILL_IN_REDUCTION_METHOD mFillInReductionMethod;
39 PARTIAL_REFACTORIZATION_METHOD mPartialRefactorizationMethod;
40 USE_BTF mUseBTF;
41
42public:
44
45 void setFillInReductionMethod(FILL_IN_REDUCTION_METHOD fillInReductionMethod);
46
47 void setScalingMethod(SCALING_METHOD scalingMethod);
48
50 PARTIAL_REFACTORIZATION_METHOD partialRefactorizationMethod);
51
52 void setBTF(USE_BTF useBTF);
53
55
57
59
60 USE_BTF getBTF() const;
61
63
65
67
68 String getBTFString() const;
69};
70} // namespace DPsim
void setPartialRefactorizationMethod(PARTIAL_REFACTORIZATION_METHOD partialRefactorizationMethod)
void setFillInReductionMethod(FILL_IN_REDUCTION_METHOD fillInReductionMethod)
PARTIAL_REFACTORIZATION_METHOD getPartialRefactorizationMethod() const
FILL_IN_REDUCTION_METHOD getFillInReductionMethod() const
CPS::String String
Definition Definitions.h:20