-
-
October 24, 2018 at 12:20 pm
xfreekx
SubscriberHi,
I want to define a motion of a zone by 2 rotations on different origins/axis. First I want it to rotate the body around the z-axis and then I want it to rotate around an internal axis as to reorientate it.
Can you define multiple rotation origins, axis and angular velocities in a UDF for 1 zone?
Thanks,
Freek
-
October 24, 2018 at 1:08 pm
Keyur Kanade
Ansys EmployeeHello,
Please have a look at following video.
Regards,
Keyur
-
October 24, 2018 at 1:09 pm
Keyur Kanade
Ansys EmployeeMoving to fluid dynamics category for better response.
Regards,
Keyur
-
October 25, 2018 at 1:47 pm
xfreekx
SubscriberHi,
Thanks for your replay.
Unfortunately it is not what I was looking for.
I want to specify the movement of a single body with 2 rotations around different axis.
In UDF define_zone_motion you can give origin, axis and omega.
But I want to give 2 origins and 2 omegas (axis is always z because it is 2D).
So the body will rotate to a certain position and then rotate again to reorient itself.
Maybe this is not possible and I have to find another solution to my problem
-
October 25, 2018 at 2:22 pm
Keyur Kanade
Ansys EmployeeHi
So you want to rotate about one origin for few iterations and then after that rotate about second origin after few iterations. Let me know if I understand correctly.
For this you may need to use journal file where you iterate and then change udf and then iterate again.
Regards,
Keyur
-
January 23, 2020 at 1:31 pm
srivastavatanuj
Subscriber
Hello,
Please have a look at following video.
Regards,
Keyur
Sir I want to do something similar to this, you can find my geometry in this link "https://ibb.co/6BfDD1h"
I want to give simple harmonic motion about the origin using "DEFINE ZONE MOTION" in cell zone condition. The video that you posted here give idea about the RPM, but if we supply UDF, it shows no motion. My UDF is attached in the figure below. Please suggest any changes in it.
On compiling, there is no error and while on checking the case in run calculation, there is no recommendation appears but while animating the case there is no motion appears. Please suggest modification in code
-
December 11, 2020 at 5:55 pm
srivastavatanuj
SubscriberSir, by default if we do not make change, then axis of rotation is z axis (at origin) for 2d geometry in XY plane. If I want to shift the axis to, say y = 0.5 unit, then what changes need to be made in UDF for shifting axis of rotation?nWhat if instead of writing omega[0], i write omega[0, 0.5, 0]?n -
December 14, 2020 at 2:59 pm
Rob
Ansys EmployeeIt depends on the UDF. If it's a DEFINE_PROFILE you need to change the axis in the cell zone panel. n -
December 17, 2020 at 9:13 am
srivastavatanuj
SubscriberI am using DEFINE_ZONE_MOTION n#include udf.hn#define Freq 0.125n#define angular_freq 2.0*M_PI*Freqn#define tetmax 5.0*M_PI/180nDEFINE_ZONE_MOTION(TP8AMP05, omega, axis, origin, velocity, time, dtime)n{nN3V_D(velocity, = , 0.0, 0.0, 0.0);n*omega = tetmax*angular_freq*cos(angular_freq*time);n}nWhen I hook the code in the cell zone condition, there comes no option to change the axis. So some modifications might be needed in UDF. I saw udf manual as well and googled it, but could not get any hint.nArrayn -
December 17, 2020 at 10:23 am
Rob
Ansys EmployeeDo you just want to alter the rotation speed? The axis is also set in the cell zone panel if that's the case. You may want to explore the relative and absolute options re adjacent cell zone in the cell zone panel. n -
December 18, 2020 at 6:22 am
srivastavatanuj
SubscriberI want my frame to do SHM as per the equation mentioned. Axis set option I did not find after hooking UDF, but let me look for the options that you told.nActually in my case, there is only one zone as you can see in the attachment. So in cell zone condition, there is only one zone that appears. might be that is why there is no options for relative there is no effect of surroundings, what is inside the zone that only matters. nn
-
December 18, 2020 at 10:32 am
Rob
Ansys EmployeeOK, you may need to set the axis separately then and use a profile for the rotation. n -
December 18, 2020 at 4:20 pm
srivastavatanuj
SubscriberYes, and that is where I am facing problem to set axis separately. I went through ansys UDF manual, but could not find anywhere about the shifting of axis of rotation or any similar thing. please guide. n
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2524
-
2066
-
1279
-
1096
-
457
© 2023 Copyright ANSYS, Inc. All rights reserved.