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

Oscillating blade in a stationary domain?

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

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2022, 03:08
Default Oscillating blade in a stationary domain?
  #1
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
I want to simulate an oscillating blade in a stationary domain in CFX, which involves a mesh deformation process.

I set the "Mesh Deformation" option as "Regions of Motion Specified", and to set the oscillating velocity of the blade, the "Mesh Motion" option of the blade settings tab is defined as "Surface of Revolution".
Under the "Mass and Momentum" tab, the "Wall Velocity" is checked and the velocity component is specified.
I wrote an expression for the oscillating velocity function which consists of a "cos" function with time, i.e., "cos(2*pi*f*t)".
When I set a velocity component as the expression function the following error appears:

"
CEL error:
The dimensions of the argument to function 'cos' are inconsistent with expected dimensions.
Argument dimensions resolve to 's'; expected 'rad'.
"

My first question: is my approach to simulate an oscillating object wrong?
the 2nd question: how can I fix the units of "cos" function"?

Any help would be appreciated.
Kind Regards
Capture.PNG

Capture1.PNG

Capture2.PNG
ehsan.bakhtiari is offline   Reply With Quote

Old   January 23, 2022, 03:26
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
There are many mistakes I can see in what you have done. Rather than explain them it would be better for everybody if you did the tutorial examples which use moving mesh. This is the best way to learn how to use moving mesh capabilities in CFX.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 23, 2022, 11:29
Default
  #3
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
There are many mistakes I can see in what you have done. Rather than explain them it would be better for everybody if you did the tutorial examples which use moving mesh. This is the best way to learn how to use moving mesh capabilities in CFX.
Thank you so much, Glenn, for your reply.
I'll follow your suggestion.
But I didn't understand; you mean that CFX is not capable of deforming such a mesh? Please let me know.
ehsan.bakhtiari is offline   Reply With Quote

Old   January 23, 2022, 17:31
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, CFX can do it.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 26, 2022, 15:44
Default
  #5
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Yes, CFX can do it.
Thank you again for your reply, but I faced some other issues, Glenn.
Firstly, I've defined a rigid body with zero mass and inertia for the oscillating blade.
Then, the mesh motion of the body is set as "Rigid Body Solution", and to assign the oscillation velocity, the "Wall Velocity" is selected so as the written expression.
Under these settings, the body does move, but I've encountered the following issues:
1. the solver manager reported a non-converging warning of the rotational degrees of freedom of the blade. What is this exactly? Is this connected to the stiffness value of the mesh? Should I alter this value regarding this issue? I've uploaded the associated screenshot.
2. the aim of this problem is to simulate the oscillation of the object at EVERY TIMESTEP, but the solver solves the mesh deformation in EVERY COEFFICIENT LOOP ITERATION. This sounds weird because the defined velocity expression is based on the flow time, so the mesh should not be moved in every ITERATION.
3. Besides, is the considered approach to move the blade true? Since I've found only two tutorials in the manual (Ball valve and the FSI plate), and I think this is the best way.

I'd like to thank any help in advance.
Kind Regards

Capture11.PNG

Capture22.jpg
ehsan.bakhtiari is offline   Reply With Quote

Old   January 26, 2022, 16:46
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Your questions:
1) Non-convergence means the equation it is solving to determine the body's position has not converged. This involves the flow field, the body, its interaction and the numerical settings associated with it. It has nothing to do with the mesh stiffness.

2) The solver needs to determine the position of the body each time step, and the position is a coupled equation between the flow field and the body's motion. Hence it needs to iterate towards a solution, and hence it calculates every coefficient loop.

3) I do not know what you are trying to do and what you are trying to achieve. Please explain what you are trying to do more fully. What motion do you expect? How big is the motion? How is the blade supported?

But you appear to have made two other fundamental mistakes:
1) You are using a rigid body solver, but I suspect you are trying to model a flexible body. This would be a FSI simulation, not a rigid body simulation.
2) You are trying to move your body by applying a wall velocity. This option does not move the wall, it just makes the fluid cells adjacent to the wall use a wall velocity for the wall shear calculations. It does not move the body.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 27, 2022, 04:05
Default
  #7
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Your questions:
1) Non-convergence means the equation it is solving to determine the body's position has not converged. This involves the flow field, the body, its interaction and the numerical settings associated with it. It has nothing to do with the mesh stiffness.

