You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to import a mesh that represents a slice of the full circular geometry of the simulated object. Therefore, I make use of rotational periodic boundary conditions. Reduced to a very minimal example in 2D, the mesh looks like this:
When importing this mesh with GmshDiscreteModel(), I run into the following issue:
It seems as if this error occurs because the node at Point 1 is linked to itself instead of another node. Is this kind of geometry generally not supported/possible or this there something wrong in my code or the package?
The .geo file:
SetFactory("OpenCASCADE");
// Parameters
r2 = 0.2; // Radius of the outer circle
slice_angle = 2*Pi/180 * 2;
// Define the medium points and lines
Point(1) = {0, 0, 0};
Point(2) = {r2, 0, 0};
Line(1) = {1, 2};
// Rotational extrusion of as small slice
Extrude { {0, 0, 1}, {0, 0, 0}, slice_angle} {
Line{1}; Layers{0}; Recombine;
}
// Add periodic line
Periodic Line{3} = {1} Rotate { {0, 0, 1}, {0, 0, 0}, slice_angle};
// Labeling
Physical Line("BoundaryR2") = {2};
Physical Surface("InnerVol") = {1};
Hi and thank you for the good work!
I am trying to import a mesh that represents a slice of the full circular geometry of the simulated object. Therefore, I make use of rotational periodic boundary conditions. Reduced to a very minimal example in 2D, the mesh looks like this:
When importing this mesh with
GmshDiscreteModel()
, I run into the following issue:It seems as if this error occurs because the node at Point 1 is linked to itself instead of another node. Is this kind of geometry generally not supported/possible or this there something wrong in my code or the package?
The .geo file:
The .msh file:
The text was updated successfully, but these errors were encountered: