CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Developing a solver for OpenFOAM-combustion (https://www.cfd-online.com/Forums/openfoam-programming-development/120357-developing-solver-openfoam-combustion.html)

Thamali July 5, 2013 01:45

Developing a solver for OpenFOAM-combustion
 
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.
:mad:

akidess July 5, 2013 04:33

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.

Thamali July 8, 2013 07:00

Dear Kidess,

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

Thamali July 10, 2013 00:01

icoFoam.C
 
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?

akidess July 10, 2013 02:43

Have a look here http://bit.ly/12gLP8x (or right here)

Thamali July 10, 2013 04:50

Thanks.
:)
I found a thread with same question.
http://www.cfd-online.com/Forums/ope...g-development/

Thamali July 11, 2013 00:32

.A()
 
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 July 11, 2013 01:33

.A()
 
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 July 11, 2013 05:26

Quote:

Originally Posted by Thamali (Post 439069)
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.


All times are GMT -4. The time now is 10:20.