CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Making a 1.6.x solver compatible with 2.2.0 (http://www.cfd-online.com/Forums/openfoam-programming-development/120034-making-1-6-x-solver-compatible-2-2-0-a.html)

kilroy June 28, 2013 16:25

Making a 1.6.x solver compatible with 2.2.0
 
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

immortality June 29, 2013 20:35

what a good idea!
I think must be a general way to do it.
Why didn't name it shipSwapFoam? ;)

kilroy June 29, 2013 21:01

Quote:

Originally Posted by immortality (Post 436828)
what a good idea!
I think must be a general way to do it.
Why didn't name it shipSwapFoam? ;)

Or swap4Foam :D

Bernhard July 8, 2013 02:29

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.

kilroy July 8, 2013 09:11

Many thanks Bernhard, I will start looking into it.


All times are GMT -4. The time now is 17:50.