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

[Netgen] ideasUnvToFoam with inner parts

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

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2012, 04:22
Default ideasUnvToFoam with inner parts
  #1
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
anton_lias is on a distinguished road
Hello All,

I have got a problem with my mesh and I hope, that you can help me.

1. I created a simple mesh with "Salome" and "Netgen 1D-2D-3D".
2. I exported it as *.unv (mesh_forum.unv.gz)
3. I tried to convert it with ideasUnvToFoam, but it fails (see the log-file)

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec   : ideasUnvToFoam mesh_long_0626_0845.unv
Date   : Jun 26 2012
Time   : 08:47:10
Host   : "Hans"
PID    : 9674
Case   : /home/paul/OpenFOAM/paul-2.1.0/run/mycases/fermenter_v18_forum
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Processing tag:2411
Starting reading points at line 3.
Read 1996 points.

Processing tag:2412
Starting reading cells at line 3998.
First occurrence of element type 11 for cell 1 at line 3999
First occurrence of element type 41 for cell 213 at line 4635
First occurrence of element type 111 for cell 2502 at line 9213
Read 10226 cells and 2289 boundary faces.

Processing tag:2467
Starting reading patches at line 29667.
For group 3 named defaultFaces trying to read 241 patch face indices.
For group 4 named wall trying to read 661 patch face indices.
For group 5 named outerSlider trying to read 545 patch face indices.
For group 6 named innerSlider trying to read 545 patch face indices.
For group 7 named stirrer trying to read 842 patch face indices.

Of 2289 so-called boundary faces 1387 belong to two cells and are therefore internal
Sorting boundary faces according to group (patch)
0: defaultFaces is patch
1: wall is patch
2: outerSlider is faceZone
3: innerSlider is faceZone
4: stirrer is faceZone

Constructing mesh with non-default patches of size:
    defaultFaces        241
    wall        661

Adding cell and face zones
 Face Zone innerSlider  545
ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.
If I delete the inner parts, the conversion works fine. Could anybody please say me whats the mistake, or how I should do it?

Thanks a lot!

Picture: at the outside there is the "wall", the cylinder shuld be "innerSlider" and "outerSlider" and the block shuld be the "stirrer"

Edit: I forgot to add the picture
Attached Images
File Type: png mesh_forum.png (3.3 KB, 171 views)

Last edited by anton_lias; June 26, 2012 at 08:35. Reason: add a picture
anton_lias is offline   Reply With Quote

Old   July 3, 2012, 07:35
Default
  #2
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
anton_lias is on a distinguished road
Solved. If anybody has the same error:
To put all the geometries in one mesh, I used the operation "partition" instead of "cut". That was the mistake.
anton_lias is offline   Reply With Quote

Old   November 2, 2012, 06:36
Default
  #3
dzi
Member
 
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14
dzi is on a distinguished road
Quote:
Originally Posted by anton_lias View Post
Solved. If anybody has the same error:
To put all the geometries in one mesh, I used the operation "partition" instead of "cut". That was the mistake.

Hi Anton / all
I ran into a similar problem with internal faces. My example uses a cylinder with an internal face created with Salome 6.5 to calculate a heat transfer problem. The mesh was created after partition operation and groups created for all walls, the interface and the interior.
Here is my geometry:

http://www.file-upload.net/download-...forum.hdf.html

Conversion with ideasUnvToFoam throws an error with internal faces:

...
Create timeProcessing tag:164
Starting reading units at line 3.
l:1
units:" SI: Meter (newton)"
unitType:2
Unit factors:
Length scale : 1
Force scale : 1
Temperature scale : 1
Temperature offset : 273.15

Processing tag:2420
Skipping tag 2420 on line 9
Skipping section at line 9.
Processing tag:2411
Starting reading points at line 20.
Read 527 points.
Processing tag:2412
Starting reading cells at line 1077.
First occurrence of element type 11 for cell 1 at line 1078
First occurrence of element type 41 for cell 57 at line 1246
First occurrence of element type 111 for cell 853 at line 2838
Read 1860 cells and 796 boundary faces.
Processing tag:2467
Starting reading patches at line 6560.
For group 1 named wall_lower trying to read 296 patch face indices.
For group 2 named wall_upper trying to read 296 patch face indices.
For group 3 named top trying to read 68 patch face indices.
For group 4 named bottom trying to read 68 patch face indices.
For group 5 named interior trying to read 1860 patch face indices.
For group 6 named intersection trying to read 68 patch face indices.
Of 796 so-called boundary faces 68 belong to two cells and are therefore internal
Sorting boundary faces according to group (patch)
0: wall_lower is patch
1: wall_upper is patch
2: top is patch
3: bottom is patch
4: interior is cellZone
5: intersection is faceZone
Constructing mesh with non-default patches of size:
wall_lower 296
wall_upper 296
top 68
bottom 68
Adding cell and face zones
Cell Zone interior 1860
Face Zone intersection 68
ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.
Aborted



