|
[Sponsors] |
[GMSH] extrude rotation from arbitrary OpenCASCADE center |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 2, 2022, 14:44 |
[GMSH] extrude rotation from arbitrary OpenCASCADE center
|
#1 |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9 |
Hello everyone,
I'm trying to create a boundary around a cylinder in gmsh from a STEP file. My idea is to extrude the seam line to generate a plane and afterwards revolute the plane around the cylinder axis. This approach is successfull as long as the center is precisely, but as soon as minor deviation are present the meshing crashes. For simple models this works fine as I can cheat the axis to be in exact position, but for real geometries this center would not be in general positioned in a rounded number point. I've tried to add the considered by the CAD software for all the decimals available with success. I guess I need to use the exact position gmsh is using. I've seen that there is a property in gmsh which can be used for this (CenterOfMass), but I cannot make it work. Code:
SetFactory("OpenCASCADE"); Merge "Piece.step"; // Extrude the seam line Extrude {2, 0, 0} { Line{24}; Layers{3}; Recombine; } // First half Extrude {{0, 0, 1}, {CenterOfMass Curve{19} }, Pi} { Surface{22}; Layers{30}; Recombine; } // Second half Extrude {{0, 0, 1}, {0,30,0}, Pi} { Surface{27}; Layers{30}; Recombine; } Coherence; Code:
... com() = CenterOfMass Curve {19}; Printf("",com()); Extrude {{0, 0, 1}, { com() }, Pi} { Surface{22}; Layers{30}; Recombine; } ... Does anybody knows how to deal with this issue? |
|
Tags |
expression-list, extrude, gmsh |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rotating frame does not rotate about the center of rotation | jdp810 | SU2 | 16 | July 28, 2020 03:26 |
6dof for rotation of turbine: unable to fix the center | Havinh | Fluent UDF and Scheme Programming | 0 | August 5, 2015 06:35 |
Rotation center in oscillating airfoil | alireza_b | FLUENT | 0 | June 14, 2015 14:02 |
[ICEM] How can I extrude a 2D Hexa Mesh along a center curve? | Daniel C | ANSYS Meshing & Geometry | 21 | November 9, 2012 10:10 |
[Gmsh] Cannot get the right mesh from gmsh | JinBiao | OpenFOAM Meshing & Mesh Conversion | 2 | August 31, 2010 05:51 |