CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

implement a source term!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2010, 09:47
Default implement a source term!!
  #1
Member
 
Join Date: Sep 2010
Posts: 60
Rep Power: 15
stage81 is on a distinguished road
My goal is to implement a source term (e.g: energy) in a defined area of my field of computing, I have a simple 2D configudation (100 mesh along the X axis and 100 mesh along the Y axis) and I want to inject a source term (ie: source = 10000W/m3) in a grid of coordinates (X =50 and Y = 50) and I can not specify in my UDF cell in which I would inject my source term..anyone can help me
Écouter
Lire phonétiquement
stage81 is offline   Reply With Quote

Old   October 4, 2010, 10:59
Default
  #2
Member
 
anonym
Join Date: Mar 2009
Posts: 65
Rep Power: 17
Laci is on a distinguished road
Quote:
Originally Posted by stage81 View Post
My goal is to implement a source term (e.g: energy) in a defined area of my field of computing, I have a simple 2D configudation (100 mesh along the X axis and 100 mesh along the Y axis) and I want to inject a source term (ie: source = 10000W/m3) in a grid of coordinates (X =50 and Y = 50) and I can not specify in my UDF cell in which I would inject my source term..anyone can help me
Écouter
Lire phonétiquement
I would create another plane just in the middle of your area. Hence, for this small area you can apply the source term. (I've never tried in 2D so far, but in 3D it works that way.)
Laci is offline   Reply With Quote

Old   October 4, 2010, 11:44
Default
  #3
Member
 
Join Date: Sep 2010
Posts: 60
Rep Power: 15
stage81 is on a distinguished road
Thanks for your help,
but I think it should not market, because the goal is to inject the source terms in several mesh (hundreds of cells)..

normally i want use C_CENTROID(x,c,t) ... but I dont know how to define the coordinates of my area in my UDF
stage81 is offline   Reply With Quote

Old   October 4, 2010, 11:47
Default
  #4
Member
 
Join Date: Sep 2010
Posts: 60
Rep Power: 15
stage81 is on a distinguished road
Quote:
Originally Posted by Laci View Post
I would create another plane just in the middle of your area. Hence, for this small area you can apply the source term. (I've never tried in 2D so far, but in 3D it works that way.)
in my UDF (DEFINE_SOURCE (energy_source, c, t, ..) how I will define the coordinates of my cell (X=50, Y=50) ?Écouter
Lire phonétiquement
stage81 is offline   Reply With Quote

Old   October 7, 2010, 07:50
Default
  #5
New Member
 
Brian
Join Date: Aug 2010
Location: Southampton
Posts: 12
Rep Power: 15
General_Gee is on a distinguished road
Hiya,

I think if I understand you correctly, you want to add a source term but only in a certain area of your domain.

You can access the cell centre using C_CENTROID(x,c,t), see
http://my.fit.edu/itresources/manual...udf/node90.htm

this will give you P (x,y,z). Then if this point is inside the area you want the source to be active you can define your source term, if not set the source term to zero.

Hope this helps
General_Gee 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
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
How to implement source term? Amit Gupta Phoenics 4 May 11, 2006 08:07
UDF Scalar Code: HT 1 Greg Perkins FLUENT 8 October 20, 2000 12:40
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 13, 2000 23:03


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