udf for sinusoidally oscillating wall

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 March 17, 2016, 09:51 udf for sinusoidally oscillating wall #1 New Member   L Prawin Lukanus Santhanaraj Join Date: Mar 2016 Posts: 5 Rep Power: 10 can anyone please help me to create an udf for sinusoidally oscillating wall in y direction with velocity of 0.01m/s in 2d

March 17, 2016, 10:28
#2
Member

amirhossein
Join Date: Jul 2014
Posts: 81
Rep Power: 11
Quote:
 Originally Posted by prawin 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)
{
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 */
/* 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.

 March 17, 2016, 23:58 2d #3 New Member   L Prawin Lukanus Santhanaraj Join Date: Mar 2016 Posts: 5 Rep Power: 10 amirhossein can i use this for 2d case also

March 18, 2016, 01:51
#4
Member

amirhossein
Join Date: Jul 2014
Posts: 81
Rep Power: 11
Quote:
 Originally Posted by prawin amirhossein can i use this for 2d case also
yop
i used it for 2D case.

 March 18, 2016, 07:06 #5 New Member   L Prawin Lukanus Santhanaraj Join Date: Mar 2016 Posts: 5 Rep Power: 10 how can i compile this in microsoft visual studio code

March 18, 2016, 07:25
#6
Senior Member

Join Date: May 2014
Posts: 271
Rep Power: 12
Quote:
 Originally Posted by prawin 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

March 18, 2016, 11:05
#7
Member

amirhossein
Join Date: Jul 2014
Posts: 81
Rep Power: 11
Quote:
 Originally Posted by prawin how can i compile this in microsoft visual studio code
here is tutorial

https://www.simutechgroup.com/CFD/co...5-or-15-0.html

 Tags moving boundaries, udf

 Thread Tools Search this Thread Search this Thread: Advanced Search Display Modes Linear Mode

 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 OffTrackbacks are Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post DF15 Fluent UDF and Scheme Programming 33 August 20, 2020 13:36 Sanyo CFX 17 August 15, 2015 06:20 hinca CFX 15 January 26, 2014 17:11 Robert Fluent UDF and Scheme Programming 2 July 31, 2013 08:34 Kiran FLUENT 0 July 31, 2008 08:31

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

 Contact Us - CFD Online - Privacy Statement - Top