CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Segmentation fault using F_FLUX in DEFINE_DPM_SOURCE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2024, 10:56
Default Segmentation fault using F_FLUX in DEFINE_DPM_SOURCE
  #1
New Member
 
Join Date: Oct 2017
Posts: 14
Rep Power: 9
Paulo SPS is on a distinguished road
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);
    }
}
Paulo SPS is offline   Reply With Quote

Reply

Tags
particle, segmentation fault, udf


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


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