CFD Online Logo CFD Online URL
Home > Forums > FLUENT

how set a source inside a flow domain

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

LinkBack Thread Tools Display Modes
Old   August 4, 2003, 08:48
Default how set a source inside a flow domain
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.

  Reply With Quote

Old   August 8, 2003, 16:23
Default Re: how set a source inside a flow domain
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= 0;

return source;

  Reply With Quote


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
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
mass flow in is not equal to mass flow out saii CFX 2 September 18, 2009 08:07
Monitor flow through a cross section inside domain Kushagra Mittal CFX 4 August 5, 2008 22: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 12:37

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