CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] star-ccm mesh to O\/F (https://www.cfd-online.com/Forums/openfoam-meshing/73356-star-ccm-mesh-o-f.html)

wyldckat September 18, 2012 14:38

Alright... if you had checked the last link I posted, you would have seen the respective command for openSUSE... OK, it's not very similar, but the idea is still there.

Anyway, assuming you're the administrator of the machine:
Code:

su -
#the command above will ask for the password of administrator

zypper install -t pattern devel_C_C++

#after installing, run:
exit

Then try build "libccmio" once again.

emirust September 19, 2012 04:19

Hey all!

Will the procedure in post 27, with the file in post 29 work on OpenFoam 2.1.1 ?

Thanks!

wyldckat September 19, 2012 16:57

Greetings emirust,

I haven't tested with 2.1.1, but I think it should work.

I don't have time to test it now, so why don't you test it and tell us if it worked or not!? ;)

Best regards,
Bruno

emirust September 20, 2012 12:18

Hey all!

I followed the procedure and built it on OF 2.1.1. Works well!

Thanks for the easy way wyldckat!

E.

Slamer May 7, 2013 05:31

Hi,
I am not able to compile it with OpenFOAM 2.2.0

I compile it with :
sudo bash
sudo wmake

and I get this error :
Code:

Making dependency list for source file ccm26ToFoam.C
SOURCE=ccm26ToFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I/opt/ThirdParty-2.2.0/libccmio-2.6.1 -I/opt/ThirdParty-2.2.0/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C: In function ‘int main(int, char**)’:
ccm26ToFoam.C:954:17: erreur: no matching function for call to ‘Foam::wallPolyPatch::wallPolyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:954:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:97:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:97:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::wallPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:87:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:87:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::wallPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:83:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:83:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:73:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:73:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:62:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:62:9: note:  candidate expects 6 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:49:7: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:49:7: note:  candidate expects 1 argument, 5 provided
ccm26ToFoam.C:966:17: erreur: no matching function for call to ‘Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:966:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:97:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:97:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::symmetryPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:87:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:87:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::symmetryPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:83:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:83:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:73:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:73:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:62:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:62:9: note:  candidate expects 6 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:49:7: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:49:7: note:  candidate expects 1 argument, 5 provided
ccm26ToFoam.C:979:17: erreur: no matching function for call to ‘Foam::emptyPolyPatch::emptyPolyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:979:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:97:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:97:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::emptyPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:87:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:87:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::emptyPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:83:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:83:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:73:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:73:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:62:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:62:9: note:  candidate expects 6 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:49:7: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:49:7: note:  candidate expects 1 argument, 5 provided
ccm26ToFoam.C:993:17: erreur: no matching function for call to ‘Foam::polyPatch::polyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:993:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:214:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:214:9: note:  candidate expects 1 argument, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:204:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:204:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::polyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:194:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:194:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::polyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:190:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:190:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:180:9: note: Foam::polyPatch::polyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:180:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:169:9: note: Foam::polyPatch::polyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:169:9: note:  candidate expects 6 arguments, 5 provided
make: *** [Make/linux64GccDPOpt/ccm26ToFoam.o] Erreur 1
root@sabre2:/opt/openfoam220/applications/utilities/mesh/conversion/Optional#
root@sabre2:/opt/openfoam220/applications/utilities/mesh/conversion/Optional#
root@sabre2:/opt/openfoam220/applications/utilities/mesh/conversion/Optional#
root@sabre2:/opt/openfoam220/applications/utilities/mesh/conversion/Optional#
root@sabre2:/opt/openfoam220/applications/utilities/mesh/conversion/Optional# wmake ccm26ToFoam
SOURCE=ccm26ToFoam.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/finiteVolume/lnInclude -I/opt/openfoam220/src/meshTools/lnInclude -I/opt/ThirdParty-2.2.0/libccmio-2.6.1 -I/opt/ThirdParty-2.2.0/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C: In function ‘int main(int, char**)’:
ccm26ToFoam.C:954:17: erreur: no matching function for call to ‘Foam::wallPolyPatch::wallPolyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:954:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:97:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:97:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::wallPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:87:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:87:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::wallPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:83:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:83:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:73:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:73:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:62:9: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:62:9: note:  candidate expects 6 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:49:7: note: Foam::wallPolyPatch::wallPolyPatch(const Foam::wallPolyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/wallPolyPatch.H:49:7: note:  candidate expects 1 argument, 5 provided
ccm26ToFoam.C:966:17: erreur: no matching function for call to ‘Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:966:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:97:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:97:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::symmetryPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:87:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:87:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::symmetryPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:83:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:83:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:73:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:73:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:62:9: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:62:9: note:  candidate expects 6 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:49:7: note: Foam::symmetryPolyPatch::symmetryPolyPatch(const Foam::symmetryPolyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/symmetryPolyPatch.H:49:7: note:  candidate expects 1 argument, 5 provided
ccm26ToFoam.C:979:17: erreur: no matching function for call to ‘Foam::emptyPolyPatch::emptyPolyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:979:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:97:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:97:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::emptyPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:87:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:87:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::emptyPolyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:83:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:83:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:73:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:73:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:62:9: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:62:9: note:  candidate expects 6 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:49:7: note: Foam::emptyPolyPatch::emptyPolyPatch(const Foam::emptyPolyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/emptyPolyPatch.H:49:7: note:  candidate expects 1 argument, 5 provided
ccm26ToFoam.C:993:17: erreur: no matching function for call to ‘Foam::polyPatch::polyPatch(const Foam::word&, int&, Foam::label&, Foam::label&, const Foam::polyBoundaryMesh&)’
ccm26ToFoam.C:993:17: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:214:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:214:9: note:  candidate expects 1 argument, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:204:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&, const Foam::polyBoundaryMesh&, Foam::label, const labelUList&, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:204:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::polyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:194:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&, const Foam::polyBoundaryMesh&, Foam::label, Foam::label, Foam::label)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:194:9: note:  no known conversion for argument 1 from ‘const Foam::word’ to ‘const Foam::polyPatch&’
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:190:9: note: Foam::polyPatch::polyPatch(const Foam::polyPatch&, const Foam::polyBoundaryMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:190:9: note:  candidate expects 2 arguments, 5 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:180:9: note: Foam::polyPatch::polyPatch(const Foam::word&, const Foam::dictionary&, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:180:9: note:  no known conversion for argument 4 from ‘Foam::label {aka int}’ to ‘const Foam::polyBoundaryMesh&’
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:169:9: note: Foam::polyPatch::polyPatch(const Foam::word&, Foam::label, Foam::label, Foam::label, const Foam::polyBoundaryMesh&, const Foam::word&)
/opt/openfoam220/src/OpenFOAM/lnInclude/polyPatch.H:169:9: note:  candidate expects 6 arguments, 5 provided

I don't know what do I miss ?
I modified the options file in Make/options as mentionned before but I'm not sure it points to the correct target. What file are supposed to be missing ?

Thanks in advance.

wyldckat May 7, 2013 16:45

Greetings Slammer and welcome to the forum!

OpenFOAM 2.2.0 had a bug in the "ccm26ToFoam.C" source code file. The fix is this one: https://github.com/OpenFOAM/OpenFOAM...8af7a51d41fc4b
You can edit the file and manually replace the text in red for the text in green ;)

Best regards,
Bruno

Slamer May 13, 2013 08:23

Hi,
I was not able to remeber where the git repo was.
It helps me more than expected :)

It compiles and 'work' on an exemple. Now, I just need to check if it does the right things.

Thanks a lot.:)

Jack220 May 19, 2013 15:52

Hi,

I'm using the Ubuntu Deb package version 2.2.0. I already changed the ccm26ToFoam.C as mentioned above. It still doesn't work. Do I need to do something else?

Thanks in advance

wyldckat May 19, 2013 16:01

Greetings Jack220 and welcome to the forum!

OK, after you've adapted the source code, what else did you do?
Did you follow the steps from post #37: http://www.cfd-online.com/Forums/ope...tml#post365682 :confused:

Best regards,
Bruno

Jack220 May 21, 2013 13:46

Hi Bruno,

thank you for your fast answer!

I went in the direction with my .ccm file and executed the command "ccm26ToFoam file.ccm". The following message appeared: "command not found".
But in "/opt/openfoam220/applications/utilities/mesh/conversion/Optional/ccm26ToFoam" I can see my "ccm26ToFoam.C"-file.

I can't do the steps described in post #37:

First of all, I had to create the "ThirdParty-xxx" directory, because I could'nt find it.

And when I execute "AllwmakeLibccmio" the following error occurs:
/opt/openfoam220/ThirdParty-2.2.0/AllwmakeLibccmio: 39: .: Can't open tools/makeThirdPartyFunctions

Best regards,

Jack

wyldckat May 21, 2013 17:28

1 Attachment(s)
Hi Jack,

Attached is a new and improved installation script, specifically created for OpenFOAM 2.2.0 and 2.2.x, based on the one from my old posts, namely #27.

To use it:
  1. Download the attached file.
  2. Unpack it:
    Code:

    tar -xf ccm26local220.tar.gz
  3. Go into the folder "ccm26local220" and run the script:
    Code:

    cd ccm26local220
    ./ccm26local

  4. Follow the instructions the script gives you.
Best regards,
Bruno

Jack220 May 22, 2013 06:12

Thank you very much, Bruno! That works fine!

WildSinner June 6, 2013 02:54

Hey all!

Can you help me?

I have done all of instructions of the post #51. Instalation have installed correct.



I have little experience in the use of Linux and OpenFoam.

I have mesh from StarCCM+ 8.02. par example ~/Desktop/new/star_CCM.ccm
I want to covert this mesh to Fluent.
I understand that I have to convert this mesh to FOAM and FOAM to Fluent.

Could you write commands or sequencing that need to run these?

thanks in advance!

Sniper August 2, 2013 10:21

Hi Alexander,

Any luck with your conversion from StarCCM to Fluent. I want to a similar thing, your inputs will be helpful

wyldckat August 17, 2013 10:04

Greetings to all!

It's somewhat simple to perform this conversion, but I would say that it is very likely to result in having a bad mesh on Fluent's side, due to the 2 step conversion process.

Any way, the steps are:
  1. On the command line, first copy a tutorial case from OpenFOAM's tutorials, because you're going to need a case to act as a base structure for having the intermediate mesh. For example:
    Code:

    cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity .
    cd cavity

  2. Then run the CCM converter on your CCM+ mesh:
    Code:

    ccm26ToFoam yourmesh.ccm
  3. Then export the current mesh to Fluent format:
    Code:

    foamMeshToFluent
  4. The resulting mesh file is placed automatically inside the folder "fluentInterface".
But as I said, prepare yourself for complaining about the resulting bad mesh :(

Best regards,
Bruno

wflo March 23, 2014 20:32

Once you finish the steps in the post #51. Next I tried to do the following:

ccm26ToFoam yourmesh.ccm

From here the terminal window gave me an error.


--> FOAM FATAL IO ERROR:
cannot find file

file: /home/wilmer/Downloads/ccm26local220/system/controlDict at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

I'm new to this. Could anyone tell me if I'm following the directions right? Any steps that I'm missing here?

ziad March 23, 2014 22:48

Set up your case properly including the full hierarchy of folders and files. The error means you need to have a system/ folder with a valid controlDict file in it.

shipman March 27, 2014 02:20

Hi Bruno,

I am using version 2.1.1 and first i downloaded file at post 29 and followed the procedure as you explained at post 27. However it gives following error:

HTML Code:

baris@BICER:~/OpenFOAM/baris-2.1.1/applications/ccmio$ ./ccm26local
+ ./AllwmakeLibccmio
downloading libccmio-2.6.1.tar.gz from https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz
--2014-03-27 16:14:11--  https://wci.llnl.gov/codes/visit/3rd_party/libccmio-2.6.1.tar.gz
Resolving wci.llnl.gov (wci.llnl.gov)... 198.128.246.10
Connecting to wci.llnl.gov (wci.llnl.gov)|198.128.246.10|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-03-27 16:14:12 ERROR 404: Not Found.

no download/libccmio-2.6.1.tar.gz to unpack
+ cd libccmio-2.6.1
./AllwmakeLibccmio: 61: cd: can't cd to libccmio-2.6.1
+ exit 1
+ [ -e /home/baris/OpenFOAM/baris-2.1.1/platforms/linux64GccDPOpt/lib/libccmio.so ]
baris@BICER:~/OpenFOAM/baris-2.1.1/applications/ccmio$


could you help to me how can i solve this problem.

Thanks in advance.

B

wyldckat March 28, 2014 17:50

Quote:

Originally Posted by shipman (Post 482343)
I am using version 2.1.1 and first i downloaded file at post 29 and followed the procedure as you explained at post 27. However it gives following error:

Quick answer - Try the one from post #51: http://www.cfd-online.com/Forums/ope...tml#post429003

shipman March 30, 2014 05:23

Hi Bruno,

Thanks so much. It is working well ;)


All times are GMT -4. The time now is 01:09.