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

Term source of enegry!! help

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2010, 09:07
Default Term source of enegry!! help
  #1
Member
 
Join Date: Sep 2010
Posts: 60
Rep Power: 15
stage81 is on a distinguished road
My calculation domain is a 2D rectangle contains 100 meshes along the
X axis and 100 meshes along Y axis, I want to inject a source term of
energy in a one cell only, for exemple i want to inject
SOURCE=10000W/m3 in the mesh number 10?

DEFINE_SOURCE(energy_source,c,t,eqn)

real source;

if (c=50)
source=10000;

return source;
}

Thanks for you
stage81 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
momentum source term zwdi FLUENT 14 June 27, 2017 15:40
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
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 11, 2000 03:43


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