Meshing long cylinders with OpenCASCADE
I'm trying to create a 3D mesh for a long cylinder (l = ~22*r), but using the Cylinder command with OpenCASCADE leads to errors and an incorrect surface mesh. Using cylinders with small lengths seem to 3D mesh fine, but large lengths fail at the 2D mesh and lead to the attached error. I'm able to mesh a long cylinder normally by defining points, loops, surfaces, and volumes manually, but I was hoping to use Cylinder to reduce complexity when adding additional features.
-Collin C.
Code:
SetFactory("OpenCASCADE");
//+
nerve_diameter = DefineNumber[ 0.9, Name "Parameters/Nerve Diameter (mm)" ];
//+
Cylinder(1) = {0,0,0,0,0,20,nerve_diameter/2,2*Pi};