|
[Sponsors] |
December 10, 2011, 13:40 |
udf error
|
#1 |
Senior Member
hamid
Join Date: Nov 2010
Posts: 185
Rep Power: 15 |
Hi,
does anybody know what is wrong with this udf code, i got tired.. DEFINE_EXECUTE_AT_END(calculation_PF_QF) { T=RP_Get_Real("flow-time"); face_t f; Domain *domain; real NV_VEC(A); real PF=0; real force=0; INT ID=15; Thread *thread=Lookup_Thread (domain,ID) begin_f_loop(f,thread) { F_AREA (A,f,thread); force+=F_P(f,thread)*NV_MAG(A); PF= force/B; } end_f_loop(f,thread) } there are several parse error and ... Error: Set_Thread_Variables: wta(real) Error Object: ((constant . 1) (profile "" "")) thanks for ur helps |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with UDF compiling for kTkLW model | Wantami | FLUENT | 0 | July 18, 2011 06:11 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
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 |