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.

Applying a flux boundary condition with concentration as a limiting condition

Please login with a confirmed email address before reporting spam

Hello,

I am using 'Transport of Diluted Species' with a constant flux J0 boundary condition. I need to reverse this flux to -J0 when a maximum concentration is reached at the boundary. And then the flux must reverese back to +J0 when the concentration drops to 0 at the boundary. I need to perform this charge - discharge cycle multiple number of times.

Note - I cannot use a function of time to define this boundary condition as the time at which maximum and minimum concentration is reached is unknown.


2 Replies Last Post Jan 5, 2019, 4:33 p.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Jan 4, 2019, 8:13 p.m. EST
Updated: 6 years ago Jan 7, 2019, 9:16 a.m. EST

You can use the event interface to do that. See the blog post entitled "Implementing a thermostat with the event interface" for a great introduction to the topic.

Jeff

-------------------
Jeff Hiller
You can use the event interface to do that. See the blog post entitled ["Implementing a thermostat with the event interface"](https://www.comsol.com/blogs/implementing-a-thermostat-with-the-events-interface/) for a great introduction to the topic. Jeff

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Jan 5, 2019, 4:33 p.m. EST

That worked perfectly. Thank you!!

That worked perfectly. Thank you!!

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.