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

Dynamic Mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2023, 11:48
Default Dynamic Mesh
  #1
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
Hello every body !
Is there a way similar to dynamic mesh (6-DOF flunet solver) to obtain angular velocity every time step based on inertia of body at CFX ?
Marwa_Shaaban is offline   Reply With Quote

Old   March 12, 2023, 17:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Are you talking about a rigid body simulation? You can get the orientation of the body at any time using variable Euler Angle X/Y/Z
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   March 13, 2023, 02:47
Default
  #3
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
Is rigid body valid to use for rotating domain like vertical axial turbine ?
Marwa_Shaaban is offline   Reply With Quote

Old   March 13, 2023, 02:55
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, it can be done that way. Rotating frames of reference is much more efficient if that approach is valid. It depends on what you are trying to do and why you are doing 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   March 13, 2023, 04:48
Default
  #5
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
I want to rotate rotor blades for vertical axial turbine around center of mass whith variable angular velocity depends on inertia by using cfx
Marwa_Shaaban is offline   Reply With Quote

Old   March 13, 2023, 05:57
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Yes, this can be done by rigid bodies. But if you search the forum you will find some people who have done a similar thing using rotating frames of reference - this will be many times faster if it works for you. The problem is that rotating frames of reference is designed for constant rotational speed, so have a look at the discussions on this for the available options.

Another option is if you can run the rotor at different speeds at steady state you can get a torque versus speed curve. Then you can write a simple ODE solver which uses this performance curve and the rotor inertia to model the dynamics of the system. This will be by far the quickest way of modelling this, but whether it is applicable to what you are trying to do will depend on exactly what dynamics you are trying to model.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   March 13, 2023, 09:32
Default
  #7
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
You can do non-constant angular speed in Ansys CFX. The equations are formulated to include angular acceleration. What you cannot do is a variable axis of rotation.

Recall w_vector = angular_speed * AxisRotation_vector

its derivative (a derivative of a product) includes the time variation of angular speed and the "time derivative of the motion of the axis". The latter is not part of the Ansys CFX formulation as far as I understand.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   March 14, 2023, 06:52
Default
  #8
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
I used rigid body but solution stoped whith that error "The solver exited abnormally, but reached the final synchronization point.
Continuing."

Last edited by Marwa_Shaaban; March 14, 2023 at 07:53.
Marwa_Shaaban is offline   Reply With Quote

Old   March 14, 2023, 18:10
Default
  #9
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
That error can mean anything. You would have to post your output file so we can read it in context.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   March 15, 2023, 05:23
Default
  #10
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
+--------------------------------------------------------------------+
| ERROR #002100012 has occurred in subroutine Out_NegVol. |
| Message: |
| A negative ELEMENT volume has been detected. This is a fatal |
| error and execution will be terminated. The location of the first |
| negative volume is reported below. |
| Volume : -0.7638E-13 |
| Location : ( -0.19033E+00, 0.26402E+00, -0.34940E-02) |
+--------------------------------------------------------------------+

I can't upload out file due to file size limitation
Marwa_Shaaban is offline   Reply With Quote

Old   March 15, 2023, 05:37
Default
  #11
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
================================================== ====================
Wall Force and Moment Summary
================================================== ====================

Notes:
1. Pressure integrals exclude the reference pressure. To include
it, set the expert parameter 'include pref in forces = t'.


+--------------------------------------------------------------------+
| Pressure Force On Walls |
+--------------------------------------------------------------------+
X-Comp. Y-Comp. Z-Comp.

Domain Group: rotor

RotorWall 1.5668E+01 -8.8360E+00 -7.0890E-03
----------- ----------- -----------
Domain Group Totals : 1.5668E+01 -8.8360E+00 -7.0890E-03


+--------------------------------------------------------------------+
| Viscous Force On Walls |
+--------------------------------------------------------------------+
X-Comp. Y-Comp. Z-Comp.

Domain Group: rotor

RotorWall 7.4660E-01 1.1013E-01 -3.5926E-03
----------- ----------- -----------
Domain Group Totals : 7.4660E-01 1.1013E-01 -3.5926E-03


