|
[Sponsors] |
Initialize OpenFOAM simulation with solution form StarCCM |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Apr 2014
Location: N/A
Posts: 50
Rep Power: 12 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13 ![]() |
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/ |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Apr 2014
Location: N/A
Posts: 50
Rep Power: 12 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Richard Moser
Join Date: Aug 2009
Posts: 29
Rep Power: 17 ![]() |
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.
|
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Join Date: Apr 2014
Location: N/A
Posts: 50
Rep Power: 12 ![]() |
I have not solved this issue yet. I will start looking at some possibilities again the next weeks.
|
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unsteady Simulation from steady Solution | hussein93 | Main CFD Forum | 2 | February 8, 2024 07:49 |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
Solving openfoam simulation from scratch | ecetinkaya | OpenFOAM | 1 | September 2, 2023 13:03 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 06:55 |