CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

Developing a solver for OpenFOAM-combustion

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 5, 2013, 02:45
Default Developing a solver for OpenFOAM-combustion
  #1
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Hi all,
I am a amateur to OpenFOAM as well as C++.Gone through the User Guide and Programmers guide.And learnt basics of C++.
My next point is to develop a solver related to wood chip combustion.

I am not clear about,steps to start compiling.Running OpenFoam in a virtual machine.
To start compiling do I have to download a C++ compiler first or I can use text editor directly.

Confused,please help.
Thamali is offline   Reply With Quote

Old   July 5, 2013, 05:33
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 918
Rep Power: 16
akidess will become famous soon enough
Learn how to compile your own solver by following this tutorial: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam. Don't just read it, but actually work through it.
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Check out the scientific computing exchange http://scicomp.stackexchange.com
akidess is offline   Reply With Quote

Old   July 8, 2013, 08:00
Default
  #3
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Dear Kidess,

Thanks a lot.i went through the link.It solved many problems I had on how to start working in OpenFoam.

Last edited by Thamali; July 10, 2013 at 01:00.
Thamali is offline   Reply With Quote

Old   July 10, 2013, 01:01
Default icoFoam.C
  #4
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Now I am trying to going in to icoFoam directory and understand the icoFoam.C.

I could not get what is this UEqn.A() and UEqn.H().

Can anybody help me please?
Thamali is offline   Reply With Quote

Old   July 10, 2013, 03:43
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 918
Rep Power: 16
akidess will become famous soon enough
Have a look here http://bit.ly/12gLP8x (or right here)
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
*Check out the scientific computing exchange http://scicomp.stackexchange.com
akidess is offline   Reply With Quote

Old   July 10, 2013, 05:50
Default
  #6
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Thanks.

I found a thread with same question.
http://www.cfd-online.com/Forums/ope...g-development/
Thamali is offline   Reply With Quote

Old   July 11, 2013, 01:32
Default .A()
  #7
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Hi All,
I am trying to understand the .A() member function of fvMatrix<Type> class.
checking fvMatrix.C file.(line no 722 onwards)

http://foam.sourceforge.net/docs/cpp/a04763_source.html

Could someone please explain about this.I know that .A() function converts vector to a scalar.But what is the use of this function.Please try to help.
Thamali is offline   Reply With Quote

Old   July 11, 2013, 02:33
Default .A()
  #8
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
wow,got it.
.A() is for central coefficient,although I did not try to understand fvMatrix.C file.Found it from CFD book.That is what we are getting in discretised equation aP. like as follows(will be different according to the system.)

aP = aW + aE + aS + aN + aB + aT + ∆F
Thamali is offline   Reply With Quote

Old   July 11, 2013, 06:26
Default
  #9
Member
 
Thamali
Join Date: Jul 2013
Posts: 54
Rep Power: 3
Thamali is on a distinguished road
Quote:
Originally Posted by Thamali View Post
wow,got it.
.A() is for central coefficient,although I did not try to understand fvMatrix.C file.Found it from CFD book.That is what we are getting in discretised equation aP. like as follows(will be different according to the system.)

aP = aW + aE + aS + aN + aB + aT + ∆F

The above mentioned is related.But,if anyone interested in the matter,please go through "Rhie-Chow" interpolation in openFoam.
Thanks.
Thamali 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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10:52
combustion problem mcnair CFX 9 March 22, 2011 16:06
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Using a user-defined solver in OF ozzythewise OpenFOAM Running, Solving & CFD 3 February 8, 2011 16:28
premixed combustion - parallel solver error Craig FLUENT 0 October 14, 2008 16:07


All times are GMT -4. The time now is 08:16.