Changes between Initial Version and Version 1 of Ticket #6243, comment 6
- Timestamp:
- 2020-11-26T23:33:00Z (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6243, comment 6
initial v1 29 29 "Substance model to translate data into substance properties" 30 30 annotation (choicesAllMatching = true); 31 constant Modelica.SIunits.MassFraction Xi_default[nXi] =ones(nXi);32 constant Modelica.SIunits.Density default_density = 1000;31 constant Modelica.SIunits.MassFraction Xi_default[nXi]; 32 constant Modelica.SIunits.Density default_density; 33 33 34 34 constant stateOfMatter.SubstanceData substanceData[nC] … … 60 60 As long as the things that you are adding are compatible with the base class, it's going to be fine. You don't need to write an explicit extends statement for that. 61 61 62 The only thing I'm not sure about is if you can leave default_density without a binding in the base class and then add it in the "virtually extended" one. I guess so. Maybe @perost can comment on that. 63 62 64 This is for sure much better than copying and modifying the Water model from MSL. Although this is technically and legally possible, it is for sure not the best possibile solution.