|
[Sponsors] |
October 12, 2010, 05:27 |
UDF error !!
|
#1 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 |
xr xr plaese
Last edited by stage81; October 13, 2010 at 06:37. |
|
October 12, 2010, 10:07 |
|
#2 |
Member
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16 |
Hey, hello stage81! I got it.
for your problem, I think UDF is: /**************************************/ #include "udf.h" DEFINE_SOURCE(energy_source,c,t,dS,eqn) { real x[ND_ND]; real source; C_CENTROID(x,c,t); if (x[1]==10.) source = 10000.; else source = 0.; return source; } /******************************************/ Best wish for you! |
|
October 12, 2010, 11:14 |
|
#3 | |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 |
Quote:
for the UDF, I improved it |
||
October 12, 2010, 15:36 |
|
#4 |
Member
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16 |
You haven't correctly write UDF
|
|
October 12, 2010, 15:39 |
|
#5 |
Member
Join Date: Sep 2010
Posts: 60
Rep Power: 16 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Accessing phi from a fvPatchField at same patch | johndeas | OpenFOAM | 1 | September 13, 2010 21:23 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
[Netgen] Compiling Netgen on Fedora Core is driving me crazy | jango | OpenFOAM Meshing & Mesh Conversion | 3 | November 9, 2007 14:29 |