|
[Sponsors] |
October 4, 2010, 10:47 |
implement a source term!!
|
#1 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 |
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 |
|
October 4, 2010, 11:59 |
|
#2 | |
Member
anonym
Join Date: Mar 2009
Posts: 65
Rep Power: 17 |
Quote:
|
||
October 4, 2010, 12:44 |
|
#3 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 |
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 |
|
October 4, 2010, 12:47 |
|
#4 | |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 |
Quote:
Lire phonétiquement |
||
October 7, 2010, 08:50 |
|
#5 |
New Member
Brian
Join Date: Aug 2010
Location: Southampton
Posts: 12
Rep Power: 16 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
How to implement source term? | Amit Gupta | Phoenics | 4 | May 11, 2006 09:07 |
UDF Scalar Code: HT 1 | Greg Perkins | FLUENT | 8 | October 20, 2000 13:40 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 14, 2000 00:03 |