Skip to content

[Mesh] Meshing a small cubic within a big cubic #24158

Discussion options

You must be logged in to vote

Hello

the solution here is likely to use mesh refinement.

First : generate the uniform grid for the whole domain. It should be as coarse as you want the large coarse part to be. CartesianMG or rectilinearMG should both be able to do it

second: use the subdomain bounding box to create a different subdomain for the fine part. You could skip that part if you use the subdomain_ids argument of the rectilinearMG

Then use the BlockRefineGenerator to refine only the fine part a few levels. You want to get to the fineness required there

finally, if the fine part was “too big” in step 2, you can redefine it again using another subsomainBoundingBox generator

Guillaume

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Joseph-0123
Comment options

Answer selected by Joseph-0123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants