|
[Sponsors] |
April 11, 2013, 16:51 |
Dynamic mesh guide
|
#1 |
New Member
Guido
Join Date: Dec 2009
Posts: 17
Rep Power: 15 |
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, 03:41 |
|
#2 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
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); } Daniele Last edited by ghost82; April 12, 2013 at 04:43. |
|
May 10, 2013, 06:23 |
|
#3 | |
New Member
Join Date: Apr 2013
Posts: 19
Rep Power: 13 |
Quote:
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh on Pintle type injector. | herntan | FLUENT | 16 | September 4, 2020 09:27 |
Dynamic mesh is not getting updated. | cardio | FLUENT | 1 | May 20, 2014 09:41 |
dynamic mesh for drop interface | IndrajitW | FLUENT | 0 | March 30, 2013 09:03 |
Dynamic mesh update problem. | David | FLUENT | 3 | March 15, 2012 06:02 |
dynamic mesh on a hexa grid | Manoj Kumar | FLUENT | 0 | August 21, 2007 08:41 |