2) The solver needs to determine the position of the body each time step, and the position is a coupled equation between the flow field and the body's motion. Hence it needs to iterate towards a solution, and hence it calculates every coefficient loop.

3) I do not know what you are trying to do and what you are trying to achieve. Please explain what you are trying to do more fully. What motion do you expect? How big is the motion? How is the blade supported?

But you appear to have made two other fundamental mistakes:
1) You are using a rigid body solver, but I suspect you are trying to model a flexible body. This would be a FSI simulation, not a rigid body simulation.
2) You are trying to move your body by applying a wall velocity. This option does not move the wall, it just makes the fluid cells adjacent to the wall use a wall velocity for the wall shear calculations. It does not move the body.
Thank you so much, Glenn, for your help.

No, it is not an FSI-based problem; the problem is to simulate the dynamic harmonic motion of the body and to investigate its resultant aerodynamical effects. It has nothing to do with the solid.
Surprisingly, the blade has been moved. I've attached the moved mesh.
I still wonder why CFX updates and solves the mesh displacement at each Coefficient Loop; I understand the solver should solve the mesh movement, as well, at each ITERATION, but I'd expect the mesh not to be moved within each TIMESTEP because the expected motion is based on a "cos" function in TIME; whereas the different residuals of the "mesh displacement" from a Coefficient Loop to another show that the mesh is moved at every iteration, too.
BTW, I faced another issue: the mesh is generated using TURBOGRID and the topology of the mesh at both hub and shroud (upper and bottom sides) are very similar; but when I see the moved mesh, the topology of the deformed mesh at the sides is different, especially at the bottom side where there is a potential risk of a negative element. Have you ever faced a similar situation? What should I do?
Is there a way to avoid the convergence warning of the rotational equation?

Note that I've already solved the steady simulation of the stationary case with no problem and the mesh size is nearly 700,000 (in this section, the vane; the overall elements of the entire geometry are 5.2 million) and the Mach number is slightly higher than unity.

Again, thank you so much in advance.
Regards

Capture111.PNG

Capture222.PNG

Capture333.PNG
ehsan.bakhtiari is offline   Reply With Quote

Old   January 27, 2022, 05:25
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Sorry, I misunderstood a few things there.

You appear to be doing this with a rigid body solver. This should be just a moving mesh simulation. Moving mesh simulations calculate the mesh deformation once at the start of the iteration only, and not at each coefficient loop.

Have a look at the CFX tutorials on moving mesh simulations (where the motion is pre-defined) - not rigid body simulations (where the motion is coupled to the fluid flow).

The folding mesh is a common problem: https://www.cfd-online.com/Wiki/Ansy..._went_wrong.3F
ehsan.bakhtiari likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 28, 2022, 02:29
Default
  #9
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Thanks, Glenn.
Supposedly, I must write a user FORTRAN, including the function for blade movement.
Unfortunately, CFX 2021 tutorial guide contains only the rigid body solutions, and older versions contain two tutorials: the Ball Valve and the oscillating plate FSI.
For the Ball Valve in the older versions, a function is reportedly written named "ValveFSI_expressions.ccl" to move the Ball, but I cannot find or download it.
How can I find this file? The "examples" folder on my PC does not have it.
Thanks.
ehsan.bakhtiari is offline   Reply With Quote

Old   January 28, 2022, 03:03
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,830
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You are right, there does not seem to be any mesh motion only tutorials any more.

Please post your output file and I will try to point out the things you have to change.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   January 28, 2022, 09:31
Default
  #11
Senior Member
 
Gert-Jan
Join Date: Oct 2012
Location: Europe
Posts: 1,901
Rep Power: 28
Gert-Jan will become famous soon enough
I guess this is one of the ways ANSYS is directing people towards Fluent.
Gert-Jan is offline   Reply With Quote

Old   January 28, 2022, 13:27
Default
  #12
Senior Member
 
Join Date: Jun 2009
Posts: 1,862
Rep Power: 33
Opaque will become famous soon enough
Still, I am not clear what you are trying to achieve with your model.

There is a tutorial, Fourier Transformation Blade Flutter, which shows how to do this kind of simulation: blade vibrating at a specified frequency. If you do not need the pitch change model, just do not activate it.

Are the mesh deformation equations being solved every coefficient loop? or solved at the start of the timestep and iteratively converged before the flow equations are solved? The latter is the default behavior if I recall correctly. Even for a finite deformation w/o any function of time, the equations are solved iteratively (read documentation for details)
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   January 28, 2022, 14:06
Default
  #13
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Quote:
Originally Posted by Opaque View Post
Still, I am not clear what you are trying to achieve with your model.

