def setUp(self): component_system = ComponentSystem() component_system.add_component('A') component_system.add_component('B') binding_model = Langmuir(component_system, name='test') binding_model.adsorption_rate = [0.02, 0.03] binding_model.desorption_rate = [1, 1] binding_model.saturation_capacity = [100, 100] self.binding_model = binding_model
def setUp(self): self.linear = Linear(1, 'linear') self.linear.adsorption_rate = [1] self.langmuir = Langmuir(2, 'langmuir') self.langmuir.adsorption_rate = [2, 1] self.langmuir.desorption_rate = [1, 1] self.langmuir.saturation_capacity = [10, 10] self.sma = StericMassAction(2, 'SMA') self.sma.adsorption_rate = [1, 2] self.sma.desorption_rate = [1, 1] self.sma.characteristic_charge = [1, 1] self.sma.steric_factor = [0, 0] self.sma.capacity = 10
#!/usr/bin/env python3 from CADETProcess.processModel import Langmuir from CADETProcess.processModel import Source, Column, Cstr, Sink from CADETProcess.processModel import FlowSheet from CADETProcess.processModel import Process process_name = flow_sheet_name = 'ssr_binary' case_dir = 'case_3a' # Binding Model binding_model = Langmuir(n_comp=2, name='langmuir') binding_model.adsorption_rate = [0.02, 0.03] binding_model.desorption_rate = [1, 1] binding_model.saturation_capacity = [100, 100] # Unit Operations feed = Source(n_comp=2, name='feed') feed.c = [10, 10] eluent = Source(n_comp=2, name='eluent') eluent.c = [0, 0] tank = Cstr(n_comp=2, name='tank') tank.V = 0.001 tank.c = [10, 10] column = Column(n_comp=2, name='column') column.length = 0.6 column.diameter = 0.024 column.axial_dispersion = 2.4e-6
=============================================== """ from CADETProcess.processModel import ComponentSystem from CADETProcess.processModel import Langmuir from CADETProcess.processModel import Source, LumpedRateModelWithoutPores, Sink from CADETProcess.processModel import FlowSheet from CADETProcess.processModel import Process # Component System component_system = ComponentSystem() component_system.add_component('A') component_system.add_component('B') # Binding Model binding_model = Langmuir(component_system, name='langmuir') binding_model.is_kinetic = False binding_model.adsorption_rate = [0.02, 0.03] binding_model.desorption_rate = [1, 1] binding_model.saturation_capacity = [100, 100] # Unit Operations feed = Source(component_system, name='feed') feed.c = [10, 10] eluent = Source(component_system, name='eluent') eluent.c = [0, 0] column = LumpedRateModelWithoutPores(component_system, name='column') column.length = 0.6 column.diameter = 0.024