Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Integration of Surface Flux During Simulation
Posted 18 set 2012, 15:03 GMT-4 Chemical Reaction Engineering, Parameters, Variables, & Functions Version 4.2a 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
I am trying to model a heterogeneous reaction by specifying a Flux boundary condition that depends on the surface concentration, gamma, which changes with time: gamma(t) = gamma(t=0) - gamma_reacted(t). gamma_reacted(t) is just the integral from 0 to t of the surface flux. I see that the function timeint can only be evaluated after the simulation is finished, so I wanted to use a time discrete study and define gamma_reacted as a variable by adding timestep*flux to it at each step. Unfortunately I cannot define gamma_reacted = gamma_reacted + timestep*flux, but that is what I would like to do.
I am trying to model a heterogeneous reaction by specifying a Flux boundary condition that depends on the surface concentration, gamma, which changes with time: gamma(t) = gamma(t=0) - gamma_reacted(t). gamma_reacted(t) is just the integral from 0 to t of the surface flux. I see that the function timeint can only be evaluated after the simulation is finished, so I wanted to use a time discrete study and define gamma_reacted as a variable by adding timestep*flux to it at each step. Unfortunately I cannot define gamma_reacted = gamma_reacted + timestep*flux, but that is what I would like to do.
1 Reply Last Post 20 set 2012, 13:32 GMT-4