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.

Transport of dilute species module

Please login with a confirmed email address before reporting spam

Respected Sir,
I am attaching my .mph file.It is working well when a>=1.For my case a=0.5 it is showing error.
Here 'a' is the power of the concentration.
I kindly request you to help me out with this problem.
Regards


3 Replies Last Post 10 févr. 2015, 09:12 UTC−5

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 10 févr. 2015, 09:05 UTC−5
Hi

I just remembered that you have to write the flux BC as

-kr*c1*(c2/C0+eps)^a/(1+K*(c1/C0))

"eps" is a machine constant, floating point accuracy, a very small number, 2^-52. Look at help with "eps".

Another thing: You do need two separate nodes of "Transport of Dilutes Species", you can have both variables c and c2 in the same node, just put the number of variables 2.

I usually do so that I first calculate the laminar flow at steady-state in its own Study, i.e. disabling all the other physics; let's call this Study 1. Then I calculate the rest of the physics in another Study 2, disabling Laminar Flow, and in the menu "Values of variables not solved for" I select "Study 1, Stationary". In the Transport of Diluted Species node I choose the velocity field "spf", not user defined u and v. Now Comsol understands that I am using the velocity field of the Laminar Flow node for which Comsol gives the default identifier "spf".

I tried with a = 0.5 with no problems.

Good luck
Lasse
Hi I just remembered that you have to write the flux BC as -kr*c1*(c2/C0+eps)^a/(1+K*(c1/C0)) "eps" is a machine constant, floating point accuracy, a very small number, 2^-52. Look at help with "eps". Another thing: You do need two separate nodes of "Transport of Dilutes Species", you can have both variables c and c2 in the same node, just put the number of variables 2. I usually do so that I first calculate the laminar flow at steady-state in its own Study, i.e. disabling all the other physics; let's call this Study 1. Then I calculate the rest of the physics in another Study 2, disabling Laminar Flow, and in the menu "Values of variables not solved for" I select "Study 1, Stationary". In the Transport of Diluted Species node I choose the velocity field "spf", not user defined u and v. Now Comsol understands that I am using the velocity field of the Laminar Flow node for which Comsol gives the default identifier "spf". I tried with a = 0.5 with no problems. Good luck Lasse

Please login with a confirmed email address before reporting spam

Posted: 9 years ago 10 févr. 2015, 09:08 UTC−5
Attached my model if you have Comsol 5.
Attached my model if you have Comsol 5.


Please login with a confirmed email address before reporting spam

Posted: 9 years ago 10 févr. 2015, 09:12 UTC−5
thanx a lot sir for guiding me..now i will try the way you told me
thanx a lot sir for guiding me..now i will try the way you told me

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.