-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asign material to cells in a mesh toughio object #163
Comments
Hi @geowomen, There is unfortunately no obvious way to do that in 3D, this is usually handled by the meshing software when setting up the geometry. From the name of the materials, I guess that you are trying to model tunnels. Is your geometry symmetric along the tunnel axis? That would be helpful as you could generate a 2D mesh, assign the materials using polygons, and then extrude the mesh along the tunnel axis. |
Thank you Kerfonluu for your answer. If I understand correctly, there is no way to access the center of cells from a toughio mesh structure and create a loop to select specific positions and assign specific materials? As for my second question, is there a way to extrude a surface or geometry with a line, the line is changing direction, not just a constant direction? |
You can access cell centers using |
|
Dear all, Dear Kerfonluu,
I want to assign a type of material to a complex geometry. I know the position (x, y, z) where I should assign materials.
Using the parameters from the toughio reader, I can define a function to do so:
where
inside_my_domain
is a function defining the domain (not a box).But I want to use the mesh object constructed to select the element where to apply the domain:
If I don't have a simple box, how can I define a complex domain filter by looping in cells and select only the cells in my complex domain?
Thank you for your help.
The text was updated successfully, but these errors were encountered: