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

Is my Dynamic mesh setup correct?

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

Like Tree6Likes
  • 1 Post By cfd seeker
  • 2 Post By nimbus1947
  • 1 Post By aerosjc
  • 2 Post By cfd seeker

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2012, 04:31
Default Is my Dynamic mesh setup correct?
  #1
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
I am trying to simulate flapping motion of the wing using Dynamic Mesh. I have setup the case in Fluent but I have some doubts and questions regarding it. I am uploading the pictures which will show the dynamic mesh setup. Kindly tell me is it correct? The problem consist of a domain around the wing, symmetry plane, wing and fluid zones. Few questions......

1. I have declared domain(farfield) as "Stationary" zone as shown in pic1. Is it correct? how to set value of "Cell Height"(shown by a question mark in pic1)?

2. Fluid is set as "Deforming" as shown in pic2. Is it correct? values of the "Zone Parameters" will be taken from "Zone Scale Info" as shown in pic2? right?

3. S1020 is the name of wing which will be given motion using a DEFINE_GRID_MOTION udf and S1020 is set as "User Defined" as shown in pic3 is it correct? how to set value of "Cell Height"(shown by a question mark in pic3)?

4. Symmetry plane is set as "Stationary" as shown in pic4 is it correct? how to set value of "Cell Height"(shown by a question mark in pic4)?

Also after the finalization of UDF I will use full structured hexa mesh for this problem. For this purpose in Dynamic mesh I will only use "Smoothing" and "Layering" for mesh update? am I right kindly comment? I cannot use "Remeshing" as it only works for unstructured meshes? right?
Attached Images
File Type: jpg 1.jpg (93.9 KB, 640 views)
File Type: jpg 2.jpg (94.9 KB, 456 views)
File Type: jpg 3.jpg (96.0 KB, 388 views)
File Type: jpg 4.jpg (97.1 KB, 349 views)
Durga Sravan likes this.
cfd seeker is offline   Reply With Quote

Old   September 14, 2012, 00:25
Default
  #2
New Member
 
Join Date: Sep 2009
Location: IIT Kharagpur
Posts: 10
Rep Power: 17
nimbus1947 is on a distinguished road
What i am about to you tell you works for unstructured tetrahedral mesh.

1. Cell Height is the ideal height based on which Fluent calculates whether to split or collapse cells.
Ref:https://www.sharcnet.ca/Software/Flu...ug/node396.htm
2. Use DEFINE_CG_MOTION for the motion of wall.
Ref:https://www.sharcnet.ca/Software/Flu.../udf/fludf.pdf
3. Symmetry plane should be set as deforming.
4. Farfield -> Stationary ? -- Not required
fluid -> Deforming? -- not required
Durga Sravan and Melvo like this.
nimbus1947 is offline   Reply With Quote

Old   September 15, 2012, 00:27
Default
  #3
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
1. Farfield not necessary to be stationary. I never set a certain value for the cell height. I just keep the original value. It's ok for my case.
2. Fluid not necessary to be deforming. So, do not need to worry the zone parameters.
Leave them alone.
3. You should refer to the UDF manual for more infomation about DEFIEN_GRID_MOTION and DEFINE_CG_MOTION. In fact, you should use DEFINE_CG_MOTION to define the motion of your wing. And, you should set "Rigid Body" for your wing.
4. I think the symmetry plane may be better to be set as deforming.
5. I don't know whether you want to rotate the wing a big angle, say 45 degrees, or not. Smoothing is available for small degrees. I hold an opinion that layering is not suitable for your flapping case. Remeshing is designed for big degrees or big displacement movement. Actually, I do not know how to move the structural mesh for a big displacement. If you make it, please tell me how.
mohammadkm likes this.
aerosjc is offline   Reply With Quote

Old   September 15, 2012, 15:27
Default
  #4
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Quote:
Originally Posted by aerosjc View Post
1. Farfield not necessary to be stationary. I never set a certain value for the cell height. I just keep the original value. It's ok for my case.
2. Fluid not necessary to be deforming. So, do not need to worry the zone parameters.
Leave them alone.
3. You should refer to the UDF manual for more infomation about DEFIEN_GRID_MOTION and DEFINE_CG_MOTION. In fact, you should use DEFINE_CG_MOTION to define the motion of your wing. And, you should set "Rigid Body" for your wing.
4. I think the symmetry plane may be better to be set as deforming.
5. I don't know whether you want to rotate the wing a big angle, say 45 degrees, or not. Smoothing is available for small degrees. I hold an opinion that layering is not suitable for your flapping case. Remeshing is designed for big degrees or big displacement movement. Actually, I do not know how to move the structural mesh for a big displacement. If you make it, please tell me how.
Quote:
2. Fluid not necessary to be deforming. So, do not need to worry the zone parameters.
Leave them alone.
Are you sure about this ...I guess fluid region will get deform once wing will flap, we check on Smoothing, Layering and Remeshing in order to smooth, layer and remesh "Deformed" portion of the mesh in the FLUID zone, isn't it? your comments
cfd seeker is offline   Reply With Quote

