Skip to content

Commit 7ce1e07

Browse files
authored
Update README.md
1 parent 985b991 commit 7ce1e07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The [Modia3D Tutorial](https://modiasim.github.io/Modia3D.jl/stable/tutorial/Get
1111
The basic type of the floating point variables is usually *Float64*, but can be set to any type *FloatType <: AbstractFloat* via\
1212
*@instantiateModel(..., FloatType = xxx)*, for example it can be set to *Float32, DoubleFloat, Measurement{Float64}, StaticParticles{Float64,100}*.
1313

14-
After a simulation, an instantiated model is treated as a *signal table* and therefore all functions from package [SignalTables.jl](https://github.com/ModiaSim/SignalTables.jl) can be used on it. In particular, the simulation results together with all parameter and start values can be stored on file in *JSON* format with *writeSignalTable(filename, instantiatedModel)* or in *HDF5* format via [JDL](https://github.com/JuliaIO/JLD.jl), see for example the result of a simple test model - [firstOrder.json](https://modiasim.github.io/Modia.jl/resources/fileio/firstOrder.json).
14+
After a simulation, an instantiated model is treated as a *signal table* and therefore all functions from package [SignalTables.jl](https://github.com/ModiaSim/SignalTables.jl) can be used on it. In particular, the simulation results together with all parameter and start values can be stored on file in *JSON* or in *HDF5* format.
1515

1616
## Installation
1717

@@ -79,7 +79,9 @@ Pendulum = Model(
7979

8080
pendulum1 = @instantiateModel(Pendulum)
8181
simulate!(pendulum1, Tsit5(), stopTime = 10.0u"s", log=true)
82+
8283
showInfo(pendulum1) # print info about the result
84+
writeSignalTable("pendulum1.json", pendulum1, indent=2, log=true)
8385
plot(pendulum1, [("phi", "w"); "r"], figure = 1)
8486
```
8587
The result is the following print output
@@ -98,7 +100,7 @@ m "kg" () Float64 Par
98100
d "m*N*s*rad^-1" () Float64 Par
99101
g "m*s^-2" () Float64 Par
100102
```
101-
and the following plot:
103+
file [pendulum1.json](https://modiasim.github.io/Modia.jl/resources/fileio/pendulum1.json) and the following plot:
102104
103105
![Pendulum-Figure](docs/resources/images/PendulumFigures.png)
104106

0 commit comments

Comments
 (0)