modelDEDEVS

ModelicaDEVS simulation of a differential equation.

Information

ModelicaDEVS Differential Equation

This example simulates the the following equation:

dx/dt=-x + 10s(t-1.76)

where s() is the unit step function that returns 0 for a negative argument, and 1 for non-negative argument.

Note that the above equation had to be transformed into a block diagram, in order to model it by means of the ModelicaDEVS blocks.


Output:

The two output variables TrajectoryDEVS and Trajectory give the original DEVS output (the first entry of the Integrator signal) and the interpolated version.

Components

TypeNameDefaultDescription
RealTrajectory
RealTrajectoryDEVS
FunctionBlocks.AddAdd1
SourceBlocks.StepStep1
SinkBlocks.InterpolatorInterpolator1
FunctionBlocks.IntegratorIntegrator1
ModelicaDEVS.Miscellaneous.worldModelworld