MASTER'S THESIS
Implementation of a Computational Fluid Dynamics Code for Propellant Sloshing Analysis
Tiago Rebelo 2013
Master of Science (120 credits) Space Engineering - Space Master
Luleå University of Technology Department of Computer Science, Electrical and Space Engineering
CRANFIELD UNIVERSITY
TIAGO ALEXANDRE RAMOS REBELO
IMPLEMENTATION OF A COMPUTATIONAL FLUID DYNAMICS CODE FOR PROPELLANT SLOSHING ANALYSIS
SCHOOL OF ENGINEERING
MSc in Astronautics and Space Engineering (SpaceMaster)
MSc Thesis
Academic Year: 2012 - 2013
CRANFIELD UNIVERSITY
SCHOOL OF ENGINEERING MSc in Astronautics and Space Engineering (SpaceMaster)
MSc Thesis
Academic Year 2012 - 2013
TIAGO ALEXANDRE RAMOS REBELO
Implementation of a Computational Fluid Dynamics Code for Propellant Sloshing Analysis
Supervisors: Ph.D. Jennifer Kingston M.Sc. Manuel Hahn
August 2013
This thesis is submitted in partial fulfilment (45%) of the requirements for the degree of Master of Science in Astronautics and Space Engineering
© Cranfield University 2013. All rights reserved. No part of this publication may be reproduced without the written permission of the copyright owner.
Implementation of a Computational Fluid Dynamics Code for Propellant Sloshing Analysis
MSc Thesis Tiago Rebelo
Supported by:
Supervisors: M.Sc. Manuel Hahn - EADS Astrium Satellites Ph.D. Jennifer Kingston - Cranfield University Ph.D. Johnny Ejemalm - Lule˚aUniversity of Technology
August 2013 i This M.Sc. thesis is dedicated to those whose work, sweat and tears allowed me to reach this point...
...to my beloved Parents
...to my inspiring Grandparents iii “Sˆetodo em cada coisa. P˜oequanto ´es No m´ınimoque fazes.” - Fernando Pessoa
“Be everything in each thing. Put all of yourself Into the slightest thing you do.” - Fernando Pessoa Abstract
Liquid propellant sloshing inside spacecraft tanks is of crucial importance to the dynamics of the space vehicle. The interaction of the disturbance forces and torques, caused by the moving fuel, with the solid body and the control system, might lead to an increase in the AOCS actuators commands, which can degrade the vehicle’s pointing performances and, in critical cases, generate unstable attitude and orbit control. Thus, it is of major importance to accurately predict the behaviour of liquid propellants sloshing inside spacecraft tanks. This M.Sc. thesis is focused on this topic, being its major objective the implementa- tion of a CFD software in an existing EADS Astrium simulation environment. The integrated simulation environment is used to assess the influence of liquid propellant sloshing for specific satellite missions. From a defined set of requirements an open source CFD software based on FEM is chosen - Elmer. The software is integrated and the final simulation environment is evaluated for sloshing purposes using three different sloshing test cases. The first two test cases deal with rectangular and cylindrical laterally excited tanks where comparators are available - the results of the tests are validated against nu- merical and experimental results. The final test case is defined to reduce the gap between the simple test cases per- formed to validate the software and the real sloshing problems faced in space vehicles. A typical liquid propellant tank is selected and real mission conditions are simulated. The liquid sloshing inside the laterally excited tank is deeply studied, being fully characterized. The simulation environment is validated for the implemented liquid sloshing problems. vi Acknowledgements
To start with, I would like to express my deepest gratitude to my supervisor at EADS Astrium, Manuel Hahn. I am heartily thankful for the given opportunity, the guidance, the encouragement and the constant support. This gratitude is extended to the AOCS/GNC & Flight Dynamics department of Astrium Satellites, Friedrichshafen, Germany. Special gratitude goes to my supervisor at Cranfield University, Jennifer Kingston. Her support and help during the development of this work, but also during my stay in Cranfield, are not forgotten. At the Lule˚aUniversity of Technology my gratitude goes to Victoria Barabash, for her support in the many different challenges experienced during these 2 years. Also, for his supervision during the development of this thesis, my gratitude to Johnny Ejemalm. To Prof. Wolfgang A. Wall from the Institute for Computational Mechanics of the Technical University of Munich for allowing me to develop my work at his institute, my gratitude. Special acknowledgement goes to ESA’s directorate of Human Spaceflight and Operations, for providing a real liquid propellant sloshing problem that brought challenge and value to this thesis. For his support and very useful inputs in all matters related with Elmer, my gratitude goes to D.Sc. Peter R˚aback from the CSC - IT Center for Science, Finland. My gratitude to all the entities that financially supported my M.Sc. studies, namely: ESA Human Spaceflight and Operations directorate, through a study Scholarship; Erasmus and Erasmus Mundus grants from Lule˚aUniversity of Technology and the SpaceMaster consortium; and last but not least the very important support of EADS Astrium during my internships. A special thanks goes to Anna Guerman, for giving me the opportunity to learn from her. Without her I would never have found the beauties of space nor integrated this Master’s programme. For those who joined me in this incredible SpaceMaster journey, my deepest gratitude - it would not have been the same without them. Without any disregard to all the amazing people I met during these years abroad, my special gratitude goes to Mauro Aja Prado, Ishan Basyal and Dries Agten, for their true friendship. To my family, for their unconditional love and support throughout my life, my deepest love and gratitude. Special thanks to my parents, Jo˜aoand Maria, for providing the conditions that allowed me to develop and aim higher; and to my sister Mara, for her support and belief at all moments. Finally, I want to thank Rita for her love throughout our common life. She gave me the courage and support to take this programme to its end. Without her I would never have made it, my unconditional love and gratitude goes to her. viii Contents
Abstract ...... v
Acknowledgements ...... vii
Contents ...... ix
List of Figures ...... xii
List of Tables ...... xviii
List of Abbreviations ...... xix
1 Introduction ...... 1 1.1 Aim ...... 2 1.2 Objectives ...... 3 1.3 Outline ...... 3
2 Literature Review ...... 5 2.1 Sloshing ...... 5 2.1.1 Lateral Sloshing ...... 6 2.1.2 Introduction to Damping ...... 11 2.1.3 Introduction to Non-linear Effects in Slosh ...... 12 2.1.4 Introduction to Micro-gravity Effects - Surface Tension . . . . 13 2.1.5 Other Types of Sloshing ...... 14 2.2 Computational Fluid Dynamics ...... 14 2.2.1 Fluid Governing Equations ...... 15 2.2.2 Boundary Conditions ...... 17 2.2.3 Meshing ...... 17 2.2.4 Numerical Methods ...... 19 2.2.5 Numerical Analysis ...... 22 2.2.6 Solution Analysis ...... 24 2.3 Summary ...... 26
ix Contents
3 Requirements ...... 28 3.1 Functional Requirements ...... 28 3.2 System Requirements ...... 29
4 CFD Software Selection ...... 30 4.1 Selection Process ...... 30 4.1.1 Available Codes ...... 31 4.1.2 Satisfactory Codes ...... 31 4.1.3 Top 3 Codes ...... 31 4.1.4 Final Selection ...... 32 4.2 Results ...... 32 4.2.1 Available Codes ...... 32 4.2.2 Satisfactory Codes ...... 33 4.2.3 Top 3 Codes ...... 35 4.2.4 Final Selection ...... 35
5 Elmer - Open Source Finite Element Software ...... 38 5.1 Overview ...... 38 5.2 Models / Solvers ...... 41 5.3 Interfaces ...... 44 5.3.1 Graphical User Interface ...... 44 5.3.2 Command Line ...... 45 5.4 Pre- and Post- Processing ...... 47 5.4.1 Pre-Processing ...... 47 5.4.2 Post-Processing ...... 48
6 Simulation Environment Setup ...... 49 6.1 Simulation Flow ...... 49 6.2 Pre-Processing Methods ...... 51 6.3 Post-Processing Methods ...... 51
7 Test case 1: Rectangular Tank ...... 53 7.1 Test A ...... 54 7.1.1 Test Definition ...... 54 7.1.2 Implementation ...... 55 7.1.3 Results & Evaluation ...... 55 7.2 Test B ...... 60 7.2.1 Test Definition ...... 60 7.2.2 Implementation ...... 61 7.2.3 Results & Evaluation ...... 62
x Contents
7.3 Test C ...... 69 7.3.1 Test Definition ...... 69 7.3.2 Implementation ...... 70 7.3.3 Results & Evaluation ...... 73
8 Test case 2: Cylindrical Tank ...... 78 8.1 Test Definition ...... 78 8.2 Implementation ...... 79 8.3 Results & Evaluation ...... 80
9 Test case 3: ESA Tank ...... 84 9.1 Test A ...... 85 9.1.1 Test Definition ...... 85 9.1.2 Implementation ...... 86 9.1.3 Results & Evaluation ...... 88 9.2 Test B ...... 94 9.2.1 Test Definition ...... 94 9.2.2 Implementation ...... 95 9.2.3 Results & Evaluation ...... 95 9.3 Test C ...... 98 9.3.1 Test Definition ...... 98 9.3.2 Implementation ...... 99 9.3.3 Results & Evaluation ...... 99
10 Conclusions ...... 106
11 Future Work ...... 109
References ...... 110
A Test case 1 - Results: Test A ...... 115
B Test case 1 - Results: Test C ...... 122
C Test case 2 - Results ...... 131
D Test case 3 - Results: Test A ...... 135
E Test case 3 - Results: Test B ...... 157
F Test case 3 - Results: Test C ...... 160
xi List of Figures
2.1 Slosh wave shapes - first 2 antisymmetric x-modes for a rectangular tank ...... 8 2.2 Slosh wave shapes - first 2 symmetric x-modes for a rectangular tank8 2.3 Computational solution procedure process ...... 20
5.1 ElmerGUI main window ...... 44 5.2 ElmerPost main window & graphics window ...... 48
6.1 Software installation diagram ...... 50 6.2 Simulation flow ...... 50 6.3 Complete software installation diagram ...... 52
7.1 Rectangular tank - test A a): pressure at t = 0s ...... 56 7.2 Rectangular sloshing tank - test A a): free surface shape evolution . . 57 7.3 Rectangular tank - test A a): CoG plots ...... 58 7.4 Rectangular tank - test A a): sloshing amplitude plot ...... 59 7.5 Rectangular tank - test B a): pressure at t = 0s ...... 63 7.6 Rectangular tank - test B b): pressure at t = 0s ...... 63 7.7 Rectangular tank - test B a): CoG x-coord. Vs time ...... 64 7.8 Rectangular tank - test B a): maximum wave amplitude (t = 3.48s). 64 7.9 Rectangular tank - test B b): CoG plots ...... 65 7.10 Rectangular tank - test B b): CoG x-coordinate Vs time ...... 65 7.11 Rectangular tank - test B b): sloshing amplitude plot ...... 66 7.12 Rectangular tank - test B b): PSD plot 1 ...... 67 7.13 Rectangular tank - test B b): PSD plot 2 ...... 67 7.14 Rectangular tank - test C: pressure at t = 0s ...... 73 7.15 Rect. tank - test C - h = 0.050m longer dir.: free surface shape at t = 0s ...... 74 7.16 Rect. tank - test C - h = 0.050m shorter dir.: free surface shape at t = 0s ...... 74 7.17 Rect. tank - test C - h = 0.050m longer dir.: CoG x-coord. Vs time . 75 7.18 Rect. tank - test C - h = 0.050m shorter dir.: CoG x-coord. Vs time 75 7.19 Rect. tank - test C - h = 0.050m longer dir.: max. wave amplitude . 75
xii List of Figures
7.20 Rect. tank - test C - h = 0.050m shorter dir.: max. wave amplitude . 76
8.1 Cylindrical tank - test: pressure at t = 0s ...... 81 8.2 Cylindrical tank test - h = 0.050m: free surface shape at t = 0s ... 81 8.3 Cylindrical tank test - h = 0.050m: CoG x-coordinate Vs time . . . . 82 8.4 Cylindrical tank test - h = 0.050m: max. wave amplitude ...... 82
9.1 ESA tank test A - MON-3: pressure at t = 0s ...... 89 9.2 ESA tank test A - MMH: pressure at t = 0s ...... 89
9.3 ESA tank test A - MON-3 (50% fill ratio & fext = 0.70 Hz): CoG plots 90
9.4 ESA tank test A - MON-3 (50% fill ratio & fext = 0.70 Hz): sloshing amplitude plot ...... 91
9.5 ESA tank test A - MON-3 (50% fill ratio & fext = 0.70 Hz): PSD plot 1 ...... 92
9.6 ESA tank test A - MON-3 (50% fill ratio & fext = 0.70 Hz): PSD plot 2 ...... 92
9.7 ESA tank test A - MON-3 (50% fill ratio & fext = 1.50 Hz): PSD plot 1 ...... 93
9.8 ESA tank test A - MON-3 (50% fill ratio & fext = 1.50 Hz): PSD plot 2 ...... 93 9.9 ESA tank test B - MON-3 or MMH: free surface shape at t = 0s ... 96 9.10 ESA tank test B - MON-3: CoG x-coordinate Vs time ...... 96 9.11 ESA tank test B - MON-3: max. wave amplitude ...... 97 9.12 ESA tank test B - MON-3: sloshing amplitude plot ...... 97 9.13 ESA tank test C - MON-3 (60s simulation): CoG x-coord. Vs time . 100 9.14 ESA tank test C - MON-3 (60s simulation): wave amplitude at t = 30s100 9.15 ESA tank test C - MON-3 (60s simulation): wave amplitude at t = 45.5s101 9.16 ESA tank test C - MON-3 (60s simulation): sloshing amplitude plot . 101 9.17 ESA tank test C - MON-3 (60s simulation): CoG z-coord. Vs time . 102 9.18 ESA tank test C - MON-3 (20s simulation): wave amplitude at t = 0.54s103 9.19 ESA tank test C - MON-3 (20s simulation): wave amplitude at t = 19.60s ...... 104 9.20 ESA tank test C - MON-3 (20s simulation): CoG x-coord. Vs time . 104 9.21 ESA tank test C - MON-3 (20s simulation): CoG z-coord. Vs time . 105
A.1 Rectangular tank - test A b): pressure at t = 0s ...... 116 A.2 Rectangular sloshing tank - test A b): free surface shape evolution . . 116 A.3 Rectangular tank - test A b): CoG plots ...... 117 A.4 Rectangular tank - test A b): sloshing amplitude plot ...... 117 A.5 Rectangular tank - test A c): pressure at t = 0s ...... 118
xiii List of Figures
A.6 Rectangular sloshing tank - test A c): free surface shape evolution . . 118 A.7 Rectangular tank - test A c): CoG plots ...... 119 A.8 Rectangular tank - test A c): sloshing amplitude plot ...... 119 A.9 Rectangular tank - test A d): pressure at t = 0s ...... 120 A.10 Rectangular sloshing tank - test A d): free surface shape evolution . . 120 A.11 Rectangular tank - test A d): CoG plots ...... 121 A.12 Rectangular tank - test A d): sloshing amplitude plot ...... 121
B.1 Rect. tank - test C - h = 0.100m longer dir.: free surface shape at t = 0s ...... 123 B.2 Rect. tank - test C - h = 0.100m longer dir.: CoG x-coord. Vs time . 123 B.3 Rect. tank - test C - h = 0.100m longer dir.: max. wave amplitude . 123 B.4 Rect. tank - test C - h = 0.150m longer dir.: free surface shape at t = 0s ...... 124 B.5 Rect. tank - test C - h = 0.150m longer dir.: CoG x-coord. Vs time . 124 B.6 Rect. tank - test C - h = 0.150m longer dir.: max. wave amplitude . 124 B.7 Rect. tank - test C - h = 0.200m longer dir.: free surface shape at t = 0s ...... 125 B.8 Rect. tank - test C - h = 0.200m longer dir.: CoG x-coord. Vs time . 125 B.9 Rect. tank - test C - h = 0.200m longer dir.: max. wave amplitude . 125 B.10 Rect. tank - test C - h = 0.250m longer dir.: free surface shape at t = 0s ...... 126 B.11 Rect. tank - test C - h = 0.250m longer dir.: CoG x-coord. Vs time . 126 B.12 Rect. tank - test C - h = 0.250m longer dir.: max. wave amplitude . 126 B.13 Rect. tank - test C - h = 0.100m shorter dir.: free surface shape at t = 0s ...... 127 B.14 Rect. tank - test C - h = 0.100m shorter dir.: CoG x-coord. Vs time 127 B.15 Rect. tank - test C - h = 0.100m shorter dir.: max. wave amplitude . 127 B.16 Rect. tank - test C - h = 0.150m shorter dir.: free surface shape at t = 0s ...... 128 B.17 Rect. tank - test C - h = 0.150m shorter dir.: CoG x-coord. Vs time 128 B.18 Rect. tank - test C - h = 0.150m shorter dir.: max. wave amplitude . 128 B.19 Rect. tank - test C - h = 0.200m shorter dir.: free surface shape at t = 0s ...... 129 B.20 Rect. tank - test C - h = 0.200m shorter dir.: CoG x-coord. Vs time 129 B.21 Rect. tank - test C - h = 0.200m shorter dir.: max. wave amplitude . 129 B.22 Rect. tank - test C - h = 0.250m shorter dir.: free surface shape at t = 0s ...... 130 B.23 Rect. tank - test C - h = 0.250m shorter dir.: CoG x-coord. Vs time 130
xiv List of Figures
B.24 Rect. tank - test C - h = 0.250m shorter dir.: max. wave amplitude . 130
C.1 Cylindrical tank test - h = 0.100m: free surface shape at t = 0s ... 132 C.2 Cylindrical tank test - h = 0.100m: CoG x-coordinate Vs time . . . . 132 C.3 Cylindrical tank test - h = 0.100m: max. wave amplitude ...... 132 C.4 Cylindrical tank test - h = 0.150m: free surface shape at t = 0s ... 133 C.5 Cylindrical tank test - h = 0.150m: CoG x-coordinate Vs time . . . . 133 C.6 Cylindrical tank test - h = 0.150m: max. wave amplitude ...... 133 C.7 Cylindrical tank test - h = 0.200m: free surface shape at t = 0s ... 134 C.8 Cylindrical tank test - h = 0.200m: CoG x-coordinate Vs time . . . . 134 C.9 Cylindrical tank test - h = 0.200m: max. wave amplitude ...... 134
D.1 ESA tank test A - MON-3 (25% fill ratio & fext = 0.70 Hz): CoG plots136
D.2 ESA tank test A - MON-3 (25% fill ratio & fext = 1.50 Hz): CoG plots136
D.3 ESA tank test A - MON-3 (25% fill ratio & fext = 0.70 Hz): sloshing amplitude plot ...... 137
D.4 ESA tank test A - MON-3 (25% fill ratio & fext = 1.50 Hz): sloshing amplitude plot ...... 137
D.5 ESA tank test A - MON-3 (25% fill ratio & fext = 0.70 Hz): PSD plot 1 ...... 138
D.6 ESA tank test A - MON-3 (25% fill ratio & fext = 0.70 Hz): PSD plot 2 ...... 138
D.7 ESA tank test A - MON-3 (25% fill ratio & fext = 1.50 Hz): PSD plot 1 ...... 139
D.8 ESA tank test A - MON-3 (25% fill ratio & fext = 1.50 Hz): PSD plot 2 ...... 139
D.9 ESA tank test A - MON-3 (50% fill ratio & fext = 1.50 Hz): CoG plots140
D.10 ESA tank test A - MON-3 (50% fill ratio & fext = 1.50 Hz): sloshing amplitude plot ...... 140
D.11 ESA tank test A - MON-3 (75% fill ratio & fext = 0.70 Hz): CoG plots141
D.12 ESA tank test A - MON-3 (75% fill ratio & fext = 1.50 Hz): CoG plots141
D.13 ESA tank test A - MON-3 (75% fill ratio & fext = 0.70 Hz): sloshing amplitude plot ...... 142
D.14 ESA tank test A - MON-3 (75% fill ratio & fext = 1.50 Hz): sloshing amplitude plot ...... 142
D.15 ESA tank test A - MON-3 (75% fill ratio & fext = 0.70 Hz): PSD plot 1 ...... 143
D.16 ESA tank test A - MON-3 (75% fill ratio & fext = 0.70 Hz): PSD plot 2 ...... 143
xv List of Figures
D.17 ESA tank test A - MON-3 (75% fill ratio & fext = 1.50 Hz): PSD plot 1 ...... 144
D.18 ESA tank test A - MON-3 (75% fill ratio & fext = 1.50 Hz): PSD plot 2 ...... 144
D.19 ESA tank test A - MMH (25% fill ratio & fext = 0.70 Hz): CoG plots 145
D.20 ESA tank test A - MMH (25% fill ratio & fext = 1.50 Hz): CoG plots 145
D.21 ESA tank test A- MMH (25% fill ratio & fext = 0.70 Hz): sloshing amplitude plot ...... 146
D.22 ESA tank test A - MMH (25% fill ratio & fext = 1.50 Hz): sloshing amplitude plot ...... 146
D.23 ESA tank test A - MMH (25% fill ratio & fext = 0.70 Hz): PSD plot 1147
D.24 ESA tank test A - MMH (25% fill ratio & fext = 0.70 Hz): PSD plot 2147
D.25 ESA tank test A - MMH (25% fill ratio & fext = 1.50 Hz): PSD plot 1148
D.26 ESA tank test A - MMH (25% fill ratio & fext = 1.50 Hz): PSD plot 2148
D.27 ESA tank test A - MMH (50% fill ratio & fext = 0.70 Hz): CoG plots 149
D.28 ESA tank test A - MMH (50% fill ratio & fext = 1.50 Hz): CoG plots 149
D.29 ESA tank test A- MMH (50% fill ratio & fext = 0.70 Hz): sloshing amplitude plot ...... 150
D.30 ESA tank test A - MMH (50% fill ratio & fext = 1.50 Hz): sloshing amplitude plot ...... 150
D.31 ESA tank test A - MMH (50% fill ratio & fext = 0.70 Hz): PSD plot 1151
D.32 ESA tank test A - MMH (50% fill ratio & fext = 0.70 Hz): PSD plot 2151
D.33 ESA tank test A - MMH (50% fill ratio & fext = 1.50 Hz): PSD plot 1152
D.34 ESA tank test A - MMH (50% fill ratio & fext = 1.50 Hz): PSD plot 2152
D.35 ESA tank test A - MMH (75% fill ratio & fext = 0.70 Hz): CoG plots 153
D.36 ESA tank test A - MMH (75% fill ratio & fext = 1.50 Hz): CoG plots 153
D.37 ESA tank test A- MMH (75% fill ratio & fext = 0.70 Hz): sloshing amplitude plot ...... 154
D.38 ESA tank test A - MMH (75% fill ratio & fext = 1.50 Hz): sloshing amplitude plot ...... 154
D.39 ESA tank test A - MMH (75% fill ratio & fext = 0.70 Hz): PSD plot 1155
D.40 ESA tank test A - MMH (75% fill ratio & fext = 0.70 Hz): PSD plot 2155
D.41 ESA tank test A - MMH (75% fill ratio & fext = 1.50 Hz): PSD plot 1156
D.42 ESA tank test A - MMH (75% fill ratio & fext = 1.50 Hz): PSD plot 2156
E.1 ESA tank test B - MMH (50% fill ratio): CoG x-coordinate Vs time . 158 E.2 ESA tank test B - MMH (50% fill ratio): max. wave amplitude . . . 158 E.3 ESA tank test B - MMH (50% fill ratio): sloshing amplitude plot . . 159
F.1 ESA tank test C - MON-3: PSD plot ...... 161
xvi List of Figures
F.2 ESA tank test C - MON-3 (20s simulation): sloshing amplitude plot . 161 F.3 ESA tank test C - MMH: PSD plot ...... 162 F.4 ESA tank test C - MMH (60s simulation): CoG x-coord. Vs time . . 162 F.5 ESA tank test C - MMH (60s simulation): wave amplitude at t = 30s 163 F.6 ESA tank test C - MMH (60s simulation): wave amplitude at t = 45.46s163 F.7 ESA tank test C - MMH (60s simulation): CoG z-coord. Vs time . . 164 F.8 ESA tank test C - MMH (20s simulation): wave amplitude at t = 0.52s164 F.9 ESA tank test C - MMH (20s simulation): wave amplitude at t = 19.58s165 F.10 ESA tank test C - MMH (20s simulation): CoG x-coord. Vs time . . 165 F.11 ESA tank test C - MMH (20s simulation): CoG z-coord. Vs time . . 166 F.12 ESA tank test C - MMH (60s simulation): sloshing amplitude plot . . 166 F.13 ESA tank test C - MMH (20s simulation): sloshing amplitude plot . . 166
xvii List of Tables
4.1 Second phase: satisfactory codes - codes and characteristics...... 34 4.2 Third phase - codes and evaluated characteristics...... 35
7.1 Results - rectangular tank: test A...... 59 7.2 Comparison of results - rectangular tank: test A...... 60 7.3 Results - rectangular tank: test B...... 68 7.4 Comparison of results - rectangular tank: test B...... 69 7.5 Results - rectangular tank: test C...... 76 7.6 Comparison of results - rectangular tank: test C - 1 ...... 76 7.7 Comparison of results - rectangular tank: test C - 2 ...... 77
8.1 Results - cylindrical tank test...... 83 8.2 Comparison of results - cylindrical tank test...... 83
9.1 Results - ESA tank: test B...... 97
xviii List of Abbreviations
AMG Algebraic Multigrid
AOCS Attitude and Orbit Control System
BDF Backward Differences Formulae
BEM Boundary Element Method
BiCGStab Biconjugate Gradient Stabilized
CFD Computational Fluid Dynamics
CG Conjugate Gradient
CGS Conjugate Gradient Squared
CoG Center of Gravity
ESA European Space Agency
FDM Finite Difference Method
FVM Finite Volume Method
GCR Generalized Conjugate Residual
GMG Geometric Multigrid
GMRES Generalized Minimal Residual
GP L General Public License
GUI Graphical User Interface
HSO Human Spaceflight and Operations
ILU Incomplete LU
xix List of Abbreviations
LAP ACK Linear Algebra Package
LGP L Lesser General Public License
NTP Normal Temperature and Pressure
PDE Partial Differential Equation
PSD Power Spectral Density
Sif Solver Input file
SUPG Streamline-Upwind Petrov-Galerkin
T F QMR Transpose-Free Quasi-Minimal Residual
UMF P ACK Unsymmetric Multifrontal Sparse LU Factorization Package
xx
Chapter 1
Introduction
“Ever since there have been people, there have been explorers, looking in places where others had not been before. Not everyone does it, but we are part of a species where some members of the species do, to the benefit of us all.” - Neil deGrasse Tyson
Since the beginning of times humans have looked into the sky and wondered at its beauties. For centuries we dreamt about leaving the Earth and going further, beyond the sky, to achieve space flight. Due to the perseverance and effort of some, this dream became a reality when the first artificial satellite - Sputnik I - was launched in 1957 - at that point, a new era began, the space age just started...
In less than 60 years of space exploration we landed humans on the Moon; generated conditions to have humans orbiting the Earth on a permanent basis; alighted several spacecraft in close planetary bodies (Venus, Mars and Jupiter); studied extraterrestrial bodies; launched thousands of satell- ites with numerous purposes to orbit the Earth; and are now about to break another important barrier by flying a spacecraft into outer space - all these important advances not only contributed to the scientific and technological development of our society, but also made life on Earth much easier.
To achieve these breakthroughs, many questions had to be addressed and many studies to be performed. For years, thousands of minds around the globe worked and are still working to increase the capabilities of modern space systems.
1 1. Introduction
The complexity level, now reached, allows us to deeply address some ques- tions which have long been made and yet not fully answered, some of these are the focus of this work: • How are the dynamics of a space vehicle affected by the behaviour of the liquid propellants inside its tanks?
• How accurately can the behaviour of the liquid propellants and their interaction with the spacecraft be predicted? Thanks to recent advances in science, engineering and technology, it is now possible to develop deeper and further studies on this important topic - liquid propellant sloshing inside spacecraft tanks. Even though, this has been identified long ago as being of significant and sometimes even critical influence on the dynamics of a spacecraft, it has not yet been completely studied, mainly due to the difficulty that is predicting the liquids behaviour inside the tanks.
When not carefully accounted for, the interaction of the disturbance forces and torques caused by the moving fuel with the solid body and the control system through the feedback loop can lead to an increase in the Atti- tude and Orbit Control System (AOCS) actuators commands, which can degrade the satellite pointing performances and in some critical cases ge- nerate unstable attitude and orbit control.
This means that it is of major importance to accurately predict the be- haviour of the liquid propellants inside the spacecraft tanks. This M.Sc. thesis is focused on this topic, being its ultimate objective the “Imple- mentation of a Computational Fluid Dynamics (CFD) Code for Propellant Sloshing Analysis”.
1.1 Aim
The aim of this project is to implement in the existing EADS Astrium simulation environment a CFD Code that shall be used to assess the in- fluence of liquid propellant sloshing in specific satellite missions. Selected propellant sloshing examples, defined by EADS Astrium and the European Space Agency’s (ESA) directorate of Human Spaceflight and Operations (HSO) (which also supported this project through a scholarship), shall be incorporated, analysed and finally evaluated using the newly implemented CFD code.
2 1. Introduction
The results of this work are planned to be used in the future by EADS Astrium. The implemented CFD code is intended to become the favourite sloshing analysis tool for the AOCS/GNC & Flight Dynamics Department of Astrium Satellites (Friedrichshafen, Germany) where this work is being developed under the supervision of M.Sc. Manuel Hahn.
1.2 Objectives
The following milestones were defined for this thesis project. Together they define the general objectives that shall be accomplished during the project.
• Perform an extensive literature research to select the most suitable CFD code based on defined requirements;
• Implement the selected CFD code in the existing Astrium’s pre- and post- processing environment;
• Implement, analyse and evaluate selected propellant sloshing exam- ples;
• Validate the simulation environment for the selected examples.
1.3 Outline
• Chapter1 introduces the topic of this M.Sc. thesis, presents its aim and the general objectives expected to be achieved during its devel- opment.
• Chapter2 presents a detailed but not exhaustive literature review about the sloshing and CFD topics.
• Chapter3 briefly introduces the requirements for the project.
• Chapter4 presents the deep state-of-the-art investigation developed to choose the most suitable CFD software for the purposes of this project.
• Chapter5 gives a brief introduction to the chosen CFD software - Elmer.
3 1. Introduction
• Chapter6 presents the setup of the complete simulation environment.
• Chapter7 introduces, defines, explains the implementation, presents the results and evaluates the tests performed for the rectangular tank test case.
• Chapter8 follows the same path of Chapter7 and introduces the cylindrical tank test case.
• Chapter9 similarly to chapters7 and8 presents the cylindrical tank with hemispherical domes (by ESA) test case.
• Chapter 10 presents the final conclusions drawn from this work.
• Chapter 11 attempts to explore future research lines and define work that could be further developed.
4 Chapter 2
Literature Review
“The learning and knowledge that we have, is, at the most, but little compared with that of which we are ignorant.” - Plato
“He who receives ideas from me, receives instruction himself without lessening mine; as he who lights his taper at mine receives light without darkening me.” - Thomas Jefferson
Before getting immersed in the project implementation, it is crucial to have a general understanding of the relevant topics addressed in this Master’s thesis. This chapter presents an explanation of the basic concepts related with liquid slosh and CFD. It shall help the reader to get into the topic without deeply getting into the overwhelming complexity of the concepts.
The subsequent sections provide an introduction to the liquid sloshing con- cept - section 2.1, followed by a general overview of the theory behind CFD - section 2.2.
2.1 Sloshing
As mentioned in chapter1, liquid propellant sloshing in spacecraft tanks can be of critical influence to the dynamics of the system, as well as to the AOCS. The sloshing forces and torques imposed by the liquid motion in the tank, together with the resulting shifts in the liquid’s center of gravity (CoG), need to be carefully analysed.
5 2. Literature Review
In the following subsections a general introduction to the sloshing phe- nomenon is presented. A simple analytical overview of lateral sloshing in geometrically simple tanks containing ideal liquids in linear regime (small wave amplitudes) is fully described. More complex sloshing problems - which include also damping, non-linearity and micro-gravity effects, as well as the derivation of the equations can be found in the literature, see [1] and [2]. Even if not deeply described, the concepts of damping, non-linear effects and micro-gravity effects are still briefly introduced later. However, before getting deeper in the topic it is important to define the concept of liquid sloshing inside rigid containers:
- “Any motion of a free liquid surface caused by any disturbance to a rigid container partially filled with liquid.” [2]
2.1.1 Lateral Sloshing
Lateral sloshing is the simplest way of liquid sloshing inside containers. It is defined as the formation of a standing wave on the surface of a liquid when a tank partially filled is laterally excited. Under simplified conditions the behaviour of the liquid can be defined by a set of equations, which incorporate a set of liquid sloshing parameters.
The natural frequencies of the liquid, the velocity potential and the forces and torques generated by its motion can be analytically obtained for sim- ple tank geometries subjected to small external excitations under accel- erated environments. Using as a basis the classical potential flow theory, which involves treating the fluid as incompressible and inviscid, and solving Laplace’s equation that satisfies the boundary conditions, these parameters can be found.
In 1952 Graham and Rodriguez [3] introduced for the first time the 3- - dimensional free surface natural frequencies of a liquid sloshing inside a rectangular container. Later, in 1955 Housner [4] derived the analytical solution for the first antisymmetric sloshing frequency of liquids sloshing inside rectangular and cylindrical tanks. In 1966 Abramson [5] (republished in 2000 by Dodge [1]) completely derived these parameters for several types of tanks, having even introduced damping, non-linearity and micro-gravity effects in its derivations.
6 2. Literature Review
In the following subsections, important sloshing parameters of ideal liquids sloshing inside simple rigid containers are presented. The fluid is always considered incompressible and the lateral excitation is considered much smaller than the vertical acceleration acting on the tank, and therefore negligible. For more details on the derivation of the equations please refer to the above mentioned references.
Before presenting the above mentioned liquid sloshing parameters and re- spective equations for both, rectangular and cylindrical tanks, let us first introduce the concept of sloshing modes.
2.1.1.1 Sloshing Modes
The definition of sloshing modes results from the multiple configurations to which the liquid’s surface may evolve when it sloshes inside a container. Normally, this modes are defined by:
• n - the antisymmetric mode number;
• m - the symmetric mode number.
Therefore, in general, there are two main types of lateral sloshing: the antisymmetric and the symmetric. Their modes are defined by the number of wave peaks formed at the liquid’s surface, for example:
• for n = 1 there is a positive peak at one wall and a negative one at the other;
• for m = 1 a positive peak occurs in the middle of the tank and two negative ones appear in the walls.
The number of wave peaks increases together with the mode numbers n and m, respectively for the antisymmetric and symmetric sloshing types. [1]
Antisymmetric Modes
The antisymmetric sloshing modes represent the most severe cases of liquid slosh that can develop in spacecraft tanks. The slosh wave shapes for the first two x-modes of a rectangular tank are presented in figure 2.1.
7 2. Literature Review
Figure 2.1: Slosh wave shapes - first 2 antisymmetric x-modes for a rectangular tank.
It is possible to visualize in figure 2.1 that the CoG shifts when the liquid moves to provoke forces and torques that act on the tank shell. One im- portant evidence is that the higher the sloshing mode number, the higher the corresponding natural frequency and the smaller the CoG shift. Thus, the smaller the generated disturbances and less significant the importance of the higher sloshing modes.
Symmetric Modes
The symmetric sloshing modes are of less significance regarding the pro- pellant sloshing disturbing effects in spacecraft tanks. Figure 2.2 presents the slosh wave shapes for the first two symmetric x-modes in a rectangular tank.
Figure 2.2: Slosh wave shapes - first 2 symmetric x-modes for a rectangular tank.
8 2. Literature Review
As it can be seen in figure 2.2, there is no lateral CoG shift in the liquid. This makes the lateral forces and torques acting on the tank shell non- -existent. As a side note, the frequencies of the symmetric modes are always higher than those of the corresponding antisymmetric modes.
2.1.1.2 Rectangular Tank
Starting from the classic potential flow theory together with some necessary assumptions and defined boundary conditions for this specific problem, the natural frequencies of liquid’s sloshing inside rectangular containers can be analytically derived. These depend on the height of the liquid inside the tank, the tank shape and the vertical acceleration.
Antisymmetric modes only - 2D Natural Frequencies [5]
g h ω2 = π(2n − 1) tanh π(2n − 1) (2.1) n a a
Where: ω: is the natural frequency
n: is the mode number
g: is the gravitational acceleration
a: is the width of the tank (in the x-direction)
h: is the height of the liquid inside the tank
Symmetric modes only - 2D Natural Frequencies [5]
g h ω2 = 2mπ tanh 2mπ (2.2) m a a
Where: m: is the mode number
9 2. Literature Review
Equations (2.1) and (2.2) present the natural frequencies for the anti- symmetric and symmetric sloshing modes when the translational oscillation of the tank occurs along the x-direction. If this oscillation occurs along the y-direction, the equations are the same but, the width a is replaced by the breadth b.
3D Free Surface Natural Frequencies [3]
2 ωmn = gKmn tanh (Kmnh) (2.3)
Where: q (2m)2 (2n)2 Kmn = π a2 + b2
Equation (2.3) gives the natural frequencies of the modes which vary in both x and y directions. The resulting wave shapes for this mode are a combination of the 2D x- and y- mode shapes.
First Antisymmetric Sloshing Frequency - Liquid Water [4]
It is important to note that this equation was developed for inviscid fluids. However, because in its development Housner applied simpler methods in the resolution of the Partial Differential Equations (PDEs), the results that can be obtained using this equation are slightly different from those obtained by Abramson.
Recent publications [6], have used this formula to obtain the first antisym- metric natural sloshing frequency of liquid water - according to them, the results are slightly more accurate than those given by Abramson.
Therefore, for liquid water sloshing inside a rectangular tank vertically accelerated and laterally excited, the first sloshing frequency is given by equation (2.4):
! r5 g r5 h ω2 = 2 tanh 2 (2.4) 1 2 L 2 L
Where: L: is the length of the rectangular tank along the direction of excita- tion
10 2. Literature Review
2.1.1.3 Cylindrical Tank
The equations previously presented for the rectangular tank case can also be found in the literature for the cylindrical tank geometry [1]. However, due to their increased complexity, they are not introduced here. Only the first sloshing natural frequency for liquid water is presented below.
First Antisymmetric Sloshing Frequency - Liquid Water [4]
For liquid water inside a cylindrical tank vertically accelerated and laterally excited, the first sloshing frequency is given by equation (2.5):
! r27 g r27 h ω2 = 2 tanh 2 (2.5) 1 8 D 8 D
Where: D: is the diameter of the cylindrical tank
2.1.2 Introduction to Damping
The analytic equations previously presented (subsection 2.1.1) for laterally excited simple tanks do not consider the viscosity of the fluids. Meaning that, damping effects are neglected. Thus, it is being considered that the oscillation of the sloshing wave will continue over time even when the external excitation is stopped. This is not representative of the real world, where such thing does not happen.
For a viscous (non-ideal) fluid, damping will exist. Thus, once the external excitation is stopped, the sloshing wave decreases in amplitude and will also eventually stop.
Damping shall then, optimally, be considered, when performing sloshing analysis. Nevertheless, because its consideration considerably increases the complexity of the analytical equations previously exposed, CFD tools are normally used to accurately replicate the effects of damping in sloshing.
As a side note, the main parameters that mostly influence damping are: the viscosity of the sloshing liquid, the fill level, the shape and the tank
11 2. Literature Review
shell. Meaning that, to increase damping and reduce sloshing, not only the properties of the liquid matter but also the tank geometry and its properties. [1]
2.1.3 Introduction to Non-linear Effects in Slosh
It was already stated that the lateral sloshing examples analytically derived and presented in subsection 2.1.1 include several simplifications, which made the problem possible to be analytically solved. Among these are the non-linear effects, which are also not considered. However, non-linear effects always exist in liquid sloshing and therefore a brief introduction to these shall be given.
For small sloshing amplitude waves, thus small external perturbations, non- -linear effects are normally neglected - their effect is almost non-existent. However, for large wave amplitudes and different forms of sloshing (such as rotary sloshing), non-linear effects are crucial and dominate the sloshing response. Thus, they shall also be modelled in CFD in order to accurately predict the real behaviour of the liquid sloshing. This topic consists itself in a complex field of studies, but a brief introduction can be found in [1,2].
To ease the understanding, a simple manner of explaining the importance of the non-linear effects in a flow is by means of the non-dimensional Reynolds number (Re) - equation (2.6).
This very useful number gives a measure of the ratio of the inertial forces by the viscous forces. Consequently, it quantifies the relative importance of these types of forces for given flow conditions.
ρvL Re = (2.6) µ
Where: v: is the mean velocity of the object relative to the fluid
ρ: is the density of the fluid
L: is the characteristic length
µ: is the kinematic viscosity of the fluid
12 2. Literature Review
It is known that an increase in the Reynolds number leads to an increase in the predominance of the non-linear effects in the fluid. Hence, looking at equation (2.6) it is possible to see that the Reynolds number increases when the mean velocity of the fluid increases or the viscosity decreases (keeping the density constant). So, to avoid non-linear sloshing effects, the velocity of the fluid shall be kept relatively small and the viscosity relatively high.
2.1.4 Introduction to Micro-gravity Effects - Surface Ten- sion
Even though one of the simplifications assumed in the lateral sloshing ex- amples of subsection 2.1.1 was that the liquid inside the spacecraft tank was under accelerated conditions, the hypothesis of the liquid motion tak- ing place in a micro-gravity environment exists and is very common in space missions. Thus, it shall be briefly introduced.
In a micro-gravity environment, where the body forces become so small, other small forces take place and are dominant in the behaviour of the fluid. The most important of these are the surface tension forces at the free surface of the liquid.
Surface tension (or capillary forces) is a complete field of studies by itself. Thus, it would be totally out of the scope for this project to deeply intro- duce this topic. Therefore, in this thesis development, it was considered that the surface tension effects were not accountable for the defined test cases. Thus, it was only important to understand what affects the predom- inance of surface tension effects and at which point they become dominant in the behaviour of the fluid. More details about this topic can also be found in [1,2].
To measure the predominance of the surface tension effects the Bond (or E¨otv¨os) number - equation (2.7), is used. This dimensionless number is normally used as the most common comparison ratio for gravity and surface tension forces.
ρaL2 Bo = (2.7) γ
Where: ρ: is the density of the fluid
13 2. Literature Review
a: is the acceleration associated with the body force
L: is the characteristic length
γ: is the surface tension of the interface
Looking at equation (2.7) it is possible to understand that a high Bond number represents a system relatively unaffected by the surface tension eff- ects. Oppositely, a low number (typically less than one) indicates that the surface tension effects dominate the fluid behaviour. Low Bond numbers normally occur for fluids under micro-gravity conditions.
2.1.5 Other Types of Sloshing
Besides the lateral sloshing type here presented for 2 geometrically simple tanks (subsection 2.1.1), there are several other types of sloshing. The most interesting one is the rotary sloshing type which introduces predominant non-linear effects in the fluid dynamics.
The study of this or other types of sloshing is out of the scope of this work. Nevertheless, more information can be found in the literature, see [1] or [2].
2.2 Computational Fluid Dynamics
CFD is considered by many, the new, most interesting, branch of fluid dy- namics. It acts together with the classical branches of pure experiment and pure theory which are then supported and complemented by the cost- -effective CFD tools. The role of CFD in engineering predictions has be- come so strong that it has taken a permanent place in all the aspects of fluid dynamics, from basic research to engineering design. [7]
CFD integrates disciplines such as fluid mechanics, mathematics and com- puter science. The dynamics of a fluid can be characterized by mathemat- ical equations (often called governing equations), which can then be solved using numerical methods in sophisticated digital computers, by means of computer programs or software packages. [8]
Since CFD became a trusted tool, the way in which engineering analy- ses is performed has totally changed. The use of CFD substantially re- duces lead times and costs in designs and productions compared to the
14 2. Literature Review
use of experimental approaches. Besides, it also offers the possibility to solve complicated flow problems which could never be solved by analytical means.
Nevertheless, one shall not blindly trust CFD results - they are only as valid as the physical models incorporated in the governing equations and boundary conditions. Hence, they are subject to various error sources which can severely influence the accuracy of the results.
Numerical results shall always be thoroughly examined before believed to be correct. Wonderful bright color pictures may provide a sense of reality which might lead to mistaken conclusions. Therefore, at least, a basic understanding of the theory behind CFD is needed to critically judge all the results before trusting them.
2.2.1 Fluid Governing Equations
A fluid can be described by means of a set of mathematical equations which represent its physical behaviour - the fluid governing equations. The fundamental principles on which they are based are:
• Mass conservation - gives the continuity equation;
• Momentum conservation - gives the momentum equations (also known as Navier-Stokes equations);
• Energy Conservation - gives the energy equation.
Various flow physics are governed by these fundamental principles which might need to be applied together with some other modelling equations, such as the turbulence ones.
The governing equations for a fluid flow general case in which the fluid is considered non-turbulent, unsteady, 3-Dimensional, viscous, incompress- ible and isothermal are presented here for reference - further in the devel- opment of this work this is how the fluid is treated. More details, as well as the derivation of these equations can be found in the literature, see for example [7,8,9, 10] or [11] for a deeper explanation.
15 2. Literature Review
• Continuity equation:
∇ · (ρV~ ) = 0 (2.8)
• Momentum equations (or Navier-Stokes equations):
∂p ∂τ ∂τ ∂τ ∇ · (ρuV~ ) = − + xx + yx + zx + ρf (2.9) ∂x ∂x ∂y ∂z x
∂p ∂τ ∂τ ∂τ ∇ · (ρvV~ ) = − + xy + yy + zy + ρf (2.10) ∂y ∂x ∂y ∂z y
∂p ∂τ ∂τ ∂τ ∇ · (ρwV~ ) = − + xz + yz + zz + ρf (2.11) ∂z ∂x ∂y ∂z z
Where: V~ = u~i + v~j + w~k: is the vector velocity field
u = u(x, y, z, t): is the velocity component in the x-direction at time t (unsteady flow)
v = v(x, y, z, t): is the velocity component in the y-direction at time t (unsteady flow)
w = w(x, y, z, t): is the velocity component in the z-direction at time t (unsteady flow)
ρ: is the density
~ ∂u τxx = λ∇ · V + 2µ ∂x : is the the shear stress xx component
~ ∂v τyy = λ∇ · V + 2µ ∂y : is the the shear stress yy component
~ ∂w τzz = λ∇ · V + 2µ ∂z : is the the shear stress zz component
∂v ∂u τxy = τyx = µ ∂x + ∂y : is the the shear stress xy or yx component