Hello!

Is there an easy way to apply initial conditions selectively on different
sub-domains within a mesh?

I have typically used ProjectSolution() to apply initial conditions using a
function, but I am working on a simulation at the moment where the gmsh
generated mesh comes with pre-defined sub-domains, and it would be
convenient to use those directly to selectively apply initial conditions to
the system. I had a look at the example which uses restrict_solve_to() to
limit the solver to a given subdomain, but I haven't been able to get
ProjectSolution() to honour and sub domains restrictions I apply. It might
be that I don't have the correct sequence of operations to make this work,
but if someone can tell me if it is possible, it would be a huge help

Thanks in advance (and thanks to the developers for such a full featured
and performant library),
------------------------------------------------------------------------------
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to