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

UDF Dynamic Meshing for Rotation and Translation

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   August 3, 2015, 23:57
Post UDF Dynamic Meshing for Rotation and Translation
  #1
New Member
 
Aidan Holt
Join Date: Aug 2015
Location: Sydney University
Posts: 5
Rep Power: 10
Aidan100 is on a distinguished road
Hey,

I'm learning how to use UDF's in order to set up a transient solver within fluent to test for dynamics involved with a morphing wing in between steady state solutions/morphing.

I am beginning with a simple 2D case and trying to learn how to rotate and translate basic objects in 2D (before progressing to 3D). I am trying to simulate the rotating cylinder to achieve lift and have attached the following UDF which should be able to define the rotational motion about the z-axis. (Source: http://projekter.aau.dk/projekter/fi...Enclosures.pdf)


/************************************************** *********************
udfexample.c
UDF for rotation of cylinder
************************************************** **********************/

# include "udf.h"
DEFINE_CG_MOTION ( rotation_udf_45 , dt , vel , omega , time , dtime )
{
real pi = 3.141592;
real omega_constant = 45* pi /180;
omega [2] = omega_constant ;
}




However after interpreting my UDF and applying it to the cylinder (zone 8) within the Dynamic Mesh menu bar it says:

"Warning: incorrect cg motion UDF rotation_udf_45 on zone 8 (assuming no motion). "


Indeed there is no motion occurring when the preview mesh motion is selected. How can I solve this problem?
Aidan100 is offline   Reply With Quote

 

Tags
dynamic mesh, fluent - udf, motion dynamicmesh, transient, udf


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
Natural convection in a closed domain STILL NEEDING help! Yr0gErG FLUENT 4 December 2, 2019 00:04
UDF applied dynamic mesh and mesh motion in the same time lostmmind Fluent UDF and Scheme Programming 7 April 6, 2015 09:57
sinusoidal horizontal translation udf in ansys fluent shivshankarnair FLUENT 1 September 19, 2014 06:40
Dynamic Meshing 2D whole domain translation newtbeard FLUENT 0 April 5, 2013 09:56
UDF MESH DYNAMIC Benzamia FLUENT 1 May 8, 2006 14:59


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