generation of functional mock up units from causal block
play

Generation of Functional Mock-up Units from Causal Block Diagrams - PowerPoint PPT Presentation

Generation of Functional Mock-up Units from Causal Block Diagrams Bavo Vander Henst Bavo.VanderHenst@student.uantwerpen.be University of Antwerp Overview Functional Mockup Interface Starting point Flattening Optimization


  1. Generation of Functional Mock-up Units from Causal Block Diagrams Bavo Vander Henst Bavo.VanderHenst@student.uantwerpen.be University of Antwerp

  2. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  3. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  4. FMI [1] Functional Mockup Interface: • FMI for Model Exhange • FMI for Co-Simulation [1] T. Blochwitz, M. Otter, M. Arnold, C. Bausch, C. Clauss, H. Elmqvist, et al., The functional mockup interface for tool independent exchange of simulation models, in: Modelica’2011 Conference, March, 2011, pp. 20–22.

  5. Model Exchange

  6. Co-Simulation

  7. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  8. Causal Block Diagram Framework in Python • Base Block • CBD block • Linear Blocks • Delay Blocks • In and output blocks

  9. Causal Block Diagram Simulator • Dependency graph • Sorted list of components • Strong components

  10. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  11. Flattening

  12. Flattening

  13. Flattening

  14. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  15. Optimization Collapse Blocks

  16. Optimization Constant folding Special Cases • 0 as input for adder • 0 as input for product • 1 as input for product

  17. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  18. Generate the Functional Mockup Unit Functional mockup Unit: • XML-file • C-code

  19. Functional Mockup Unit XML File • Model description • Model variables • (Solver details)

  20. Functional Mockup Unit C-code • Based on SDK [2] • Subset of functions [2] https://www.qtronic.de/en/fmusdk.html

  21. Functional Mockup Unit C-code • variables array • setStartValues() • getReal() • ComputeVariables()

  22. Overview � Functional Mockup Interface � Starting point � Flattening � Optimization � Functional Mockup Unit � Experiment

  23. Experiment F14 http://www.mathworks.nl/products/sl-design-optimization/examples.html;jsessionid =adb4c4c1b04e528081653e6d1a56?file=/products/demos/shipping/sldo/f14_estim.html

  24. Experiment Mean Number of computation Model of F14 Blocks Time (s) Not optimized 9.96355 140 Python Optimized 8.570786 116 Not optimized 0.012619 140 FMU Optimized 0.009318 116

  25. Questions?

  26. Conclusion

Recommend


More recommend