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.
modeling diffusion of a species through a thin wall
Posted 2010年5月12日 GMT-4 19:04 4 Replies
Please login with a confirmed email address before reporting spam
Hello guys
I'm trying to model diffusion of a molecule through walls of a pipe. There is a laminar flow inside the pipe and the flow carries the mentioned molecule. This is how I built my model:
Geom1
|---- Incompressible Navier stokes (ns) ---> with independent variable: u
|---- convection and diffusion (cd1) -----> with independent variable: c1
Geom2
|---- convection and diffusion (cd2) -----> with independent variable: c2
I'm using the 2D-axial symmetry space dimension and I have the pipe as Geom1 and the surroundings as Geom2.
Obviously the boundary 1 of Geom2 overlaps the boundary 4 of Geom1.
I need to define the outward flux from Geom1 to Geom2 as: N0=mu*(c2-c1) in which mu is a constant.
Again, obviously, there is a similar boundary condition in the second geometry.
My problem is, the software doesn't recognize the variable c2 in Geom1 as well as variable c1 in Geom2.
I thought since they are overlapping on one of the boundaries I may use them as a global variable on that specific boundary. Do I need to define them as global variables?
What do you recommend?
I don't want to use identity condition like here: www.comsol.com/showroom/documentation/model/492/
Thanks,
Saman
I'm trying to model diffusion of a molecule through walls of a pipe. There is a laminar flow inside the pipe and the flow carries the mentioned molecule. This is how I built my model:
Geom1
|---- Incompressible Navier stokes (ns) ---> with independent variable: u
|---- convection and diffusion (cd1) -----> with independent variable: c1
Geom2
|---- convection and diffusion (cd2) -----> with independent variable: c2
I'm using the 2D-axial symmetry space dimension and I have the pipe as Geom1 and the surroundings as Geom2.
Obviously the boundary 1 of Geom2 overlaps the boundary 4 of Geom1.
I need to define the outward flux from Geom1 to Geom2 as: N0=mu*(c2-c1) in which mu is a constant.
Again, obviously, there is a similar boundary condition in the second geometry.
My problem is, the software doesn't recognize the variable c2 in Geom1 as well as variable c1 in Geom2.
I thought since they are overlapping on one of the boundaries I may use them as a global variable on that specific boundary. Do I need to define them as global variables?
What do you recommend?
I don't want to use identity condition like here: www.comsol.com/showroom/documentation/model/492/
Thanks,
Saman
4 Replies Last Post 2010年5月14日 GMT-4 16:45