I am new to CADET and am trying to model a simulated moving bed setup. I know there is CADET-SMB however I saw that it was recommended to use the CADET engine for most applications.
My question is, is there a way to setup the simulation to run until cyclic steady state is achieved? Right now it seems like I have to specify how many times I want my ports to switch positions in my smb network during the length of the simulation, and specify the time intervals that this happens. The code below is what I have right now, which switches the port positions 8 times, corresponding to two complete cycles (desorbent → extract → feed → raffinate).
model.root.input.solver.sections.nsec = 8 model.root.input.solver.sections.section_times = [0.0, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000] # s model.root.input.solver.sections.section_continuity = 
However when I am modelling new adsorbents, I will not know how many switches it will take to achieve steady state, and the time between each switch is an operating condition that we would eventually like to optimize. So is there a different way to set up the time switches with CADET?
Any help would be much appreciated! Thank you!