|
[Sponsors] |
July 19, 2014, 13:42 |
Netgen cmake installation problem
|
#61 |
Member
Christian
Join Date: Apr 2014
Posts: 74
Rep Power: 12 |
Hi all,
I am trying to install Netgen Cmake on CentOS6.4. I unpacked the folder netgen-cmake-master, made a netgen folder and then tried the following: cd netgen cmake /home/chris/netgen-cmake-master and I get the following: [chris@localhost netgen]$ sudo cmake /home/chris/netgen-cmake-master -- Netgen Version: 5.2.0-dev -- Build type: 64bit CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find Togl1.7 (missing: TOGL1.7_LIBRARY TOGL1.7_INCLUDE_PATH) Call Stack (most recent call first): /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) cmake/modules/FindTogl1.7.cmake:124 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) CMakeLists.txt:244 (FIND_PACKAGE) How can I tell cmake where to find the libraries? I got Togl, Tk and Tcl from Netgen repositories and have them in a Tcl folder in the home directory! Any help would be appreciated! |
|
August 8, 2014, 02:12 |
|
#62 |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
Hi All,
Sorry if this post may be repeated but I didn't find the solution any ware I searched. I have created one simple STL cylinder file. I don't exactly what's wrong with STL but I believe there is something wrong that file only. The reason is snappy meshing complete geometry provided in blockMeshDict but my selected region is point inside the cylinder. I am unable to see any leak in STL. I taught to repair with netgen but STL doctor not showing any inconsistent triangles. Can somebody help me. I want to see is there any defected triangles or volume is closed or not. How to do that. PFA: STL file Regards, CFDUser_ |
|
August 8, 2014, 03:52 |
|
#63 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello there,
A good day to you. I am not sure posting requests for help in unrelated threads will help you find a solution to your problem. Please reconsider in the future. Anyway, I had a look at your STL file using an STL viewer, and found that half your triangles have the wrong orientation, hence resulting in snappyHexMesh meshing the entire domain instead of only the cylinder. For a solid to be valid, all the triangles must have their normals facing out of the solid domain. In your case, the normals of all your triangles must face outwards with respect to the cylinder volume. The STL "solids" - Inlet and Outlet are facing inwards, and so are all the triangles on the CylinderSurface connected to the Outlet. The triangles of CylinderSurface connected to the Inlet patch are facing the right way. Hope this helps. Have a nice day ahead! Philippose |
|
August 8, 2014, 04:33 |
|
#64 | |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
Quote:
By the way, I taught its the correct place to post my problem because I taught netgen may provide solution for this issue. Thanks & Regards, CFDUser_ |
||
August 8, 2014, 05:07 |
|
#65 |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
Still no success Philippose. I have attached the corrected stl file. Can you please have a look?
Regards CFDUser_ |
|
August 8, 2014, 05:24 |
|
#66 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hi,
I used some free STL viewer I found on the Internet to view the file since I dont have Netgen on the system I am working on currently. However, if you open the STL file using Netgen, the colours of the surface should (if I remember right) give you an insight into the orientation. Usually, the "outside" of a geometry is coloured in bright green, and the "inside" in darker green. Since "outside" and "inside" are determined by the Surface normals, you should see two different shades of green on the "outside" surfaces of your cylinder due to the wrongly oriented surface normals. Then, there is an option in one of the Netgen menus to change the orientation of surface normals. You can click one triangle, and tell Netgen to change all other triangles to the same orientation as that of the one you selected. Regards, Philippose |
|
August 8, 2014, 05:33 |
|
#67 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
The new STL you posted is still exactly the same as the old one... still the wrongly oriented surfaces.
I have added an image to this post in which you can see the different orientations... The blue surfaces are oriented in the opposite direction compared to the surfaces in brown/gold. Philippose |
|
August 8, 2014, 17:04 |
|
#68 | |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
Quote:
|
||
August 8, 2014, 17:33 |
|
#69 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hi again,
The software I used can be downloaded from: http://www.freestlview.com/ How are you creating the STL file originally? Are you using something like Salome-Platform, or a CAD software? Or are you programmatically creating it using some custom code? Have a great weekend! Philippose |
|
August 8, 2014, 17:52 |
|
#70 | |
Member
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13 |
Quote:
Happy weekend too Regards, CFDUser_ |
||
August 9, 2014, 06:10 |
|
#71 |
Senior Member
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 552
Rep Power: 25 |
Hello,
I think the best idea idea would be to try to do the same geometry and export it to STL using one of the many free CAD / Geometry tools, and see if snappyHexMesh works as you expect it to with that geometry. Once that works, you can compare the STL exported from that tool with the one you are writing using the custom code. That way, you will be able to figure out where the error in your code is hidden :-) It looks like a bug has sneaked into your code somewhere... Enjoy! Philippose |
|
November 13, 2014, 08:44 |
Netgen 5.3.1 on Ubuntu 12.04 LTS (64 bit)
|
#72 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Hi all,
I know that Netgen 4.9.13 is included in Ubuntu packages but I'd like to test the last version. Togl-1.7 and Tix8.4.3 should be already set. If I try to configure, compile and install Code:
./configure --with-tcl=/usr/lib/tcl8.5/ --with-tk=/usr/lib/tk8.5/ --with-togl=/usr/lib/Togl1.7 --enable-occ --with-occ=/usr/lib/ make sudo make install Code:
make all-recursive make[1]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1' Making all in libsrc make[2]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc' Making all in general make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/general' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/general' Making all in gprim make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/gprim' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/gprim' Making all in linalg make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/linalg' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/linalg' Making all in include make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/include' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/include' Making all in meshing make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/meshing' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/meshing' Making all in interface make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/interface' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/interface' Making all in csg make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/csg' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/csg' Making all in geom2d make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/geom2d' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/geom2d' Making all in occ make[3]: Entering directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/occ' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../libsrc/include -DOCCGEOMETRY -I/usr/lib//inc -I/usr/include/opencascade -D_OCC64 -DHAVE_IOSTREAM -DHAVE_LIMITS -DHAVE_LIMITS_H -DHAVE_IOMANIP -I"/usr/include/tcl8.5" -g -O2 -fopenmp -MT Partition_Inter2d.lo -MD -MP -MF .deps/Partition_Inter2d.Tpo -c -o Partition_Inter2d.lo Partition_Inter2d.cxx libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../libsrc/include -DOCCGEOMETRY -I/usr/lib//inc -I/usr/include/opencascade -D_OCC64 -DHAVE_IOSTREAM -DHAVE_LIMITS -DHAVE_LIMITS_H -DHAVE_IOMANIP -I/usr/include/tcl8.5 -g -O2 -fopenmp -MT Partition_Inter2d.lo -MD -MP -MF .deps/Partition_Inter2d.Tpo -c Partition_Inter2d.cxx -fPIC -DPIC -o .libs/Partition_Inter2d.o In file included from Partition_Inter2d.ixx:28:0, from Partition_Inter2d.cxx:33: Partition_Inter2d.jxx:31:30: fatal error: BRepAlgo_AsDes.hxx: No such file or directory compilation terminated. make[3]: *** [Partition_Inter2d.lo] Error 1 make[3]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc/occ' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1/libsrc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/user-a5/Downloads/netgen-5.3.1' make: *** [all] Error 2 Thanks for your attention. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Netgen] Netgen - News | philippose | OpenFOAM Meshing & Mesh Conversion | 0 | May 2, 2013 16:59 |
[Netgen] Netgen - Queries Batchmode & Verbose Mode | shivaprasad123 | OpenFOAM Meshing & Mesh Conversion | 1 | July 17, 2011 12:06 |
[Netgen] Netgen segfaults tetmeshing on Redhat EL5 | djvictoid | OpenFOAM Meshing & Mesh Conversion | 1 | June 11, 2011 07:53 |
[Netgen] Geometry > Netgen > OpenFOAM | ericnutsch | OpenFOAM Meshing & Mesh Conversion | 9 | February 22, 2010 08:39 |
[Netgen] Netgen v45 Release Candidate 2 | philippose | OpenFOAM Meshing & Mesh Conversion | 2 | April 29, 2008 17:58 |