CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Import geometry from CAD (https://www.cfd-online.com/Forums/openfoam-pre-processing/62246-import-geometry-cad.html)

hsieh August 8, 2005 12:12

Hi, Mr. Gruber, I believe t
 
Hi, Mr. Gruber,

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

Pei

billy August 8, 2005 13:04

Hello, Try command: netg
 
Hello,

Try command:

netgenNeutralToFoam

source code in:

$HOME/OpenFOAM/OpenFOAM-1.1/applications/utilities/mesh/conversion/netgenNeutral ToFoam

gruber2 August 9, 2005 09:55

You are right ! Thank you for
 
You are right ! Thank you for your help.

gruber2 November 24, 2005 02:32

I post a short guide at the Op
 
I post a short guide at the OpenFoam Wiki for importing a Netgen-Mesh.
http://openfoamwiki.net/index.php/NetgenNeutralTo Foam

gruber2 November 24, 2005 04:09

sorry, here's the right Link:
 
sorry, here's the right Link:
http://openfoamwiki.net/index.php/NetgenNeutralTo Foam

fiona March 8, 2010 12:59

Quote:

Originally Posted by Pei-Ying Hsieh (Hsieh) (Post 196419)
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

philippose March 8, 2010 13:15

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

fiona March 8, 2010 15:01

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

shirazbj April 2, 2010 09:29

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

gocarts April 2, 2010 09:50

Volume Mesh Needed
 
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.

shirazbj April 5, 2010 07:19

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

gocarts April 5, 2010 08:39

Read the UserGuilde.pdf
 
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.

Azadeh90 April 1, 2011 20:14

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


JoergPalluch January 31, 2017 04:00

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

alixcattermole December 14, 2017 16:24

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.


All times are GMT -4. The time now is 01:30.