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

Error in parallel computing- multiphase flow+UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2016, 08:31
Default Error in parallel computing- multiphase flow+UDF
  #1
New Member
 
Robert Chen
Join Date: May 2016
Posts: 1
Rep Power: 0
Vody is on a distinguished road
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
}
Vody is offline   Reply With Quote

Old   November 28, 2017, 11:05
Default
  #2
New Member
 
Doruk Yelkenci
Join Date: Apr 2017
Posts: 20
Rep Power: 9
doruk is on a distinguished road
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
doruk is offline   Reply With Quote

Reply

Tags
parallel computing, udf


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 07:40
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
Parallel run in fluent for multiphase flow apurv FLUENT 2 August 3, 2011 20:44
Some quiestions on multiphase flow fjalil CFX 4 June 17, 2009 13:32
UDF in parallel version. yobee FLUENT 0 August 17, 2004 05:12


All times are GMT -4. The time now is 06:04.