|
[Sponsors] |
October 16, 2019, 08:48 |
retrieve F_UDMI value in parallel mode
|
#1 |
Member
South Yorkshire
Join Date: May 2018
Posts: 33
Rep Power: 7 |
Hi,
I am having problems when I retrieve stored values using F_UDMI in parallel mode. A couple of nodes have zero value when I restart the simulation. I run my model and UDF for 5 seconds. The UDF calculates some values and store them using F_UDMI. After the simulation finished, I save the last time step. I close FLUENT and I open again the saved file. When I restart the simulation, the UDF retrieves the previously stored values the same way they have been stored. Here are the results. Last saved time step Code:
OUT I am in the host process TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 OUT I am in the node process with ID 0 TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 OUT I am in the node process with ID 1 TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 OUT I am in the node process with ID 2 TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 OUT I am in the node process with ID 3 TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 OUT I am in the node process with ID 4 TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 OUT I am in the node process with ID 5 TESTout Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 Code:
INI I am in the host process TESTini Position: 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 INI I am in the node process with ID 0 TESTini Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 INI I am in the node process with ID 1 TESTini Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 INI I am in the node process with ID 2 TESTini Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 INI I am in the node process with ID 3 TESTini Position: 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 INI I am in the node process with ID 4 TESTini Position: 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 INI I am in the node process with ID 5 TESTini Position: 0.000408 0.014459 0.325915 0.000000 0.000003 0.000021 I store the values using: Code:
#if !RP_HOST Thread *t; Domain *d = Get_Domain(1); face_t f; t = Lookup_Thread(d,zoneID); begin_f_loop(f,t) { if (PRINCIPAL_FACE_P(f,t)) { F_UDMI(f,t,0) = vxRK; F_UDMI(f,t,1) = xRK; F_UDMI(f,t,2) = vyRK; F_UDMI(f,t,3) = yRK; F_UDMI(f,t,4) = x; F_UDMI(f,t,5) = vx; F_UDMI(f,t,6) = ax; F_UDMI(f,t,7) = y; F_UDMI(f,t,8) = vy; F_UDMI(f,t,9) = ay; } } end_f_loop(f,t) #endif Code:
if (load_ini_UDMI_time < ctime) { #if !RP_HOST Thread *t; Domain *d = Get_Domain(1); t = Lookup_Thread(d,zoneID); face_t f; begin_f_loop(f,t) { if (PRINCIPAL_FACE_P(f,t)) { vxRK = F_UDMI(f,t,0); xRK = F_UDMI(f,t,1); vyRK = F_UDMI(f,t,2); yRK = F_UDMI(f,t,3); x = F_UDMI(f,t,4); vx = F_UDMI(f,t,5); ax = F_UDMI(f,t,6); y = F_UDMI(f,t,7); vy = F_UDMI(f,t,8); ay = F_UDMI(f,t,9); } } end_f_loop(f,t) #endif } I do not understand why when I access to the stored values they are zero on nodes 3 and 4. If anyone knows how to solve it or has a better alternative I would be really thankful. Regards, |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unsteady Inlet Velocity UDF in Parallel Batch Mode | vtyler | Fluent UDF and Scheme Programming | 4 | April 1, 2020 05:44 |
Source is incomplete in parallel mode | sakura006 | FLUENT | 1 | June 18, 2018 10:29 |
problem with compiling boundary condition udf in parallel mode | chem engineer | Fluent UDF and Scheme Programming | 11 | June 29, 2015 06:23 |
Does anyone have any experience with cfd-fastran (2008.2) on parallel mode? | CFD_1977 | Main CFD Forum | 0 | March 30, 2014 07:01 |
How to run icoFsiFoam in parallel mode? | AsDF | OpenFOAM Running, Solving & CFD | 2 | February 21, 2014 07:56 |