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

dynamic mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2017, 09:01
Default dynamic mesh
  #1
Member
 
zxc
Join Date: Mar 2015
Posts: 35
Rep Power: 11
zxcvasdf is on a distinguished road
Hi
i wanna to simulate a simple 2d case that flow crosses over a plate that is normal to flow and this plate(line in 2d ) will deform by a defined function by me and i want investigate the effect on flow.
for example line will defrom its shape as a parabola or some other function
how can i write udf for this motion?
Thanks
zxcvasdf is offline   Reply With Quote

Old   August 2, 2017, 05:45
Default
  #2
Member
 
zxc
Join Date: Mar 2015
Posts: 35
Rep Power: 11
zxcvasdf is on a distinguished road
No one could help me?
zxcvasdf is offline   Reply With Quote

Old   August 3, 2017, 15:29
Default
  #3
AHF
Member
 
AHF's Avatar
 
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 11
AHF is on a distinguished road
Quote:
Originally Posted by zxcvasdf View Post
Hi
i wanna to simulate a simple 2d case that flow crosses over a plate that is normal to flow and this plate(line in 2d ) will deform by a defined function by me and i want investigate the effect on flow.
for example line will defrom its shape as a parabola or some other function
how can i write udf for this motion?
Thanks
Hi, i guess i know what should you do. you have to use dynamic mesh. use DEFINE_GRID_MOTION micro. pressure deform the plate so read the pressure on the plate and then calculate the new x,y position of each node. then update the node position with some thing like this NODE_Y(v) = y
below is my udf update Y with function, maybe can help you

DEFINE_GRID_MOTION(down,domain,dt,time,dtime)
{
face_t f;
Thread *tf = DT_THREAD((Dynamic_Thread *)dt);
Node *v;
real x ;
real y ;
int n ;

/* set deforming flag on adjacent cell zone */
SET_DEFORMING_THREAD_FLAG(THREAD_T0(tf));

/*Message ("no node update check");*/
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);
x = NODE_X(v);
y = 0.005 * sin( ( 100 ) * ( NODE_X(v) - (0.02*time) ) ) ;
NODE_Y(v) = y ;
}

}
Update_Face_Metrics(f,tf);
}
end_f_loop(f,tf);
}
__________________
amirhosseinfardi94@gmail.com
AHF is offline   Reply With Quote

Reply


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 08:27
pls help. mesh collapsed with dynamic mesh. wlt_1985 FLUENT 2 May 7, 2020 10:42
[ICEM] Dynamic mesh setup with ICEM David121284 ANSYS Meshing & Geometry 0 April 11, 2014 04:19
Dynamic Mesh "Shadow Wall" thezack FLUENT 0 June 4, 2013 22:09
dynamic mesh for drop interface IndrajitW FLUENT 0 March 30, 2013 08:03


All times are GMT -4. The time now is 15:43.