CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Error in parallel computing- multiphase flow+UDF (https://www.cfd-online.com/Forums/fluent/171315-error-parallel-computing-multiphase-flow-udf.html)

Vody May 5, 2016 07:31

Error in parallel computing- multiphase flow+UDF
 
I have run a multiphase flow problem in parallel computing. The case is to simulate a printhead nozzle. There is a piston inside the nozzle which vibrates in 100Hz. Piston force is 15N. UDF is applied to describe piston’s action. When I run the case , FLUENT shows the warning message and stop computing.

I have run another multiphase flow problem without UDF in parallel computing. It’s working. So I’m sure the MPI has installed correctly. I guess there are something wrong in UDF code. Can anyone help me to fix it?

Warning message:

Info: 6DOF: can't compute angular acceleration.
Check moments/products of inertia.
Updating mesh at time level N... done.

999999 (..\src\mpsystem.c@1172): mpt_read: failed: errno = 10054

999999: mpt_read: error: read failed trying to read 51172 bytes: No such file or directory


Error: eval: unbound variable

MPI Application rank 0 exited before MPI_Finalize() with status 1
Symbol
Error encountered in critical code section
The fl process could not be started.


UDF code:

#include "udf.h"

DEFINE_SDOF_PROPERTIES(moving_piston, prop, dt, time, dtime)
{
#if !RP_HOST
real y;
#endif

#if !RP_NODE
prop[SDOF_MASS] = 0.5;
prop[SDOF_IXX] = 0;
prop[SDOF_IYY] = 0;
prop[SDOF_IZZ] = 0;


prop[SDOF_ZERO_TRANS_X] = TRUE;
prop[SDOF_ZERO_TRANS_Z] = TRUE;
prop[SDOF_ZERO_ROT_X] = TRUE;
prop[SDOF_ZERO_ROT_Y] = TRUE;
prop[SDOF_ZERO_ROT_Z] = TRUE;
#endif

#if PARALLEL

host_to_node_real_4(prop[SDOF_MASS],prop[SDOF_IXX],prop[SDOF_IYY],prop[SDOF_IZZ]);
host_to_node_real_5(prop[SDOF_ZERO_TRANS_X],prop[SDOF_ZERO_TRANS_Z],prop[SDOF_ZERO_ROT_X],prop[SDOF_ZERO_ROT_Y],prop[SDOF_ZERO_ROT_Z]);
#endif

#if !RP_HOST
y=CURRENT_TIME;

if(y<=0.005)
{
prop[SDOF_LOAD_F_Y]=-15;
}
else
{
prop[SDOF_LOAD_F_Y]=15;
}

printf ("\n2d_test_box: Updated 6DOF properties");
#endif
}

doruk November 28, 2017 10:05

Inter-Process Data Transfer macros such as node_to_host should never be inside a compiler directive

For example;
#if RP_NODE
YOUR CODE;
#endif
node_to_host


All times are GMT -4. The time now is 19:48.