Dynamic mesh guide

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

 April 11, 2013, 15:51 Dynamic mesh guide #1 New Member   Guido Join Date: Dec 2009 Posts: 17 Rep Power: 8 Hi, I've found this video on youtube: http://www.youtube.com/watch?NR=1&fe...&v=_zh1e5jxJyg Can anyone tell me all the steps and describe the udf that is necessary to do that? I need it for my thesis and I'm not able to do that alone. Thank you in advance

 April 12, 2013, 02:41 #2 Senior Member     Daniele Join Date: Oct 2010 Location: Italy Posts: 993 Rep Power: 17 Hi Guido, this could be something like this (I haven't checked if it works): Code: ```#include "udf.h" #define PI 3.14159265 DEFINE_GRID_MOTION(my_custom_udf,domain,dt,time,dtime) { real p, q; face_t f; Node *v; int n; Thread *tf=DT_THREAD(dt); SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf)); begin_f_loop(f,tf) { f_node_loop(f,tf,n) { v=F_NODE(f,tf,n); if (NODE_POS_NEED_UPDATE (v)) { NODE_POS_UPDATED(v); q=NODE_Y(v); p=(10*(sin(2.0*PI*62.5*time)))/100; /*from youtube video*/ NODE_X(v)=p; NODE_Y(v)=q; } } } end_f_loop(f,tf); }``` You can draw a fixed mesh around the moving object and a "deforming" mesh around this fixed mesh; then assign udf to the fixed mesh and use layering method for dynamic mesh (structured grid). Daniele Last edited by ghost82; April 12, 2013 at 03:43.

May 10, 2013, 05:23
#3
New Member

Join Date: Apr 2013
Posts: 19
Rep Power: 5
Quote:
 Originally Posted by ghost82 You can draw a fixed mesh around the moving object and a "deforming" mesh around this fixed mesh; then assign udf to the fixed mesh and use layering method for dynamic mesh (structured grid). Daniele
Hi Daniele,
are there any more detailed tutorials or instruction you can recommend how to do that?
I am trying to do a transient Ansys Fluent simulation with moving valves and I donīt know how to create a "deforming" mesh?
Any help would be very much appreciated.
Granbycools

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post cardio FLUENT 1 May 20, 2014 08:41 IndrajitW FLUENT 0 March 30, 2013 09:03 David FLUENT 3 March 15, 2012 06:02 herntan FLUENT 15 January 4, 2012 04:31 Manoj Kumar FLUENT 0 August 21, 2007 07:41

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