forked from modelica/Reference-FMUs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
58 lines (48 loc) · 958 Bytes
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef config_h
#define config_h
#include <stdint.h>
// define class name and unique id
#define MODEL_IDENTIFIER StateSpace
#define INSTANTIATION_TOKEN "{D773325B-AB94-4630-BF85-643EB24FCB78}"
#define HAS_CONTINUOUS_STATES
#define CO_SIMULATION
#define MODEL_EXCHANGE
#define SET_FLOAT64
#define GET_UINT64
#define SET_UINT64
#define EVENT_UPDATE
#define FIXED_SOLVER_STEP 1e-3
#define DEFAULT_STOP_TIME 10
#define M_MAX 5
#define N_MAX 5
#define R_MAX 5
typedef enum {
vr_time,
vr_m,
vr_n,
vr_r,
vr_A,
vr_B,
vr_C,
vr_D,
vr_x0,
vr_u,
vr_y,
vr_x,
vr_der_x
} ValueReference;
typedef struct {
uint64_t m;
uint64_t n;
uint64_t r;
double A[M_MAX][N_MAX];
double B[M_MAX][N_MAX];
double C[M_MAX][N_MAX];
double D[M_MAX][N_MAX];
double x0[N_MAX];
double u[N_MAX];
double y[N_MAX];
double x[N_MAX];
double der_x[N_MAX];
} ModelData;
#endif /* config_h */