Could you update/renew/provide your attached mesh_forum.unv, which worked finally for you? The link to your mesh has expired, and I would like to identify where I am wrong in my procedure.
Any help is appreciated, thanks!
dirk
dzi is offline   Reply With Quote

Old   November 5, 2012, 06:44
Default
  #4
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
anton_lias is on a distinguished road
1. You can download it at http://www.file-upload.net/download-...um.unv.gz.html

2. try NOT to use the operation "partition". I would make two cylinders and use the operation "fuse" to combine them.
anton_lias is offline   Reply With Quote

Old   November 5, 2012, 11:19
Default
  #5
dzi
Member
 
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14
dzi is on a distinguished road
Thanks anton! I tried your mesh, but got the same error. maybe a bug in ideasUnvToFoam of this version?

My output:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.0-0bc225064152
Exec : ideasUnvToFoam mesh_forum.unv
Date : Nov 05 2012
Time : 16:46:51
Host : "simulation-HP"
PID : 20950
Case : /home/dirk/OpenFOAM/dirk-2.1.0/run/cht/planeWall2DSalome2
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Processing tag:2411
Starting reading points at line 3.
Read 1996 points.

Processing tag:2412
Starting reading cells at line 3998.
First occurrence of element type 11 for cell 1 at line 3999
First occurrence of element type 41 for cell 213 at line 4635
First occurrence of element type 111 for cell 2502 at line 9213
Read 10226 cells and 2289 boundary faces.

Processing tag:2467
Starting reading patches at line 29667.
For group 3 named defaultFaces trying to read 241 patch face indices.
For group 4 named wall trying to read 661 patch face indices.
For group 5 named outerSlider trying to read 545 patch face indices.
For group 6 named innerSlider trying to read 545 patch face indices.
For group 7 named stirrer trying to read 842 patch face indices.

Of 2289 so-called boundary faces 1387 belong to two cells and are therefore internal
Sorting boundary faces according to group (patch)
0: defaultFaces is patch
1: wall is patch
2: outerSlider is faceZone
3: innerSlider is faceZone
4: stirrer is faceZone

Constructing mesh with non-default patches of size:
defaultFaces 241
wall 661

Adding cell and face zones
Face Zone innerSlider 545
ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.
Aborted

I also tried to fuse two boxes instead of partitioning. After fusion also the interface has fused away and I cannot create a group in the meshing module from that face.

Maybe somebody could provide a working a salome script (py) with an inner wall to start before generation of the unv. file.

I also posted the same problem (2 cylinder) to a german forum:
http://ww3.cad.de/foren/ubb/Forum527/HTML/000308.shtml

Thanks all your for help!
dirk

Quote:
Originally Posted by anton_lias View Post
1. You can download it at http://www.file-upload.net/download-...um.unv.gz.html

2. try NOT to use the operation "partition". I would make two cylinders and use the operation "fuse" to combine them.
dzi is offline   Reply With Quote

Old   November 6, 2012, 06:03
Default
  #6
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
anton_lias is on a distinguished road
I am sorry, I gave you the old file. http://www.file-upload.net/download-...20702.unv.html <-- this should work.

If your geometry is only this pipe, you can use blockmesh.

Or you could try to make two meshes and combine them with "mergeMeshes".
anton_lias is offline   Reply With Quote

Old   November 9, 2012, 02:28
Default
  #7
Member
 
laurentb's Avatar
 
Laurent B
Join Date: Jun 2009
Location: Lille, FRANCE
Posts: 70
Rep Power: 16
laurentb is on a distinguished road
Hi all,

I encounter the same problem with openfoam version 2.1.1 :

ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.

But if i switch to the 2.0.1 version the ideasUnvToFoam utility works fine.

Does anybody can explain this ?
laurentb is offline   Reply With Quote

Old   November 9, 2012, 03:24
Default
  #8
dzi
Member
 
Join Date: Nov 2011
Location: Berlin
Posts: 31
Rep Power: 14
dzi is on a distinguished road
hi laurent,
maybe this helps, (expanding a line in the unv file about one column, although it is more salome related)
http://www.openfoam.org/mantisbt/view.php?id=584
http://openfoamwiki.net/index.php/IdeasUnvToFoam
good luck
dirk
Quote:
Originally Posted by laurentb View Post
Hi all,

I encounter the same problem with openfoam version 2.1.1 :

ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.

But if i switch to the 2.0.1 version the ideasUnvToFoam utility works fine.

Does anybody can explain this ?
Annier likes this.
dzi is offline   Reply With Quote

Old   November 26, 2012, 19:58
Default
  #9
New Member
 
