CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   STAR-CCM+ (http://www.cfd-online.com/Forums/star-ccm/)
-   -   Field Function: Distance between Cell Centers (http://www.cfd-online.com/Forums/star-ccm/125158-field-function-distance-between-cell-centers.html)

cwl October 20, 2013 21:29

Field Function: Distance between Cell Centers
 
Hi Everyone
Does anybody have any ideas on how can distance between current (in Field Function) Cell and neighbour Cells be calculated?
A kind of average maybe (in case of polyhedral mesh).

Idea is that i have negative Heat Source (written currently as a equation on a paper) that sets Heat Source according to difference between current Cell's Temperature and next to that neighbour's in x-direction Temperature; so that would be
Code:

grad($Temperature)[0]
that should be multiplied by Δx.

In fluent that was possible due to damned C-code loop; in Star-CCM+ ... ?


All times are GMT -4. The time now is 21:25.