Niklas Rom
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Nov 2, 2018, 4:26 a.m. EDT
Updated:
6 years ago
Nov 2, 2018, 4:30 a.m. EDT
Hi Emily,
in COMSOL Multiphysics, use the Linear Projection, or General Projection couplings.
Read up on this is the documentation (Press F1 in COMSOL to bring the doc up). Then go to the section COMSOL Multiphysics Reference Manual > Global and Local Definitions > Component Couplings and Coupling Operators.
Attached is an example:
http://cds.comsol.com/mg/25bdc08cc48522.zip
Estimated size: 4.8 MB
This link expires November 9, 2018. Please make sure to download before that date.
Included files:
* ProjectionCouplingExample.mph
* ProjectionCouplingExampleV43a.pptx
Kind regards
Niklas Rom, COMSOL
Hi Emily,
in COMSOL Multiphysics, use the Linear Projection, or General Projection couplings.
Read up on this is the documentation (Press F1 in COMSOL to bring the doc up). Then go to the section COMSOL Multiphysics Reference Manual > Global and Local Definitions > Component Couplings and Coupling Operators.
Attached is an example:
[http://cds.comsol.com/mg/25bdc08cc48522.zip](http://cds.comsol.com/mg/25bdc08cc48522.zip)
Estimated size: 4.8 MB
This link expires November 9, 2018. Please make sure to download before that date.
Included files:
* ProjectionCouplingExample.mph
* ProjectionCouplingExampleV43a.pptx
Kind regards
Niklas Rom, COMSOL
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Nov 8, 2018, 4:14 p.m. EST
Updated:
6 years ago
Nov 8, 2018, 4:55 p.m. EST
Hi Niklas,
Thank you very much for your reply. I tried the General Projection on a simple rectangular domain but still have trouble getting the correct solution. The model file is attached and the model problem is described as follows.
Molecules undergo diffusion (with rate D2) and degradation (with rate kdl) in a rectangle, where the concentration of the molecule on the left boundary is fixed at c_max. When I solve the system using Time Dependent study, it works fine. But the stationary study gives oscillatory negative values, which I don't quite understand. I wonder if you have any idea what is wrong here? Thank you very much.
Best,
Emily
Hi Niklas,
Thank you very much for your reply. I tried the General Projection on a simple rectangular domain but still have trouble getting the correct solution. The model file is attached and the model problem is described as follows.
Molecules undergo diffusion (with rate D2) and degradation (with rate kdl) in a rectangle, where the concentration of the molecule on the left boundary is fixed at c_max. When I solve the system using Time Dependent study, it works fine. But the stationary study gives oscillatory negative values, which I don't quite understand. I wonder if you have any idea what is wrong here? Thank you very much.
Best,
Emily
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Nov 9, 2018, 2:54 a.m. EST
Hi
Steady-state has a closed form solution
c/c_max = cosh[lambda·L(z-1)]/cosh[lambda·L]
where z = x/L, lambda² = kdl/D2 and L = the length of the domain (50 m).
As you see, the problem is in 1-D, really. I also was pondering the dimensions of the simulation domain (50 m) but then realised that your diffusion coefficient was 0.1 m²/s, making lambda·L ≈ 1.58. Did you think of making the problem dimensionless?
I also got an oscillatory steady-state :)
Hi
Steady-state has a closed form solution
c/c_max = cosh[lambda·L(z-1)]/cosh[lambda·L]
where z = x/L, lambda² = kdl/D2 and L = the length of the domain (50 m).
As you see, the problem is in 1-D, really. I also was pondering the dimensions of the simulation domain (50 m) but then realised that your diffusion coefficient was 0.1 m²/s, making lambda·L ≈ 1.58. Did you think of making the problem dimensionless?
I also got an oscillatory steady-state :)
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Nov 9, 2018, 7:03 a.m. EST
Aargh!
The reaction term must be of course -kdl*c. The it works fine
Aargh!
The reaction term must be of course -kdl*c. The it works fine
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
Nov 9, 2018, 11:07 a.m. EST
Thank you Lasse! Yes, the reaction term should be -kdl*c. That's a stupid mistake.
Thank you Lasse! Yes, the reaction term should be -kdl*c. That's a stupid mistake.