Darren
Join Date: Nov 2012
Posts: 6
Rep Power: 13
Dazzler is on a distinguished road
No I cant explain it but more than that I cant replicate it.

I have a mesh with internal parts that fails conversion to openfoam from an ideasUnv format created with Salome that refuses to convert with the same error message :-

ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.

This is driving me insane at 1.00am in the morning does anyone know the problem ?
Dazzler is offline   Reply With Quote

Old   December 16, 2012, 11:27
Default
  #10
New Member
 
Joe Foster
Join Date: Nov 2012
Posts: 4
Rep Power: 13
jfoster533 is on a distinguished road
I am new to both Salome and OpenFOAM and I seem to have run into the same problem with ideasUnvToFoam. I am trying to simulate a simple model consisting of a box with a short inlet pipe at the bottom and short outlet pipe at the top. I created a face with a small hole in the center to act as an orifice in the middle of the box with hopes of learning to explore how flow is affected by different baffle designs. I used the Partition tool in Salome along with the face to create geometry that would allow me to include this "baffle" as a group in my mesh. After exporting to .unv and using ideasUnvToFoam I get the following output:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.1.1-221db2718bbb
Exec : ideasUnvToFoam baffle.unv
Date : Dec 16 2012
Time : 10:55:36
Host : ""
PID : 30004
Case : /state/partition1/home/jfoster533/run/baffle
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Processing tag:164
Starting reading units at line 3.
l:1
units:" SI: Meter (newton)"
unitType:2
Unit factors:
Length scale : 1
Force scale : 1
Temperature scale : 1
Temperature offset : 273.15


Processing tag:2420
Skipping tag 2420 on line 9
Skipping section at line 9.

Processing tag:2411
Starting reading points at line 20.
Read 15447 points.

Processing tag:2412
Starting reading cells at line 30917.
First occurrence of element type 11 for cell 1 at line 30918
First occurrence of element type 41 for cell 452 at line 32271
First occurrence of element type 111 for cell 15877 at line 63121
Read 69975 cells and 15425 boundary faces.

Processing tag:2467
Starting reading patches at line 203073.
For group 1 named baffle trying to read 1833 patch face indices.
For group 2 named inlet trying to read 68 patch face indices.
For group 3 named outlet trying to read 68 patch face indices.
For group 4 named wall trying to read 13456 patch face indices.

Of 15425 so-called boundary faces 1833 belong to two cells and are therefore internal
Sorting boundary faces according to group (patch)
0: baffle is faceZone
1: inlet is patch
2: outlet is patch
3: wall is patch

Constructing mesh with non-default patches of size:
inlet 68
outlet 68
wall 13456

Adding cell and face zones
Face Zone baffle 1833
ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed.
Aborted

I would greatly appreciate any advice as to how to work around this problem. I have also tried to seperate the model into two solids: one above the baffle and one below and build a compound solid from the two. I was able to export this to .unv as well with the very same failure as listed above.
jfoster533 is offline   Reply With Quote

Old   December 17, 2012, 05:00
Default
  #11
New Member
 
Join Date: Mar 2012
Posts: 18
Rep Power: 14
anton_lias is on a distinguished road
Quote:
Originally Posted by anton_lias View Post
2. try NOT to use the operation "partition".
"ideasUnvToFoam: ideasUnvToFoam.C:1269: int main(int, char**): Assertion `noveau > -1' failed." I got that error too, when I used "parition".
anton_lias is offline   Reply With Quote

Old   December 24, 2012, 07:11
Default
  #12
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
Apply this patch to ideasUnvToFoam.C

You should be able to view the baffle as a faceZone in paraview. You can then use createBaffles to make the baffle patch.

There may be other issues though to do with internal faces, I'll have to think about it.
Attached Files
File Type: patch ideasUnvToFoam.patch (641 Bytes, 389 views)
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   December 29, 2012, 12:07
Default
  #13
New Member
 
Joe Foster
Join Date: Nov 2012
Posts: 4
Rep Power: 13
jfoster533 is on a distinguished road
Laurence,
Your patch did the trick. I was able to successfully produce the internal zero thickness walls that I was after. Thanks for you help!
jfoster533 is offline   Reply With Quote

Old   February 12, 2013, 18:11
Default
  #14
New Member
 
Andrea Pisa
Join Date: Feb 2013
Posts: 6
Rep Power: 13
Pisolino is on a distinguished road
Quote:
Originally Posted by l_r_mcglashan View Post
Apply this patch to ideasUnvToFoam.C

You should be able to view the baffle as a faceZone in paraview. You can then use createBaffles to make the baffle patch.

There may be other issues though to do with internal faces, I'll have to think about it.
Hi all, i'm quite a newbie, how can i use the patch file? i simply pasted the 2 lines in the ideasUnvToFoam.C file around line 909, then i saved. Despite of that my unv file, realized with partition doesn't work again...
the internal face is the error
Pisolino is offline   Reply With Quote

