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

6DOF piston

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 7, 2016, 08:35
Default 6DOF piston
  #1
New Member
 
Egypt
Join Date: Apr 2016
Posts: 1
Rep Power: 0
amrmoataz is on a distinguished road
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??
amrmoataz is offline   Reply With Quote

Old   April 7, 2016, 09:36
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by amrmoataz View Post
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
Bruno Machado is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
one piston dynamic deforming and mesh moving simultaneously john Lu FLUENT 1 June 20, 2014 08:13
Piston Cooling Nozzle Simulation rajeev50588 STAR-CCM+ 1 February 26, 2013 04:41
Piston Simulation helloworld922 Autodesk Simulation CFD 1 September 9, 2012 23:54
simulation of piston motion inside a hydraulic cylinder mosman FLUENT 0 August 6, 2011 16:44
Piston stroke cutoff ChesterP FLUENT 7 April 1, 2010 23:58


All times are GMT -4. The time now is 05:52.