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

Mass non positive

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 26, 2016, 06:06
Default Mass non positive
  #1
Member
 
ERMACORA Florian
Join Date: May 2016
Posts: 39
Rep Power: 10
flo90000 is on a distinguished road
Hello

In my simulation I use two UDFs in 6DOF. After the initialization, even if it doesn't reach the convergence tolerance of 1e-6, it writes me this error "Error at host : 6DOF object must have positive mass". But in my UDF, I ask to return some values and I have "3d : Update 6DOF properties DT_THETA_Y:0.000000e+00, My:-0.000000e+00, Mass:1.624241e-03"
there are my codes:
Code:
#include "udf.h"
#include "math.h"

DEFINE_SDOF_PROPERTIES(valve2, prop, dt, time, dtime)
{
#if !RP_HOST
  prop[SDOF_MASS] = 0.001624241;
  prop[SDOF_IYY] = 0.000010947;
  prop[SDOF_ZERO_TRANS_X] = TRUE;
  prop[SDOF_ZERO_TRANS_Y] = TRUE;
  prop[SDOF_ZERO_TRANS_Z] = TRUE;
  prop[SDOF_ZERO_ROT_X] = TRUE;
  prop[SDOF_ZERO_ROT_Y] = FALSE;
  prop[SDOF_ZERO_ROT_Z] = TRUE;
  prop[SDOF_LOAD_M_Y] = 9.81*0.045*sin(DT_THETA (dt)[1])*0.045;
printf("\n 3d_2 : Update 6DOF properties DT_THETA_Y:%e, My:%e, Mass:%e\n", DT_THETA (dt)[1],prop[SDOF_LOAD_M_Y], prop[SDOF_MASS]);
#endif
}
Code:
include "udf.h"
#include "math.h"

DEFINE_SDOF_PROPERTIES(valve1, prop, dt, time, dtime)
{
#if !RP_HOST
  prop[SDOF_MASS] = 0.001624241;
  prop[SDOF_IYY] = 0.000010947;
  prop[SDOF_ZERO_TRANS_X] = TRUE;
  prop[SDOF_ZERO_TRANS_Y] = TRUE;
  prop[SDOF_ZERO_TRANS_Z] = TRUE;
  prop[SDOF_ZERO_ROT_X] = TRUE;
  prop[SDOF_ZERO_ROT_Y] = FALSE;
  prop[SDOF_ZERO_ROT_Z] = TRUE;
  prop[SDOF_LOAD_M_Y] = -9.81*0.045*sin(DT_THETA (dt)[1])*0.045;
printf("\n 3d_1 : Update 6DOF properties DT_THETA_Y:%e, My:%e, Mass:%e\n", DT_THETA (dt)[1],prop[SDOF_LOAD_M_Y], prop[SDOF_MASS]);
#endif
}
Is it due to my UDF? or how can I resolve it?
Thank you for your help
flo90000 is offline   Reply With Quote

Old   July 13, 2017, 07:24
Default Error: 6DOF object must have positive mass.
  #2
Member
 
Mizo
Join Date: Jan 2013
Posts: 34
Rep Power: 13
Ingenieur is on a distinguished road
I have the same problem ..
I think the parallelizing is not correct because it works normaly with serial run
Ingenieur 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
Exit Corrected Mass Flow Rate Mesh Sensitivity Study s__s__s CFX 4 July 20, 2016 12:46
Solver for Multispecies Mass Transfer induced Domain growth/shrinkage MonoC OpenFOAM Running, Solving & CFD 1 March 13, 2016 08:41
total mass loss/gain--simulating taylor couette flow nwpukaka OpenFOAM Programming & Development 0 February 12, 2014 19:57
Sequential calculation of Temperature and mass tra J.W.Ryu FLUENT 7 June 18, 2002 08:12


All times are GMT -4. The time now is 18:36.