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

Developing a solver for OpenFOAM-combustion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2013, 01:45
Default Developing a solver for OpenFOAM-combustion
  #1
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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, 04:33
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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.
akidess is offline   Reply With Quote

Old   July 8, 2013, 07:00
Default
  #3
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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 00:00.
Thamali is offline   Reply With Quote

Old   July 10, 2013, 00:01
Default icoFoam.C
  #4
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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, 02:43
Default
  #5
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
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.
akidess is offline   Reply With Quote

Old   July 10, 2013, 04:50
Default
  #6
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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, 00:32
Default .A()
  #7
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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, 01:33
Default .A()
  #8
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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, 05:26
Default
  #9
Member
 
Thamali
Join Date: Jul 2013
Posts: 67
Rep Power: 12
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


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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
combustion problem mcnair CFX 9 March 22, 2011 14:06
Working directory via command line Luiz CFX 4 March 6, 2011 20:02
Using a user-defined solver in OF ozzythewise OpenFOAM Running, Solving & CFD 3 February 8, 2011 15:28
premixed combustion - parallel solver error Craig FLUENT 0 October 14, 2008 15:07


All times are GMT -4. The time now is 04:33.