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

Redefining rotational origin

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

Like Tree2Likes
  • 2 Post By zhereal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 12, 2014, 16:11
Default Redefining rotational origin
  #1
New Member
 
sam daysley
Join Date: Feb 2013
Posts: 28
Rep Power: 13
daysley is on a distinguished road
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
daysley is offline   Reply With Quote

Old   April 13, 2014, 16:14
Default
  #2
New Member
 
He Zhao
Join Date: Feb 2013
Location: Shanghai(now)
Posts: 11
Rep Power: 13
zhereal is on a distinguished road
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 and Watiny like this.
zhereal is offline   Reply With Quote

Reply

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

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 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


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