Old   February 19, 2013, 21:27
Default
  #15
New Member
 
Joe Foster
Join Date: Nov 2012
Posts: 4
Rep Power: 13
jfoster533 is on a distinguished road
I am new at this as well, but I will try to help you. Copy the ideasUnvToFoam.patch file to the folder containing ideasUnvToFoam.C. In a terminal, enter the command 'patch ideasUnvToFoam.C ideasUnvToFoam.patch. The code will be patched and you can recompile the application. Worked for me anyway.
jfoster533 is offline   Reply With Quote

Old   March 13, 2013, 15:15
Default
  #16
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
Quote:
Originally Posted by l_r_mcglashan View Post
Apply this patch to ideasUnvToFoam.C

You should be able to view the baffle as a faceZone in paraview. You can then use createBaffles to make the baffle patch.

There may be other issues though to do with internal faces, I'll have to think about it.
Hi Lawrence!

As Lenin said: "Patching is good. Reporting is better". Have you ever reported this patch as a bug at http://www.openfoam.org/bugs/ ? I'm asking because the error which it fixes still occurs in 2.2.x

Please do so the next time. If not for everyone else then for your convenience: that way you won't have to patch your own installation once a new OF-version comes out

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   March 14, 2013, 05:01
Default
  #17
Senior Member
 
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23
l_r_mcglashan will become famous soon enough
I didn't add it before because I hadn't tested it and the code was hard to follow, but seeing as nobody has complained about the patch so far it has now been added to the repository.
__________________
Laurence R. McGlashan :: Website
l_r_mcglashan is offline   Reply With Quote

Old   June 12, 2013, 05:02
Default ideasUnvToFoam
  #18
New Member
 
Join Date: Feb 2013
Posts: 6
Rep Power: 13
Ledeniso is on a distinguished road
Quote:
Originally Posted by jfoster533 View Post
I am new at this as well, but I will try to help you. Copy the ideasUnvToFoam.patch file to the folder containing ideasUnvToFoam.C. In a terminal, enter the command 'patch ideasUnvToFoam.C ideasUnvToFoam.patch. The code will be patched and you can recompile the application. Worked for me anyway.

Hello JFoster,
i would like to know: How to recompile the appication,
i have alredy copied the ideasUnvToFoam into the directory containing ideasUnvToFoam.C

The step with/in the terminal is also alredy done, but it does not change anything, i do not know how to "recompile"

What is the next step afterthe step in the erminal?

To find the Folder, i just searched from the root after ideasUnvToFoam and find the folder under:
/opt/openfoam211/applications/utilities/mesh/conversion/ideasUnvToFoam

Thank you very much for your patch and for any help

Leden...
Ledeniso is offline   Reply With Quote

Old   June 13, 2013, 02:08
Default
  #19
Member
 
laurentb's Avatar
 
Laurent B
Join Date: Jun 2009
Location: Lille, FRANCE
Posts: 70
Rep Power: 16
laurentb is on a distinguished road
>cd /opt/openfoam211/applications/utilities/mesh/conversion/ideasUnvToFoam
>sudo su
#source /opt/openfoam211/etc/bashrc
#patch ideasUnvToFoam.c ideasUnvToFoam.patch
#wmake
Ledeniso and Matt_h like this.

Last edited by laurentb; June 24, 2013 at 05:39.
laurentb is offline   Reply With Quote

Old   October 5, 2013, 00:23
Default
  #20
New Member
 
Join Date: Oct 2013
Posts: 9
Rep Power: 12
Matt_h is on a distinguished road
Thanks for the answers, I am having the same error.

I want to try and apply the patch but I don't have the privileges to access /opt..

I'm fairly new to linux and am trying to work out how to access that folder to apply the patch as described by the above post.

Any help much appreciated

Edit. Managed to apply the patch but still getting the error. Any ideas?
Burak_1984 likes this.

Last edited by Matt_h; October 6, 2013 at 19:54.
Matt_h is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Salome] ideasUnvToFoam Error: Assertion `nouveau > -1' failed GerhardHolzinger OpenFOAM Meshing & Mesh Conversion 0 January 29, 2019 10:23
Generate Parts Using Named Selection jonasohlsson ANSYS 1 March 14, 2016 04:32
[Salome] ideasUnvToFoam problem with internal groups s.marcocalero OpenFOAM Meshing & Mesh Conversion 0 May 31, 2013 11:48
[Salome] ideasUnvToFoam Dazzler OpenFOAM Meshing & Mesh Conversion 0 November 27, 2012 03:14
Creating 100 derived parts / Splitting derived parts for mass flux calculation xamo STAR-CCM+ 8 September 29, 2009 05:35


All times are GMT -4. The time now is 19:42.