@@ -283,6 +283,8 @@ def test_model_config(self, process: Process):
283283 self .check_cstr (unit , unit_config )
284284 elif unit .name == "GeneralRateModel" :
285285 self .check_general_rate_model (unit , unit_config )
286+ elif unit .name == "GeneralRateModel2D" :
287+ self .check_general_rate_model_2d (unit , unit_config )
286288 elif unit .name == "TubularReactor" :
287289 self .check_tubular_reactor (unit , unit_config )
288290 elif unit .name == "LumpedRateModelWithoutPores" :
@@ -343,6 +345,36 @@ def check_general_rate_model(self, unit, unit_config):
343345 self .check_adsorption_config (unit , unit_config )
344346 self .check_discretization (unit , unit_config )
345347
348+ def check_general_rate_model_2d (self , unit , unit_config ):
349+ """
350+ Check the configuration for a 2D General Rate Model unit.
351+
352+ Parameters
353+ ----------
354+ unit : Unit
355+ The unit object.
356+ unit_config : dict
357+ The configuration of the unit.
358+ """
359+ n_comp = unit .component_system .n_comp
360+ n_rad = unit .discretization .nrad
361+
362+ assert unit_config .UNIT_TYPE == 'GENERAL_RATE_MODEL_2D'
363+ assert unit_config .INIT_Q == n_rad * n_comp * [0 ]
364+ assert unit_config .INIT_C == n_rad * n_comp * [0 ]
365+ assert unit_config .INIT_CP == n_rad * n_comp * [0 ]
366+ assert unit_config .VELOCITY == unit .flow_direction
367+ assert unit_config .COL_DISPERSION == n_rad * n_comp * [5.75e-08 ]
368+ assert unit_config .COL_DISPERSION_RADIAL == n_rad * n_comp * [5.75e-08 ]
369+ assert unit_config .CROSS_SECTION_AREA == np .pi * 0.01 ** 2
370+ assert unit_config .COL_LENGTH == 0.014
371+ assert unit_config .COL_POROSITY == [0.37 ] * n_rad
372+ assert unit_config .FILM_DIFFUSION == [6.9e-6 ] * n_comp
373+
374+ self .check_particle_config (unit_config )
375+ self .check_adsorption_config (unit , unit_config )
376+ self .check_discretization (unit , unit_config )
377+
346378 def check_tubular_reactor (self , unit , unit_config ):
347379 """
348380 Check the configuration for a Tubular Reactor unit.
0 commit comments