CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

using face information in a cell-based macro

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2011, 11:48
Default using face information in a cell-based macro
  #1
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 15
ximik is on a distinguished road
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 is offline   Reply With Quote

Old   May 9, 2011, 12:45
Default adding src frm face to cell
  #2
Senior Member
 
CFDtoy
Join Date: Mar 2009
Location: United States
Posts: 145
Blog Entries: 2
Rep Power: 17
CFDtoy is on a distinguished road
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 View Post
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
CFDtoy is offline   Reply With Quote

Old   May 10, 2011, 18:42
Default
  #3
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 15
ximik is on a distinguished road
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.
ximik is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Programming & Development 1 October 11, 2016 14:17
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
Macro existing for calculating a cell surface? maximeg OpenFOAM Post-Processing 7 July 13, 2010 14:30
how to access to the face value of VOF of each cell Wei Shao Fluent UDF and Scheme Programming 2 November 5, 2009 11:16
Face based gradient calculation Bernhard Kubicek Main CFD Forum 1 February 12, 2008 17:34


All times are GMT -4. The time now is 03:51.