Physiolibrary.Population.Examples

Examples that demonstrate usage of the Population models

Information

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Physiolibrary.Population.Examples.PredatorPrey PredatorPrey Lotka–Volterra equations

Physiolibrary.Population.Examples.PredatorPrey Physiolibrary.Population.Examples.PredatorPrey

Lotka–Volterra equations

Physiolibrary.Population.Examples.PredatorPrey

Information

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model PredatorPrey "Lotka–Volterra equations" extends Modelica.Icons.Example; Components.Population predator(population_start=2); Components.Reproduction reproduction2(useChangePerMemberInput=true); Components.Mortality mortality2(LifeTime(displayUnit="s") = 1); Components.Reproduction reproduction1(LifeTime(displayUnit="s") = 1); Components.Mortality mortality1(useChangePerMemberInput=true); Components.Population prey(population_start=1); Types.Constants.PopulationChangePerMemberConst preyMortality(LifeTime(displayUnit= "s") = 1); Blocks.Factors.Normalization predatorEffect; Types.Constants.PopulationChangePerMemberConst predatorReproduction(LifeTime( displayUnit="s") = 1); Blocks.Factors.Normalization preyEffekt; equation connect(preyMortality.y, predatorEffect.yBase); connect(predator.population, predatorEffect.u); connect(predatorReproduction.y, preyEffekt.yBase); connect(prey.population, preyEffekt.u); connect(reproduction2.port_b, predator.port); connect(predator.port, mortality2.port_a); connect(reproduction1.port_b, prey.port); connect(prey.port, mortality1.port_a); connect(preyEffekt.y, reproduction2.changePerMember); connect(predatorEffect.y, mortality1.changePerMember); end PredatorPrey;

Automatically generated Tue Sep 15 22:53:55 2015.