Thanks ziad you were right. I just needed to add the necessary folders for an openfoam project. I then placed the ccm file into the project folder and ran the ccmtofoam command to populate the polymesh folder for the conversion to work. I appreciate the help.
|
Quote:
Thank you for your detailed instruction. I'm new to OpenFOAM and I use OpenFOAM-2-1-1. I followed #51 step by step, after I ran the ccm26local, I got an error, so I didn't get instructions the script gives. The error is kind of complex for me and I don't know how to show it to you. So can you help me with this? Thanks, Pengchuan |
Hi wang,
Post your error here then may i can help to you... B |
1 Attachment(s)
Hi Baris,
Thank you for you help. The error is in the attachment. I couldn't post it here. It says that I have more than 10 images, which makes me confused. Thank you again. Pengchuan |
Hi wang,
just let me know that when you run the ./ccm26local and saw the following line Have you contacted CD-Adapco and received the libccmio package? (yes/no): Did you write here yes or only y..you should write directly yes then it will work well. And also check again whether you are in the correct folder (cd ccm26local220)or not in terminal. Hope this helps.. B |
Hi Baris,
I did answer "yes" in the terminal. Thanks, Pengchuan |
So it works fine or still gives same error?
|
Hi Baris,
It still gives the same error make: *** [Make/linuxGccDPOpt/ccm26ToFoam.o] Error 1 after that the compile stops. Thanks, Pengchuan |
ohh Wang ok i got it...your version 2.1.x but if you follow from post #51 which is for v.2.2.x
so please follow in post 27, with the file in post 29 work for OpenFoam 2.1.1 I think that it will work fine. Best regards. B. |
Hi Baris,
Thank you for your quick reply. I followed your advice, I downloaded the file in #29 and follow the instruction in #27. However, I still get some errors. + ./AllwmakeLibccmio downloading libccmio-2.6.1.tar.gz from https://wci.llnl.gov/codes/visit/3rd...o-2.6.1.tar.gz --2014-04-02 01:01:55-- https://wci.llnl.gov/codes/visit/3rd...o-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-04-02 01:01:56 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/pechwang/OpenFOAM/pechwang-2.1.1/platforms/linuxGccDPOpt/lib/libccmio.so ] + wmake ccm26ToFoam Making dependency list for source file ccm26ToFoam.C SOURCE=ccm26ToFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/meshTools/lnInclude -I/home/pechwang/OpenFOAM/pechwang-2.1.1/Optional/libccmio-2.6.1 -I/home/pechwang/OpenFOAM/pechwang-2.1.1/Optional/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/ccm26ToFoam.o ccm26ToFoam.C:46:19: fatal error: ccmio.h: No such file or directory compilation terminated. make: *** [Make/linuxGccDPOpt/ccm26ToFoam.o] Error 1 So which file do I need to use, from #27 or from #29 Thanks, Pengchuan |
you should use file from #29 and follow the instruction from #27. It should work, bcs i tried and works fine. By the way, if you ask my opinion, you just wanna convert the mesh then easily download last version of OP 2.3.0
and change by running: gedit ~/.bashrc as source /opt/openfoam230/etc/bashrc then follow post #51. after you convert your mesh then you can reset .bashrc file as opt/openfoam211/etc/bashrc B |
1 Attachment(s)
Hiya,
thanks for writing this script! Unfortunately, it doesn't work for me. Maybe the reason is that I'm trying with OF230? I do not really want to install OF2.2.x (using Ubuntu 14.04 it takes some time to compile the source code), but maybe I will have to give it a try. last error is: ccm26ToFoam.C:46:19: fatal error: ccmio.h: No such file or directory If you have any remark, please find attached the error file. |
2 Attachment(s)
Okay, thanks, it works with OpenFOAM-2.2.2!
However, I now have the problem that I am not sure whether the conversion process is doing the right job. When I open the converted mesh in paraView, under Information/Statistics/Number_of_cells a far higher amount of cells is displayed than in the original StarCCM mesh. Paraview suggests that the topology has changed. However, if I run checkMesh it tells me the right statistics and the right number of cells. Now I don't have an idea how to check whether the problem is on the paraFoam displaying side or on the side of the mesh conversion. Any ideas? I have attached both grids. You can see, that some of the rectangles of the surface mesh are divided into several triangles. |
Quote:
|
Greetings to all!
I've finished creating a git repository that has the instructions and part of the needed code for building and installing the ccm26ToFoam utility. The installation instructions are available in the main page of the new repository: localCCM26ToFOAM Best regards, Bruno |
Hi guys,
is there anyone who has installed ccm226tofoam in OF v1606?? Best regards Francesco |
Quote:
|
Quote:
|
All times are GMT -4. The time now is 01:21. |