|
[Sponsors] |
January 25, 2021, 15:48 |
define_on_demand being executed twice?
|
#1 |
New Member
Join Date: Dec 2020
Posts: 19
Rep Power: 6 |
Hello,
I am using the define_on_demand macro for loading csv files into Fluent. After compiling the UDF and executing the define_on_demand macro manually, it appears to work successfully. However, using Message() to verify files are being read correctly always shows duplicate outputs, indicating the macro is somehow being run twice. Testing with a very simple define_on_demand macro without file reading and just printing a message results in the same duplicate output. Why does this happen? Thanks |
|
January 25, 2021, 22:37 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
that's because fluent is running in parallel regime
so, probably, you have message from node_0 and host
__________________
best regards ****************************** press LIKE if this message was helpful |
|
January 26, 2021, 13:49 |
|
#3 |
New Member
Join Date: Dec 2020
Posts: 19
Rep Power: 6 |
That makes sense - thank you!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate the number of if conditions executed in a fluent udf? | Shubhamp | Fluent UDF and Scheme Programming | 56 | January 23, 2020 19:19 |
[General] Paraview script executed by SGE grid engine | iv_sc | ParaView | 0 | December 10, 2015 11:22 |
code is being executed more than once per time step with different values | Jinming Wu | Fluent UDF and Scheme Programming | 1 | November 19, 2015 04:20 |
[dsmcFoam] Where is dsmcFieldsCalc executed? | gautcho | OpenFOAM | 8 | February 7, 2014 23:37 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 09:35 |