Hi all,
I am facing some difficulties with implementing a model for the problem I am working on. The goal here is to model the chromatography system as so: inlet model (mIn), gradient mixer CSTR (mCSTR), pre-column tubing PFR (mPFR), column (mCol), outlet model (mOut). In the chromatography system, the gradient buffers are diverted to the mixer and then through the pre-column tubing to the column. However, the protein components bypass the mixer and go straight to the pre-column tubing and the column next. In my unit operation specification (shown below) I would like components 1 and 2 (salt and pH non-binding pseudocomponent) to be routed to the CSTR while the protein components 3 through 8 bypass it. Keep in mind the CADET code for unit operation linkage is written in MATLAB.
% Construct ModelSystem and assign unit operations (order determines IDs)
mSys = ModelSystem();
mSys.models = [mIn, mCSTR, mPFR, mCol, mOut];
% Define valve configurations / unit operation connections
% Valve configuration active on entering section 0
mSys.connectionStartSection = 0;
% Connect unit operations in series 1 (-1 = all ports, all components)
mSys.connections = {[0, 1, -1, -1, -1, -1, ms.flow_rate ; ...
1, 2, -1, -1, -1, -1, ms.flow_rate ; ...
2, 3, -1, -1, -1, -1, ms.flow_rate ; ...
3, 4, -1, -1, -1, -1, ms.flow_rate]};
Above is the starting point I have to build on and create the split component streams around the CSTR. Any help would be appreciated on how to implement this design configuration.
Thanks,
Scott