+--------------------------------------------------------------------+
| Pressure Moment On Walls |
+--------------------------------------------------------------------+
X-Comp. Y-Comp. Z-Comp.

Domain Group: rotor

RotorWall 3.0673E+00 5.4587E+00 6.7274E-01
----------- ----------- -----------
Domain Group Totals : 3.0673E+00 5.4587E+00 6.7274E-01


+--------------------------------------------------------------------+
| Viscous Moment On Walls |
+--------------------------------------------------------------------+
X-Comp. Y-Comp. Z-Comp.

Domain Group: rotor

RotorWall -3.8996E-02 2.6041E-01 6.4614E-02
----------- ----------- -----------
Domain Group Totals : -3.8996E-02 2.6041E-01 6.4614E-02

+--------------------------------------------------------------------+
| Average Scale Information |
+--------------------------------------------------------------------+

Domain Name : rotor
Global Length = 1.1324E+00
Minimum Extent = 1.2000E+00
Maximum Extent = 1.3000E+00
Density = 1.1850E+00
Dynamic Viscosity = 1.8310E-05
Velocity = 9.0333E+00
Advection Time = 1.2535E-01
RMS Courant Number = 2.3200E+01
Maximum Courant Number = 2.7195E+02
Reynolds Number = 6.6200E+05
Thermal Conductivity = 2.6100E-02
Specific Heat Capacity at Constant Pressure = 1.0044E+03
Prandtl Number = 7.0462E-01
Temperature Range = 8.2489E-01

Domain Name : stator
Global Length = 3.2821E+00
Minimum Extent = 2.0000E+00
Maximum Extent = 8.0000E+00
Density = 1.1850E+00
Dynamic Viscosity = 1.8310E-05
Velocity = 1.1866E+01
Advection Time = 2.7660E-01
RMS Courant Number = 9.1303E-01
Maximum Courant Number = 1.6787E+00
Reynolds Number = 2.5205E+06
Thermal Conductivity = 2.6100E-02
Specific Heat Capacity at Constant Pressure = 1.0044E+03
Prandtl Number = 7.0462E-01
Temperature Range = 6.3293E-02

+--------------------------------------------------------------------+
| Variable Range Information |
+--------------------------------------------------------------------+

Domain Name : rotor
+--------------------------------------------------------------------+
| Variable Name | min | max |
+--------------------------------------------------------------------+
| Mesh Coordinates x | -6.00E-01 | 6.00E-01 |
| Mesh Coordinates y | -6.00E-01 | 6.00E-01 |
| Mesh Coordinates z | -3.00E-01 | 1.00E+00 |
| Mesh Displacement X | 0.00E+00 | 0.00E+00 |
| Mesh Displacement Y | 0.00E+00 | 0.00E+00 |
| Mesh Displacement Z | 0.00E+00 | 0.00E+00 |
| Density | 1.18E+00 | 1.18E+00 |
| Specific Heat Capacity at Constant Pressure| 1.00E+03 | 1.00E+03 |
| Dynamic Viscosity | 1.83E-05 | 1.83E-05 |
| Thermal Conductivity | 2.61E-02 | 2.61E-02 |
| Static Entropy | -1.48E+00 | 1.30E+00 |
| Velocity u | -6.49E+00 | 2.16E+01 |
| Velocity v | -1.37E+01 | 1.21E+01 |
| Velocity w | -1.53E+01 | 1.57E+01 |
| Pressure | 1.01E+05 | 1.01E+05 |
| Turbulence Kinetic Energy | 2.08E-04 | 1.38E+01 |
| Turbulence Eddy Dissipation | 2.94E-03 | 9.47E+03 |
| Eddy Viscosity | 1.64E-07 | 4.44E-02 |
| Temperature | 2.98E+02 | 2.99E+02 |
| Static Enthalpy | -4.42E+02 | 3.87E+02 |
| Total Enthalpy | -3.94E+02 | 4.41E+02 |
+--------------------------------------------------------------------+

