Replies: 6 comments 20 replies
-
|
Hello, thanks for using this library! Although it is possible to support triangular blocks with a few minor modifications, I'd suggest you could maybe rethink your blocking to consist of quads only. Can you share your geometry (or at least a part of it?) Maybe I can help with that (?) |
Beta Was this translation helpful? Give feedback.
-
|
I think a 8 node block
With a clipping plane that intersects two points on one edge will create
triangular shape in classy blocks
Regards Malcolm
…On Sat, 2 Nov 2024, 17:04 onajjar, ***@***.***> wrote:
Hello,
test_crack.zip
<https://github.com/user-attachments/files/17607748/test_crack.zip>
Thank you for your response.
I am attaching a .zip file that contains the following:
1. Four CSV files representing the x, y, and z coordinate matrices for
points on two surfaces (top terrain surface and bottom terrain).
2. The main code file, "brazilian_DEAP_crack_test.py," which generates
the crack volume using multiple boxes placed side by side.
3. "functions.py," which includes helper functions for finding points
inside a circle.
4. "DEAP_crack_occ.py," which loads the data (I previously used it
with Gmsh, but it didn't work as expected).
The goal is to create a cylindrical hole inside the crack, but I am
uncertain where exactly the cylinder intersects the crack since the z
elevation varies at each point. Currently, I am attempting to remove boxes
that are entirely within a circle, then generate the remaining elements
around the circle based on its position.
The idea that I had to use triangle shape elements is that when a circle
crosses the box, it deletes 6 points out of 8, the shape will be an arc
connected with a 2 straight sides (almost like the triangle element)
(something like this in the photo)
image.png (view on web)
<https://github.com/user-attachments/assets/ca1efdbd-0bbc-46f2-9a20-b52ce4567ea3>
I would greatly appreciate your assistance with this!
Thank you.
—
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKSK2M6COHBCJGFCIIJ7VTZ6UA3FAVCNFSM6AAAAABRBULJY6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJTGA2DKNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: <damogranlabs/classy_blocks/repo-discussions/59/comments/11130457@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Your approach might be the most obvious and might seem the easiest; although I could add a check for zero-length edges to classy and it would produce a legit blockMesh with wedges but I see some issues:
I don't understand completely why you can't define where your cylinder intersects the crack. If you could define its radius and position, I think the simplest approach would be:
What do you think? It seems too easy so I suspect I overlooked an important detail. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to generate an element with six points having an extruded triangle shape the same shape as the blockMesh website in the following link:
https://www.openfoam.com/documentation/user-guide/4-mesh-generation-and-conversion/4.3-mesh-generation-with-the-blockmesh-utility
It is working perfectly as I want, as attached in the photo, but I used blockMesh to generate it. However, I want to use classy_blocks since I am generating a much more complex mesh. I know it maybe an easy task but it seems that I couldn't solve it !
Thanks in advance
Omar
Beta Was this translation helpful? Give feedback.
All reactions