|
[Sponsors] | |||||
|
|
|
#1 |
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Super Moderator
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 94
Rep Power: 6 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
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 14:17. Reason: From OpenFOam to CGNS |
|
|
|
|
|
|
|
|
#4 |
|
Super Moderator
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 94
Rep Power: 6 ![]() |
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 |
|
|
|
|
|
|
|
|
#5 |
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
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 |
|
|
|
|
|
|
|
|
#6 |
|
Super Moderator
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 94
Rep Power: 6 ![]() |
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. |
|
|
|
|
|
|
|
|
#7 | |
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
OK. I did that.
But the compilation now did not pass the vtk. Quote:
|
||
|
|
|
||
|
|
|
#8 | ||
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
That error was gone by coding
Quote:
However, when CGNS lines are included in libengrid.pro the compilation stops at, Quote:
|
|||
|
|
|
|||
|
|
|
#9 | |
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
What I need to include here?
Quote:
And LIBS? What should I specify there? Is it a path? Or which library? |
||
|
|
|
||
|
|
|
#10 |
|
Super Moderator
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 94
Rep Power: 6 ![]() |
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! |
|
|
|
|
|
|
|
|
#11 | |
|
Senior Member
Guilherme da Silva
Join Date: Aug 2010
Location: Sao Paulo - Brazil
Posts: 103
Rep Power: 4 ![]() |
not working yet.
libengrid compiled now engrid is not. Quote:
|
||
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 15:15 |
| critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 03:01 |
| OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
| Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 07:21 |
| OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 10:46 |