|
[Sponsors] |
February 10, 2014, 22:53 |
How to use the thread_storage macro?
|
#1 |
New Member
Michigan
Join Date: Jan 2013
Posts: 10
Rep Power: 12 |
Hi all,
I'm getting the error as follows: C:\PROGRA~1\ANSYSI~1\v145\fluent\fluent14.5.0\win6 4\2ddp\fl1450s.exe received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: #f I've got someone answered like "here 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. " I'm pretty sure that I can exclude the second cause. But how to use the THREAD_STORAGE(t, SV_XXX) macro? Do I need to write a new udf or something? How? |
|
Tags |
access violation error, thread_storage |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
StarCCM+ Command line options and Macro execution | isidp | STAR-CCM+ | 8 | January 29, 2013 06:00 |
Macro Problem!!! | eRzBeNgEl | STAR-CCM+ | 3 | August 9, 2011 03:04 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 05:18 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 13:37 |
Call a macro from a macro | Flav | Siemens | 2 | July 1, 2004 06:42 |