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

UDF needed for sinusoidal Piston movement in +-x direction

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 21, 2019, 04:55
Default UDF needed for sinusoidal Piston movement in +-x direction
  #1
New Member
 
Tanumoy Banerjee
Join Date: Oct 2019
Posts: 2
Rep Power: 0
Tanumoybanerjee88 is on a distinguished road
Hi, everyone, I am having trouble in dynamic meshing of piston movement within a closed cylinder in a sinusoidal way in positive & negative x direction in ANSYS FLUENT. Can anyone please help me by providing the UDF for the same.
Please say that the udf can be used for interpreted or compiled way in ansys fluent.
Tanumoybanerjee88 is offline   Reply With Quote

Old   November 12, 2019, 19:33
Default
  #2
Member
 
Joshua
Join Date: Aug 2014
Posts: 49
Rep Power: 12
jbo214 is on a distinguished road
https://www.afs.enea.it/project/nept...ug/node400.htm


https://www.afs.enea.it/project/nept...udf/node81.htm
jbo214 is offline   Reply With Quote

Old   December 4, 2019, 03:18
Default
  #3
New Member
 
Tanumoy Banerjee
Join Date: Oct 2019
Posts: 2
Rep Power: 0
Tanumoybanerjee88 is on a distinguished road
I have read those sections mentioned by you @jbo214 but stil cant get the actual procedure of interpreting or compiling the necessary udf here, & for that the boundary is not moving at all. I am attaching the udf here for 1 d piston movement in x direction. Kindly see if this is correct or not & tell me the exact procedure of implementing this udf in ansys to get the result.

The udf that i used is-

#include "udf.h"
#include "dynamesh_tools.h"
DEFINE_CG_MOTION(piston,dt,vel,omega,time,dtime)
{
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);
vel[0]=2;
printf("\n");
printf("\n x_velocity = %g \n", vel[0]);
}
Tanumoybanerjee88 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
A UDF for piston motion in dynamic mesh aminepoxnet Fluent UDF and Scheme Programming 0 May 15, 2017 10:43
Simple UDF for piston movement NicolasCheshire Fluent UDF and Scheme Programming 1 October 7, 2016 11:36
Simple piston movement in cylinder- fluid models arun1994 CFX 4 July 8, 2016 03:54
who can help me about my udf on piston... venus FLUENT 1 May 28, 2014 11:37
who can help me about my udf on piston... sweetcherry FLUENT 1 May 15, 2008 02:48


All times are GMT -4. The time now is 23:28.