https://github.com/auralius/waterhammer
Water-hammer simulation and optimal control
https://github.com/auralius/waterhammer
optimal-control pde pipeline water-hammer
Last synced: 8 months ago
JSON representation
Water-hammer simulation and optimal control
- Host: GitHub
- URL: https://github.com/auralius/waterhammer
- Owner: auralius
- Created: 2021-12-20T00:48:06.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-12T20:42:43.000Z (about 4 years ago)
- Last Synced: 2025-04-08T14:39:38.837Z (about 1 year ago)
- Topics: optimal-control, pde, pipeline, water-hammer
- Language: MATLAB
- Homepage:
- Size: 8.83 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# waterhammer
Water hammer simulation and optimal control
Based on the paper by:
Chen, T., Xu, C., Lin, Q., Loxton, R., & Teo, K. L. (2015). Water hammer mitigation via PDE-constrained optimization. Control Engineering Practice, 45, 54–63. https://doi.org/10.1016/j.conengprac.2015.08.008
Chen, T., Ren, Z., Xu, C., & Loxton, R. (2015). Optimal boundary control for water hammer suppression in fluid transmission pipelines. Computers & Mathematics with Applications, 69(4), 275–290. https://doi.org/10.1016/j.camwa.2014.11.008
-----------------------------
### 1. test1.m
A constant closure rate is applied to the valve. Simulation runs for 10 seconds. The pipeline is divided into 24 segments (25 nodes). Pressure and velocity data are taken from each node every 1 second.
### 2. test2.m
Optimization is applied to minimize water-hammer effect at the pipe terminus. There are three solvers provided: sqp, patternsearch and [pdfo](https://www.mathworks.com/matlabcentral/fileexchange/75195-pdfo-powell-s-derivative-free-optimization-solvers). For the SQP solver, the derivative of the Jacobian will be computed numerically since the default Jacobian computation provided by MATLAB actually fails the SQP solver.