modelDEDEVS
ModelicaDEVS simulation of a differential equation.
Information
ModelicaDEVS Differential EquationThis example simulates the the following equation:
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | Trajectory | ||
| Real | TrajectoryDEVS | ||
| FunctionBlocks.Add | Add1 | ||
| SourceBlocks.Step | Step1 | ||
| SinkBlocks.Interpolator | Interpolator1 | ||
| FunctionBlocks.Integrator | Integrator1 | ||
| ModelicaDEVS.Miscellaneous.worldModel | world |