|July 22, 2013, 03:44||
foamToCGNS and cgnsToFoam for OpenFOAM-2.1.1
Join Date: Mar 2013
Location: Karlsruhe, Germany
Posts: 4Rep Power: 2
since there have been questions on how to compile the converters foamToCGNS and cgnsToFoam for the current OpenFOAM versions, I made a list of what needs to be changed in order to use them for OpenFOAM-2.1.1:
edit Turbomachinery/applications/utilities/postProcessing/dataConversion/foamToCGNS/ foamToCGNS.C:
line 161 old: volPointInterpolation pInterp(mesh, pMesh);
new: volPointInterpolation pInterp(mesh);
edit Turbomachinery/applications/utilities/postProcessing/dataConversion/foamToCGNS/ Make/options
change order of „RAS“ and „incompressible“
line 15 old: -I$(WM_PROJECT_DIR)/src/turbulenceModels/RAS/incompressible/lnInclude \
new: -I$(WM_PROJECT_DIR)/src/turbulenceModels/incompressible/RAS/lnInclude \
go to Turbomachinery/applications/utilities/mesh/conversion/cgnsToFoam
line 244 old: Foam::FatalErrorIn("CGNSBoundaryConditions::addBou ndaryPatch")
line 818 old: return Foam::mathematicalConstant:i*degree/180.0;
new: return Foam::constant::mathematical:i*degree/180.0;
line 1029 old: Foam::FatalErrorIn("computeMatchingCyclicFaces")
lines 1177/1178 old: patchPhysicalTypes
old: make TKLIBS="-L/usr/lib64 -ltcl8.4 -ltk8.4" TKOGLXLIB="-L/usr/X11R6/lib64 -lXmu -lXext"
new: make TKLIBS="-L/usr/lib64 -ltcl8.4 -ltk8.4" TKOGLXLIB="-L/usr/X11R6/lib64 -lXmu -lXext" TKINCS="-I/usr/include/tcl"
copy /src/finiteVolume/interpolation/pointVolInterpolation folder from OF-1.5-dev or OF-1.6-ext to current version and coyp links of files to the lnInclude directory
ignore errors „could not open file structure_t.H“, „could not open file cgnsmll.H“ and „could not open file checkerror.H“
|August 12, 2013, 08:00||
cgnsToFoam: command not found
Join Date: May 2013
Posts: 15Rep Power: 2
I have a mesh in cgns format and i am using OpenFOAM-2.1.1. I did the changes as told by glasenapp, but its still showing error
ln: creating symbolic link `mesh.cgns': File exists
./Allrun: line 10: cgnsToFoam: command not found
Any suggestions? Thanks a lot in advance for your help!
|February 22, 2014, 02:59||
foamToCGNS and cgnsToFoam for OpenFOAM-2.3.0
Join Date: Jul 2012
Posts: 1Rep Power: 0
I've been trying the last day to set up the cgns-tools with OF 2.3.0.
Here my experience and progress so far: as i usually not working on linux i post also some beginner stuff.
This is what finally made it (very close) to work:
1. Do the steps described by glasenapp.
- Note: Some of the steps are already included in the recent CGNS version
- Note: the lnInclude directory you'll find in your OpenFoam directory /src/finiteVolume/lnInclude. You can create links with (make sure you're SU):
ln -s /opt/openfoam230/src/finiteVolume/interpolation/pointVolInterpolation/* /opt/openfoam230/src/finiteVolume/lnInclude/
- apt-get install automake
- apt-get install libtool
3. run Allwmake in your /TurboMachinery/applications directory
After that i can now use the cgnsToFoam (Test-Case 1) was ok!
I get an error in test case 2: "FOAM FATA ERROR: More than six unsigned transforms detected: ...."
"From function void Foam::globalIndexAndTransform:determineTransforms( ) ..."
|Thread||Thread Starter||Forum||Replies||Last Post|
|cgnsToFoam error when converting ICEM mesh||glasenapp||OpenFOAM Meshing & Mesh Conversion||4||May 17, 2013 12:46|