Thanks Jan.
On 2 May 2013 13:10, Jan Blechta <[email protected]> wrote: > On Thu, 2 May 2013 12:56:44 +0100 > Gennadiy Rishkin <[email protected]> wrote: > > Hello, > > > > Say, I have a sphere in a box and I solve the Laplace's equation on > > the sphere but I'd like to use the solution values on the boundary of > > the sphere as the dirichlet condition values on shared surface with > > the box. How to accomplish this? > > > > Right now, I have two separate meshes: one for the sphere and one for > > the box and so I can get the boundary mesh or boundary solution > > values for the sphere but I do not know how to use these values to > > set the corresponding surface of the box. > > > > Thanks in advance, > > > > Gennadiy > > > > Assuming you have > uD = Function(V) > you can create bc on another space, say W > bc = DirichletBC(W, uD, ...) > where "..." is specification of boundary. It is sufficient and necessary > that uD can be evaluated on boundary specified in "..." > > It won't work correctly on non-matching meshes in parallel. > > Jan >
_______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
