TAGGED: #fluent-#ansys, dpm, output
-
-
October 31, 2023 at 3:19 pm
ll00023
Subscriberthis UDF code is for computing the melting index along a particle trajectory.
this code has been tested in 2d and 3d cases in the DPM model.
what I tried to achieve is by using this code to obtain the particle locations of 10 particles with respect to time.
based on my understanding, this code just records ONE particle location and writes them into a file (melting_output).
I copied the code and pasted it into txt file. I hooked it up in DPM model.
the code could be compiled but when DPM iterates, then I this SIGSEGV error.
I used a linux server to run fluent case.
I searched it; it is said this error showsÂ
"SIGSEV tends to be network related, but may be triggered by something else in the solver: it's not an error we can diagnose as such. What did the TUI show just above all of that lot? That text may be more useful." from Rob.
the model works before using this code.
Â
how to debug this kind of error?
Thank you.
-
October 31, 2023 at 3:52 pm
Rob
Forum ModeratorI assume you have set a scalar up to store the data?Â
However, "malloc" is Memory allocation so check the amount of RAM you have available.Â
-
October 31, 2023 at 8:27 pm
-
October 31, 2023 at 8:27 pm
ll00023
SubscriberYes, I use a scalar to store particle data.
-
November 1, 2023 at 8:58 am
Rob
Forum ModeratorOK, so the code without trying to find the particle location works? Look at what you changed/added and see what that interacts with. Turn off the new stuff and slowly turn it on again, ie use a constant rather than an equation to do whatever etc. Â
-
November 1, 2023 at 12:00 pm
ll00023
SubscriberI will test the example code accordingly and post the result later. Â Thank you.
-
November 14, 2023 at 2:27 am
-
November 14, 2023 at 3:12 pm
Rob
Forum ModeratorYes, you need to set the UDM memory allocations or things go wrong - I thought you were using a Scalar though?Â
-
November 14, 2023 at 3:17 pm
ll00023
SubscriberI am using this macro define_dpm_scalar_update. is this a scalar?
-
November 14, 2023 at 3:42 pm
Rob
Forum ModeratorYes, but I also don't know what you're doing with it!Â
-
November 14, 2023 at 4:40 pm
ll00023
Subscriberthe debugging process is confusing to me, since what I know is just some basic knowledge. I could not be able to describe it clearly. I even missed this when I went through some online tutorials. and UDF manual just mentions hooking UDF. I learnt it bit by bit. Thank you for your help in this debugging process.
Lei
-
November 14, 2023 at 5:08 pm
Rob
Forum ModeratorThey're not easy - I know the basics and rely on colleagues for anything complicated.Â
-
- The topic ‘issues of using 2.5.10.DEFINE_DPM_SCALAR_UPDATE example from UDF manual’ is closed to new replies.
-
3492
-
1057
-
1051
-
965
-
942
© 2025 Copyright ANSYS, Inc. All rights reserved.