CFD Online Discussion Forums

CFD Online Discussion Forums (
-   STAR-CCM+ (
-   -   Field Function: Distance between Cell Centers (

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

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 22:29.