# CADET Process 3 Column PCC Script Not Working with Tubing Included

**URL:** <https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172>\
**Category:** CADET Troubleshooting\
**Tags:** modeling\
**Created:** [February 28, 2025, 8:20am UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172 "2025-02-28T08:20:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniella](https://forum.cadet-web.de/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@Daniella](https://forum.cadet-web.de/u/Daniella)\
**Post date:** [February 28, 2025, 8:20am UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/1 "2025-02-28T08:20:06Z")

</div>

### Expected behavior.

I am trying to model a 3 column periodic counter current chromatography setup. Have modeled just the 3 columns in PCC\_functions with CADET and worded fine. However due to the amount of tubbing in the experimental setup I also need to model that. I did this by implementing 3 tubular reactors. It should work exactly like the model without tubbing but account for the delay due to the tubbing.

### Actual behavior

CADET never finishes and timeouts after 10 minutes.

### How to produce bug (including a minimal reproducible example)

Run as is.

### File produced by `conda env export > environment.yml`

[environment.yml](https://forum.cadet-web.de/uploads/short-url/zZeqnoH73ptofc3m8xvvfwM35ej.yml) (7.7 KB)

### Optional link to repository (oriented around this template: [GitHub - modsim/bug\_report\_example: Template for reporting bugs including code and data](https://github.com/modsim/bug_report_example))

[https://github.com/Daniel-H2/CADET\_Bug\_report](https://github.com/Daniel-H2/CADET_Bug_report)

---

<div class="post-metadata">

**Author:** ![ronald.jaepel](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/ronald.jaepel/32/986_2.png) [@ronald.jaepel](https://forum.cadet-web.de/u/ronald.jaepel)\
**Post date:** [February 28, 2025, 3:10pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/3 "2025-02-28T15:10:10Z")

</div>

I’ll add this here for protocol: when we looked at this during the last Office-hours, I found no ill-configuration of the Process. So I think that the CADET-Process side of things is working fine.

We did note, however, that (given the axial dispersion of 0 for the tubing) a reduction of the diameter of the tubing from `7.5e-4` to `7.5e-5` for all three tubings resulted in functional simulations  
[PCC\_working\_d7.5e-5.h5](https://forum.cadet-web.de/uploads/short-url/sXzNyefEJa80Cc07SrD5nTpmrbM.h5) (851.0 KB) while a diameter of `7.5e-4`  
lead to a stuck simulation  
[PCC\_not\_working\_d7.5e-4.h5](https://forum.cadet-web.de/uploads/short-url/wSweKMrligZiSftkG6dOfV96cSn.h5) (271.8 KB). Alternatively a raise of the axial dispersion to `1e-4` also lead to functional simulations.  
[PCC\_working\_d7.5e-4\_dAx1e-4.h5](https://forum.cadet-web.de/uploads/short-url/ypw3GGFIWPYubqRyIbyQvpo8U0t.h5) (867.6 KB).

| | Axial dispersion `0` | Axial dispersion `1e-4` |
| --- | --- | --- |
| Diameter `7.5e-4` | **X** | **✔** |
| Diameter `7.5e-5` | **✔** | **✔** |

I have not had time to load these into a CADET-Core debugger to check where they get stuck. This would most likely benefit from an inspection by @j.breuer or @AntoniaBerger .

Edit: I can lower the dispersion down to 1e-5, but no lower, at 1e-6 it crashes.

Without a binding model, the simulations run fine with dispersions as low as `1e-10`

---

<div class="post-metadata">

**Author:** ![j.schmoelder](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/j.schmoelder/32/93_2.png) [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Post date:** [March 4, 2025, 9:52am UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/4 "2025-03-04T09:52:27Z")

</div>

Hi everyone, I’m on vacation this week but hope to have a look next week.

---

<div class="post-metadata">

**Author:** ![AntoniaBerger](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/antoniaberger/32/1242_2.png) [@AntoniaBerger](https://forum.cadet-web.de/u/AntoniaBerger)\
**Post date:** [March 4, 2025, 12:09pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/5 "2025-03-04T12:09:08Z")

</div>

I remember having trouble with axial dispersion of zero too, at some point.  
@Daniella, are you planning on joining the next office hour? I’d be free and could have a look.

---

<div class="post-metadata">

**Author:** ![lieres](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/lieres/32/1238_2.png) [@lieres](https://forum.cadet-web.de/u/lieres)\
**Post date:** [March 5, 2025, 8:57pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/6 "2025-03-05T20:57:01Z")

</div>

I would avoid to numerically solve a plug flow reactor with zero dispersion whenever possible. An accurate solution can require extreme fine discretization, and any physical tubing must cause some degree of dispersion due to the parabolic flow profile.

---

<div class="post-metadata">

**Author:** ![j.schmoelder](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/j.schmoelder/32/93_2.png) [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Post date:** [March 6, 2025, 6:47am UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/7 "2025-03-06T06:47:27Z")

</div>

While I generally agree, I would argue that, from a modeling perspective and in line with Occam’s razor, setting the dispersion coefficient to zero is preferable when its value is not identifiable.

Also, it should still crash…

---

<div class="post-metadata">

**Author:** ![Daniella](https://forum.cadet-web.de/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@Daniella](https://forum.cadet-web.de/u/Daniella)\
**Post date:** [April 10, 2025, 7:17pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/8 "2025-04-10T19:17:22Z")

</div>

Hey sorry didnt see this post. I could come next office hours or if you have any specific questions I could answer them here.

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![Daniella](https://forum.cadet-web.de/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@Daniella](https://forum.cadet-web.de/u/Daniella)\
**Post date:** [April 10, 2025, 7:19pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/9 "2025-04-10T19:19:27Z")

</div>

I have finalized the experimental setup and have updated the github to the actual tubbing lengths. Though the volume is off a bit since not all the tubbing is the same ID. The model worked with dispersion of 1e-3 but not with 1e-4. I am not sure what the actual value dispersion would end up being but it would it still be possible to get it to where it can run with smaller dispersion?

Also im not sure how big of an ask this is but I did have a ambitious idea of molding every piece of tubbing on the AKTA so that I could predict the peaks caused by liquid trapped in the tubbing. However I am pessimistic that would work since instability issues are arising with 3 tubular reactor models.

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![j.schmoelder](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/j.schmoelder/32/93_2.png) [@j.schmoelder](https://forum.cadet-web.de/u/j.schmoelder)\
**Post date:** [April 15, 2025, 11:00am UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/11 "2025-04-15T11:00:30Z")

</div>

Hi Daniel, please excuse the long silence, work and life are quite busy these days but I will have a look soon.

---

<div class="post-metadata">

**Author:** ![Daniella](https://forum.cadet-web.de/letter_avatar_proxy/v4/letter/d/90ced4/32.png) [@Daniella](https://forum.cadet-web.de/u/Daniella)\
**Post date:** [May 8, 2025, 9:17pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/12 "2025-05-08T21:17:55Z")

</div>

I added tubbing after the single column and it turns out it was too much and the model started stalling again. I tried increasing the dispersion even more but that did not seem to help.

Also the script is PCC\_functions\_V4.

> **[CADET\_Bug\_report/code at Post-Single-Column-Tubbing · Daniel-H2/CADET\_Bug\_report](https://github.com/Daniel-H2/CADET_Bug_report/tree/Post-Single-Column-Tubbing/code)**
>
> Bug Report Rep for CADET. Contribute to Daniel-H2/CADET\_Bug\_report development by creating an account on GitHub.

Best,  
Daniel

---

<div class="post-metadata">

**Author:** ![alters](https://forum.cadet-web.de/user_avatar/forum.cadet-web.de/alters/32/294_2.png) [@alters](https://forum.cadet-web.de/u/alters)\
**Post date:** [May 24, 2025, 9:35pm UTC](https://forum.cadet-web.de/t/cadet-process-3-column-pcc-script-not-working-with-tubing-included/1172/13 "2025-05-24T21:35:11Z")

</div>

Using the Taylor expression for axial dispersion in open tubes D\_{ax}=\frac{\nu^2d\_{tubing}^2}{192D\_o}, a 1 mm ID tubing should give you D\_{ax} on the order of 10^{-4}. This value should work should not cause issues in the simulation… I would check the tolerances of the simulation, \text{RelTol}=10^{-6} and \text{AbsTol}=10^{-8} usually work well for me. Also a general comment – many of the transport parameters of the chromatography system, column, and resin can be determined using physical correlations, which are numerous. In my experience, these correlations will get you within an order of magnitude of the “true” value (let’s not get into the philisophy of this) at minimum. I am going to be uploading an Excel sheet that my co-op student made which I think will be useful for the community, since this is a pretty universal challenge.
