Error when setting recording solid-phase conc in CADET-Process

Hi,

I’m running CADET-Process and trying to get solid-phase concentrations on the resin using the General Rate Model. However, when I set column.solution_recorder.write_solution_solid = False the simulation fails with the error shown below.

A brief snippet of my code:

>>>

grm_discretization = GRMDiscretizationFV()

grm_discretization.npar = NPAR_VALUE # This sets an appropriate number of particle shells

column.discretization = grm_discretization # This attaches the above discretization scheme

column.solution_recorder.write_solution_bulk = True

column.solution_recorder.write_solution_particle = True

column.solution_recorder.write_solution_solid = False

<<<

Interesting that column.solution_recorder.write_solution_particle = True works, because the size of the array should be the same as write_solution_solid(see error message above).

Anyone face this issue?

Thanks,

S.

Made a typo:

Simulation fails when column.solution_recorder.write_solution_solid = True

Hi, thanks for reporting,

please provide a working minimum reproducible example so that we can easily debug your issue.

Best

Johannes

1 Like