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

UDF Wall movement

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2017, 07:10
Default UDF Wall movement
  #1
New Member
 
heru
Join Date: Jan 2016
Posts: 12
Rep Power: 10
heru is on a distinguished road
Hi,

I want to move a wall under an harmonic movement in ANSYS Fluent. I am not able to move the wall in my related problem.

Then I moved to the ansys tutorial "Fluent_MDM_14.5_WS04_UDF". There explain how to move a wall by using a UDF. Nonetheless I do exacly what the tutorial says but I do not get any kind of movement. Is anyone that know how move a wall or have already solved this problem?

I attach part of the code provided by Ansys (It is no difficult)

#include "udf.h"
#include "math.h"
#include "dynamesh_tools.h"


DEFINE_CG_MOTION(object, dt, vel, omega, time, dtime)

{

/* reset velocities */
NV_S (vel, =, 0.0);
NV_S (omega, =, 0.0);


/* compute velocity formula */
vel[0]=0.47058*cos(2*M_PI*time);
vel[1]=0.47058*sin(2*M_PI*time);
omega[2]=15;
printf("\n");
printf("\n x_velocity = %g \n",vel[0]);

}
heru is offline   Reply With Quote

Old   June 30, 2017, 09:35
Default
  #2
New Member
 
heru
Join Date: Jan 2016
Posts: 12
Rep Power: 10
heru is on a distinguished road
I found that the problem comes because I am using windows 10. In windows 7 it works
heru 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
UDF for slip and moving wall lichun Dong FLUENT 3 March 26, 2014 04:37
wall boundary condition in UDF ssamton FLUENT 0 January 31, 2011 03:07
UDF for fluxes normal to a wall Leverkin FLUENT 0 December 10, 2007 12:04
udf: dimensionless wall coordinate Chris FLUENT 0 June 22, 2004 06:10
Wall movement due to pressure with UDF Dimitrios FLUENT 2 November 15, 2003 07:06


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