CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

Formulating Field function with cell index

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 16, 2012, 06:06
Default Formulating Field function with cell index
  #1
New Member
 
Raminel
Join Date: Mar 2012
Posts: 5
Rep Power: 5
raminel is on a distinguished road
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!
raminel is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field function lcg44 STAR-CCM+ 1 November 30, 2011 00:13
Swak4foam: get the value of a field in the neighbour cell of a patch face miles_davis OpenFOAM Pre-Processing 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 05:37
Scalar-Difference Field Function f09 STAR-CCM+ 0 August 24, 2009 05:11


All times are GMT -4. The time now is 17:22.