Skip to content

Commit c19e6e7

Browse files
committed
ModiaInterface adapted to changed argument list of _buildFunction in Modia 0.11.0
1 parent 13f7581 commit c19e6e7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

docs/src/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ julia -JModia3D_sysimage.so (otherwise)
9292
| [8] |*[Modelling and Simulation of Physical Systems with Dynamically Changing Degrees of Freedom](https://doi.org/10.3390/electronics12030500)*| Electronics 2023, 12(3), 500 | [10.3390/electronics12030500](https://doi.org/10.3390/electronics12030500) |
9393

9494
## Release Notes
95+
96+
### Version 0.12.1
97+
98+
- Adapted to Modia 0.11.0 (arguments of buildFunction in ModiaInterface had been changed)
99+
- Manifest.toml file removed
100+
101+
95102
### Version 0.12.0
96103
- Support for variable-structure systems where variables (states) can appear and disappear during simulation
97104
- A simulation run is partitioned into phases that are called segments or modes (multi-mode modeling)

src/ModiaInterface/buildModel3D.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ nextMbsName(mbs,i,mbsi) = (Symbol(mbs*string(i+1)), mbsi, i+1)
1111

1212

1313
"""
14-
buildCode = build_Model3D!(model, FloatType, TimeType, unitless, ID, modelPath; buildOption = "ComputeGeneralizedForces")
14+
buildCode = build_Model3D!(model, modelModule, FloatType, TimeType, instantiateModelOptions,
15+
ID, modelPath; buildOption = "ComputeGeneralizedForces")
1516
1617
Generate and return the buildCode for a Modia3D model.
1718
1819
# Arguments
1920
2021
- `model`: Modia Model that contains Modia3D elements.
2122
- `FloatType`, `TimeType`: Types used when instantiating `SimulationModel{FloatType,TimeType}
23+
- `instantiateModelOptions`: Options of @instantiateModel(...)
24+
- `ID`: Unique ID within a model to identify the built-in component
2225
- `modelPath`: Path upto `model`. Path is a Symbol or Expr (such as :( a.b.c )) or nothing, if at the root.
2326
- `buildDict`: Dictionary, that will be stored in SimulationModel. An initial instance of Modia3D.Composition.MultibodyBuild{FloatType,TimeType}
2427
is stored in `buildDict` with key `string(modelPath)`, containing info about the generated code, in particular the joint type, path and

0 commit comments

Comments
 (0)