CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Import netgen mesh to OpenFOAM

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 23, 2006, 16:15
Default 1) I don't see any failed mesh
  #21
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 17
mattijs is on a distinguished road
1) I don't see any failed mesh checks. Counting must be off by one.

Your mesh has two non-fatal problems:
Mesh non-orthogonality Max: 88.6111
Large face skewness detected. Max skewness = 1794.23 perce

2) You are running simpleFoam? see Hrvoje's comment earlier on today.

3) weird. Do you have a polyMesh directory in one of the time steps? It says your external faces are not fully covered by your patches. Check your polyMesh/boundary file that every face from the internal faces onwards is in one and only one patch.
mattijs is offline   Reply With Quote

Old   February 24, 2006, 03:29
Default Do you mean this entry to this
  #22
mwendel
Guest
 
Posts: n/a
Do you mean this entry to this topic?

OpenFOAM Message Board: OpenFoam: Running / Solving / CFD: Dynamic mesh changes
------------------------------------------------------------

Posted by Hrvoje Jasak on Thursday, February 23, 2006 - 07:57 am:


I don't understand it and never heard about what he is talking!

Can you give me a better explanation please?
  Reply With Quote

Old   April 27, 2007, 05:51
Default Hi all, I'm looking for to
  #23
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 9
lam is on a distinguished road
Hi all,

I'm looking for to re-scale in Foam.
I have the OpenFoam-1.3 and the OpenFoam-1.4, but I do not find the "scalePoints" in these releases!
(it says: "command not found", when I tape it in my shell)

Can everyone give me a hand?

Cheers,
Lam
lam is offline   Reply With Quote

Old   April 27, 2007, 06:59
Default Hi Lam! It's now called tra
  #24
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,931
Rep Power: 41
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Lam!

It's now called transformPoints and it can do more than scaling.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   April 27, 2007, 08:33
Default Oh thanks Bernhard! I'm goi
  #25
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 9
lam is on a distinguished road
Oh thanks Bernhard!

I'm going to see it right now!

Cheers,

Lam
lam is offline   Reply With Quote

Old   April 30, 2007, 03:59
Default Hi Bernhard, I try to use
  #26
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 9
lam is on a distinguished road
Hi Bernhard,

I try to use "transformPoints", but I don't menage to use it. I try much kind of syntax without succes. Can you give me a hand?

I've tried these syntax below, but they don't work.
Where am I wrong? (my goal is using mili-meter)

