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

[Netgen] Import netgen mesh to OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2006, 16:15
Default 1) I don't see any failed mesh
  #21
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
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, 06: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: 17
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, 07:59
Default Hi Lam! It's now called tra
  #24
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
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, 09:33
Default Oh thanks Bernhard! I'm goi
  #25
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 17
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, 04:59
Default Hi Bernhard, I try to use
  #26
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 17
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, 06: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: 17
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, 06:42
Default It looks like you are encounte
  #28
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
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, 13:21
Default Ok, thanks guys! the syntax
  #29
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 17
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, 09:14
Default Hi,everyone! I am trying to
  #30
Member
 
Vivien
Join Date: Mar 2009
Posts: 52
Rep Power: 17
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, 17:12
Default .stl format to visulized
  #31
Member
 
s.rasoul_varedi
Join Date: Feb 2010
Posts: 82
Rep Power: 15
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, 06:37
Default
  #32
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25
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, 06:50
Default
  #33
Member
 
Avdeev Evgeniy
Join Date: Jan 2011
Location: Togliatty, Russia
Posts: 69
Blog Entries: 1
Rep Power: 21
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


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[Salome] import mesh from salome to openfoam dome90 OpenFOAM Meshing & Mesh Conversion 2 April 21, 2016 00:58
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 03:13.