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

udf for sinusoidally oscillating wall

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2016, 09:51
Default udf for sinusoidally oscillating wall
  #1
New Member
 
L Prawin Lukanus Santhanaraj
Join Date: Mar 2016
Posts: 5
Rep Power: 10
prawin is on a distinguished road
can anyone please help me to create an udf for sinusoidally oscillating wall in y direction with velocity of 0.01m/s in 2d
prawin is offline   Reply With Quote

Old   March 17, 2016, 10:28
Default
  #2
AHF
Member
 
AHF's Avatar
 
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 11
AHF is on a distinguished road
Quote:
Originally Posted by prawin View Post
can anyone please help me to create an udf for sinusoidally oscillating wall in y direction with velocity of 0.01m/s in 2d
i used this udf for cylinder vibration
i wish it helps you

#include"udf.h"
/* this function defines velocity of center of gravity for pure plunging motion*/
/* Plunging motion equation is z(t)=h*sin(2*pi*f*t) */
DEFINE_CG_MOTION(plung,dt,vel,omega,time,dtime)
{
Thread*t;
face_t*f;
/*reset velocities */
NV_S(vel,=,0.0);
NV_S(omega,=,0.0);
if(!Data_Valid_P())
return;
/* Get the thread pointer for which this motion is defined */
t=DT_THREAD(dt);
/* vel[1] is the vertical plunging velocity */
vel[1] = 10*cos(10*time);
}


i should note that this udf need microsoft visual stuido to compile.
AHF is offline   Reply With Quote

Old   March 17, 2016, 23:58
Default 2d
  #3
New Member
 
L Prawin Lukanus Santhanaraj
Join Date: Mar 2016
Posts: 5
Rep Power: 10
prawin is on a distinguished road
amirhossein can i use this for 2d case also
prawin is offline   Reply With Quote

Old   March 18, 2016, 01:51
Default
  #4
AHF
Member
 
AHF's Avatar
 
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 11
AHF is on a distinguished road
Quote:
Originally Posted by prawin View Post
amirhossein can i use this for 2d case also
yop
i used it for 2D case.
AHF is offline   Reply With Quote

Old   March 18, 2016, 07:06
Default
  #5
New Member
 
L Prawin Lukanus Santhanaraj
Join Date: Mar 2016
Posts: 5
Rep Power: 10
prawin is on a distinguished road
how can i compile this in microsoft visual studio code
prawin is offline   Reply With Quote

Old   March 18, 2016, 07:25
Default
  #6
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 12
Bruno Machado is on a distinguished road
Quote:
Originally Posted by prawin View Post
how can i compile this in microsoft visual studio code
you can easily find the answer for your question by searching in the forum....


http://www.cfd-online.com/Forums/flu...e-problem.html
Bruno Machado is offline   Reply With Quote

Old   March 18, 2016, 11:05
Default
  #7
AHF
Member
 
AHF's Avatar
 
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 11
AHF is on a distinguished road
Quote:
Originally Posted by prawin View Post
how can i compile this in microsoft visual studio code
here is tutorial

https://www.simutechgroup.com/CFD/co...5-or-15-0.html
AHF is offline   Reply With Quote

Reply

Tags
moving boundaries, udf

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
How to use a UDF to set the volume fraction in the cells next to a wall? DF15 Fluent UDF and Scheme Programming 33 August 20, 2020 13:36
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Radiation interface hinca CFX 15 January 26, 2014 17:11
Accessing wall shear stress using UDF Robert Fluent UDF and Scheme Programming 2 July 31, 2013 08:34
udf variable for wall temperature Kiran FLUENT 0 July 31, 2008 08:31


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