Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
16.10.2014, 07:53 GMT-4
You need not to define a boundary condition in the middle interface, if you don't particularly want that. Comsol assumes the flux continuity at the interface, i.e. D1*grad(c1) = D2*grad(c2). But if there is a thin barrier between the layers use that. The only parameter you need is the permeability of the barrier (cm/s). Funny enough, in Comsol you define it as D/d where D is the diffusivity in the barrier and d its thickness, but the only thing that matters is their ratio.
Lasse
You need not to define a boundary condition in the middle interface, if you don't particularly want that. Comsol assumes the flux continuity at the interface, i.e. D1*grad(c1) = D2*grad(c2). But if there is a thin barrier between the layers use that. The only parameter you need is the permeability of the barrier (cm/s). Funny enough, in Comsol you define it as D/d where D is the diffusivity in the barrier and d its thickness, but the only thing that matters is their ratio.
Lasse
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
16.10.2014, 16:59 GMT-4
I thought the same. But the problem with that approach is , the interface between the two layers is kept by default at No flux boundary condition in the physics. So i was not sure, how should i define that interface boundary condition between the two domains.
I thought the same. But the problem with that approach is , the interface between the two layers is kept by default at No flux boundary condition in the physics. So i was not sure, how should i define that interface boundary condition between the two domains.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
17.10.2014, 02:06 GMT-4
OK, you have also two physics nodes, i.e. twice "Transport of Diluted Species". Let's say that in domain 1 your variable is c1 and in domain c2. Then make a flux boundary condition in domain 1
N = -M*(c1-c2)
and in domain 2
N = M*(c1-c2)
if the flux is from domain 1 to domain 2. M is a mass transfer coefficient at the boundary, ( ) m/s. If there is no transport barrier between the domains, put M = 1 m/s, for example. This makes sure that the flux towards the boundary remains under diffusion control in the bulk of the domain.
But if you have only one physics node with two diffusion coefficients in two different domains, there should not be "No flux" BC.
OK, you have also two physics nodes, i.e. twice "Transport of Diluted Species". Let's say that in domain 1 your variable is c1 and in domain c2. Then make a flux boundary condition in domain 1
N = -M*(c1-c2)
and in domain 2
N = M*(c1-c2)
if the flux is from domain 1 to domain 2. M is a mass transfer coefficient at the boundary, ( ) m/s. If there is no transport barrier between the domains, put M = 1 m/s, for example. This makes sure that the flux towards the boundary remains under diffusion control in the bulk of the domain.
But if you have only one physics node with two diffusion coefficients in two different domains, there should not be "No flux" BC.