22 lines
806 B
Plaintext
22 lines
806 B
Plaintext
Water Tank Process Physics
|
|
|
|
Simulate a simple water storage tank with the following characteristics:
|
|
|
|
- Tank capacity: approximately 1 meter maximum water height
|
|
- Medium-sized industrial tank (cross-section area around 1 m^2)
|
|
- Gravity-driven outflow through a drain valve
|
|
- Controllable inlet valve (on/off) for filling
|
|
- Initial water level at 50% capacity
|
|
|
|
The tank should:
|
|
- Fill when the inlet valve is commanded open
|
|
- Drain naturally through gravity when not filling
|
|
- Maintain realistic physics (water doesn't go negative or above max)
|
|
|
|
Use the physical_values keys from the HIL configuration to map:
|
|
- Tank level state (output to sensors)
|
|
- Inlet valve command (input from actuators)
|
|
- Level measurement for sensors (output)
|
|
|
|
Simulation should run at approximately 10 Hz (dt around 0.1 seconds).
|