|
[Sponsors] |
March 16, 2012, 05:06 |
Formulating Field function with cell index
|
#1 |
New Member
Raminel
Join Date: Mar 2012
Posts: 5
Rep Power: 14 |
Dear all,
I am trying to formulate a source term for the 2-D transport equation, which is a function of the passive scalar value in the cell and the cell above it. Is there a way to address the cells by the index? e.g. ${Passive Scalar}(i)*div($$Velocity(i)*$Volume(i)-${Passive Scalar}(i+1)*div($$Velocity(i+1)*$Volume(i+1) Thank you very much in advance! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Field function | lcg44 | STAR-CCM+ | 1 | November 29, 2011 23:13 |
[swak4Foam] get the value of a field in the neighbour cell of a patch face | miles_davis | OpenFOAM Community Contributions | 7 | October 5, 2011 11:57 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 12:21 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 04:37 |
Scalar-Difference Field Function | f09 | STAR-CCM+ | 0 | August 24, 2009 05:11 |