CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

UDF interpreting error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 29, 2007, 05:50
Default UDF interpreting error
  #1
Sangeeta
Guest
 
Posts: n/a
While interpreting UDF. i get an error internal_error too few arguments specified (argument 2) What does this mean?
  Reply With Quote

Old   January 29, 2007, 09:28
Default Re: UDF interpreting error
  #2
pinks
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.

  Reply With Quote

Old   February 7, 2007, 01:02
Default Re: UDF interpreting error
  #3
Sangeeta
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; }

  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09: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 18:54
error while running paraFoam! padmanathan OpenFOAM 9 October 13, 2009 05:17
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 08:09.