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

using face information in a cell-based macro

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 9, 2011, 10:48
Default using face information in a cell-based macro
  #1
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 6
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, 11: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: 8
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, 17:42
Default
  #3
New Member
 
Join Date: May 2011
Posts: 18
Rep Power: 6
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

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
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Macro existing for calculating a cell surface? maximeg OpenFOAM Post-Processing 7 July 13, 2010 13: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
How to determine the direction of cell face vectors on processor patches sebastian_vogl OpenFOAM Programming & Development 0 October 26, 2009 13:10
Face based gradient calculation Bernhard Kubicek Main CFD Forum 1 February 12, 2008 17:34


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