|
[Sponsors] |
June 28, 2013, 16:25 |
Making a 1.6.x solver compatible with 2.2.0
|
#1 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Hello,
I am trying to modify a custom made solver (shipFoam) which works in v1.6.x. My goal is to make that solver compatible with the v2.2.0. The solver is written by modifying "interDyMFoam". I am not a C++ expert and I don't want to spend too much time on that task. Does that task require too much effort? What is the best place to start with? Thank you for your help in advance, Best Kilroy |
|
June 29, 2013, 20:35 |
|
#2 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 26 |
what a good idea!
I think must be a general way to do it. Why didn't name it shipSwapFoam?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
June 29, 2013, 21:01 |
|
#3 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
||
July 8, 2013, 02:29 |
|
#4 |
Senior Member
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 21 |
TL;DR: Use Meld ( http://meldmerge.org/ )
I would suggest to use tools like Meld: http://meldmerge.org/ Start by meld-ing the interDymFoam solvers from 1.6 and 2.2, and study the differences. Also, meld the 1.6 original and your version of the solver, to see what exactly you have added. Then, make a copy of your 1.6 solver to a 2.2 user-folder. Meld the 2.2 original version with your new version. Using the arrows in Meld, you can easily copy code to the 2.2 version of your solver. In case of many difference, just start to compile and find out where the compiler trips, this would be a good starting point. Finally, don't forget to run a few test cases, to see if your solver still performs as it should. |
|
July 8, 2013, 09:11 |
|
#5 |
Senior Member
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 13 |
Many thanks Bernhard, I will start looking into it.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 14:22 |
problem in making a new solver!!! | adambarfi | OpenFOAM Running, Solving & CFD | 18 | September 29, 2012 11:56 |
CFX 5.5 | Roued | CFX | 1 | October 2, 2001 16:49 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 16:25 |
Error during Solver | cfd guy | CFX | 4 | May 8, 2001 06:04 |