|
[Sponsors] |
January 29, 2007, 05:50 |
UDF interpreting error
|
#1 |
Guest
Posts: n/a
|
While interpreting UDF. i get an error internal_error too few arguments specified (argument 2) What does this mean?
|
|
January 29, 2007, 09:28 |
Re: UDF interpreting error
|
#2 |
Guest
Posts: n/a
|
I guess you are using internal_error macro in your udf. Recheck it with the sample given in users guide. I guess you may not even need this internal_error macro(ur udf will work for ur purpose by removing this macro/loop also). If possible can you post your udf here.
|
|
February 7, 2007, 01:02 |
Re: UDF interpreting error
|
#3 |
Guest
Posts: n/a
|
This is the UDF/Uds Which gave me the error.
include "udf.h" enum { Ar, Ai, N_REQUIRED_UDS }; double cond = 1.5; double mu = 12.56e-7; double omega = 3e6; DEFINE_ADJUST(Atheta_adjust, domain) { if (n_uds < N_REQUIRED_UDS) Internal Error ("not enough uds allocated"); } DEFINE_SOURCE(Ar_source,c,t,ds,eqn) { ds[eqn] = mu*omega*cond; return mu*cond*omega* C_UDSI c,t,Ai); } DEFINE_SOURCE(Ai_source,c,t,ds,eqn) { ds[eqn] = -mu*omega*cond; return -mu*cond*omega*C_UDSI(c,t,Ar); } DEFINE_DIFFUSIVITY(Atheta_diffusivity,c,t,i) { return 1; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 07:25 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
error while running paraFoam! | padmanathan | OpenFOAM | 9 | October 13, 2009 06:17 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |