|
DPsim
|
Base class for more specific solvers such as MNA, ODE or IDA. More...
#include <Solver.h>
Public Types | |
| enum | Behaviour { Initialization , Simulation } |
| enum class | SystemMatrixRecomputationMode { Auto , Enabled , Disabled } |
| System-matrix recomputation mode for MNA solvers. More... | |
| enum class | Type { MNA , DAE , NRP } |
| typedef std::shared_ptr< Solver > | Ptr |
| typedef std::vector< Ptr > | List |
Public Member Functions | |
| Solver (String name, CPS::Logger::Level logLevel) | |
| virtual | ~Solver () |
| void | setTimeStep (Real timeStep) |
| void | doFrequencyParallelization (Bool freqParallel) |
| virtual void | setSystem (const CPS::SystemTopology &system) |
| void | setSystemMatrixRecomputationMode (SystemMatrixRecomputationMode mode) |
| Set the system-matrix recomputation mode. | |
| void | doSystemMatrixRecomputation (Bool value) |
| void | setLogSolveTimes (Bool value) |
| virtual void | initialize () |
| void | doSteadyStateInit (Bool f) |
| activate steady state initialization | |
| void | setSteadStIniTimeLimit (Real v) |
| set steady state initialization time limit | |
| void | setSteadStIniAccLimit (Real v) |
| set steady state initialization accuracy limit | |
| virtual void | setSolverAndComponentBehaviour (Solver::Behaviour behaviour) |
| set solver and component to initialization or simulation behaviour | |
| void | doInitFromNodesAndTerminals (Bool f) |
| activate powerflow initialization | |
| virtual void | setDirectLinearSolverConfiguration (DirectLinearSolverConfiguration &) |
| set direct linear solver configuration (only available in MNA for now) | |
| virtual void | logLUTimes () |
| log LU decomposition times, if applicable | |
| virtual CPS::Task::List | getTasks ()=0 |
| Get tasks for scheduler. | |
| virtual void | log (Real time, Int timeStepCount) |
| Log results. | |
| void | setMaxNumberOfIterations (int maxIterations) |
Public Attributes | |
| int | mMaxIterations = 10 |
Protected Attributes | |
| String | mName |
| Name for logging. | |
| CPS::Logger::Level | mLogLevel |
| Logging level. | |
| Bool | mLogSolveTimes = true |
| Collect step time for logging. | |
| CPS::Logger::Log | mSLog |
| Logger. | |
| Real | mTimeStep |
| Time step for fixed step solvers. | |
| Bool | mFrequencyParallel = false |
| Activates parallelized computation of frequencies. | |
| Real | mSteadStIniTimeLimit = 10 |
| steady state initialization time limit | |
| Real | mSteadStIniAccLimit = 0.0001 |
| steady state initialization accuracy limit | |
| Bool | mSteadyStateInit = false |
| Activates steady state initialization. | |
| Bool | mIsInInitialization = false |
| Determines if solver is in initialization phase, which requires different behavior. | |
| Bool | mInitFromNodesAndTerminals = true |
| SystemMatrixRecomputationMode | mSystemMatrixRecomputationMode |
| Requested system-matrix recomputation mode. | |
| Bool | mSystemMatrixRecomputationEnabled = false |
| Effective system-matrix recomputation setting used by the solver. | |
| Behaviour | mBehaviour = Solver::Behaviour::Simulation |
| Solver behaviour initialization or simulation. | |
Base class for more specific solvers such as MNA, ODE or IDA.
| typedef std::vector<Ptr> DPsim::Solver::List |
| typedef std::shared_ptr<Solver> DPsim::Solver::Ptr |
|
strong |
|
strong |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Get tasks for scheduler.
Implemented in DPsim::DAESolver, DPsim::DiakopticsSolver< VarType >, DPsim::MnaSolver< VarType >, DPsim::MnaSolverPlugin< VarType >, DPsim::ODESolver, and DPsim::PFSolver.
|
inlinevirtual |
Reimplemented in DPsim::DAESolver, DPsim::MnaSolver< VarType >, DPsim::MnaSolverPlugin< VarType >, DPsim::ODESolver, and DPsim::PFSolver.
|
inlinevirtual |
log LU decomposition times, if applicable
Reimplemented in DPsim::MnaSolverDirect< VarType >.
|
inlinevirtual |
set direct linear solver configuration (only available in MNA for now)
Reimplemented in DPsim::MnaSolverDirect< VarType >.
|
inline |
|
inlinevirtual |
set solver and component to initialization or simulation behaviour
Reimplemented in DPsim::PFSolver.
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented in DPsim::MnaSolver< VarType >.
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Requested system-matrix recomputation mode.
|
protected |