CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

star-ccm mesh to O\/F

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree7Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   September 18, 2012, 14:38
Default
  #41
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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.
wyldckat is offline   Reply With Quote

Old   September 19, 2012, 04:19
Default
  #42
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
Hey all!

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

Thanks!
emirust is offline   Reply With Quote

Old   September 19, 2012, 16:57
Default
  #43
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   September 20, 2012, 12:18
Default
  #44
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
emirust is on a distinguished road
Hey all!

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

Thanks for the easy way wyldckat!

E.
emirust is offline   Reply With Quote

Old   May 7, 2013, 05:31
Default
  #45
New Member
 
Slamer
Join Date: Jun 2010
Posts: 2
Rep Power: 0
Slamer is on a distinguished road
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.
Slamer is offline   Reply With Quote

Old   May 7, 2013, 16:45
Default
  #46
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   May 13, 2013, 08:23
Default
  #47
New Member
 
Slamer
Join Date: Jun 2010
Posts: 2
Rep Power: 0
Slamer is on a distinguished road
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.
Slamer is offline   Reply With Quote

Old   May 19, 2013, 15:52
Default
  #48
New Member
 
Join Date: May 2013
Posts: 6
Rep Power: 4
Jack220 is on a distinguished road
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
Jack220 is offline   Reply With Quote

Old   May 19, 2013, 16:01
Default
  #49
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: star-ccm mesh to O\/F

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 21, 2013, 13:46
Default
  #50
New Member
 
Join Date: May 2013
Posts: 6
Rep Power: 4
Jack220 is on a distinguished road
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
Jack220 is offline   Reply With Quote

Old   May 21, 2013, 17:28
Default
  #51
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
Attached Files
File Type: gz ccm26local220.tar.gz (2.9 KB, 456 views)
Artur and wolampire like this.
wyldckat is offline   Reply With Quote

Old   May 22, 2013, 06:12
Default
  #52
New Member
 
Join Date: May 2013
Posts: 6
Rep Power: 4
Jack220 is on a distinguished road
Thank you very much, Bruno! That works fine!
Jack220 is offline   Reply With Quote

Old   June 6, 2013, 02:54
Default
  #53
New Member
 
Alexander
Join Date: Feb 2013
Posts: 4
Rep Power: 4
WildSinner is on a distinguished road
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!
WildSinner is offline   Reply With Quote

Old   August 2, 2013, 10:21
Default
  #54
New Member
 
Vimaldoss Jesudhas
Join Date: Aug 2013
Posts: 15
Rep Power: 4
Sniper is on a distinguished road
Hi Alexander,

Any luck with your conversion from StarCCM to Fluent. I want to a similar thing, your inputs will be helpful
Sniper is offline   Reply With Quote

Old   August 17, 2013, 10:04
Default
  #55
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   March 23, 2014, 21:32
Default
  #56
New Member
 
Join Date: Mar 2014
Posts: 3
Rep Power: 3
wflo is on a distinguished road
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?
wflo is offline   Reply With Quote

Old   March 23, 2014, 23:48
Default
  #57
Senior Member
 
Ziad Boutanios
Join Date: Mar 2009
Location: Montréal, Canada
Posts: 113
Rep Power: 8
ziad is on a distinguished road
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.
ziad is offline   Reply With Quote

Old   March 27, 2014, 03:20
Default
  #58
Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 98
Rep Power: 4
shipman is on a distinguished road
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
shipman is offline   Reply With Quote

Old   March 28, 2014, 18:50
Default
  #59
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,318
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Quote:
Originally Posted by shipman View Post
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: star-ccm mesh to O\/F
wyldckat is offline   Reply With Quote

Old   March 30, 2014, 05:23
Default
  #60
Member
 
Baris (Heewa)
Join Date: Jan 2013
Location: Japan
Posts: 98
Rep Power: 4
shipman is on a distinguished road
Hi Bruno,

Thanks so much. It is working well
shipman is offline   Reply With Quote

Reply

Tags
.msh, .vrt, mesh conversion, star-ccm

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesh Transfer from ICEM to STAR CCM+ Waseem Siddique CD-adapco 4 February 12, 2009 07:02
Problem wih MESh in Star Design Waseem Siddique CD-adapco 3 January 28, 2009 08:19
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
basic of mesh refinement arya CFX 4 June 19, 2007 12:21
unstructured vs. structured grids Frank Muldoon Main CFD Forum 1 January 5, 1999 11:09


All times are GMT -4. The time now is 04:49.