- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » algebaric loop over external function
algebaric loop over external function
algebaric loop over external function
Suppose I have accelaration dependent forces like in fluid dynamic simulations.
If I use a model-part which describes the body's motion, and another which handles the fuid forces acting on the body, this results in an algebraic loop, which, in classical simulations needs to be iteratively converged (estimate acceleration, calc. forces, adapt acceleration estimation etc.).
My understandin is, that in modelica, the compiler solves this for me.
What if I would have the part of the model handling the fluid forces in an external (c) function?
Would omc produce code that e.g. uses multiple calls to the external function?
Now suppose the external function would be an interface to a more complex fluid-dynamics simulation.
Do I have any chance to provide additional information to the 'external module'?
In typ. implementations, the fluid-dynamics simulation needs to know if the call belongs to another step in the iteration process for the algebraic loop, or to the next timestep.
Would such an interface be possible?
Thx
Alex
- alexp
- 24 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » algebaric loop over external function