transformPoints ./.. tankApply0 -scale (0.001 0.001 0.001

transformPoints ./.. tankApply0 -scale 3(0.001 0.001 0.001)

transformPoints ./.. tankApply0 -scale 3{0.001 0.001 0.001}

thanks in advance,

Lam
lam is offline   Reply With Quote

Old   April 30, 2007, 05:35
Default Hi Lam, the right syntax is
  #27
New Member
 
Johannes Vierbuchen
Join Date: Mar 2009
Location: Cologne, NRW, Germany
Posts: 8
Rep Power: 9
johannes_vierbuchen is on a distinguished road
Hi Lam,

the right syntax is :

transformPoints ./.. tankApply0 -scale "(.001 .001 .001)"

Cheers Johannes
johannes_vierbuchen is offline   Reply With Quote

Old   April 30, 2007, 05:42
Default It looks like you are encounte
  #28
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 780
Rep Power: 19
olesen will become famous soon enough
It looks like you are encountering at least two shell related problems.
1. the shell uses spaces to delimit its arguments
2. shell escape problems - characters such as ()[]{}*? have a special meaning for the shell.

Try quoting the argument so that it remains a single argument and to avoid invoking a subshell.

eg,
transformPoints .. tankApply0 -scale '(0.001 0.001 0.001)'

You might find the bash guide a useful addition to the bash manpage.
olesen is offline   Reply With Quote

Old   April 30, 2007, 12:21
Default Ok, thanks guys! the syntax
  #29
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 9
lam is on a distinguished road
Ok, thanks guys!

the syntax

transformPoints ./.. tankApply0 -scale "(.001 .001.001)"

works!

Thamks a lot,
Lam
lam is offline   Reply With Quote

Old   April 17, 2008, 08:14
Default Hi,everyone! I am trying to
  #30
Member
 
Vivien
Join Date: Mar 2009
Posts: 52
Rep Power: 9
sunnysun is on a distinguished road
Hi,everyone!

I am trying to convert the mesh from netgen to openfoam.
The mesh is a bifurcation geometry and it looks ok in netgen. I exported it as neatral format and then run: 'netgenNeutralToFoam/path case file'.
However it then shows:

nNodes:7070
nTets:26611
nFaces:10364
Patches:
Neutral Boundary Patch name Size

0 patch0 10364



I dont understand why there is only one patch...should I do some initial settings in netgen before exporting?

Thank you in advance!!!

sunny
sunnysun is offline   Reply With Quote

Old   June 25, 2011, 16:12
Default .stl format to visulized
  #31
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 7
desert_1250 is an unknown quantity at this point
Send a message via Yahoo to desert_1250
hello foamers
i have an .stl file that created it with MATLAB, but when i imported it into GAMBIT, didnt visulized any thing. i tried it with another software such as SALOME, NETGEN, STL viewer, but this software cant open it too. where is the problem?!! i am realy confused, can every one help me that what is the problem
desert_1250 is offline   Reply With Quote

Old   July 17, 2011, 05:37
Default
  #32
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 531
Rep Power: 17
philippose will become famous soon enough
Hello Sunny,

A Good Day to you!

When you mesh a geometry in Netgen, it automatically gives the patch number "0" to all the surfaces. If you export it into OpenFOAM this way, you will only get one patch.

In order to separate the surfaces into patches, there are multiple options in Netgen:

1. Use the "Edit Boundary Conditions" menu option in the "Mesh" menu and double-click through each surface for which you want to have a specific patch, and give them unique boundary condition numbers.... these numbers will then show up as separate patches in OpenFOAM.

2. If you are using STEP Geometry and the surfaces of your geometry have different colours, you have the following two additional options:

2[a]. Use the automated colour-based patch allocation system found under the "Special" menu in order to let Netgen automatically assign each unique colour a unique patch number sorted according to the number of surface mesh elements on each surface.

2[b]. Again, in the "Special" Menu, use the Profile-based patch allocation system which lets you select a file with extension ".ocf", containing the mapping from the surface colours (specified as RGB colour triplets) to patch numbers.... thus giving you precise control over which surfaces should have which boundary condition numbers.


If you need more details, let me know...

Hope this helps!

Have a nice day!

Philippose
philippose is offline   Reply With Quote

Old   September 13, 2011, 05:50
Default
  #33
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 58
Blog Entries: 1
Rep Power: 13
j-avdeev will become famous soon enough
Send a message via Skype™ to j-avdeev
s.rasoul,
Have you tryed open .stl with GMSH? http://geuz.org/gmsh/

also you can try to open .stl with text editor and if .stl saved in ASCII format it have to look like
Code:
solid bullet
  facet normal -0 0 -1
    outer loop
       vertex 0.003234 0.00317894 -0.01375
       vertex 0.00232785 0.00310005 -0.01375
       vertex 0.002302 0.00389537 -0.01375
    endloop
  endfacet
  facet normal 0 0 -1
    outer loop
       vertex 0.002302 -0.00389537 -0.01375
       vertex 0.00232785 -0.00310005 -0.01375
       vertex 0.003234 -0.00317894 -0.01375
    endloop
  endfacet
...
...
  facet normal 0.996662 0 -0.0816334
    outer loop
       vertex -0.007049 0.0225 -0.00925
       vertex -0.0069557 0.0225 -0.0081109
       vertex -0.0069557 0.0197154 -0.0081109
    endloop
  endfacet
endsolid bullet
j-avdeev is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netgen mesh settings for STL geometries lucchini Open Source Meshers: Gmsh, Netgen, CGNS, ... 3 March 7, 2011 02:02
import mesh to OpenFOAM Andréia CFX 4 July 29, 2008 02:51
File format for import meshes in OpenFoam t42 OpenFOAM Meshing Format & General Technical 5 August 1, 2007 08:45
Import stl file netgen writes segmentation faulterror unoder Open Source Meshers: Gmsh, Netgen, CGNS, ... 8 October 2, 2005 10:26
mesh import Matthias CFX 1 August 24, 2004 00:39


All times are GMT -4. The time now is 08:11.