|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Member
anonym
Join Date: Mar 2009
Posts: 65
Rep Power: 17 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 | |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 15 ![]() |
Quote:
Lire phonétiquement |
||
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 |
How to implement source term? | Amit Gupta | Phoenics | 4 | May 11, 2006 08:07 |
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 13, 2000 23:03 |