cadet / CADET-Core

A modular, fast, and accurate simulation framework for (bio)chemical processes
Other
66 stars 26 forks source link

No concentration decrease during binding in CSTR #308

Open ronald-jaepel opened 5 days ago

ronald-jaepel commented 5 days ago

Expected Behavior

When a component from the liquid phase binds to the solid phase, a decrease in liquid phase concentration is expected. In a LRM this is observed.

Actual Behavior

In a CSTR it is not.

Steps to Reproduce the Problem

https://gist.github.com/ronald-jaepel/b1b181b693424093cf8244983ab17eee

Specifications

ronald-jaepel commented 5 days ago

After a bit more research with @AntoniaBerger we figured out, that if CONST_SOLID_VOLUME is not set, it defaults to 0, so the solid phase with volume 0 does not detract any substance from the liquid phase. This is true even if INIT_VOLUME and POROSITY are set.