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

Dynamic mesh

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

Reply
 
LinkBack Thread Tools 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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incylinder dynamic mesh with volumetric reaction mas FLUENT 4 May 3, 2012 10:22
Dynamic Mesh on Pintle type injector. herntan FLUENT 15 January 4, 2012 04:31
pls help. mesh collapsed with dynamic mesh. wlt_1985 FLUENT 1 July 28, 2011 01:53
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 00:44.