Old   September 15, 2012, 15:32
Default
  #5
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Quote:
4. I think the symmetry plane may be better to be set as deforming.
I am not sure about this? any body else can clarify it please....

Quote:
3. You should refer to the UDF manual for more infomation about DEFIEN_GRID_MOTION and DEFINE_CG_MOTION. In fact, you should use DEFINE_CG_MOTION to define the motion of your wing. And, you should set "Rigid Body" for your wing.
We can use both Macros but ifact Define_Grid_Motion is more better than Define_CG_Motion
cfd seeker is offline   Reply With Quote

Old   September 19, 2012, 06:15
Default
  #6
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
I agree with you on the idea that the fluid region will deform once the wing will flap. But I think that the setting of smoothing, layering and remeshing is doing this job, so we do not need to set the " deforming " option. This is my opinion.
aerosjc is offline   Reply With Quote

Old   September 19, 2012, 06:17
Default
  #7
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
I remember the macro DEFINE_GRID_MOTION is for your mesh motion, instead of your wing motion. my opinion.
aerosjc is offline   Reply With Quote

Old   September 23, 2012, 04:50
Default
  #8
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Quote:
Originally Posted by aerosjc View Post
I agree with you on the idea that the fluid region will deform once the wing will flap. But I think that the setting of smoothing, layering and remeshing is doing this job, so we do not need to set the " deforming " option. This is my opinion.
I confirmed it from a very experienced user that for this problem zones will be defined as fallows....
1. Farfield to set as "Stationary"
2. Symmetry also as "Stationary"
3. Fluid to define as "Deforming"
4. Wing to set as "Rigid Body" once you use DEFINE_CG_MOTION macro
ghost82 and Durga Sravan like this.
cfd seeker is offline   Reply With Quote

Old   September 23, 2012, 06:51
Default
  #9
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
ok, but I also made a success without your 1, 2, 3.
aerosjc is offline   Reply With Quote

Old   September 23, 2012, 07:07
Default
  #10
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Quote:
Originally Posted by aerosjc View Post
ok, but I also made a success without your 1, 2, 3.
Strange because I also confirmed it from the posts in other forums. Have you compared your results with any benchmark case?
cfd seeker is offline   Reply With Quote

Old   September 23, 2012, 08:58
Default
  #11
Member
 
Jingchang.Shi
Join Date: Aug 2012
Location: Hang Zhou, China
Posts: 78
Rep Power: 14
aerosjc is on a distinguished road
Could you give me some cases for confirmation? Many thanks!
aerosjc is offline   Reply With Quote

Old   September 24, 2012, 13:10
Default
  #12
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Quote:
Originally Posted by aerosjc View Post
Could you give me some cases for confirmation? Many thanks!
you mean Papers or my case and data files?
cfd seeker is offline   Reply With Quote

Old   September 24, 2012, 13:13
Default
  #13
Senior Member
 
Join Date: Mar 2011
Location: Germany
Posts: 552
Rep Power: 20
cfd seeker is on a distinguished road
Quote:
Originally Posted by aerosjc View Post
Could you give me some cases for confirmation? Many thanks!
http://www.cfd-online.com/Forums/flu...volume-3d.html
Read this thread
cfd seeker is offline   Reply With Quote

Old   December 16, 2012, 10:37
Default
  #14
Member
 
Vidit Sharma
Join Date: Aug 2012
Location: Delhi, India
Posts: 32
Rep Power: 14
Vidit Sharma is on a distinguished road
Hi All..

Sir,
I am trying to rotate a 2D box or a 2D cup structure in Fluent using smoothing and remeshing. I am using tri mesh and as mentioned in Fluent Manual I am using smoothing and remeshing and also set the remeshing parameters from mesh info tab given in the remeshing menu. But the problem is that when i start simulation and it goes to first time step Fluent display "Updating mesh at time level N..." and here it stops and it happened alot of time and even waiting after a whole day it didnt worked. I also tried time step size from 0.01 to 0.000001 but it still show this problem.

