CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Problem reading .cas because of UDFs (https://www.cfd-online.com/Forums/fluent/50543-problem-reading-cas-because-udfs.html)

Star-Fluent-X February 12, 2009 05:40

Problem reading .cas because of UDFs
 
I've got some problem opening tutorial using UDFs (for example OhmicHeater).

When I try to open the .cas file the error says : Opening library "libudf"... error : open_udf_library : No such file or directory Error Object : #f

There is no problem with opening a .msh but the same error appears when when I try to load UDFs. Would anyone have a clue ? Thanks

Nagi February 12, 2009 09:14

Re: Problem reading .cas because of UDFs
 
#include "udf.h" #define f 10.0 /*vibration frequency in Hz*****/ #define A 10.0 /*vibration amplitude in m/s^2*****/ #define pi 3.14 DEFINE_SOURCE (x_mom,c,thread,dS,eqn) { real source,t,xaccel; t=CURRENT_TIME; xaccel=A*sin(2*pi*f*t); source=xaccel*C_R(c,thread); dS[eqn]=xaccel; return source; } Pleas the above code which describes the inertial body force due to vibration applied in x-direction as a momentum source. Thanks every body Nagi

Antimony February 12, 2009 10:01

Re: Problem reading .cas because of UDFs
 
Hi,

Are you using a compiled version for your UDF? That is when libudf is used. You might want to see if it has been loaded into your case file and if possible remove it. You can unload it by going to UDF->Functions->Manage->Unload.

Hope this helps.

Regards

Antimony


All times are GMT -4. The time now is 03:45.