|
[Sponsors] |
UDF for parallel use in combination with scheme possible? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 11, 2020, 06:46 |
UDF for parallel use in combination with scheme possible?
|
#1 |
Member
|
Hi I have the follwoing code that comuptes the variable fnew. Depending on the value ><0 I set the variable veldirect to 0 or 1. Everything works fine in serial, but not in parallel.
In parallel the printed value for veldirect is always 0. I use this variable in a scheme code that is executed every timestep. I am not sure if this will affect the parallel usage. I tried several types of this code now but I am not really sure around which line I should use host or node execution. In other codes it was more intuitive to me. [CODE] **** calculated fnew here **** DEFINE_ADJUST(adjust_UDS_bc, d) { #if !RP_NODE /*execute on host or in serial */ if (fnew >= 0) { RP_Set_Integer("veldirect", 0); } else { RP_Set_Integer("veldirect", 1); } #endif } [CODE] node_to_host_int_1(count); this is something that migth be needed as well? But again I couldnt really understand where in my case to use. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sutile and Tricky : Drive Fluent UDF parameters directly from workbench | amscosta | Fluent UDF and Scheme Programming | 4 | July 21, 2020 16:50 |
Replicating Scalable Wall Function with a UDF | yousefaz | FLUENT | 0 | August 4, 2017 02:30 |
2nd order upwind scheme (Fluent and CFX) | Far | FLUENT | 0 | May 22, 2011 01:50 |
How to combine UDF and Scheme? | ali hemmati | Fluent UDF and Scheme Programming | 3 | March 19, 2011 14:45 |
How to implement a numerical scheme by using UDF? | Furui Xiong | FLUENT | 0 | July 29, 2010 01:30 |