Do you know that there is a C library to handle FMU and run a simulation with a good solver?
As far as I know there are:
- FMUSDK from QTronic
- FMI library from Modelon
Both FMUs can open, but only with a simple Euler solver, allow FMU to co-simulate.
A good solvent handling library with Disopwenty, but not in C:
- PfMM from ModelOn:
- Ptolemy to JFMY: Java (Not sure that it contains a good solver)
I do not think That FMUSDK is actually maintained, so the FMI library is probably a better option between them.
To improve the solver, you might like to add an FMI library with a solver like Sudhanshi and find out how to add both of them together. Note, this is exactly what the model has done with the PFMI library. Although it is a Python library, I suspect that you may find a relatively easy way to integrate into a non-Python project, unless you are able to use C code to integrate them ( Which you are clearly).
I doubt the call from PEI to PEFM, it is easy to sew with FMIL with your own stadilids.
No comments:
Post a Comment