TAGGED: 2d_dpm, cfd-udf-fleunt, species-gradient
-
-
January 6, 2025 at 11:50 pm
ll00023
Subscribercase: 2D, kw-sst, coal-combustion, species transport, DPM.
to get gradient of species mass fraction.
I use UDF code 3.2.12.6 in UDF manual.
changes: C_VOF(c, t) >>> C_YI(c, t, 0)  F_VOF(c, t) >>> F_YI(c, t, 0) ). 0: volatileÂ
however, it didnot produce any result of species gradient.Â
I have hooked it up. I still got the error.
-
January 7, 2025 at 9:38 am
Rob
Forum ModeratorIt's compiled so the code is gramatially correct. The chip-exec error tends to mean something isn't calculated, but as it's not needed you get an error and the solver is able to continue.Â
If you plot UDM0 what do you see?
-
January 7, 2025 at 4:55 pm
ll00023
SubscriberHi Rob, Thank you for your reply.
I didn't see anything by plotting UDM0.
but I found the species concentration gradient is calculated. I don't know how this happens (I have difficulty in understanding how the UDF works.).
but I didn't find the magnitude of gradient, although the code has done the calculation. C_UDMI(c,t,0) = NV_MAG(C_UDSI_G(c,t,0));Âit seems the forum didn't send email to remind me that I get reply anymore. I don't know why this stops.
thank you again.
-
January 7, 2025 at 5:04 pm
Rob
Forum ModeratorIf UDM0 is showing zero, then the field isn't being populated. So, next step is to check the scalar has a non-zero value.Â
Not sure about the emails. I just got one for the thread otherwise I'd not see any messages: given the number of threads I check I'd never keep track otherwise!Â
-
January 7, 2025 at 7:10 pm
-
January 7, 2025 at 7:19 pm
-
January 7, 2025 at 7:41 pm
-
January 7, 2025 at 7:45 pm
ll00023
SubscriberI guess I used different UDF codes. I got the derivative from C_UDSI_G previously.
but I recompiled the code. let me try again. -
January 8, 2025 at 10:08 am
Rob
Forum ModeratorCheck you're retaining all data, using the TUI command. Fluent doesn't keep all of the gradient values between iterations for RAM/efficiency reasons.Â
/solve/set/advanced/retain-temporary-solver-mem Â
Also, try running an iteration/timestep before running the UDF commands, not all data is available following initialisation, and you are messing with scalar gradients!Â
-
January 8, 2025 at 1:35 pm
ll00023
SubscriberYou are right. I used ( rpgetvar 'species/save-gradients? ) to get those gradients.
you mean, after I get these gradients, and when I use udf, it then crashed, right?
Thank you, Rob.
-
January 8, 2025 at 1:46 pm
Rob
Forum ModeratorMore that if the data doesn't exist until after an iteration/time step when you try and use the nonexistent data that could trigger the crash. If you're saving gradients & have them calculated you should have something to then Execute on Demand.Â
I'd use the TUI command over the Scheme one, mainly as I'd need to look up what the rp-command was doing. That's also an rpgetvar so should tell you what's set, and not change anything.Â
-
- You must be logged in to reply to this topic.
-
3049
-
971
-
905
-
858
-
792
© 2025 Copyright ANSYS, Inc. All rights reserved.