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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   August 5, 2015, 06:50
Default Still very stuck, I'm sure there's a simple solution!
  #2
New Member
 
Aidan Holt
Join Date: Aug 2015
Location: Sydney University
Posts: 5
Rep Power: 10
Aidan100 is on a distinguished road
I've been reading up and it seems a common mistake for UFD beginners like myself. What I have read is:

You need to 'compile' a define_CG UFD before being able making it usable within dynamic mesher.

Although I can build/compile the above UDF, another error appears saying the libudf is unable to be used for parallel use on Windows 64x. So I tried reopening my setup process in fluent using a 'serial' instead and I get the following error:

Error: The UDF library you are trying to load (C:\Transient Analysis_files\dp0\FFF\Fluent\libudf) is not compiled for 2ddp on the current platform (win64).

Thankyou kind CFDonline people in Advance!
Aidan
Aidan100 is offline   Reply With Quote

Old   August 16, 2015, 23:39
Default
  #3
Far
Super Moderator
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,553
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
This problem arises due to problems in installation of Visual studio. In addition to that you should have correct combination of Fluent version and Visual Studio version.
Far is offline   Reply With Quote

Reply

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 02:54.