watertap-org / watertap

The WaterTAP development repository
https://watertap.readthedocs.io/en/latest
Other
59 stars 57 forks source link

Nanofiltration DSPM-DE Enhancement #464

Open adam-a-a opened 2 years ago

adam-a-a commented 2 years ago

The initial version of the nanofiltration DSPM-DE was pushed in PR#465, but the model needs to undergo validation and refinement. To Do List: DSPM-DE Model: Model Enhancement

Stability and Testing

Parameter Estimation

MCAS Property Model

aladshaw3 commented 2 years ago

In #508 I have suggested (and merged in) skipping of the nanofiltration tests from initialization onwards. Results of my analysis on the initialization failures suggest that the changes in the property model are not the issue with the failing tests, but the unit model itself (which may need to be reformulated in some manner).

Here is the log from the initialization showing that convergence for the property package is smooth and normal, but the initialization of the unit model fails to ever find a solution.

nanofiltration_DSPMDE_initialization_log.txt

aladshaw3 commented 2 years ago

I think that the main issue with the model is a combination of scaling and initialization. In the current initialization method, it does not appear as though you are performing any initial guessing for the variables this model introduces and are instead just calling the solver from what ever the current state is. I think you can improve things by performing some simple calculations based on the state variables to more properly provide an initial value to the variables this unit introduces BEFORE calling any solver.

lbibl commented 1 year ago

Merging #858 will check one box here.

adam-a-a commented 1 year ago

@avdudchenko reported that stateblocks don't successfully initialize when trying an example with 2 ions at very low concentrations. This should be probed further to ensure model stability.