|
[Sponsors] |
July 23, 2013, 04:32 |
Udf segmentation violation
|
#1 |
New Member
Join Date: Jul 2013
Posts: 3
Rep Power: 13 |
Hello everybody, I'm a new student of CFD code. I'm trying to solve a simple equation such as dx/dt=-10 in a porous zone. I succeed in compiling the UDF and hooking it in the cell zone conditions of the porous zone as source term, but when I try to lauch the simulation, it give me "Error: fluent.13.0.0 received a fatal signal (SEGMENTATION VIOLATION). Error object: #f."
I don't understand why... Can anybody help me? Here my UDF: #include "udf.h" DEFINE_SOURCE(uds_source,c,t,ds,eqn) { real source; { source = -10; ds[eqn] = 0; C_UDMI(c,t,1) = source; return source; } } |
|
July 23, 2013, 05:40 |
|
#2 |
Senior Member
|
So you do not allocate memory for UDM in the FLUENT GUI? It should be in
Define -> User-Defined -> Memory... It is a good idea to test whether the storage has been allocated before accessing them by Code:
if (NNULLP(THREAD_STORAGE(t,SV_UDM_I))) { } |
|
July 23, 2013, 06:00 |
|
#3 | |
New Member
Join Date: Jul 2013
Posts: 3
Rep Power: 13 |
Quote:
I tried..but it still doesn't work.. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf wall distance segmentation violation | gento | FLUENT | 1 | April 15, 2016 16:59 |
UDF segmentation violation error | be89 | Fluent UDF and Scheme Programming | 1 | December 21, 2012 04:07 |
DPM UDF - Segmentation Violation & Stack Backtrace | Prashanth | Fluent UDF and Scheme Programming | 4 | July 10, 2012 11:39 |
udf segmentation violation when hooked | jjchristophe | Fluent UDF and Scheme Programming | 9 | June 25, 2012 06:46 |
Segmentation Violation | Corentin | FLUENT | 1 | February 13, 2011 02:07 |