Domain Name : stator
+--------------------------------------------------------------------+
| Variable Name | min | max |
+--------------------------------------------------------------------+
| Density | 1.18E+00 | 1.18E+00 |
| Specific Heat Capacity at Constant Pressure| 1.00E+03 | 1.00E+03 |
| Dynamic Viscosity | 1.83E-05 | 1.83E-05 |
| Thermal Conductivity | 2.61E-02 | 2.61E-02 |
| Static Entropy | -9.77E-03 | 2.04E-01 |
| Velocity u | 4.16E+00 | 1.23E+01 |
| Velocity v | -1.36E+00 | 2.13E+00 |
| Velocity w | -1.45E+00 | 1.82E+00 |
| Pressure | 1.01E+05 | 1.01E+05 |
| Turbulence Kinetic Energy | 1.07E-04 | 2.29E+00 |
| Turbulence Eddy Dissipation | 2.04E-03 | 3.85E+01 |
| Eddy Viscosity | 1.16E-07 | 1.53E-02 |
| Temperature | 2.98E+02 | 2.98E+02 |
| Static Enthalpy | -3.00E+00 | 6.06E+01 |
| Total Enthalpy | 7.10E+01 | 7.30E+01 |
+--------------------------------------------------------------------+

+--------------------------------------------------------------------+
| CPU Requirements of Numerical Solution - Total |
+--------------------------------------------------------------------+

Subsystem Name Discretization Linear Solution
(secs. %total) (secs. %total)
----------------------------------------------------------------------
Mesh Displacement 1.26E+03 3.2 % 2.00E+03 5.1 %
Momentum and Mass 1.22E+04 31.0 % 4.39E+03 11.2 %
Heat Transfer 3.00E+03 7.6 % 2.59E+03 6.6 %
TurbKE and Diss.K 2.39E+03 6.1 % 4.31E+03 11.0 %
-------- ------- -------- ------
Subsystem Summary 1.89E+04 48.0 % 1.33E+04 33.8 %

GGI Intersection 2.60E+02 0.7 %
File Reading 3.63E+00 0.0 %
Search Calculations 3.20E-01 0.0 %
Variable Updates 3.76E+03 9.6 %
File Writing 4.41E+02 1.1 %
Miscellaneous 2.71E+03 6.9 %
--------
Total 3.93E+04
Marwa_Shaaban is offline   Reply With Quote

Old   March 15, 2023, 16:46
Default
  #12
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The most important bits of the output file are the initial lines listing the CCL, the progress of the convergence iterations and if there is an error the last bit of the output file from the convergence history to the end of the file.

But I see you report a negative volume element error - this is going to be the cause of the problem. Your mesh is turning inside out. If you just put the rotor in the middle of a domain and used moving mesh to do the motion you are going to get this error as the mesh will twist itself up until it fails. You need to either put the rotor in a cylindrical mesh region and join it to the rest of the mesh with a GGI so the mesh can slide around without distortion, or use rotating frames of reference (where you will also need a sliding GGI).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   March 15, 2023, 17:40
Default
  #13
New Member
 
Marwa Shaaban Hassan
Join Date: Mar 2023
Posts: 7
Rep Power: 3
Marwa_Shaaban is on a distinguished road
I aready put Rotor at cylinderical domain which has 2 interfaces with rotor and statar.
but i confused which type of Rigid body motion i shouid use whith cylinderical domain (rotor and stator interface)
Marwa_Shaaban is offline   Reply With Quote

Old   March 15, 2023, 17:42
Default
  #14
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you look at the FAQ this error: https://www.cfd-online.com/Wiki/Ansy..._went_wrong.3F

If you do the visualisation it suggests you will see what is not working.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Reply

Tags
cfx&dynamicmesh


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
Mesh Disappering with Dynamic Mesh FaroukH FLUENT 0 February 23, 2021 18:26
[snappyHexMesh] non uniform mesh near the stl object vava10 OpenFOAM Meshing & Mesh Conversion 0 January 31, 2021 14:41
Dynamic Mesh on Pintle type injector. herntan FLUENT 16 September 4, 2020 08:27
[ICEM] Dynamic mesh setup with ICEM David121284 ANSYS Meshing & Geometry 0 April 11, 2014 04:19
Dynamic Mesh "Shadow Wall" thezack FLUENT 0 June 4, 2013 22:09


All times are GMT -4. The time now is 01:13.