CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Initialize OpenFOAM simulation with solution form StarCCM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2024, 06:27
Default Initialize OpenFOAM simulation with solution form StarCCM
  #1
Member
 
Join Date: Apr 2014
Location: N/A
Posts: 50
Rep Power: 12
FluentStarter is on a distinguished road
Dear all,

I'm working on a project where we at an earlier stage performed StarCCM+ simulations. However, due to some additional functionalities and also for validation purposes we want to run similar simulations in OpenFOAM (v2212). Specifically, we want to use an initial solution + mesh from a StarCCM simulation and continue the simulation in OpenFOAM.
I'm aware of the ccmToFoam functionality https://www.openfoam.com/documentati...C.html#details. This will allow me to port the mesh to OF.
However, I wonder what the most efficient way would be to port the initial field from a StarCCM solution to an initial field in the OF case. Does anyone have experience with that?

Best and thanks in advance.
FluentStarter is offline   Reply With Quote

Old   June 26, 2024, 07:00
Default
  #2
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
There are two main approaches to porting the initial field from a StarCCM+ simulation to an OpenFOAM case:
* Using ccmToFoam: While ccmToFoam can convert the mesh, it may not directly translate the initial field data. You'll need to manipulate the converted data to match OpenFOAM's format.
* Manual Conversion: Extract the initial field data from StarCCM+ in a format readable by OpenFOAM (e.g., ASCII). Then, use tools like Python scripts or text editors to convert the data structure and variable names to match OpenFOAM's requirements.
For efficiency, consider using a combination of both methods. Use ccmToFoam for the mesh and leverage it as a reference for manually converting the initial field data.
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Old   July 9, 2024, 07:39
Default
  #3
Member
 
Join Date: Apr 2014
Location: N/A
Posts: 50
Rep Power: 12
FluentStarter is on a distinguished road
Thanks for the response.

Indeed, I managed to transform the mesh to a mesh usable in OpenFoam. The key here was to simply export the mesh from StarCCM, not including solution data.

However, now I have an additional .csv file with the solution array (x, y, z, T,.....). Is there no existing way to interpolate those field onto the mesh? This has to be hardcoded?
FluentStarter is offline   Reply With Quote

Old   August 7, 2024, 10:05
Default
  #4
New Member
 
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17
moser_r is on a distinguished road
Did you manage to find any simple option for this? I am looking to do the same, and the ccmToFoam tool works nicely for the mesh. It is just frustrating that they did not include the additional code lines to convert the solution data! Unfortunately, I code in Fortran rather than C++, so have no idea where to start with modifying the ccmToFoam code, so might have to write my own converter from scratch.
moser_r is offline   Reply With Quote

Old   September 6, 2024, 04:54
Default
  #5
Member
 
Join Date: Apr 2014
Location: N/A
Posts: 50
Rep Power: 12
FluentStarter is on a distinguished road
I have not solved this issue yet. I will start looking at some possibilities again the next weeks.
FluentStarter is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsteady Simulation from steady Solution hussein93 Main CFD Forum 2 February 8, 2024 08:49
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
Solving openfoam simulation from scratch ecetinkaya OpenFOAM 1 September 2, 2023 14:03
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 06:29
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


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