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   September 29, 2006, 10:54
Default Dynamic mesh
  #1
Hugo Mota
Guest
 
Posts: n/a
My work is in an Oscilating water column and I would like to know how to avoid the negative volumes. when I start my iteration, doing time step.

I tried first with a simple square and it din´t work also I'm not sure if it's my UDF or something else. Another problem is that I can´t define a loop in the UDF using CG_motion and that would desired also. I can thow define the loop in the define_profile

Here is my UDF:

#include "udf.h" # include "dynamesh_tools.h"

/* constants */

#define UMAX 2.82 #define PERIODO 10.0

/* evolução sinosoidal da velocidade */

DEFINE_CG_MOTION(unsteady_veloc, dt, vel, omega, time, dtime) { real t, w_inst; face_t f;

NV_S(omega, =, 0.0); NV_S(vel, =, 0.0);

t = RP_Get_Real("flow-time"); w_inst = 1+UMAX*sin(6.2832*t/PERIODO-1.5708);

}

  Reply With Quote

Old   September 29, 2006, 10:58
Default Re: Dynamic mesh
  #2
Hugo Mota
Guest
 
Posts: n/a
#include "udf.h"

# include "dynamesh_tools.h"

/* constants */

#define UMAX 2.82

#define PERIODO 10.0

/* evolução sinosoidal da velocidade */

DEFINE_CG_MOTION(unsteady_veloc, dt, vel, omega, time, dtime)

{

real t, w_inst;

face_t f;

NV_S(omega, =, 0.0);

NV_S(vel, =, 0.0);

t = RP_Get_Real("flow-time");

w_inst = 1+UMAX*sin(6.2832*t/PERIODO-1.5708);

}

  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
Incylinder dynamic mesh with volumetric reaction mas FLUENT 4 May 3, 2012 10:22
dynamic mesh on a hexa grid Manoj Kumar FLUENT 0 August 21, 2007 07:41
Dynamic mesh + grid adapt = Crash! (Files included BillH FLUENT 4 July 24, 2007 15:31


All times are GMT -4. The time now is 06:29.