-
-
October 27, 2021 at 9:56 amBarbolSubscriber
Hi all
I am attempting to write a DPM Drag UDF with the Macro DEFINE_DPM_DRAG. To test the compiling procedure I copy pasted the example from the UDF manual, but upon running it I get the following error:
Received signal SIGSEGV
and
999999: mpt_accept: error: accept failed: No error
I get the same result for both interpreted and compiled UDFs.
I'd appreciate any help
October 27, 2021 at 10:02 amRobForum ModeratorIf you copy and pasted direct from the manual can you check for white space characters. There's a good chance there's something in there that's mimicking a return/tab/space and messing with the code. However, that usually causes the compiler to fail.
October 27, 2021 at 10:11 amBarbolSubscriberI tried copy pasting as a debug tactic. My initial UDF was not working, I reduced that down to just outputting a constant real value, which gave the same error, and so I tried the UDF example. Searching these forums I can ascertain that the error is often linked to UDMI (not relevant in this case) or accessing a memory location that has yet to be defined (which isn't the case with both the UDF example and my simple return UDF).
Could it be a case setup thing?
October 27, 2021 at 10:47 amRobForum ModeratorPossible, SIGSEV can mean there's a value missing somewhere. If you initialise the model and then hook up the UDF what happens?
October 27, 2021 at 11:00 amBarbolSubscriberThe same as hooking up the UDF before initialisation, just checked.
October 27, 2021 at 1:42 pmRobForum ModeratorAnd you're hooking it up as per the instructions? https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v212/en/flu_udf/flu_udf_sec_define_dpm_drag.html
October 29, 2021 at 1:48 pmBarbolSubscriberI double checked the instructions and I am following them. To perplex things further I can hook up some UDF's for solid viscosity and pressure successfully, so it looks to just be DPM related.
When I compile any UDF with in-built compiler, I do get the following warning:
C:\PROGRA~1\ANSYSI~1\v212\fluent\ntbin\clang\10\Include\10.0.18362.0\shared\basetsd.h(322,12): warning: cast to 'void * __ptr32' from smaller integer type 'unsigned long' [-Wint-to-void-pointer-cast]
return((void * POINTER_32) (unsigned long) (ULONG_PTR) p);
^
1 warning generated.
The solid viscosity and pressure UDF's still work with this warning, but not the DPM_DRAG macro.
October 29, 2021 at 2:46 pmRobForum ModeratorTurn off the DDPM/DEM/Euler model and try it. The call is taking Reynolds Number from somewhere so multiphase turbulence might be effecting something. If that works turn the other model back on and see what options you have in the viscous panel relating to the multiphase turbulence.
October 29, 2021 at 5:17 pmBarbolSubscriberI tried as you suggested, it will run although with reversed flow on the outlet. I have selected no turbulence (Laminar option), so have no turbulence options.
November 1, 2021 at 1:54 pmRobForum ModeratorReverse flow means that flow is dragged back in through the outlet. It's a warning rather than an error. Look at what's causing the back flow.
Viewing 9 reply threads- The topic ‘DPM Drag Law UDF Error’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- Non-Intersected faces found for matching interface periodic-walls
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Fluent fails with Intel MPI protocol on 2 nodes
- Cyclone (Stairmand) simulation using RSM
- error udf
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- UDF, Fluent: Access count of iterations for “Steady Statistics”
Top Contributors-
1406
-
599
-
591
-
555
-
366
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-