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.

smooth function

Please login with a confirmed email address before reporting spam

Hi everyone,

I want to construct a smooth function about the following situation,

the reaction rate is equal to k*c

the initial c = 1000, when c = 0, the reaction rate = 0.

how to use "flc1hs" to define the smooth function?

Thanks,

Yishan

2 Replies Last Post 2010年9月28日 GMT-4 01:30

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年9月27日 GMT-4 23:57
I think you just need to use a condition (c>0) to stop reaction in your model. Type k*c*(c>0) and it will do the job.
I think you just need to use a condition (c>0) to stop reaction in your model. Type k*c*(c>0) and it will do the job.

Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2010年9月28日 GMT-4 01:30
Hi

in V4 you have the step and pluse functions in the model definitions

in V4 you need to call the heaviside functions as you propose, there are aseveralé threads about this on the forum, and try search your doc for "flc1hs(" (without the "")

--
Good luck
Ivar
Hi in V4 you have the step and pluse functions in the model definitions in V4 you need to call the heaviside functions as you propose, there are aseveralé threads about this on the forum, and try search your doc for "flc1hs(" (without the "") -- Good luck Ivar

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.