CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Dynamic mesh simple moving

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 18, 2012, 13:04
Default Dynamic mesh simple moving
  #1
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 6
DonQuijote is on a distinguished road
Hi all,

Hi am unexperienced in UDF compiling. So I'd like to show you my case and hope to receive some help...

I want to move the hole I have in my domain as shown in the picture attached. For that, I suppose to make an UDF as follows:

# include "udf.h"
# include "dynamesh_tools.h"
*************HOle Movement**************************
DEFINE_CG_MOTION(holemov, dt, vel, omega, time, dtime)
{
Thread *t;
face_t f;
vel[1]=40;
}


So the walls of the hole have a constant speed of 40 m/s. I know that I miss some things in the UDF, but as the case is quite simple, it is sure that there is somebody that could help me...

Thank you for your help!!!

DonQuijote is offline   Reply With Quote

Old   October 19, 2012, 04:50
Default
  #2
New Member
 
phanh
Join Date: Feb 2011
Posts: 20
Rep Power: 7
phanh is on a distinguished road
Quote:
Originally Posted by DonQuijote View Post
Hi all,

Hi am unexperienced in UDF compiling. So I'd like to show you my case and hope to receive some help...

I want to move the hole I have in my domain as shown in the picture attached. For that, I suppose to make an UDF as follows:

# include "udf.h"
# include "dynamesh_tools.h"
*************HOle Movement**************************
DEFINE_CG_MOTION(holemov, dt, vel, omega, time, dtime)
{
Thread *t;
face_t f;
vel[1]=40;
}


So the walls of the hole have a constant speed of 40 m/s. I know that I miss some things in the UDF, but as the case is quite simple, it is sure that there is somebody that could help me...

Thank you for your help!!!

Hi,

Tell me exactly which problem are you facing with your UDF code? I may help you
phanh is offline   Reply With Quote

Old   October 22, 2012, 06:19
Default
  #3
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 6
DonQuijote is on a distinguished road
Thank you phanh for your interest. I have tested the UDF and it seems to do what I wanted (to move the hole in one direction). So the problem is solved and the dynamic mesh not produces any.

But thank you again
Regards
DonQuijote is offline   Reply With Quote

Old   November 12, 2012, 22:53
Default reply
  #4
New Member
 
songjianxin
Join Date: Nov 2012
Posts: 4
Rep Power: 5
627680136 is on a distinguished road
Quote:
Originally Posted by DonQuijote View Post
Hi all,

Hi am unexperienced in UDF compiling. So I'd like to show you my case and hope to receive some help...

I want to move the hole I have in my domain as shown in the picture attached. For that, I suppose to make an UDF as follows:

# include "udf.h"
# include "dynamesh_tools.h"
*************HOle Movement**************************
DEFINE_CG_MOTION(holemov, dt, vel, omega, time, dtime)
{
Thread *t;
face_t f;
vel[1]=40;
}


So the walls of the hole have a constant speed of 40 m/s. I know that I miss some things in the UDF, but as the case is quite simple, it is sure that there is somebody that could help me...

Thank you for your help!!!

hi,I'd like to know how you solve the problem,thank you!!!
627680136 is offline   Reply With Quote

Old   November 13, 2012, 04:06
Default
  #5
Senior Member
 
ghost82's Avatar
 
Daniele
Join Date: Oct 2010
Location: Italy
Posts: 992
Rep Power: 16
ghost82 will become famous soon enough
Quote:
Originally Posted by 627680136 View Post
hi,I'd like to know how you solve the problem,thank you!!!
vel[1] moves in y direction; looking at the picture DonQuijote wants to move the object in +- x direction, so he must use vel[0]; supposing you want to move the object with constant 40 m/s velocity in +x direction you have to write vel[0]=40;

Daniele
ghost82 is offline   Reply With Quote

Old   November 13, 2012, 05:29
Default
  #6
Member
 
Join Date: Jun 2012
Posts: 32
Rep Power: 6
DonQuijote is on a distinguished road
Sorry, I forgot this post since I finally didn't develop so much the model.

What ghost82 comments is totally right! I had to change the direction of velocity to vel[0] (when I first began the thread I didin't know what [1] means...). Since I only wanted to move in one direction (x+), vel[0]=40.

Regards
DonQuijote is offline   Reply With Quote

Old   November 14, 2012, 20:56
Default reply
  #7
New Member
 
songjianxin
Join Date: Nov 2012
Posts: 4
Rep Power: 5
627680136 is on a distinguished road
Quote:
Originally Posted by ghost82 View Post
vel[1] moves in y direction; looking at the picture DonQuijote wants to move the object in +- x direction, so he must use vel[0]; supposing you want to move the object with constant 40 m/s velocity in +x direction you have to write vel[0]=40;

Daniele
thank you! I got it
627680136 is offline   Reply With Quote

Old   November 14, 2012, 20:57
Default reply
  #8
New Member
 
songjianxin
Join Date: Nov 2012
Posts: 4
Rep Power: 5
627680136 is on a distinguished road
Quote:
Originally Posted by DonQuijote View Post
Sorry, I forgot this post since I finally didn't develop so much the model.

What ghost82 comments is totally right! I had to change the direction of velocity to vel[0] (when I first began the thread I didin't know what [1] means...). Since I only wanted to move in one direction (x+), vel[0]=40.

Regards
Thank you very much for your answer!
627680136 is offline   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
Explanation moving mesh, moving frame, or dynamic mesh fbar FLUENT 1 April 13, 2012 07:57
Turbulent compressible solver rhoTurbFoam with dynamic moving mesh eno OpenFOAM Running, Solving & CFD 4 December 12, 2011 04:38
Dynamic 'moving' mesh DarrenC Main CFD Forum 3 March 17, 2010 02:45
Question on InterFoam moving mesh capabilities ziv OpenFOAM Running, Solving & CFD 0 April 23, 2008 09:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


All times are GMT -4. The time now is 04:31.