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

Understandig InterFoam Solver and Dam Tutorial to be able to modify source code

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2019, 12:01
Default Understandig InterFoam Solver and Dam Tutorial to be able to modify source code
  #1
Member
 
James
Join Date: Jan 2014
Posts: 38
Rep Power: 12
Madeinspace is on a distinguished road
I have now understood all the files stored in case directory of Dam Break Tutorial and others similar tutorial. Syntax used for initial/boundary conditions, constant properties and system. However I am finding it hard to understand the source file & files stored in solver's application folder.



Most tutorials and User's guide focuses mainly on the case files. I am expected to write my own solver based on inter-foam solver.


Could you kindly suggest an efficient way to understand these codes and files? Any Available resources, webpages links, tutorials that mainly focuses in understanding source code for interfoam or others in general.


Thanks
Madeinspace is offline   Reply With Quote

Old   February 20, 2019, 14:02
Default
  #2
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 13
massive_turbulence is on a distinguished road
Quote:
Originally Posted by Madeinspace View Post
I have now understood all the files stored in case directory of Dam Break Tutorial and others similar tutorial. Syntax used for initial/boundary conditions, constant properties and system. However I am finding it hard to understand the source file & files stored in solver's application folder.



Most tutorials and User's guide focuses mainly on the case files. I am expected to write my own solver based on inter-foam solver.


Could you kindly suggest an efficient way to understand these codes and files? Any Available resources, webpages links, tutorials that mainly focuses in understanding source code for interfoam or others in general.


Thanks
There are resources on the internet that you can search for. Fundamentally understanding pisoFoam and simpleFoam will probably help the most. Look through those solvers and then try to make sense of them before jumping into interFoam, as that solver is a bit more advanced. The PISO and SIMPLE solvers make up most of everything else and they solve the NSE.

I also assume you know vector calculus, matrices, linear algebra, differential equations, and have some basic understanding of fluid dynamics. You also need to know C++ and object oriented programming. Your question is too broad by the way. It helps others if you ask specific questions on what you wanted to modify.
massive_turbulence is offline   Reply With Quote

Reply

Tags
solver development, source code

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
atmosphere bc in dam brake case (interFoam solver) Mike H. OpenFOAM Running, Solving & CFD 0 July 30, 2009 06:35


All times are GMT -4. The time now is 18:27.