CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   using face information in a cell-based macro (http://www.cfd-online.com/Forums/main/88130-using-face-information-cell-based-macro.html)

ximik May 9, 2011 10:48

using face information in a cell-based macro
 
Hello all,

I am hoping to define an energy source term for my model. The source is a balance of radiation and some other information. The issue is that the radiation information can only be extracted from the face (as far as I know, since it is a flux quantity), while the source term can only be added to the cells. Does anyone know how I can use face information in a cell-based macro?

Thanks

CFDtoy May 9, 2011 11:45

adding src frm face to cell
 
Loop on all faces, add source/sink terms on the cells sharing the FACE.

How do you think - convective flux term is added to the transport eqn ;)

Cheers,

CFDtoy

Quote:

Originally Posted by ximik (Post 306832)
Hello all,

I am hoping to define an energy source term for my model. The source is a balance of radiation and some other information. The issue is that the radiation information can only be extracted from the face (as far as I know, since it is a flux quantity), while the source term can only be added to the cells. Does anyone know how I can use face information in a cell-based macro?

Thanks


ximik May 10, 2011 17:42

Any idea on how to do that in FLUENT? What you describe is the concept I had in mind, but I do not know how to code it.


All times are GMT -4. The time now is 09:44.