|
[Sponsors] |
![]() |
![]() |
#21 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 317
Rep Power: 18 ![]() |
Hi, Mr. Gruber,
I believe that the latest netgenToFoam converter is part of OpenFOAM-1.1. Did you try it? Pei |
|
![]() |
![]() |
![]() |
![]() |
#22 |
Senior Member
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17 ![]() |
Hello,
Try command: netgenNeutralToFoam source code in: $HOME/OpenFOAM/OpenFOAM-1.1/applications/utilities/mesh/conversion/netgenNeutral ToFoam |
|
![]() |
![]() |
![]() |
![]() |
#23 |
New Member
G Gruber
Join Date: Mar 2009
Location: Bavaria, Germany
Posts: 22
Rep Power: 17 ![]() |
You are right ! Thank you for your help.
|
|
![]() |
![]() |
![]() |
![]() |
#24 |
New Member
G Gruber
Join Date: Mar 2009
Location: Bavaria, Germany
Posts: 22
Rep Power: 17 ![]() |
I post a short guide at the OpenFoam Wiki for importing a Netgen-Mesh.
http://openfoamwiki.net/index.php/NetgenNeutralTo Foam |
|
![]() |
![]() |
![]() |
![]() |
#25 |
New Member
G Gruber
Join Date: Mar 2009
Location: Bavaria, Germany
Posts: 22
Rep Power: 17 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#26 | |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 ![]() |
Quote:
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 |
||
![]() |
![]() |
![]() |
![]() |
#27 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#28 |
New Member
Join Date: Mar 2010
Posts: 14
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#29 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#30 |
Senior Member
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#31 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#32 |
Senior Member
Richard Smith
Join Date: Mar 2009
Location: Enfield, NH, USA
Posts: 138
Blog Entries: 4
Rep Power: 17 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#33 |
New Member
Azadeh
Join Date: Mar 2011
Posts: 2
Rep Power: 0 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#34 |
New Member
Joerg Palluch
Join Date: Jan 2017
Location: Berlin
Posts: 2
Rep Power: 0 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#35 |
New Member
alix cattermole
Join Date: Nov 2017
Posts: 14
Rep Power: 8 ![]() |
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. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Import 2D Geometry to Gambit | Nathan | ANSYS Meshing & Geometry | 3 | March 27, 2017 10:26 |
Mesh and geometry import in cfx-pre | Francesco | CFX | 7 | May 30, 2012 08:04 |
import geometry | circle | CFX | 0 | December 15, 2008 14:27 |
Import geometry | Cristiano | CFX | 2 | April 14, 2008 21:44 |
Import geometry from .stl cad format | Tino | Siemens | 1 | October 4, 2001 08:26 |