|
[Sponsors] |
August 4, 2003, 09:48 |
how set a source inside a flow domain
|
#1 |
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. |
|
August 8, 2003, 17:23 |
Re: how set a source inside a flow domain
|
#2 |
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; } |
|
|
|
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 |