CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

define_on_demand being executed twice?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2021, 14:48
Default define_on_demand being executed twice?
  #1
jhz
New Member
 
Join Date: Dec 2020
Posts: 19
Rep Power: 5
jhz is on a distinguished road
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
jhz is offline   Reply With Quote

Old   January 25, 2021, 21:37
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
that's because fluent is running in parallel regime
so, probably, you have message from node_0 and host
dfsg250 and jhz like this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   January 26, 2021, 12:49
Default
  #3
jhz
New Member
 
Join Date: Dec 2020
Posts: 19
Rep Power: 5
jhz is on a distinguished road
That makes sense - thank you!
jhz is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 18:19
[General] Paraview script executed by SGE grid engine iv_sc ParaView 0 December 10, 2015 10: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 03:20
[dsmcFoam] Where is dsmcFieldsCalc executed? gautcho OpenFOAM 8 February 7, 2014 22:37
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35


All times are GMT -4. The time now is 02:26.