CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   how to write some terms in ***.C file (https://www.cfd-online.com/Forums/openfoam/122410-how-write-some-terms-c-file.html)

AmirBaqa1987 August 19, 2013 08:36

how to write some terms in ***.C file
 
1 Attachment(s)
Hi Dear all
I try to develop simpleFoam solver by adding new equations to it, new equations have the following terms :


1. nabla . [D nabla F + (C/ T) nabla T]
2. K [ D nabla F . nabla T + (D/T) nabla T . nabla T ]

D,C and K are constant.

I don't know how should I write these terms in newSimpleFoam.c and also for each term fvm is better or fvc.

(a correct mathematic presentation of above terms is attached)

your help is appreciated.
Thanks.

Arjang

Artur August 19, 2013 11:34

I recommend having a look at the following:

https://dl.dropboxusercontent.com/u/...20tutorial.pdf

http://www.cfd-online.com/Forums/ope...equations.html

http://www.cfd-online.com/Forums/ope...tml#post411753

There is a lot more information in this forum about modifying the default solvers, simpleFoam in particular.

AmirBaqa1987 August 19, 2013 16:29

thanks for your answer Dear Artur. but I want to know how should I write these terms to achieve
better convergence.

I think firstly I should make a linearization of terms nablaT.nablaT and nablaF.nablaF , if that's true which CFD books can help me?

Does any body have any tip for me?


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