|
[Sponsors] |
May 9, 2017, 08:25 |
Segmentation fault
|
#1 |
Member
sebastian bergman
Join Date: Mar 2017
Location: seattle
Posts: 52
Rep Power: 9 |
I am solving a simple solidification problem.
I want temperature gradient. so I am using a udm and trying to save C_T_G(C,t)[0] in it. The function is interpreted but while solving it gives segmentation fault. here is the udf #include "udf.h" DEFINE_EXECUTE_AT_END(temp_gradient) { Domain *d; Thread *t; cell_t c; d = Get_Domain(1); thread_loop_c(t,d) { begin_c_loop(c,t) { C_UDMI(c,t,0) = C_T_G(c,t)[0] ; } end_c_loop(c,t) } } Note: if I change C_T_G(c,t)[0] to only C_T[c,t] the solution proceeds. that means solver is giving me temperature data but not the gradient data. Also I have defined sufficient memory locations. Why so? Can anybody comment? |
|
Tags |
solidification/melting, temperature gradients, udf and programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation fault when running dieselFoam or dieselEngineFoam in parallel | francesco | OpenFOAM Bugs | 4 | May 2, 2017 22:59 |
Segmentation fault in SU2 V5.0 | ygd | SU2 | 2 | March 1, 2017 05:38 |
Segmentation fault when running in parallel | Pj. | OpenFOAM Running, Solving & CFD | 3 | April 8, 2015 09:12 |
Segmentation Fault w/ compiled OF 2.2.0 - motorBike example | sudo | OpenFOAM Running, Solving & CFD | 3 | April 2, 2013 18:27 |
segmentation fault when installing OF-2.1.1 on a cluster | Rebecca513 | OpenFOAM Installation | 9 | July 31, 2012 16:06 |