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

Dynamic mesh guide

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2013, 16:51
Default Dynamic mesh guide
  #1
New Member
 
Guido
Join Date: Dec 2009
Posts: 17
Rep Power: 15
guido_88 is an unknown quantity at this point
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
guido_88 is offline   Reply With Quote

Old   April 12, 2013, 03:41
Default
  #2
Senior Member
 
ghost82's Avatar
 
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 26
ghost82 will become famous soon enough
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 04:43.
ghost82 is offline   Reply With Quote

Old   May 10, 2013, 06:23
Default
  #3
New Member
 
Join Date: Apr 2013
Posts: 19
Rep Power: 12
granbycools is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
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
granbycools is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 10:32.