Hello a a Good day :-)!
Its grey and definitely moving towards winter here :-O :-)! Just wanted to inform people who use Netgen for creating meshes for use in OpenFOAM.... The current SVN Version of Netgen available from the sourceforge project website allows meshes to be exported into the OpenFOAM 1.5 format directly from within the GUI :-)! After creating a mesh, choose "OpenFOAM 1.5+ Format" as the Export filetype in the "File -> Export Filetype" menu, and subsequently, export the mesh using the "File -> Export Mesh..." menu. Netgen will ask for a folder to be specified (which in our case would be typically the case folder). It then creates the sub-folders "constant" and "polyMesh" if they dont already exist, and writes the OpenFOAM mesh files into it. As of now, the patch names use the format: "patch<bc_num>" where "bc_num" are the boundary condition numbers specified for each of the boundaries in Netgen. It would be great if people could use the feature, and let me know if there is anything lacking, and what could be improved... For example.... 1. Does Netgen need to ask the user to put in a scaling factor for the x, y and z directions while exporting? Or is the extra step of using the OpenFOAM utility: "transformPoints" ok? 2. Patch names.... should there be a means of specifying that within Netgen itself, or is it ok to manually alter them later in the "boundary" file? etc...etc... Have a wonderful Sunday :-)! Philippose |
Hi Philippose
Great news. I'll definitely be using this feature. One feature I might want to request which isn't related to this feature is the possibility to record a journal/macro of the steps I take within Netgen. This way its much faster to create new meshes for almost identical geometries. regarding OF features, I personally don't need either of the two proposed since I do it all in bash scripts. I will report back when I get it built and generate some meshes. Best |
Hi again
When downloading the SVN the configure script and makefile.in is missing in different folders am I supposed to use the ones from the 4.9.11? Best |
Hello Linnemann,
A Good Afternoon to you :-)! When you download a version of Netgen direct from the SVN Repositories, always make sure that you run the following command in order to regenerate the configure files: autoreconf --install This command should be run in the main folder of the Netgen sourcecode and should be done before running "./configure". Dont use the configure files from older versions, because if there have been any changes you will miss them out, resulting in probable build failures... Hope this helps! Have a nice day ahead :-)! Philippose |
Hi it helped somewhat but now I'm getting this while running autoreconf --install
Code:
You should update your `aclocal.m4' by running aclocal. Best |
Just FIY.
I've built Netgen 4.9.11 and 4.9.12-svn for CentOS 5 with OpenCASCADE support. The prebuilt binaries including needed libraries can be found on https://sourceforge.net/projects/centfoam/ I will try and keep it updated regularly. Best |
Hello Linnemann,
A Good Evening to you :-)! Thanks a lot for maintaining binary releases of Netgen for CentOS :-)! I am sure it provide more people access to the tool....! I have been thinking about an RPM for Fedora for a while. Alberto and his colleague have created RPMs for OpenSuse too :-)! If I am not mistaken, the OpenSuse online RPM tools can also generate RPMs for other distributions of Linux.... just need to take some time out and see how to get it working! Have a great day! Philippose |
Hi,
you are right. The openSUSE buildservice can build packages for all the major linux distributions, debian and ubuntu included. For RPM-based distributions, it is relatively easy, since you need to create only one .spec file, and then build against all the targets you want (assuming they have the dependencies). I have no experience in using the build service for debian-based systems, but the team is supportive. Best, |
Hi guys, really sorry to post this here but although I've searched here and on the internet I can't seem to find it.
I'm having trouble installing correctly the togl package that netgen needs. I haven't found a installationg guide detailed enough for me to install it succesfully. If you could point me in the right direction it would be great. Thanks in advance Andre |
Hello Alberto,
A Happy New Year to you :-)! I have been trying to create RPM packages for Netgen-4.9.11 for Fedora 12 on my system since last evening, with only limited success... Would it be possible for you to let me have a peek at the spec file you used for creating the Netgen OpenSUSE RPM packages? Have a nice evening! Philippose |
Sure. I have to say most of the work on netgen was done by Andrea Florio.
You can download the .spec from the src.rpm (file-roller opens it) from here: http://software.opensuse.org/search?...t=ALL&q=netgen Code:
# norootforbuild |
Hi again :-)
Thanks a lot Alberto... that was amazingly fast :-)! Had a look at the spec file, and I think we might have some issues.... The same issues I have been literally battling with so far.... Basically, it looks like the Netgen system is not yet designed with installation (in a linux standard manner) in mind. Here are some of the problems I came across, and I am wondering how best these could be solved: 1. Netgen currently stores all the TCL script files also in the "bin" folder. A standard installation of Netgen using the RPM as it is built now, would end up copying all these TCL files along with the netgen executable into the "/usr/bin/netgen" folder, which is not a typical linux install 2. If the environment variable "NETGENDIR" is not set, netgen assumes that the TCL files are located in the same folder as the netgen executable.... hence the reason why a script file "netgen.sh" was used to change directory to "/usr/bin/netgen" 3. Netgen also uses an environment variable "NETGEN_USER_DIR" used as the location where the "ini" file with the recently used files are saved, as well as the user settings when the user selects "save options" in the "file" menu. In case this environment variable does not exist, it uses the current folder as the user directory. 4. During operation, Netgen typically creates two files "gmon.out" and "netgen.prof" as debug files. These files are written into the "NETGEN_USER_DIR" 5. I dont think the folder "/usr/bin/netgen" is writable by a normal user.... which implies, that all the files which netgen tries to write in points (3) and (4) will be denied access. I am wondering how to modify Netgen so that these issues can be solved in a more standardised manner.... anyway.... just wanted to let you know that there might be some unexpected behaviour by Netgen when installed using via the RPM. Just for the sake of completeness, here is a copy of my current spec file..... it creates a relocatable RPM, which by default installs into "/opt/netgen-4.9.11", and so far, the install and uninstall procedures seem to work without leaving anything else broken.... Code:
Name: netgen Thanks again Philippose |
netgen 4.9.12-dev on WinXP
Quote:
I also have OpenFOAM for windows (http://sourceforge.net/projects/openfoam-mswin/files/) installed.. After a little kicking and screaming (The SolutionDir macro didn't work for some reason, had to redo all include and library includes..) netgen built without any problems... I loaded up an iges file, generated a mesh and went to export as OpenFOAM mesh using the above menu option.. Export spat the dummy with errors, bit of digging, something to do with c_str method, as path name comes out as: Code:
Export mesh to file C:/cfd/simtest.... Please Wait! Code:
The syntax of the command is incorrect. I added a horrible hack to fix it (not good at cpp), but it now does work for me... That is, it creates the files.. have not looked at them yet.. Quote:
If you generate the mesh from say an iges file, will the output mesh for OpenFOAM be scaled the same? From the very quick play I've done so far.. it would be nice to do the boundary names in Netgen.. not critical, just nice.. Regards Neil Davey |
Hi,
where can I get complete tutorials of netgen ? Regards, Stephane. |
Hello Neil,
A Good Evening to you, and apologies for the delay in replying! Great to see that you were able to compile Netgen on Windows.... and specially, to see that it also worked with the Windows 7 SDK.... maybe I should install that too.... I wonder why you had a problem with "SolutionDir"... since you worked with Visual Studio 2008 Express, I expect the behaviour to have been the same on your system as it was on mine. Was this variable not defined at all? Or was it something different? About the issue with the back-slash / forward-slash in Windows.... again, its surprising that you had a problem, because so far I have not had any issues... did you browse to the folder you wanted to export into via the window that TCL popped up, or did you type out the path yourself in the box? Anyway, I shall look deeper into this as soon as I get back on to my system tomorrow evening. The idea of specifying the names of the patches directly in Netgen is something that I am also toying around with, and has been on my To-Do list for a while. Just looking for an elegent and efficient way of integrating it into Netgen. Thanks a lot for testing out Netgen, and ofcourse, you can always post problems or ideas at the Netgen Sourceforge website (look for Netgen sourceforge) in Google... should be the first result. Have a great Sunday and a good week ahead! Philippose |
Hello Stephane,
A set of complete tutorials for Netgen does not exist yet, but if you install Netgen (either windows or linux), or look into the sourcecode, you will see one PDF file in the "doc" directory called "ng4.pdf" if I remember right... This is the only actual documentation for Netgen.... I am sorry that the Mediawiki website for Netgen on Sourceforge has not been updated yet.... I have been meaning to get on to this for a while now, but havent been able to start on it yet.... If you have any specific questions, please feel free to either post here, or in the Netgen forums available on the Sourceforge project page. Have a nice day! Philippose |
Netgen manual
Hello Philippose,
Netgen is quite a good mesher ! But the manual at the svn Repository is not very actual. I get a manual from Joachim Schöberl long time ago, but it is more detailed, especially at the chapter "Using the Graphical User Interface" and i have the source manual as well. Please send me an E-mail and i will send it to you. I hope you will check it in at the svn Repository at sourceforge, so it can be further developed. Ggruber |
Hello Gruber,
A Good and snowy evening to you :-)! It would be great to have a more detailed version of the User Manual... its surprising that Joachim Schöberl has not checked this into the SVN already... shall talk to him about this. In the meantime, it would be nice if you could send me the PDF and the latex sources if you have those too.... my email address is: philippose.rajan (at) gmail (dot) com. I think I need to try and spend some time on the documentation... the PDF as well as the Mediawiki website.... hmmm... lets see how I can squeeze this into my usual work - home schedule.... :-)! Have a great evening ahead! Philippose |
Hello Gruber,
Could you, please, send me the manual of Netgen. My email address is stephane_sanchi (at) hotmail (dot) com Best regards, Stephane |
Hello Gruber,
Could you, please, send me the manual of Netgen. My email address is rivera(at)epsem(dot)upc(dot)edu Best regards, juanjo |
All times are GMT -4. The time now is 11:23. |