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

From Star To OpenFOAM

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 15, 2010, 18:54
Default From Star To OpenFOAM
  #1
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
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
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 16, 2010, 09:45
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by andrea.pasquali View Post
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.
olesen is offline   Reply With Quote

Old   January 18, 2010, 07:41
Default
  #3
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
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
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 18, 2010, 07:48
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 777
Rep Power: 18
olesen will become famous soon enough
Quote:
Originally Posted by andrea.pasquali View Post
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 View Post
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".
Attached Files
File Type: gz wmakeFiles-libccmio.tar.gz (480 Bytes, 32 views)
olesen is offline   Reply With Quote

Old   January 18, 2010, 08:06
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
wyldckat is offline   Reply With Quote

Old   January 18, 2010, 09:50
Default
  #6
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
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
andrea.pasquali is offline   Reply With Quote

Old   January 18, 2010, 09:53
Default
  #7
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
OK,
I copied it into ThirdParty-1.6.x and now it's running
Thank you very much

Regards
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 19, 2010, 10:33
Default
  #8
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
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
andrea.pasquali is offline   Reply With Quote

Old   January 19, 2010, 11:08
Default
  #9
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
Another question
4) Can I use the .ccmp file in paraview?

thank you
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 19, 2010, 18:23
Default
  #10
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 185
Rep Power: 9
JBeilke is on a distinguished road
Quote:
Originally Posted by andrea.pasquali View Post
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.
JBeilke is offline   Reply With Quote

Old   January 20, 2010, 05:27
Default
  #11
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
Thank you very much Joern,
best regards

Andrea
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 21, 2010, 08:03
Default
  #12
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
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
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 21, 2010, 18:23
Default
  #13
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 185
Rep Power: 9
JBeilke is on a distinguished road
Quote:
Originally Posted by andrea.pasquali View Post
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".
JBeilke is offline   Reply With Quote

Old   January 21, 2010, 18:44
Default
  #14
Senior Member
 
Andrea Pasquali
Join Date: Sep 2009
Location: Germany
Posts: 142
Rep Power: 7
andrea.pasquali is on a distinguished road
Thank you Joern!
Ok, I know "ccm26ToFoam".
And for the converse way? How can I export a mesh from OF to StarCCM+?

Thanks
__________________
Andrea Pasquali
andrea.pasquali is offline   Reply With Quote

Old   January 22, 2010, 06:35
Default
  #15
Senior Member
 
Joern Beilke
Join Date: Mar 2009
Location: Dresden
Posts: 185
Rep Power: 9
JBeilke is on a distinguished road
CCM+ can read fluent data. So use for instance "foamToFluent". Other ways are also possible.
JBeilke is offline   Reply With Quote

Reply

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
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
OpenFOAM Debian packaging current status problems and TODOs oseen OpenFOAM Installation 9 August 26, 2007 13:50
Difference between STAR Ed and Te to OpenFOAM epsilon and k michael OpenFOAM Running, Solving & CFD 0 April 7, 2006 10:22
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 21:47.