Lotka-Volterra Equations Revisited - FlowingSpecies

Gallery
Tutorial
Click on the image to view it full size

The Modelica By Example target code is:


within ModelicaByExample.Components.LotkaVolterra.Interfaces;
connector Species "Used to represent the population of a specific species"
  Real population "Animal population";
  flow Real rate "Flows that affect animal population";
end Species;

The exported Modelica code for interface block SpeciesFlowElement (using SysPhS-style naming) is:


model SpeciesFlowElement
  SpeciesFlowElement _SpeciesFlowElement;
  connector SpeciesFlowElement
    Population p;
    flow Rate r;
  end SpeciesFlowElement;
  type Population=Real;
  type Rate=Real(unit="1/s");
end SpeciesFlowElement;
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)
External links