|
[Sponsors] |
July 27, 2017, 09:01 |
dynamic mesh
|
#1 |
Member
zxc
Join Date: Mar 2015
Posts: 35
Rep Power: 11 |
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 |
|
August 2, 2017, 05:45 |
|
#2 |
Member
zxc
Join Date: Mar 2015
Posts: 35
Rep Power: 11 |
No one could help me?
|
|
August 3, 2017, 15:29 |
|
#3 | |
Member
amirhossein
Join Date: Jul 2014
Location: Canada
Posts: 81
Rep Power: 11 |
Quote:
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 |
||
|
|
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 |