Henrik Sönnerlind
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 months ago
25 mar 2025, 09:34 GMT-4
The, by far, easiest way is to just rename the 'c2' to 'c' in the Dependent Variables section of the interface settings. This approach also makes plotting easier, since you have only one concentration field.
Alternatively, you can add a Concentration node in one of the interfaces with the common boundary as selection. Then, you set the prescribed value to 'c' or 'c2' depending on in which physics interface you placed the node.
Doing so will, however, cause a default segregated solver to fail. All variables that are connected using pointwise constraints must be placed in the same segregated group, so you would need to adjust the solver sequence. Alternatively, you can choose to use weak constraints. But then you need to switch to weak constraints for all constraints on the concentration, including Inflow.
-------------------
Henrik Sönnerlind
COMSOL
The, by far, easiest way is to just rename the 'c2' to 'c' in the *Dependent Variables* section of the interface settings. This approach also makes plotting easier, since you have only one concentration field.
Alternatively, you can add a *Concentration* node in one of the interfaces with the common boundary as selection. Then, you set the prescribed value to 'c' or 'c2' depending on in which physics interface you placed the node.
Doing so will, however, cause a default segregated solver to fail. All variables that are connected using pointwise constraints must be placed in the same segregated group, so you would need to adjust the solver sequence. Alternatively, you can choose to use weak constraints. But then you need to switch to weak constraints for all constraints on the concentration, including *Inflow*.
Please login with a confirmed email address before reporting spam
Posted:
6 months ago
25 mar 2025, 18:09 GMT-4
Thank you Henrik.
For my specific case, I was able to remediate the issue by simply assigning a fluid domain to the porous media, which made that region act as non-porous - something which I had not realized until after the post.
However, your recommendation has introduced me to some concepts that will surely assist me in the future. I will try to implement them into my own model to learn how they work. I thank you for your help.
All the best,
Carl
Thank you Henrik.
For my specific case, I was able to remediate the issue by simply assigning a fluid domain to the porous media, which made that region act as non-porous - something which I had not realized until after the post.
However, your recommendation has introduced me to some concepts that will surely assist me in the future. I will try to implement them into my own model to learn how they work. I thank you for your help.
All the best,
Carl