-
-
April 2, 2024 at 6:23 pmJussan JaegerSubscriber
Hello!
Â
I'm trying to use the break-up kernel from fluent manual:
#include "udf.h"#include "sg_pb.h"#include "sg_mphase.h"ÂDEFINE_PB_BREAK_UP_RATE_FREQ(break_up_freq_tav, cell, thread, d_1){real epsi, alpha, f1, f2, rho_d;real C1 = 0.00481, C2 = 0.08, sigma = 0.07;Thread *tm = THREAD_SUPER_THREAD(thread);/*passed thread is phase*/epsi = C_D(cell, tm);alpha = C_VOF(cell, thread);rho_d = C_R(cell, thread);f1 = pow(epsi, 1. / 3.) / ((1. + epsi)*pow(d_1, 2. / 3.));f2 = -(C2*sigma*(1. + alpha)*(1. + alpha)) / (rho_d*pow(epsi, 2. / 3.)*pow(d_1, 5. / 3.));return C1 * f1*exp(f2);}ÂI get the following error during the solution:ÂNode 0: Process 1660: Received signal SIGSEGV.
==============================================================================
==============================================================================
Node 1: Process 22400: Received signal SIGSEGV.
==============================================================================
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= RANK 0 PID 1660 RUNNING AT DESKTOP-CF17HIG
= EXIT STATUS: -1 (ffffffff)
ÂÂÂThe error stops if I change epsi to a constant like "epsi = 1.;" Does anyone knows how to solve it? -
April 4, 2024 at 7:22 amSRPAnsys Employee
Hi,
The error you're encountering (SIGSEGV) typically indicates a segmentation fault, which commonly occurs due to accessing memory that you don't have permission to access.
To debug Print out the values of epsi, alpha, and rho_d before using them in calculations to ensure they are not causing any issues.
-
- The topic ‘Error in DEFINE_PB_BREAK_UP_RATE_FREQ UDF example from manual’ is closed to new replies.
- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Fluent fails with Intel MPI protocol on 2 nodes
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- Script Error
- convergence issue for transonic flow
-
1727
-
629
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.