CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Gmsh] Save a geometry created with OpenCASCADE as .step file in gmsh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By mzzmrt

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 27, 2020, 22:40
Default Save a geometry created with OpenCASCADE as .step file in gmsh
  #1
New Member
 
Join Date: Apr 2020
Posts: 5
Rep Power: 6
ige82157 is on a distinguished road
How can I save a geometry as .step file, created in gmsh using a .geo script? I can do so by using the export function in the gui but I can't find the related command to do so from a geo script directly.
I did as decribed http://onelab.info/pipermail/gmsh/2018/012230.html and specified the correct geometry kernel. I also searched the gmsh manual https://gmsh.info/doc/texinfo/gmsh.html but haven't found the correct command there.
ige82157 is offline   Reply With Quote

Old   April 28, 2020, 05:11
Default
  #2
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
I think, this should work:


gmsh fileName.geo -1 -format stp
ige82157 likes this.
mzzmrt is offline   Reply With Quote

Old   April 28, 2020, 06:06
Default
  #3
New Member
 
Join Date: Apr 2020
Posts: 5
Rep Power: 6
ige82157 is on a distinguished road
Indeed it's that easy. As I wanted to save directly from within the .geo script I added the following line at the end:
Code:
Save "my_stepfile.step";
ige82157 is offline   Reply With Quote

Reply

Tags
gmsh, step


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


All times are GMT -4. The time now is 17:23.