CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF for reading dat files (https://www.cfd-online.com/Forums/fluent/66181-udf-reading-dat-files.html)

mrestrepo30 July 8, 2009 09:10

UDF for reading dat files
 
Hi,
I wrote a UDF to read some velocity values from a .dat file, and the values are represented in 3 columns for each one of the XYZ components. In the UDF I'm using standard C functions (fopen, fscanf, etc).
When I execute the UDF (on demand) in Fluent, I can read up to the row number 1169 (out of 3800); however, when I get to the line 1170, I get the following message:

-************************************************** *******
/home/local/Fluent.Inc/fluent6.3.26/lnamd64/3d/fluent.6.3.26[0xdd6fcb]
/homPlease include this information with any bug report you file on this issue!
================================================== ========
/home/local/Fluent.Inc/fluent6.3.26/bin/fluent: line 4820: 4012 Segmentation fault $NO_RUN $EXE_CMD $CX_FLAGS
e/local/Fluent.Inc/fluent6.3.26/lnamd64/3d/fluent.6.3.26[0xdd6f21]
/lib64/tls/libpthread.so.0[0x3d2df0c4f0]
libudf/lnamd64/3d/libudf.so(read_vel+0xbd)[0x2a962a85c1]
The fluent process could not be started.
-************************************************** *******

Furthermore, in the line 1130 I get always the message:

************************************************** ********
Stack backtrace generated for process id 4012 on signal 1 :
************************************************** ********

Does anyone knows why I keep getting the error and maybe has any suggestion to what should I implement in order to avoid this and read the whole *.dat file???

Thanks!!!


All times are GMT -4. The time now is 15:41.