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

how set a source inside a flow domain

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2003, 09:48
Default how set a source inside a flow domain
  #1
Jason
Guest
 
Posts: n/a
where the source size is not small (comparable to cell) at all. So we can not use the source definition technique with tiny inlet.

How to set it? The source is actually located in one end of tube, which is immersed in a large tank. The flow out of other end of tube will mix with the fluid in tank.

Thanks.
  Reply With Quote

Old   August 8, 2003, 17:23
Default Re: how set a source inside a flow domain
  #2
Amit
Guest
 
Posts: n/a
You can try to write a user defined function aka UDF Modify the file below to suite you. The code below is transient too. Remove if not requried

#include "udf.h"

DEFINE_SOURCE(mass_source, cell, thread, dS, eqn) { real time_step, time_size, curtime; real source; real x[ND_ND];

time_step=RP_Get_Integer("time-step"); time_size=RP_Get_Real("physical-time-step"); curtime=time_step*time_size;

C_CENTROID(x,cell,thread); if ((x[0]>=40.0 & x[0]<=40.2) & (x[1]>=0.0 & x[1]<=0.2))

source=1000*exp(-curtime);

else

source= 0;

return source;

}
  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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Monitor flow through a cross section inside domain Kushagra Mittal CFX 4 August 5, 2008 23:40
Modelling the Heat flow inside the curing oven Marios Vlad CFX 1 February 6, 2008 08:11
meshing F1 front wing Steve FLUENT 0 April 17, 2003 13:37


All times are GMT -4. The time now is 00:06.