blockReverse_Level
Level of the System Dynamics methodology with time reversal
Information
This is a time-reversible continuous Level model of the System Dynamics methodology.Given the following state-space model:
der(x) = f(x,t);
Time reversal can be achieved by placing a minus sign in front of each state equation:
der(x) = -f(x,t);
The Reverse_Level model contains a modulating variable dir that determines the direction of time flow:
der(x) = dir*f(x,t);
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x0 | 0 | Initial condition |
| Real | xm | 0.0 | Minimum level |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| SystemDynamics.Interfaces.MassInPort | u1 | Inflow variable | |
| SystemDynamics.Interfaces.MassInPort | u2 | Outflow variable | |
| SystemDynamics.Interfaces.MassOutPort | y | Reversible state variable | |
| SystemDynamics.Interfaces.MassOutPort | y1 | Reversible state variable | |
| SystemDynamics.Interfaces.MassOutPort | y2 | Reversible state variable | |
| SystemDynamics.Interfaces.MassOutPort | y3 | Reversible state variable | |
| SystemDynamics.Interfaces.MassOutPort | y4 | Reversible state variable |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | level | Reversible state variable | |
| Real | rate_in | Inflow | |
| Real | rate_out | Outflow | |
| Real | dir | Direction of time flow |