CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Import geometry from CAD

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2005, 13:12
Default Hi, Mr. Gruber, I believe t
  #21
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18
hsieh is on a distinguished road
Hi, Mr. Gruber,

I believe that the latest netgenToFoam converter is part of OpenFOAM-1.1. Did you try it?

Pei
hsieh is offline   Reply With Quote

Old   August 8, 2005, 14:04
Default Hello, Try command: netg
  #22
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17
billy is on a distinguished road
Hello,

Try command:

netgenNeutralToFoam

source code in:

$HOME/OpenFOAM/OpenFOAM-1.1/applications/utilities/mesh/conversion/netgenNeutral ToFoam
billy is offline   Reply With Quote

Old   August 9, 2005, 10:55
Default You are right ! Thank you for
  #23
New Member
 
G Gruber
Join Date: Mar 2009
Location: Bavaria, Germany
Posts: 22
Rep Power: 17
gruber2 is on a distinguished road
You are right ! Thank you for your help.
gruber2 is offline   Reply With Quote

Old   November 24, 2005, 03:32
Default I post a short guide at the Op
  #24
New Member
 
G Gruber
Join Date: Mar 2009
Location: Bavaria, Germany
Posts: 22
Rep Power: 17
gruber2 is on a distinguished road
I post a short guide at the OpenFoam Wiki for importing a Netgen-Mesh.
http://openfoamwiki.net/index.php/NetgenNeutralTo Foam
gruber2 is offline   Reply With Quote

Old   November 24, 2005, 05:09
Default sorry, here's the right Link:
  #25
New Member
 
G Gruber
Join Date: Mar 2009
Location: Bavaria, Germany
Posts: 22
Rep Power: 17
gruber2 is on a distinguished road
sorry, here's the right Link:
http://openfoamwiki.net/index.php/NetgenNeutralTo Foam
gruber2 is offline   Reply With Quote

Old   March 8, 2010, 13:59
Default
  #26
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 16
fiona is on a distinguished road
Quote:
Originally Posted by Pei-Ying Hsieh (Hsieh) View Post
HI,

I think Netgen is the best tool because the latest version can import STEP format. IGES format is somewhat problematic. Another good thing about Netgen is that "it is open source". I have not played with it enough. I do not know how good its mesh control is (dense elements in one area and coarse elements in other areas).

Pei
Hi,

Netgen seems working fine except when trying to load geometry (File->Load geometry) inside GUI. It pops up an error message "Bad option "-typevariable": must be -degaultextension, -filetypes, -initialdir, -initialfile, -multiple, -parent, or -title".

It works if I type netgen -g <filename> at command prompt line.

Also, can anybody tell me what the commandline options I should use to import STEP file into Netgen? Opencascade is already installed.

Thanks,

Fiona
fiona is offline   Reply With Quote

Old   March 8, 2010, 14:15
Default
  #27
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
philippose will become famous soon enough
Hello Fiona,

A Good Evening to you!

Its odd that you are having this problem with Netgen.... Which version of Netgen are you currently using? We recently released Netgen-4.9.12 on the Sourceforge project site....

I strongly suggest that you upgrade to the latest version, as far as I can remember, the problem that you seem to have was present in one of the very old versions.

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   March 8, 2010, 16:01
Default
  #28
New Member
 
Join Date: Mar 2010
Posts: 14
Rep Power: 16
fiona is on a distinguished road
Hi Phillippose,

Thank you for your quick reply.

It is the latest version of Netgen-4.9.12. It was installed on Ubuntu 9.10 64bit with tcl8.4.19, tk8.4.19, tix-8.1.4 and togl-1.7.

Fiona
fiona is offline   Reply With Quote

Old   April 2, 2010, 10:29
Default
  #29
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
I am interested in doing stress anlysis by using solidDisplacementFoam while import geometry from a STL file. Thinking using SketchUP to make a simple 3D model and export as the STL file.

STL inludes vertix and faces. I need to pick up a loction to define the force applied. How do I set the boundary condition? Is there any example like this?

Thanks

Cean
shirazbj is offline   Reply With Quote

Old   April 2, 2010, 10:50
Default Volume Mesh Needed
  #30
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
STL is a surface-based polygon (triangle) format, whereas you need a volume mesh to perform OpenFOAM simulations.

You might be able to create a volume mesh with snappyHexMesh (SHM) using your STL representation as the the input - but I'm not a SHM expert.
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 5, 2010, 08:19
Default
  #31
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
I have tried to model with SketchUp and export as STL. Then input the STL into gmesh. After define a volumn, I got the 3D mesh. Will try to use it under OF. First I thought I need to use gmeshToFoam, but not sure if I need to edit some dictionary files.

Thanks
shirazbj is offline   Reply With Quote

Old   April 5, 2010, 09:39
Default Read the UserGuilde.pdf
  #32
Senior Member
 
gocarts's Avatar
 
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17
gocarts is on a distinguished road
If you haven't already I suggest you read the chapter "2.2 Stress analysis of a plate with a hole" in the OpenFOAM UserGuilde.pdf as a lead in to what you are attempting to simulate. I would also suggest that you work through this stress example rather than just read it.

You will need to convert your gmsh file to OpenFOAM using gmshToFoam and you'll also need to group (separate) boundary mesh faces so you can apply boundary conditions through the dictionary files you mentioned.

Hope this helps.
__________________
Symscape, Computational Fluid Dynamics for all
gocarts is offline   Reply With Quote

Old   April 1, 2011, 21:14
Default
  #33
New Member
 
Azadeh
Join Date: Mar 2011
Posts: 2
Rep Power: 0
Azadeh90 is on a distinguished road
This problem is due to setting the wrong directrory line you should write for example:
cd ~/OpenFoam/openfoam-1.6/tutorials/incompressible/icoFoam

and then enter, and then write your command.
Good Luck with your work

Azadeh90 is offline   Reply With Quote

Old   January 31, 2017, 05:00
Default
  #34
New Member
 
Joerg Palluch
Join Date: Jan 2017
Location: Berlin
Posts: 2
Rep Power: 0
JoergPalluch is on a distinguished road
The software CAESES is able to import STEP files, and comes with pre-processing capabilities for STL preparation in the context of OpenFOAM.

Here is a short tutorial video about creating a closed triangulation and coloring the patches.

In the video section, there is also a more comprehensive webinar video about "CAESES as a GUI for OpenFOAM".

Hope this helps,
Joerg
JoergPalluch is offline   Reply With Quote

Old   December 14, 2017, 17:24
Default
  #35
New Member
 
alix cattermole
Join Date: Nov 2017
Posts: 14
Rep Power: 9
alixcattermole is on a distinguished road
I am trying to convert a netgen mesh into openfoam but whenever I use the netgenNeutralToFoam [filename.neutral] command I get and error in openfoam saying FOAM FATAL IO ERROR: cannot find file.
Any ideas at how I can get around this.

Thanks.
alixcattermole is offline   Reply With Quote

Reply


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
Import 2D Geometry to Gambit Nathan ANSYS Meshing & Geometry 3 March 27, 2017 11:26
Mesh and geometry import in cfx-pre Francesco CFX 7 May 30, 2012 09:04
import geometry circle CFX 0 December 15, 2008 15:27
Import geometry Cristiano CFX 2 April 14, 2008 22:44
Import geometry from .stl cad format Tino Siemens 1 October 4, 2001 09:26


All times are GMT -4. The time now is 04:33.