HorribleSanity / Raven.jl

MIT License
3 stars 1 forks source link

Multiple boundary types supported #76

Open masonamccallum opened 11 months ago

masonamccallum commented 11 months ago

Current implementation calls materializefacemaps in the generate function which marks a boundary faces with a one. It would be nice to have multiple boundary types supported.

masonamccallum commented 11 months ago

If I can recursively access the boundary information of a child node's parents I can reach back to the boundary specification at the coarse grid level which is specified in mesh import data (here).

It looks like I can write a callback function and supply it to p4est_iterate that performs this recursive walk up the lineage to find the root boundary data but I am unsure at the moment.

lcw commented 11 months ago

If we have a boundary condition information for the coarse grid (aka the trees) we could use quadranttocoordinate and quadranttolevel to figure out which faces/edges (if any) a quadrant was on. We could then use that plus quadranttotreeid to look up the boundary condition information.