CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   6DOF piston (https://www.cfd-online.com/Forums/fluent-udf/169308-6dof-piston.html)

amrmoataz April 7, 2016 07:35

6DOF piston
 
i'm a student trying to simulate moving piston in cylinder by pressure force
i wrote my code as follow
#include "udf.h"

DEFINE_SDOF_PROPERTIES(piston, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 10.5;
prop[SDOF_IXX] = .03;
prop[SDOF_IYY] = .02;
prop[SDOF_IZZ] = .02;
prop[SDOF_ZERO_TRANS_X] = true;
prop[SDOF_ZERO_TRANS_Y] = true;
prop[SDOF_ZERO_TRANS_Z] = false;
prop[SDOF_ZERO_ROT_X] = true;
prop[SDOF_ZERO_ROT_Y] = true;
prop[SDOF_ZERO_ROT_Z] = true;
printf("\n updated 6DOF properties");
}
is that code okey???
i have another error says The UDF library you are trying to load is not compiled for 3d on the current platform (win64). The system cannot find the file specified.
any help, please??

Bruno Machado April 7, 2016 08:36

Quote:

Originally Posted by amrmoataz (Post 593861)
i'm a student trying to simulate moving piston in cylinder by pressure force
i wrote my code as follow
#include "udf.h"

DEFINE_SDOF_PROPERTIES(piston, prop, dt, time, dtime)
{
prop[SDOF_MASS] = 10.5;
prop[SDOF_IXX] = .03;
prop[SDOF_IYY] = .02;
prop[SDOF_IZZ] = .02;
prop[SDOF_ZERO_TRANS_X] = true;
prop[SDOF_ZERO_TRANS_Y] = true;
prop[SDOF_ZERO_TRANS_Z] = false;
prop[SDOF_ZERO_ROT_X] = true;
prop[SDOF_ZERO_ROT_Y] = true;
prop[SDOF_ZERO_ROT_Z] = true;
printf("\n updated 6DOF properties");
}
is that code okey???
i have another error says The UDF library you are trying to load is not compiled for 3d on the current platform (win64). The system cannot find the file specified.
any help, please??

I am not used with this type of problem, so I can not help with the code. Your compiling problem can be solved following the procedure in this post:

http://www.cfd-online.com/Forums/flu...e-problem.html


All times are GMT -4. The time now is 03:07.