DPsim
Definitions.h
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-models/Definitions.h>
12 
13 // This macro defines the tolerance used to compare double numbers
14 #define DOUBLE_EPSILON 1E-12
15 
16 namespace DPsim {
17 // #### Types ####
18 using Real = CPS::Real;
19 using Complex = CPS::Complex;
20 using String = CPS::String;
21 using Bool = CPS::Bool;
22 using Int = CPS::Int;
23 using UInt = CPS::UInt;
24 using Matrix = CPS::Matrix;
25 using MatrixComp = CPS::MatrixComp;
26 using SparseMatrix = CPS::SparseMatrixRow;
27 using SparseMatrixComp = CPS::SparseMatrixCompRow;
28 
29 template <typename T> using MatrixVar = CPS::MatrixVar<T>;
30 
31 class SolverException {};
33 } // namespace DPsim