|
[Sponsors] | |||||
Segmentation fault using F_FLUX in DEFINE_DPM_SOURCE |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
New Member
Join Date: Oct 2017
Posts: 15
Rep Power: 10 ![]() |
Hi there,
I have a UDF that defines particle source terms in Fluent 17 using DEFINE_DPM_SOURCE with the pressure-based solver. I need to get the mass flow into the cell containing the particle for this calculation. I tried using F_FLUX but I keep getting a segmentation fault error, is the mass flow not stored for faces of cells? The relevant code that causes the crash (if I remove the "f_flow = F_FLUX(f,f_t);" line it doesn't crash): Code:
DEFINE_DPM_SOURCE(Source, c, t, S, strength, p)
{
Thread*f_t;
face_t f;
int n;
real f_flow;
c_face_loop(c, t, n)
{
f = C_FACE(c,t,n);
f_t = C_FACE_THREAD(c,t,n);
f_flow = F_FLUX(f,f_t);
}
}
|
|
|
|
|
|
![]() |
| Tags |
| particle, segmentation fault, udf |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Signal: Segmentation fault (11)' while running openFoam in Parallel Processing | jaymeen721 | OpenFOAM Running, Solving & CFD | 1 | April 10, 2023 20:17 |
| 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 |