A Simscape domain for modeling solutions.
This project demonstrates Simscape's ability to model soltuion dynamics, specifically forward and reverse osmosis in the forms of the classic manometer experiment and unsteady reverse osmosis desalination. This project introduces a new fluid domain (the solution domain), a customization of the thermal liquid domain with an added state variable for solute concentration.
It is recommended to follow along with the OsmoticPressure.m live script to gain an understanding of the functionality of this domain.
Source code for all Simscape components can be found in the src folder, with modified thermal liquid components in the src/+customization/+solution folder and membrane components in the src/+customization/+membranes folder. The examples folder contains example models that demonstrate the functionality of the domain including variations of the manometer experiment and an optimization of an unsteady reverse osmosis desalination system. In the examples/components folder, the basic functionality of the individual components is demonstrated. The docs folder contains documentation on the implementation of this domain and the math behind the membrane modeling.
Funded by MathWorks
This project is licensed under the BSD-3 License - see the LICENSE file for details.