2014年7月13日星期日

FLUENT received fatal signal (ACCESS_VIOLATION)

How do I resolve the following error: FLUENT received fatal signal (ACCESS_VIOLATION)?

as referred to http://www.eureka.im/89.html

This is the standard error caused by FLUENT trying to access data that has not been allocated.

There are several causes which we will discuss.

For example, in a UDF, you may probe the cell temperature using the macro C_T(c,t). However, if you have not turned the energy equation on, then there is NO temperature stored, and you will get an ACCESS_VIOLATION.

To check a Thread for whether a variable is stored on it, you can use the THREAD_STORAGE(t, SV_XXX) macro, where SV_XXX is the storage variable for the equation of interest. For the energy equation, you would use SV_T. This macro returns a pointer to the data. The value is NULL if the data is not available. See storage.h for a complete list of storage variables.

Another cause for the macro is that your case has a UDF hooked, but you do not have the UDF available. The solution is to make sure you have the UDF directory in the correct location relative to the case file.

from
http://www.cfd-online.com/Forums/fluent/106319-fluent-received-fatal-signal-access_violation.html

This is what I would do but there is many not be it.
Do General -> Check to see whether there is anything obvious you are missing. This will also do the mesh check.
Change the Compute from options in the Standard Initialization and it will give different Initial Values below. See whether there is any boundary condition which give strange values (e.g. very high velocities or temperature)
Go throught the boundary conditions and check they are fine. If you still cannot see it turn all the boundary condition to wall except one inlet and one outlet and do initialization. If successful change back other boundary conditions to fish the error out.
Good luck.

2014年7月9日星期三

how to compile udf successfully in fluent 14.5

ok, so after one month back and for triggering, I finally manage to compile udf in my windows 8.1, I think I summarize the conlusion and hope it can benefit all of you who see my blog.if you can say a thanks you , i will feel happy.

http://www.cfd-online.com/Forums/blogs/trollreign/2036-getting-ansys-14-fluent-windows-8-1-vs2013-compile-udfs.html

The UDF library you are trying to load (libudf) is not compiled for 2d on the curent platform (win64).
The system cannot find the file specified.

X:\libudf\win64\2d\libudf.dll
#----------------------------------------------------------

Step-1 : Enable visualization technology in the BIOS setting in Windows 8 or 7

Step-2 : install Microsoft visual studio 2012 express

Step-3 : open VS2012 X64 Cross tools Command Prompt, change directory to working folder , where you have the *.c file

Step-4 : open Fluent V14.5 through step-3 command prompt window, make sure you open with appropriate 2D or 3D double precision options

Step-5 : compile the UDF

This one is the best solution.

of course, story never ended, if you still cannot compile your udf, the cmd exe still pop up message that ERROR: Cannot determine the location of the VS Common Tools folder.below is the suprise
http://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-of-the-vs-common-tools-folder/

setting path variable to c:\system\windows\system32 solves the issue

done.job completed.