|
[Sponsors] |
How to include CGNS during build.bash compilation? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 22, 2013, 14:18 |
How to include CGNS during build.bash compilation?
|
#1 |
Senior Member
|
Dear engriders,
I folllowed the link below to install engrid: http://engits.eu/wiki/index.php/Installation It is a good work. Thanks! However it did not install CGNS. Could you tell me how to reconfigure and rebuild for CGNS? Regards, Aerothermal |
|
January 22, 2013, 15:03 |
|
#2 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
Hello,
I haven't used CGNS for quite some time now. Generally it boils down to downloading CGNS and installing it. Afterwards you update the enGrid *.pro files such that the include files and libraries can be found. Which code do you want to use? It might be easier to add an export function for your code, rather than hassling around with CGNS. CGNS allows many different ways of organising a file and not every way is understood by every software. Cheers, Oliver |
|
January 22, 2013, 15:17 |
|
#3 |
Senior Member
|
Dear Oliver,
I tried to use CGNS option in Engrid menu and it told me that CGNS was not compiled. Actually I am trying to use Engrid as a translation tool from OpenFoam to CGNS. CGNS is a format that is common to CFD++ and OpenFoam. Other formats may be VGRID, UGRID/AFLR, Plot3D, UNSFast, Fluent, STARCD. I already used foamToCgns and cgnsToFoam in OF1.5 and it works but I am looking for an alternative. Regards, Last edited by aerothermal; January 22, 2013 at 15:17. Reason: From OpenFOam to CGNS |
|
January 22, 2013, 15:26 |
|
#4 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
In enGrid there is currently only an export function to CGNS and I don't think that an import function is likely to be implemented soonish. It might, however, happen that import/export functionality for Fluent will be implemented -- it depends a bit on commercial demand, but it appears as if there could be some ...
If you still want to try: Put "DEFINES += CGNS_SUPPORT" into the libengrid.pro file (src/libengrid/libengrid.pro). You also need to make sure that the headers and the libraries can be found LIBS += ... INCLUDEPATH += ... Take a look at engrid.pro.app to see some usage examples. 'hope this helps, Oliver |
|
January 22, 2013, 15:36 |
|
#5 |
Senior Member
|
Hi,
Thank you Oliver. See that I am using Ubuntu 12.10. Some questions: 1) in which section (or line) I should include DEFINES += CGNS_SUPPORT? 2) should LIBS and INCLUDEPATH be place in same file? Where? After changing libengrid.pro, what I need to do? Just run? Do I need to make? What are the commands next? Regards, Aerothermal |
|
January 22, 2013, 15:40 |
|
#6 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
INCLUDEPATH is probably needed in libengrid.pro
LIBS will probably be needed in engrid.pro.app The DEFINES += line can go to the top of the file. afterwards run qmake engrid.pro make (-j4) Of course you have to figure out where the headers and libraries are -- unless they are in a standard place in which case you might not have to add anythin, apart from the DEFINES statement. |
|
January 22, 2013, 15:55 |
|
#7 | |
Senior Member
|
OK. I did that.
But the compilation now did not pass the vtk. Quote:
|
||
January 22, 2013, 16:17 |
|
#8 | ||
Senior Member
|
That error was gone by coding
Quote:
However, when CGNS lines are included in libengrid.pro the compilation stops at, Quote:
|
|||
January 22, 2013, 16:27 |
|
#9 | |
Senior Member
|
What I need to include here?
Quote:
And LIBS? What should I specify there? Is it a path? Or which library? |
||
January 22, 2013, 16:30 |
|
#10 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
yes, for example:
INCLUDEPATH += /usr/local/cgns/include LIBS is probably something like LIBS += -lcgns or LIBS += -L/usr/local/cgns/lib LIBS += -lcgns Just guessing, you have to look what the real locations and file names are! |
|
January 22, 2013, 17:01 |
|
#11 | |
Senior Member
|
not working yet.
libengrid compiled now engrid is not. Quote:
|
||
November 30, 2013, 17:23 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Just to let you know that this has been fixed in this commit: https://github.com/wyldckat/engrid/c...9463040bd3da33 - as reported here: https://github.com/enGits/engrid/issues/42 Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 16:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |