CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Netgen] Import netgen mesh to OpenFOAM (https://www.cfd-online.com/Forums/openfoam-meshing/61950-import-netgen-mesh-openfoam.html)

mattijs February 23, 2006 15:15

1) I don't see any failed mesh
 
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.

mwendel February 24, 2006 02:29

Do you mean this entry to this
 
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?

lam April 27, 2007 05:51

Hi all, I'm looking for to
 
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

gschaider April 27, 2007 06:59

Hi Lam! It's now called tra
 
Hi Lam!

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

Bernhard

lam April 27, 2007 08:33

Oh thanks Bernhard! I'm goi
 
Oh thanks Bernhard!

I'm going to see it right now!

Cheers,

Lam

lam April 30, 2007 03:59

Hi Bernhard, I try to use
 
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

johannes_vierbuchen April 30, 2007 05:35

Hi Lam, the right syntax is
 
Hi Lam,

the right syntax is :

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

Cheers Johannes

olesen April 30, 2007 05:42

It looks like you are encounte
 
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.

lam April 30, 2007 12:21

Ok, thanks guys! the syntax
 
Ok, thanks guys!

the syntax

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

works!

Thamks a lot,
Lam

sunnysun April 17, 2008 08:14

Hi,everyone! I am trying to
 
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

desert_1250 June 25, 2011 16:12

.stl format to visulized
 
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

philippose July 17, 2011 05:37

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

j-avdeev September 13, 2011 05:50

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



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