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

Making a 1.6.x solver compatible with 2.2.0

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

Like Tree2Likes
  • 1 Post By kilroy
  • 1 Post By Bernhard

Reply
 
LinkBack Thread Tools Display Modes
Old   June 28, 2013, 16:25
Default Making a 1.6.x solver compatible with 2.2.0
  #1
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 5
kilroy is on a distinguished road
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 likes this.
kilroy is offline   Reply With Quote

Old   June 29, 2013, 20:35
Default
  #2
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,209
Rep Power: 18
immortality is on a distinguished road
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.
immortality is offline   Reply With Quote

Old   June 29, 2013, 21:01
Default
  #3
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 5
kilroy is on a distinguished road
Quote:
Originally Posted by immortality View Post
what a good idea!
I think must be a general way to do it.
Why didn't name it shipSwapFoam?
Or swap4Foam
kilroy is offline   Reply With Quote

Old   July 8, 2013, 02:29
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 13
Bernhard is on a distinguished road
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.
immortality likes this.
Bernhard is offline   Reply With Quote

Old   July 8, 2013, 09:11
Default
  #5
Senior Member
 
kilroy's Avatar
 
Join Date: Mar 2013
Location: USA
Posts: 120
Rep Power: 5
kilroy is on a distinguished road
Many thanks Bernhard, I will start looking into it.
kilroy 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
problem in making a new solver!!! adambarfi OpenFOAM Running, Solving & CFD 18 September 29, 2012 11:56
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 35 March 1, 2012 21:41
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


All times are GMT -4. The time now is 00:02.