|
FhSim
3.1.0
Marine systems simulation
|
Virtual sea current field.
Collaboration diagram for Virtual current:VirtualCurrent is a manipulable current field. Error signals are used to change the magnitude and direction of the current at various depths. The adaptation is using a PID controller with integral saturation for each error signal. The sim object
| Name | Width | Description |
|---|---|---|
| PlanarError_L1 .. PlanarError_L<N> | 2 | Error signal to use in adaptation. One for each depth layer; in total N. |
| Name | Width | Description |
|---|---|---|
| PlanarCurrent_L1 .. PlanarCurrent_L<N> | 2 | Estimated current at specified DepthLayersThicknesses. |
| Name | Width | Description |
|---|---|---|
| ProportionalGain | 1 | \(P_p (p_d - p_e)\). |
| IntegralGain | 1 | \(P_i\int_0^t (p_d - p_e)\). |
| IntegralSaturation | 1 | \(\text{abs}(\max(\int_0^t (p_d - p_e))) = sat\). |
| DerivativeGain | 1 | \(P_d (\dot{e})\). |
| DerivativeTimeConstant | 1 | Time contant of the dynamics of error derivative. |
| DepthLayerThickness | N | Array of depths at which the virtual inputs will manipulate the current. Between these points a linear interpolation is used (and below/above boundary depths: the closest one). |
| MaximumCurrent | 1 | Upper limit on the magnitude of each component of every Current_L\<i\> state (Default: -1.0). When positive, each component is clamped to [-MaximumCurrent, MaximumCurrent] before every ODE evaluation; a non-positive value disables the limit. |
| Name | Width | Description |
|---|---|---|
| Current_L1 .. Current_L<N> | 2 | Initial planar current at each depth layer. |
| IntegralError_L1 .. IntegralError_L<N> | 2 | Initial integral error (default: 0,0) |
| ErrorDerivative_L1 .. ErrorDerivative_L<N> | 2 | Initial derivative error (default: 0,0) |
This SimObject is referred to as Adaptive/VirtualCurrent