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

Dynamic mesh is not getting updated.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 16, 2011, 00:50
Unhappy Dynamic mesh is not getting updated.
  #1
New Member
 
SRIKUMAR KRISHNAMOORTHY
Join Date: Feb 2011
Posts: 2
Rep Power: 0
cardio is on a distinguished road
I'm trying to stimulate flow in the Left ventricular region of the heart during diastole for which I have written the following UDF :


#include <stdio.h>
#include "udf.h"
#include "dynamesh_tools.h"

#define pi 3.141592654
static real r_lv=0.023, flowrate_off=0.8;
static real force, dv ,flowrate ,t_use;

DEFINE_CG_MOTION(Velociraptor,dt,vel,omega,time,dt ime)
{
Thread *t=DT_THREAD ((Dynamic_Thread *)dt);
face_t f;
real *AA;
/*reset velocities*/
NV_S(vel, =, 0.0);
NV_S(omega, =, 0.0);
if (!Data_Valid_P())
return;
/*t=DT_THREAD (dt);*/
force = 0.0;
begin_f_loop (f, t)
{AA = F_AREA_CACHE (f, t);
force += F_P (f,t) * AA[0];}
end_f_loop(f,t);
t_use = 0.639638*CURRENT_TIME/0.6 - 0.039638; /* revise later */
flowrate = -99.865 *pow(t_use, 4);
flowrate = flowrate + 119.124 *pow(t_use, 3);
flowrate = flowrate - 43.389 *pow(t_use, 2);
flowrate = flowrate + 4.3084 *t_use;
flowrate = flowrate + 0.1951;
flowrate =(flowrate + 0.052) * 0.3/0.3748;

flowrate = - flowrate /1000.0 * flowrate_off; /* /1000.: unit factor */
vel[1] = flowrate / pi*r_lv*r_lv ;
}

The problem I'm facing is that the geometry is not getting updated.It updates for the first time step,but then that remains constant:

Updating mesh to time 1.00000e-03 (step = 00001)...
Dynamic Mesh Statistics:
Minimum Volume =2.91284e-011
Maximum Volume =2.54127e-009
Maximum Cell Skew =8.51365e-001 (cell zone 4)
Maximum Face Skew =4.59499e-001 (face zone 19)
done.
Updating mesh to time 2.00000e-03 (step = 00002)...
Dynamic Mesh Statistics:
Minimum Volume =2.91284e-011
Maximum Volume =7.82814e-009
Maximum Cell Skew =8.51365e-001 (cell zone 4)
Maximum Face Skew =4.59499e-001 (face zone 19)
done.
Updating mesh to time 3.00000e-03 (step = 00003)...
Dynamic Mesh Statistics:
Minimum Volume =2.91284e-011
Maximum Volume =7.82815e-009
Maximum Cell Skew =8.51365e-001 (cell zone 4)
Maximum Face Skew =4.59499e-001 (face zone 19)
done.

Can someone tell me what the problem might be ?
cardio is offline   Reply With Quote

Old   May 20, 2014, 09:41
Default same problem
  #2
lgm
New Member
 
Join Date: Aug 2013
Posts: 1
Rep Power: 0
lgm is on a distinguished road
Hi, i'm having the same problem
Do you resolve this? thanks
lgm is offline   Reply With Quote

Reply

Tags
dynamic mesh, udf


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
Incylinder dynamic mesh with volumetric reaction mas FLUENT 4 May 3, 2012 11:22
dynamic mesh on a hexa grid Manoj Kumar FLUENT 0 August 21, 2007 08:41
Dynamic mesh + grid adapt = Crash! (Files included BillH FLUENT 4 July 24, 2007 16:31
Help: Is it possible to use dynamic mesh model and Valery Ponyavin FLUENT 1 September 20, 2003 15:18


All times are GMT -4. The time now is 12:49.