Hi Fausto,
Sorry for not replying to this in a timely manner.
Regarding the "midFace", it's not necessary to have any specially
defined faces between the materials as long as the material properties
are defined correctly at every location in the mesh. The numerical
discretization handles this completely implicitly. However, it might
be good to align the faces with the mid-boundary for the purposes of
numerical accuracy (cells will lie completely in one material or
another and not traverse the mid-boundary). Gmsh will most likely do
that for you.
You do not need two equations. A single equation is all that is
required. Just make the diffusion coefficient spatially dependent like
this
X, Y = mesh.faceCenters
R = np.sqrt(X**2+Y**2)
R_mid = (radius + radiusI) / 2
D = fipy.FaceVariable(mesh=mesh, value=2.5e-03)
D[R < R_mid] = 100.0
for example. This will work immediately with the mesh you have, but,
again, you might want nicely aligned faces at the mid-boundary.
Regarding the "innerWall" and "outerWall", it does seem to be working
looking at the results. However, the definition you've used is very
dicey since if the vertices are on the boundary then I'd expect the
face centers to be displaced from the exact boundary locations.
Anyway, to be sure you could use
innerWall = mesh.exteriorFaces & (R < R_mid)
outerWall = mesh.exteriorFaces & (R > R_mid)
That would avoid any issues with numerical rounding or offsets in the
face centers.
Hope the above helps.
Cheers,
Daniel
> --
> To unsubscribe from this group, send email to
fipy+uns...@list.nist.gov
>
> View this message at
https://list.nist.gov/fipy
> ---
> To unsubscribe from this group and stop receiving emails from it, send an email to
fipy+uns...@list.nist.gov.
--
Daniel Wheeler