Redefining rotational origin

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

 April 12, 2014, 15:11 Redefining rotational origin #1 New Member   sam daysley Join Date: Feb 2013 Posts: 28 Rep Power: 7 Hi everyone I'm currently having problems redefining the rotational origin when using DEFINE_ZONE_MOTION udf. I'm unsure whether the way to do it would be either Origin[1] = function(x) Origin[2] = function(y) Origin[3] = 0.0 Or I've seen in the udf manual E3V_S (origin,=,3.4,4.5,0.0) Or can I use X = function x Y = function y EV_S(*origin,=,X,Y,0.0) Thanks in advance I can't seem to find anything about this in the manual or on the forum

 April 13, 2014, 15:14 #2 New Member   He Zhao Join Date: Feb 2013 Location: Shanghai(now) Posts: 11 Rep Power: 6 Hi, I give you my udf.It's about how to change origin position. just like this #include "udf.h" DEFINE_ZONE_MOTION(zgustkz,omega,axis,origin,veloc ity,time,dtime) { real a,b,c,d,e,f,g,h,i,j,k,l; a=20.46; b=-292.286; c=292.286; d=0.01745; e=3.14159; f=0.2046*sin(b*time); g=0.01*a/b; h=g+(-1)*g*cos(b*time); i=d*b*cos(b*time+e); j=sqrt(i*i+b*b); k=sin(c*time); l=cos(c*time); velocity[0]=0.0,velocity[1]=f,velocity[2]=0.0; origin[0]=0.0,origin[1]=h,origin[2]=0.0; axis[0]=((-1)*k*i)/j,axis[1]=b/j,axis[2]=(l*i)/j; *omega=j; } daysley likes this.

 Tags ansys, fluent - udf, origin, udf and programming, zone motion

 Thread Tools 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 On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post bozack ParaView 5 January 10, 2017 11:29 Ganesh FLUENT 13 January 22, 2014 05:11 melek FLOW-3D 0 November 7, 2013 08:22 CFD-beginner Main CFD Forum 0 April 4, 2010 23:04 Tang FLUENT 0 October 4, 2004 16:38

All times are GMT -4. The time now is 06:56.

 Contact Us - CFD Online - Privacy Statement - Top