Can you plz help in this case?

Thank u in advance
Vidit Sharma is offline   Reply With Quote

Old   January 26, 2013, 15:01
Default
  #15
New Member
 
akshay
Join Date: Nov 2012
Location: IIT Bombay
Posts: 6
Rep Power: 14
akshaymanikjade is on a distinguished road
you pls check your dynamic mesh parameter properly.....if have proper idea to set or no then let me know so will help in this regard..
akshaymanikjade is offline   Reply With Quote

Old   November 8, 2017, 09:14
Default Deforming wall shape
  #16
New Member
 
Join Date: May 2015
Posts: 3
Rep Power: 11
srvsahay is on a distinguished road
Hi everyone,
I am new to dynamic mesh and trying to model my right wall as moving wall based on force balance.

My udf looks like this(same udf as provided in user manual):

#include "udf.h"
static real v_prev=0.0;
DEFINE_CG_MOTION(pstn, dt, vel, omega, time, dtime)
{

Thread *t;
face_t f;
real NV_VEC (A);
real force, dv;
/* reset velocities */
NV_S (vel, =, 0.0);
NV_S (omega, =, 0.0);
if (!Data_Valid_P ())
return;
/* get the thread pointer for which this motion is defined */
t = DT_THREAD (dt);
/* compute pressure force on body by looping through all faces */
force = 0.0;
begin_f_loop (f, t)
{
F_AREA (A, f, t);
force += F_P (f, t) * NV_MAG (A);
}
end_f_loop (f, t)
/* compute change in velocity, i.e., dv = F * dt / mass
velocity update using explicit Euler formula */
if(force>0)
dv = dtime * force / 50.0;
else
dv=0;
v_prev += dv;
Message ("time = %f, x_vel = %f, force = %f\n", time, v_prev, force);
Message ("yo");
/* set x-component of velocity */
vel[0] = v_prev;
}

However the shape of my right wall gets deformed. I want the shape to be intact. Please suggest what should be the settings in dynamic mesh. Which method should i use?
Attached Images
File Type: png mesh def.PNG (29.8 KB, 52 views)
srvsahay is offline   Reply With Quote

Old   October 30, 2020, 07:16
Post Create a velocity UDF
  #17
New Member
 
Rodolfo Alves Carvalho
Join Date: Jul 2020
Posts: 1
Rep Power: 0
r7carvalho is on a distinguished road
Hi, the forces are different, so you have a shear deformation. The solution would be to declare a global scope variable and comput it average in the face. After, you aply the same velocity in the whole thread (face, boundary, cells, etc).


Quote:
Originally Posted by srvsahay View Post
Hi everyone,
I am new to dynamic mesh and trying to model my right wall as moving wall based on force balance.

My udf looks like this(same udf as provided in user manual):

#include "udf.h"
static real v_prev=0.0;
DEFINE_CG_MOTION(pstn, dt, vel, omega, time, dtime)
{

Thread *t;
face_t f;
real NV_VEC (A);
real force, dv;
/* reset velocities */
NV_S (vel, =, 0.0);
NV_S (omega, =, 0.0);
if (!Data_Valid_P ())
return;
/* get the thread pointer for which this motion is defined */
t = DT_THREAD (dt);
/* compute pressure force on body by looping through all faces */
force = 0.0;
begin_f_loop (f, t)
{
F_AREA (A, f, t);
force += F_P (f, t) * NV_MAG (A);
}
end_f_loop (f, t)
/* compute change in velocity, i.e., dv = F * dt / mass
velocity update using explicit Euler formula */
if(force>0)
dv = dtime * force / 50.0;
else
dv=0;
v_prev += dv;
Message ("time = %f, x_vel = %f, force = %f\n", time, v_prev, force);
Message ("yo");
/* set x-component of velocity */
vel[0] = v_prev;
}

However the shape of my right wall gets deformed. I want the shape to be intact. Please suggest what should be the settings in dynamic mesh. Which method should i use?
r7carvalho is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03
What's the correct unstructured mesh procedure Nick R ANSYS Meshing & Geometry 3 January 12, 2011 19:40
[mesh manipulation] Dynamic Mesh Diffusivity Problem dancfd OpenFOAM Meshing & Mesh Conversion 0 August 29, 2010 12:50
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 15:41.