CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... (http://www.cfd-online.com/Forums/openfoam-meshing-other/)
-   -   Conversion form .ccm to openFoam (http://www.cfd-online.com/Forums/openfoam-meshing-other/92513-conversion-form-ccm-openfoam.html)

ViktoriaE September 16, 2011 05:35

Conversion form .ccm to openFoam
 
Hello,

I'm trying to converge a .ccm file to openFoam but first I need ccm26ToFoam. By using the comand:

$FOAM_APP/utilities/mesh/conversion/Optional/Allwmake

I get this reply:


+ /opt/ThirdParty-2.0.1/AllwmakeLibccmio
+ cd libccmio-2.6.1
+ cpMakeFiles libccmio
+ set +x
cpMakeFiles libccmio .
+ wmake libso
'/opt/ThirdParty-2.0.1/platforms/linux64GccDPOpt/lib/libccmio.so' is up to date.
+ '[' -e /opt/ThirdParty-2.0.1/platforms/linux64GccDPOpt/lib/libccmio.so ']'
+ wmake ccm26ToFoam
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam201/src/finiteVolume/lnInclude -I/opt/openfoam201/src/meshTools/lnInclude -I/opt/ThirdParty-2.0.1/libccmio-2.6.1 -I/opt/ThirdParty-2.0.1/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/opt/openfoam201/src/OpenFOAM/lnInclude -I/opt/openfoam201/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linux64GccDPOpt/ccm26ToFoam.o -L/opt/openfoam201/platforms/linux64GccDPOpt/lib \
-lfiniteVolume -lmeshTools -L/opt/ThirdParty-2.0.1/platforms/linux64GccDPOpt/lib -lccmio -lOpenFOAM -ldl -lm -o /opt/openfoam201/platforms/linux64GccDPOpt/bin/ccm26ToFoam
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: warning: libtriSurface.so, needed by /opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: warning: libPstream.so, needed by /opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::fileName const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface()'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UIPstream::UIPstream(Foam::UPstream::commsT ypes, int, Foam::DynamicList<char, 0u, 2u, 1u>&, int&, int, bool, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::scalePoints(double)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::fileName const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::abort()'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::geometricSurfacePatch::operator==(Foam::geo metricSurfacePatch const&) const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::subsetMesh(Foam::List<bool> const&, Foam::List<int>&, Foam::List<int>&) const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::edgeOwner() const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::lab elledTri> const&, Foam::List<Foam::geometricSurfacePatch> const&, Foam::Field<Foam::Vector<double> > const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::init(int&, char**&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::geometricSurfacePatch::geometricSurfacePatc h()'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UIPstream::UIPstream(int, Foam::PstreamBuffers&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::triSurface::~triSurface()'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::operator=(Foam::triSurface const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::sortedEdgeFaces() const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::lab elledTri> const&, Foam::Field<Foam::Vector<double> > const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::List<Foam::lab elledTri>&, Foam::List<Foam::geometricSurfacePatch> const&, Foam::Field<Foam::Vector<double> >&, bool)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::addValidParOptions(Foam::HashTabl e<Foam::string, Foam::word, Foam::string::hash>&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::exit(int)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::faceTriangulation::faceTriangulation(Foam:: Field<Foam::Vector<double> > const&, Foam::face const&, Foam::Vector<double> const&, bool)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::~triSurface()'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::triSurface::write(Foam::fileName const&, bool) const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `typeinfo for Foam::triSurface'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::movePoints(Foam::Field<Foam::Ve ctor<double> > const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::DimensionedField<int, Foam::triSurfaceGeoMesh>::typeName'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::triSurface(Foam::triSurface const&)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::markZones(Foam::List<bool> const&, Foam::List<int>&) const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes , int, char const*, long, int)'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::writeStats(Foam::Ostream&) const'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libmeshTools.so: undefined reference to `Foam::triSurface::clearOut()'
/opt/openfoam201/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests()'
collect2: ld returned 1 exit status
make: *** [/opt/openfoam201/platforms/linux64GccDPOpt/bin/ccm26ToFoam] Fehler 1


I'm using openFoam 2.0.1, which I has just installed on openSuse 11.3. Can somebody please help me to solve this problem?

Do I need to recompile gcc in order to compile openFoam first, like it is written in the
http://openfoamwiki.net/index.php/Ho...nFOAM#Preamble
Or can I avoid it by this problem?

Thanks in advance!

With regards,
Viktoria

wyldckat November 29, 2011 17:40

Greetings Viktoria,

Sorry for the really late reply, but I only saw your post now...
Anyway, the solution is already posted here: http://www.cfd-online.com/Forums/ope...tml#post316994 - post #29. I haven't tested it with the openSUSE version but it should work.

Best regards,
Bruno


All times are GMT -4. The time now is 07:46.