There is a tutorial, Fourier Transformation Blade Flutter, which shows how to do this kind of simulation: blade vibrating at a specified frequency. If you do not need the pitch change model, just do not activate it.

Are the mesh deformation equations being solved every coefficient loop? or solved at the start of the timestep and iteratively converged before the flow equations are solved? The latter is the default behavior if I recall correctly. Even for a finite deformation w/o any function of time, the equations are solved iteratively (read documentation for details)
Thanks.
No, it is not basically a TBR (transient blade row) model.
As shown in my previously uploaded pictures, the blade must be oscillating in a stationary domain. The domain at which the blade is present is physically static. So only the blade's wall mush be moved and the mesh must be definitely deformed.
Since I activated a Rigid Body solution, the mesh equations are being solved at every coefficient loop; but, supposedly, I just need to define deformation functions for the blade's wall BC, so that the mesh is being deformed within every timestep, not at every iteration. Sadly, I've found nothing in the tutorials in this regard. Thus, I wrote couple functions (based on a rotational matrix with respect to the secondary coordinate frame at the blade's edge as shown in the picture) for the "Specified Displacement" tab at which cartesian components can be set via the written expressions; but the mesh is badly twisted near the center of the rotation.
ehsan.bakhtiari is offline   Reply With Quote

Old   January 28, 2022, 14:08
Default
  #14
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
You are right, there does not seem to be any mesh motion only tutorials any more.

Please post your output file and I will try to point out the things you have to change.
Thank you so much, Glenn.
Your consideration is deeply appreciated.
Do you mean the *.res file as the "output file"? It is actually a big file, almost 2GB...
ehsan.bakhtiari is offline   Reply With Quote

Old   January 28, 2022, 14:19
Default
  #15
New Member
 
ehsan bakhtiari
Join Date: May 2016
Posts: 13
Rep Power: 10
ehsan.bakhtiari is on a distinguished road
Quote:
Originally Posted by Gert-Jan View Post
I guess this is one of the ways ANSYS is directing people towards Fluent.
Agree. This is an easy-peasy task for FLUENT; the "DEFINE_CG_MOTION" macro can easily do this. But all of my previous data and performance maps have been calculated by CFX, so switching to FLUENT seems to be frustrating, all of the obtained *.res files by CFX should be again solved by FLUENT......
ehsan.bakhtiari is offline   Reply With Quote

Old   January 28, 2022, 19:13
Default
  #16
Senior Member
 
Join Date: Jun 2009
Posts: 1,862
Rep Power: 33
Opaque will become famous soon enough
Quote:
Originally Posted by ehsan.bakhtiari View Post
Thanks.
No, it is not basically a TBR (transient blade row) model.
As shown in my previously uploaded pictures, the blade must be oscillating in a stationary domain. The domain at which the blade is present is physically static. So only the blade's wall mush be moved and the mesh must be definitely deformed.
Since I activated a Rigid Body solution, the mesh equations are being solved at every coefficient loop; but, supposedly, I just need to define deformation functions for the blade's wall BC, so that the mesh is being deformed within every timestep, not at every iteration. Sadly, I've found nothing in the tutorials in this regard. Thus, I wrote couple functions (based on a rotational matrix with respect to the secondary coordinate frame at the blade's edge as shown in the picture) for the "Specified Displacement" tab at which cartesian components can be set via the written expressions; but the mesh is badly twisted near the center of the rotation.
I think you need to do a few tutorials, and get more experience with the use of the software. Either you have not explained the model correctly, or you have not gained enough expertise to solve this problem using Ansys CFX.

The problem as described should be trivial, barring mesh folding issues. You should not need to write a single function, not even CEL expressions.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Reply

Tags
cel expression, cfx, mesh deformation, oscillating wall

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
CFX - specified domain intialization qntldoql CFX 4 September 28, 2020 09:28
Connecting a rotating and a stationary domain cfd940 CFX 4 April 22, 2017 07:31
Can CFX do CHT simulations with a solid domain rotating in a stationary fluid domain? acro CFX 15 September 23, 2016 11:16
Problem in conducting CFD of analysis of wind turbine blade atulpat CFX 16 August 17, 2013 04:09
Computational domain for a blade cascade aledexe CFX 2 June 3, 2012 06:43


All times are GMT -4. The time now is 20:50.