|
[Sponsors] |
April 12, 2014, 16:11 |
Redefining rotational origin
|
#1 |
New Member
sam daysley
Join Date: Feb 2013
Posts: 28
Rep Power: 13 |
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, 16:14 |
|
#2 |
New Member
He Zhao
Join Date: Feb 2013
Location: Shanghai(now)
Posts: 11
Rep Power: 13 |
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; } |
|
Tags |
ansys, fluent - udf, origin, udf and programming, zone motion |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
[General] Slice origin as annotation in animation | bozack | ParaView | 6 | July 27, 2018 05:37 |
How Do I change rad/s - time rotational speed spaces | melek | FLOW-3D | 0 | November 7, 2013 08:22 |
max rotational velocity of VAWT by CFD | CFD-beginner | Main CFD Forum | 0 | April 5, 2010 00:04 |
Coordinate of axis origin | Tang | FLUENT | 0 | October 4, 2004 17:38 |