CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   From Star To OpenFOAM (https://www.cfd-online.com/Forums/openfoam/71815-star-openfoam.html)

andrea.pasquali January 15, 2010 17:54

From Star To OpenFOAM
 
Hello,
I got Star model files (.ccmp .ccmg .mdl).
How can convert it in OF format? I had not the .vtr file.
I tried with "starToFoam" but I think I'm wronging something...
Can anyone help me?
Thanks in advance

Andrea

olesen January 16, 2010 08:45

Quote:

Originally Posted by andrea.pasquali (Post 242773)
Hello,
I got Star model files (.ccmp .ccmg .mdl).
How can convert it in OF format? I had not the .vtr file.
I tried with "starToFoam" but I think I'm wronging something...

"starToFoam" converts vrt/cel/bnd files that use pro-STAR v3.x format.

"star4ToFoam" converts vrt/cel/bnd files that use pro-STAR v4.x format.

"ccm26ToFoam" converts ccm geometry files (ccmg) and is normally found under applications/utilities/mesh/conversion/Optional. Be aware that it may not handle separate calculation domains (eg, fluid/solid/porosity) very nicely though. If you experience any strange problems, you might also try simply saving the mdl as ASCII to get the vrt/cel/bnd files and use star2ToFoam.

andrea.pasquali January 18, 2010 06:41

Hi Mark,
Thank you very much for your help,

First, I tried to compile "ccm26ToFoam" with ./Allwmake but It seems don't work fine
Quote:

+ cd /usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/ThirdParty-1.6.x
+ ./AllwmakeLibccmio
+ packageDir=libccmio-2.6.1
+ '[' '!' -d libccmio-2.6.1 ']'
+ '[' -d libccmio-2.6.1 -a '!' -d libccmio-2.6.1/Make ']'
+ cp -r wmakeFiles/libccmio/Make libccmio-2.6.1/Make
cp: cannot stat `wmakeFiles/libccmio/Make': No such file or directory
+ '[' -d libccmio-2.6.1/Make ']'
+ '[' -e /usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/OpenFOAM-1.6.x/lib/linux64GccDPOpt/libccmio.so ']'
If I try to run wmake into ccm26ToFoam directory I obtain:
Quote:

Making dependency list for source file ccm26ToFoam.C
SOURCE=ccm26ToFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/OpenFOAM-1.6.x/src/finiteVolume/lnInclude -I/usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/OpenFOAM-1.6.x/src/meshTools/lnInclude -I/usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/ThirdParty-1.6.x/libccmio-2.6.1 -I/usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/ThirdParty-1.6.x/libccmio-2.6.1/lnInclude -IlnInclude -I. -I/usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/OpenFOAM-1.6.x/src/OpenFOAM/lnInclude -I/usr/software/OpenFOAM/CentOS-5.3_x86-64/1.6.x/OpenFOAM-1.6.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ccm26ToFoam.o
ccm26ToFoam.C:47:19: error: ccmio.h: No such file or directory
ccm26ToFoam.C:164: error: variable or field ‘CheckError’ declared void
ccm26ToFoam.C:164: error: ‘CCMIOError’ was not declared in this scope
ccm26ToFoam.C:164: error: expected primary-expression before ‘const’
make: *** [Make/linux64GccDPOpt/ccm26ToFoam.o] Error 1
Second, How can I save the mdl in ASCII? I can't open it with gedit. Do I need to make it by Star?

Thanks

olesen January 18, 2010 06:48

1 Attachment(s)
Quote:

Originally Posted by andrea.pasquali (Post 242924)
If I try to run wmake into ccm26ToFoam directory I obtain:

I don't know why the Make files/options are missing (on your installation or in general). I've attached what I have.

Quote:

Originally Posted by andrea.pasquali (Post 242924)
Second, How can I save the mdl in ASCII? I can't open it with gedit. Do I need to make it by Star?

Open pro-STAR, use "Save As Coded".

wyldckat January 18, 2010 07:06

Greetings,

The Make files are missing since ThirdParty 1.5. They are also available here.
And it has also been reported here, although not clearly has being ccm26ToFoam, just libccmio.

Best regards,
Bruno

andrea.pasquali January 18, 2010 08:50

Hi,
Where shall I copy the wmakeFiles? I copied it into OpenFOAM-1.6.x but the ccm26ToFoam still don't work.
Have I to modify "files" and "options"?

Thanks
Andrea

andrea.pasquali January 18, 2010 08:53

OK,
I copied it into ThirdParty-1.6.x and now it's running
Thank you very much

Regards

andrea.pasquali January 19, 2010 09:33

Hi,
I have other questions about Star VS OF (sorry but I don't know Star).
1) I translated the .ccmg file in OF with ccm26ToFoam and it's quite ok. I have strange cellZones into my shell. Can I delete them?
2) My .mdl come from Star CCM+. Can I save it "as coded" with Star CCM+ to get the vrt/cel/bnd files?
3) I tried to re-translate the OF mesh with foamToStar and OF created the vrt/cel/bnd files. Can I open them with Star CCM+? Is it possible to translate the OF mesh in .nas (or .stl) format?

Thanks

Andrea

andrea.pasquali January 19, 2010 10:08

Another question
4) Can I use the .ccmp file in paraview?

thank you

JBeilke January 19, 2010 17:23

Quote:

Originally Posted by andrea.pasquali (Post 243082)
2) My .mdl come from Star CCM+. Can I save it "as coded" with Star CCM+ to get the vrt/cel/bnd files?

A *.mdl comes from StarCD and not from CCM+. Just use the "save as coded" within ProStar to get the files you want.

Use the EnSight-Format If you want to postprocess StarCD cases with paraview. It might work.

andrea.pasquali January 20, 2010 04:27

Thank you very much Joern,
best regards

Andrea

andrea.pasquali January 21, 2010 07:03

Hello,
I would like to know how StarCCM+ works, what file it creates, etc...
Can I only translate mesh from StarCD in OF or is there also a way to translate mesh from StarCCM+ in OF?

Thanks for any reply

JBeilke January 21, 2010 17:23

Quote:

Originally Posted by andrea.pasquali (Post 243283)
Hello,
I would like to know how StarCCM+ works, what file it creates, etc...
Can I only translate mesh from StarCD in OF or is there also a way to translate mesh from StarCCM+ in OF?

Thanks for any reply

You export a ccm-File from CCM+ and use "ccm26ToFoam".

andrea.pasquali January 21, 2010 17:44

Thank you Joern!
Ok, I know "ccm26ToFoam".
And for the converse way? How can I export a mesh from OF to StarCCM+?

Thanks

JBeilke January 22, 2010 05:35

CCM+ can read fluent data. So use for instance "foamToFluent". Other ways are also possible.


All times are GMT -4. The time now is 19:15.