@@ -5,7 +5,9 @@ CurrentModule = ModiaResult
5
5
```
6
6
7
7
Package [ ModiaResult] ( https://github.com/ModiaSim/ModiaResult.jl ) defines
8
- an abstract interface for ** simulation results** and provides overloaded methods for:
8
+ an abstract interface for ** simulation results** with a potentially segmented
9
+ time axis (on different segments of the time axis, different variables might be defined)
10
+ and provides overloaded methods for:
9
11
10
12
- Dictionaries with String keys,
11
13
@@ -33,6 +35,51 @@ More details:
33
35
- [ Internal] ( Internal.html )
34
36
35
37
38
+ ## Example
39
+
40
+ Assume that the result data structure is available, then the following commands
41
+
42
+
43
+ ``` julia
44
+ import ModiaResult
45
+
46
+ # Define plotting software globally
47
+ ModiaResult. activate (" PyPlot" ) # or ENV["MODIA_PLOT"] = "PyPlot"
48
+
49
+ # Execute "using ModiaPlot_<globally defined plot package>"
50
+ ModiaResult. @usingModiaPlot # = "using ModiaPlot_PyPlot"
51
+
52
+ # Generate line plots
53
+ plot (result, [(" sigA" , " sigB" , " sigC" ), " r[2:3]" ])
54
+ ```
55
+
56
+ generate the following plot:
57
+
58
+ ![ SegmentedSignalsPlot] ( ../resources/images/segmented-signals-plot.png )
59
+
60
+
61
+ ## Abstract Result Interface
62
+
63
+ For every result data structure a few access functions have to be defined
64
+ (for details see [ Abstract Interface] ( AbstractInterface.html ) ).
65
+ Most importantly:
66
+
67
+
68
+ ```
69
+ (timeSignal, signal, signalType) = ModiaResult.rawSignal(result, name)
70
+ ```
71
+
72
+ Given the result data structure ` result ` and a variable ` name::AbstractString ` ,
73
+ return the result values of the independent variable (= ` timeSignal ` ), the
74
+ corresponding result values of the variable (= ` signal ` ) and the type
75
+ of the signal ` signalType:: ` [ ` SignalType ` ] ( @ref ) ).
76
+ The following figure sketches the returned ` timeSignal ` and ` signal ` data structures:
77
+
78
+ ![ SignalDefinition] ( ../resources/images/signal-definition.png )
79
+
80
+ Other signal types might be mapped to this basic signal type by introducing views.
81
+
82
+
36
83
## Installation
37
84
38
85
All packages are registered and are installed with:
@@ -91,6 +138,29 @@ are different to the Python 2.x version.
91
138
92
139
## Release Notes
93
140
141
+ ### Version 0.3.8
142
+
143
+ - Better handling if some input arguments are ` nothing ` .
144
+ - Bug corrected when accessing a vector element, such as ` mvec[2] ` .
145
+ - Documentation slightly improved.
146
+
147
+
148
+ ### Version 0.3.7
149
+
150
+ - Replaced Point2f0 by Makie_Point2f that needs to be defined according to the newest Makie version.
151
+
152
+
153
+ ### Version 0.3.6
154
+
155
+ - Adapt to MonteCarloMeasurements, version >= 1.0 (e.g. pmean(..) instead of mean(..))
156
+ - Remove test_71_Tables_Rotational_First.jl from runtests.jl, because "using CSV"
157
+ (in order that CSV.jl does not have to be added to the Project.toml file)
158
+
159
+
160
+ ### Version 0.3.5
161
+
162
+ - Project.toml: Added version 1 of MonteCarloMeasurements.
163
+
94
164
95
165
### Version 0.3.4
96
166
0 commit comments