|
[Sponsors] |
UDF needed for sinusoidal Piston movement in +-x direction |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 21, 2019, 04:55 |
UDF needed for sinusoidal Piston movement in +-x direction
|
#1 |
New Member
Tanumoy Banerjee
Join Date: Oct 2019
Posts: 2
Rep Power: 0 |
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. |
|
November 12, 2019, 19:33 |
|
#2 |
Member
Joshua
Join Date: Aug 2014
Posts: 49
Rep Power: 12 |
||
December 4, 2019, 03:18 |
|
#3 |
New Member
Tanumoy Banerjee
Join Date: Oct 2019
Posts: 2
Rep Power: 0 |
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]); } |
|
|
|
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 |