On 8/24/22 12:45, Lucas Myers wrote:
> As a first guess I suspect I can just mark each of the subdomains with a
> material_id or a user_index or something, and then only iterate over the
> cells from a particular subdomain during the assembly and solve
> normally. However, I am unsure how to mark the appropriate faces on the
> outside of the subdomains as boundary faces.
>
> Has anyone dealt with this kind of problem before? Does it seem like
> this is the right direction to go? And how can I mark faces as belonging
> to a boundary, even if the cells are internal to the domain?
The VectorTools::interpolate_boundary_values() function can't deal with
this, but it isn't very difficult to write your own replacement function
that simply loops over the faces of the cells that are part of a
subdomain, rather than the faces of the entire triangulation.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/