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.
Concentration boundary in Transport of Dilute Species in Porous Media
Posted Nov 2, 2023, 10:48 p.m. EDT Particle Tracing for Fluid Flow, Porous Media Flow, Modeling Tools & Definitions Version 6.1 0 Replies
Please login with a confirmed email address before reporting spam
Hello All,
I will appreciate if I can get a solution to this issue I am currently facing with my simulation. I am trying to assign a concentration value for certain points along my concentration boundary that meets a set condition. For instnace, I wish to assign a concentration value of 1 mol/m^3 for every point along my concentration boundary that has its x-component velocity less than 0 without assigning any value for points along the boundary with values greater than or equal to zero. The best loop to use would have been "for" but I am not sure if that is available in COMSOL.
I tried using the "if" loop but the challenge I am having is that the "if" expression requires three statement conditions (the logical condition, the true value, and false value). However, I don't want to prescibe any value for the regions along the boundary that doesn't meet the set condition. Assigning a value less than the 1 mol/m^3 will continue to dilute the system, which I don't want. For instance, instead of "if(dl.v<0,1,0)" I will prefer "for(dl.v<0,1)"
Is there any way I can resolve this?
Hello Adebayo Sadiq
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.