Reuse of Modified Classes


The class concept is the key to reusing modeling knowledge in Modelica. Assume that we would like to connect two filter models in series. Instead of creating two separate filter classes it is better to define a common filter class and create two instances of this class, which are connected.




The
LowPassFilter class can be used to create two separate instances of the filter and connect them by using the equation F2.u = F1.y.




FiltersInSeries can be used to declare variables at a higher hierarchical level.



1 Simulation of FiltersInSeries and ModifiedFiltersInSeries