Hello again,
I had previously sought out help to model desorption in CADET, and I am presently using MPM for simulating my adsorption-desorption cycle
I have some issues I was hoping that the CADET team can help me with.
Firstly, from experiments, I know that I have an overshoot of the adsorbate concentration once I switch from adsorption to desorption. I got this overshoot in the simulation by adjusting the beta value. I was also hoping to add this ‘change’ by using events, and specifying a new, and lower adsorption rate and capacity, in the presence of highly concentrated ethanol. But unfortunately, I got an error that said these are not valid event parameters. Is there any other way to do this?
Secondly, when I am trying to fit my experimental data to the simulation, I get this error while using the comparator : Unknown components
The code is given below:
from CADETProcess.comparison import Comparator
comparator = Comparator()
comparator.add_reference(reference)
comparator.add_difference_metric('SSE', reference, 'outlet.outlet')
comparator = Comparator()
comparator.add_reference(reference)
comparator.add_difference_metric(
'SSE', reference, 'outlet.outlet', start=60*60, end=2850*60, components=["EA"]
)
_ = comparator.plot_comparison(simulation_results)
Without the argument of ‘components’, I get an error that shapes do not match, which I assume is because CADET stored all the results as a 2D array.
Components are defined as follows, in my simulation:
component_system = ComponentSystem()
component_system.add_component('Ethanol')
component_system.add_component('EA')
Is there another way to do this?
Any help is highly appreciated. Thank you