A. Drouet, G. Reliquet, A. Bardin. 12 Figure 13 first shows that the angle of drift is responsible for the creation of two contrarotating vortices on the back end of the submarine that is present in the three configurations. The lift created by the drift angle on the sail or on the vertical stern appendages also initiates the creation of a vortex. The sail increases the intensity of the upper vortex and so we can see a dissymmetry in the wake. The effect of the sail and of the stern appendages on the flow pattern is clearly visible. 6. CONCLUSION The latest release of our RANSE free surface solver Icare including Multi-blocs topologies has been evaluated for several configurations of the DARPA Suboff firstly on bare and secondly with appendages such as sail or stern appendages. The results obtained are gerenally good except for angles of drift larger than 12° for the bare hull + sail configuration. Such results could be explained by the choice of the turbulence model (k-ω by Wilcox). The results obtained during the validation are very encouraging since the majority of the cases forces and moments applied on the submarine can be well predicted. Our next step will be the validation of gyration cases including fixed and fully free model. REFERENCES [1] N. Groves, T. Huang, M. Chang, Geometric Characteristics of DARPA Suboff Models (DTRC Model Nos. 5470 and 5471), Report No. DTRC/SHD-1298-01, March (1989). [2] T. Huang, H.-L. Liu, N. Groves, Experiments of the DARPA Suboff Program, Report No. DTRC/SHD-1298-02, December (1989) [3] R. Roddy, Investigation of the Stability and Control Characteristics of Several Configurations of the DARPA Suboff Model (DTRC Model 5470) from Captive-Model Experiments, Report No. DTRC/SHD-1298-08, September (1990) [4] T. Huang, H.-L. Lui, N. Groves, T. Forlini, J. Blanton and S. Gowing, Measurements of Flows Over an Axisymmetric Body With Various Appendages in a Wind Tunnel: the DARPA Suboff Experimental Program, 19th Symposium on Naval Hydrodynamics, pp. 312-346, August (1992). [5] B. Alessandrini, G. Delhommeau, Simulation of three-dimensional unsteady viscous free surface flow around a ship model, International Journal for Numerical Methods in Fluids, vol 19, pp. 321-342, (1994) [6] B. Alessandrini, G. Delhommeau, A fully coupled Navier-Stokes solver for calculations of turbulent incompressible free surface flow past a ship hull, International Journal for Numerical Methods in Fluids, vol 29, pp. 125-142, (1999) [7] D. C. Wilcox, Multiscale model for turbulent flows, AIAA Journal, Vol 26, pp. 1211- 1320, November, (1988) AN OPTIMIZATION TOOL FOR THE ANALYSIS AND CONTROL OF BLOWING AND VENTING OPERATIONS IN MANNED SUBMARINES ROBERTO FONT∗, JAVIER GARC´ IA† ∗Departamento de Matem´atica Aplicada y Estad´ıstica, ETSI Industriales Universidad Polit´ecnica de Cartagena e-mail:
[email protected] †Departamento de Ingenier´ıa, Navantia S.A. 30205 Cartagena, Spain e-mail:
[email protected] Key words: Mathematical models, submarine manoeuvrability, computer simulation, optimal control Abstract. Motivated by the study of the potential use of ballast tanks blowing and venting operations as a way to improve the manoeuvrability of manned submarines, the aim of this work is to develop a computer tool capable of simulating any manoeuvre involving blowing and venting. We first propose a mathematical model for these operations which is coupled with the Feldman, variable mass, coefficient based hydrodynamic model for the equations of motion. Then, the model is applied to the control of an emergency manoeuvre by using only blowing and venting as control mechanism. To this end, we formulate a suitable constrained, nonlinear, optimal control problem where controls are linked to the variable aperture of blowing and venting valves of each of the tanks. Numerical experiments seem to indicate that, indeed, an appropriate use of blowing and venting operations may help in the control of an emergency manoeuvre. 1 INTRODUCTION Manned submarines are equipped with several ballast tanks distributed along its hull. When filled with water, they contribute with the submarine mass allowing it to submerge. During an unexpected event or emergence, they act like a dispositive for emerging to the surface: air is blown into the ballast tanks from very high pressure bottles expelling the water out of the tanks. The submarine loss weight, its buoyancy is higher, and it can emerge quicker. To fill the tanks with water again, air is vented out of the ballast tanks. A valve located at the top of each of the tanks is opened, air escapes outside, and water flows back into the tanks. 1 International Conference on Computational Methods in Marine Engineering MARINE 2011 L.Eça, E. Oñate, J. García, T. Kvamsdal and P. Bergan (Eds) An Optimization Tool for the Analysis and Control of Blowing and Venting Operations in Manned Submarines 313
Roberto Font, Javier Garc´ıa Although the tanks are usually blown only on emergency situations, blowing and venting could potentially be used to improve the vehicle manoeuvrability. These operations are currently performed based exclusively on the operator experience and, due to the high degree of accuracy required, would enormously benefit from the implementation of a control system. To this end, first, accurate mathematical models for both processes are needed. The first aim of the present work is to propose a mathematical model for the ballast tank blowing and venting operations. The issue of modeling the blowing of ballast tanks has been addressed, for instance, in [2] and [11]. Up to the best knowledge of the authors, venting has not been addressed so far, and most important, the coupling of both processes as a control system has not been considered before. In Section 2 we propose a model for a coupled system of blowing-venting operations. For the particular case where only blowing is considered, the model presented in this work was numerically compared in [6] with the one proposed by Watt [11] giving similar results, but also showing the ability to capture some phenomena that was overlooked by that last model. Then, these two processes are coupled with the usual Feldman’s coefficient based hydrodynamic model for the equations of motion (see [5] and more precisely [9]). In a second part, we analyze the potential use of blowing-venting operations as a control system. To this end, we formulate a constrained, nonlinear, optimal control problem which has the aperture of blowing-venting valves of each of the tanks as the control variables. The second objective of the present work is to implement the proposed model and control scheme in a computer code capable of simulating any manoeuvre involving blowing and venting operations. The main applications of this tool could be: •Assist designers during the preliminary state design of the submarine. The simulation results can be used to tune the design (size and location of the tanks, valve and tube diameter, etc.) to make the submarine meet the design specifications. •Provide engineers with a tool capable of simulating manoeuvres involving blowing and venting. In this way, a better understanding of these manoeuvres and its associated difficulties can be achieved. •Serve as a first step towards the improvement of the manoeuvrability of future designs by the implementation of a control system based on the blowing and venting of ballast tanks. This control system could be applied not only in submarines performing manoeuvres with specific requirements but in any marine system equipped with ballast tanks, like offshore facilities or pontoon docks. In section 4 we focus in this last idea, presenting simulation results obtained by the proposed optimal control scheme in an emergency rising manoeuvre in which the roll angle must be minimized. Results seem to indicate that blowing-venting operations may help in a significant way to the control of this type of manoeuvre. 2 314
Roberto Font, Javier Garc´ıa Although the tanks are usually blown only on emergency situations, blowing and venting could potentially be used to improve the vehicle manoeuvrability. These operations are currently performed based exclusively on the operator experience and, due to the high degree of accuracy required, would enormously benefit from the implementation of a control system. To this end, first, accurate mathematical models for both processes are needed. The first aim of the present work is to propose a mathematical model for the ballast tank blowing and venting operations. The issue of modeling the blowing of ballast tanks has been addressed, for instance, in [2] and [11]. Up to the best knowledge of the authors, venting has not been addressed so far, and most important, the coupling of both processes as a control system has not been considered before. In Section 2 we propose a model for a coupled system of blowing-venting operations. For the particular case where only blowing is considered, the model presented in this work was numerically compared in [6] with the one proposed by Watt [11] giving similar results, but also showing the ability to capture some phenomena that was overlooked by that last model. Then, these two processes are coupled with the usual Feldman’s coefficient based hydrodynamic model for the equations of motion (see [5] and more precisely [9]). In a second part, we analyze the potential use of blowing-venting operations as a control system. To this end, we formulate a constrained, nonlinear, optimal control problem which has the aperture of blowing-venting valves of each of the tanks as the control variables. The second objective of the present work is to implement the proposed model and control scheme in a computer code capable of simulating any manoeuvre involving blowing and venting operations. The main applications of this tool could be: •Assist designers during the preliminary state design of the submarine. The simulation results can be used to tune the design (size and location of the tanks, valve and tube diameter, etc.) to make the submarine meet the design specifications. •Provide engineers with a tool capable of simulating manoeuvres involving blowing and venting. In this way, a better understanding of these manoeuvres and its associated difficulties can be achieved. •Serve as a first step towards the improvement of the manoeuvrability of future designs by the implementation of a control system based on the blowing and venting of ballast tanks. This control system could be applied not only in submarines performing manoeuvres with specific requirements but in any marine system equipped with ballast tanks, like offshore facilities or pontoon docks. In section 4 we focus in this last idea, presenting simulation results obtained by the proposed optimal control scheme in an emergency rising manoeuvre in which the roll angle must be minimized. Results seem to indicate that blowing-venting operations may help in a significant way to the control of this type of manoeuvre. 2 Roberto Font, Javier Garc´ıa 2 Mathematical modeling The aim of this section is to provide mathematical models for both blowing and venting processes as well as their influence over the behavior of the submarine. Our mathematical model for the equations of motion is based on Gertler’s [8] six degree of freedom (DOF) submarine equations of motion, which were revised by Feldman [5], adapted to the particular characteristics of a prototype developed by the company Navantia S.A. Cartagena Shipyard (Spain). We refer the reader to [9] for a complete description of the resulting model. 2.1 Blowing and venting model The blowing/venting system is composed of ballast tank, pressure bottle, blowing valve and venting valve. When the blowing valve is opened, air flows into the tank increasing the pressure and forcing the water to flow out through the flood port located at the bottom of the tank. When the venting valve is opened, air can flow out from the tank. The model can be divided into four main parts: Air flow from pressure bottle, air flow through venting valve, water flow through flood port and evolution of pressure in ballast tank. 2.1.1 Air flow from pressure bottle When the blowing valve is opened, the air in the bottle is blown into the tank through a nozzle. Pressure losses and heat transfer in the tube that connects the bottle and the tank are, for the moment, neglected. However, as we will see later on, pressure losses can be indirectly taken into account. At the beginning of blowing, the flow is supersonic due to the high pressure difference between bottle and tank. As air flows out of the bottle, this difference decreases and the flow becomes subsonic below the critical pressure ratio. Supersonic flow: In this case, it is easy to calculate the mass flow rate at the nozzle throat, where the Mach number is unity. Precisely, ˙mF=ρ∗v∗A=ρ0a0 ρ∗ a ρa,0 a∗ a0 A, (1) where Ais the area in the nozzle throat, ais the speed of sound, vis the air velocity, ρa is the density of air, the asterisk means conditions wherein the Mach number is equal to unity and the subscript 0 denotes stagnant conditions. Assuming that in this particular case stagnant conditions are the bottle conditions, using the relations between stagnant and static conditions, the ideal gas law ρa,0=p0 RgT0 3 315
Roberto Font, Javier Garc´ıa and a0=√γRgT0, the mass flow rate is ˙mF(t)= ApF(t) √RgTF(t)√γ(2 γ+1)γ+1 γ−1 ,(2) where γis the isentropic constant, Rgis the gas constant for air and TFis the temperature in the bottle. Subsonic flow: In this case, the mass flow rate is given by ˙mF=ρa,eMeaeAe=ρ0a0 ρa,e ρa,0 ae a0 MeAe,(3) where Aeis the exit area, in this case Ae=A,Mis the Mach number and the subscript edenotes conditions at the exit. The Mach number at the exit is given by Me=� � � �2 γ−1[(pF pB)γ−1 γ −1].(4) Substituting (4) into (3) and proceeding as in the supersonic case, we get ˙mF(t)= ApF(t) √RgTF(t)� � � �2γ γ−1[(pB(t) pF(t))2 γ −(pB(t) pF(t))γ+1 γ].(5) As the pressure in the bottle drops, the temperature increases. If the heat transmission is neglected, however, the process can be considered to be adiabatic. Let mF0,pF0be the initial mass and pressure in the bottle and VFthe bottle volume. Under the above assumptions the momentary pressure and temperature are given by pF(t)=(mF(t) mF0)γ pF0,T F(t)= pF(t)VF RgmF(t).(6) Let si∈L∞(0,t f; [0,1]) denote the aperture of the blowing valve of the i−th ballast tank during the time interval [0,t f]. Thus, the final equations for the mass flow rate from bottle iare ˙mFi(t)=si(t)A(γ(2 γ+1 )γ+1 γ−1pF0 mγ F0VF (mFi(t))γ+1) 1 2 ,if pFi(t) pBi(t)≥(γ+1 2)γ γ−1 ˙mFi(t)=si(t)A(pF0mFi(t)γ+1 mγ F0VF 2γ γ−1)1 2 · · pBi(t) pF0(mFi(t) mF0)γ 2 γ − pBi(t) pF0(mFi(t) mF0)γ γ+1 γ 1 2 if (γ+1 2)γ γ−1 >pFi(t) pBi(t)>1 ˙mFi(t)=0 if pFi(t) pBi(t)≤1 (7) 4 316
Roberto Font, Javier Garc´ıa and a0=√γRgT0, the mass flow rate is ˙mF(t)= ApF(t) √RgTF(t)√γ(2 γ+1)γ+1 γ−1 ,(2) where γis the isentropic constant, Rgis the gas constant for air and TFis the temperature in the bottle. Subsonic flow: In this case, the mass flow rate is given by ˙mF=ρa,eMeaeAe=ρ0a0 ρa,e ρa,0 ae a0 MeAe,(3) where Aeis the exit area, in this case Ae=A,Mis the Mach number and the subscript edenotes conditions at the exit. The Mach number at the exit is given by Me=� � � �2 γ−1[(pF pB)γ−1 γ −1].(4) Substituting (4) into (3) and proceeding as in the supersonic case, we get ˙mF(t)= ApF(t) √RgTF(t)� � � �2γ γ−1[(pB(t) pF(t))2 γ −(pB(t) pF(t))γ+1 γ].(5) As the pressure in the bottle drops, the temperature increases. If the heat transmission is neglected, however, the process can be considered to be adiabatic. Let mF0,pF0be the initial mass and pressure in the bottle and VFthe bottle volume. Under the above assumptions the momentary pressure and temperature are given by pF(t)=(mF(t) mF0)γ pF0,T F(t)= pF(t)VF RgmF(t).(6) Let si∈L∞(0,t f; [0,1]) denote the aperture of the blowing valve of the i−th ballast tank during the time interval [0,t f]. Thus, the final equations for the mass flow rate from bottle iare ˙mFi(t)=si(t)A(γ(2 γ+1 )γ+1 γ−1pF0 mγ F0VF (mFi(t))γ+1) 1 2 ,if pFi(t) pBi(t)≥(γ+1 2)γ γ−1 ˙mFi(t)=si(t)A(pF0mFi(t)γ+1 mγ F0VF 2γ γ−1)1 2 · · pBi(t) pF0(mFi(t) mF0)γ 2 γ − pBi(t) pF0(mFi(t) mF0)γ γ+1 γ 1 2 if (γ+1 2)γ γ−1 >pFi(t) pBi(t)>1 ˙mFi(t)=0 if pFi(t) pBi(t)≤1 (7) 4 Roberto Font, Javier Garc´ıa Since the initial mass flow rate depends only on the initial conditions in the bottle, it can be considered as a constant with value ˙mFi(0) = A(γ(2 γ+1)γ+1 γ−1pF0mF0 VF)1 2 . This initial mass flow rate has been measured for several blowing intensities. Let ˙mFmax be this measured maximum mass flow rate. Instead of using the numerical value of area Awhen computing (7), we obtain it from the above expression and the measured value for ˙mFmax, that is, A=˙mFmax ((2 γ+1)−γ+1 γ−1VF γpF0mF0)1 2 . By doing so, we ensure that the initial mass flow rate calculated coincides with the real measured value. This way, although pressure losses are not considered in the model, they are indirectly taken into account. 2.1.2 Air flow through venting valve Equations for the air flow from the tank can be obtained analogously to the ones used for the mass flow from the bottle. In this case, the pressures to evaluate are the pressure in ballast tank, pB, and the pressure outside the vent valve pipe system, pext. Let Avbe the vent pipe section, similarly to (7), we have ˙mv(t)=µ(pB,p ext)AvpB(t) RgTB(t),µ=µmax if pext pB≤(pext pB)crit (8) Although the geometric details of the venting system are not available and therefore pressure losses can not be directly calculated, an evaluation of µ(pB,p ext) for several values of the pext pBratio taking into account the different pressure losses along the system has been provided. Let Π = pext pBbe the pressure ratio. A expression for µ(Π) was obtained used a least squares fit of these data. The variation in the mass of air in the ballast tank is the difference between the mass flow rate from the bottle and the mass flow rate through the venting valve. Let si∈L∞(0,t f; [0,1]) be the aperture of venting valve of the i−th ballast tank, then from (8): ˙mBi(t)+ ˙mFi(t)=−µi(Π(t))si(t)AvpBi(t) √RgTB ,(9) 2.1.3 Water flow through flood port The difference between the tank and outside pressure forces the water to flow in or out from the tank trough the flood port located at the bottom. Let us assume, in the 5 317
Roberto Font, Javier Garc´ıa first place, that the pressure in ballast tank is greater than the outside pressure. Then, the water flows out from the tank. The pressure directly above the flood port is pB(t)+ ρghwc(t), where hwc(t) is the height of the water column in the tank. Assuming that the tank has a regular shape, the height of the water column can be expressed as hwc(t)=(1−∆m(t) ∆mmax )Htk, where Htk is the ballast tank height, ∆m(t) is the mass loss in the tank and ∆mmax is the maximum value of the mass loss (see Section 2.2 for more details). The Bernoulli equation applied at both sides of the port gives pB(t)+ρghwc(t)−∆ploss =pSEA(t)+1 2ρv2 h(t),∆ploss =ζh 1 2ρv2 h(t) where vhand ∆ploss are, respectively, the velocity and pressure losses in the outlet hole. Both major and minor losses have been calculated by a separate model and can be compressed into one single term. This way the volume flow from the ballast is given by qB(t)=ChAhvh(t)=CnAh√2(pB(t)+ρghwc(t)−pSEA(t)) ρ(1 + ζh),(10) where pSEA is the pressure outside the flood port, Ahis the outlet hole area and Chis a coefficient that takes into account that, since the outlet hole is actually a grid, the effective area is smaller than Ah. If pressure in ballast tank is lower than the outside pressure, then water flows into the tank. In this case, the expression for the volume flow is (10), but with a negative value. 2.1.4 Evolution of pressure in ballast tank When the blowing valve is opened the air is blown into the tank at a very high velocity, rapidly mixing with water. This promotes good heat transfer from the water to the expanding air and we can work under the assumption that the air will immediately adopt the temperature in the tank. The process can then be considered to be isothermal. As mentioned in [2], experimental results sustain this assumption. From the ideal gas law it follows that ˙pB(t)= ˙mB(t)RgTB−˙ VB(t)pB(t) VB(t). The volume occupied by air increases (and in the same quantity) as the volume occupied by water decreases. Thus, the rate at which it changes, ˙ VB, will be the volume flow out 6 318
Roberto Font, Javier Garc´ıa first place, that the pressure in ballast tank is greater than the outside pressure. Then, the water flows out from the tank. The pressure directly above the flood port is pB(t)+ ρghwc(t), where hwc(t) is the height of the water column in the tank. Assuming that the tank has a regular shape, the height of the water column can be expressed as hwc(t)=(1−∆m(t) ∆mmax )Htk, where Htk is the ballast tank height, ∆m(t) is the mass loss in the tank and ∆mmax is the maximum value of the mass loss (see Section 2.2 for more details). The Bernoulli equation applied at both sides of the port gives pB(t)+ρghwc(t)−∆ploss =pSEA(t)+1 2ρv2 h(t),∆ploss =ζh 1 2ρv2 h(t) where vhand ∆ploss are, respectively, the velocity and pressure losses in the outlet hole. Both major and minor losses have been calculated by a separate model and can be compressed into one single term. This way the volume flow from the ballast is given by qB(t)=ChAhvh(t)=CnAh√2(pB(t)+ρghwc(t)−pSEA(t)) ρ(1 + ζh),(10) where pSEA is the pressure outside the flood port, Ahis the outlet hole area and Chis a coefficient that takes into account that, since the outlet hole is actually a grid, the effective area is smaller than Ah. If pressure in ballast tank is lower than the outside pressure, then water flows into the tank. In this case, the expression for the volume flow is (10), but with a negative value. 2.1.4 Evolution of pressure in ballast tank When the blowing valve is opened the air is blown into the tank at a very high velocity, rapidly mixing with water. This promotes good heat transfer from the water to the expanding air and we can work under the assumption that the air will immediately adopt the temperature in the tank. The process can then be considered to be isothermal. As mentioned in [2], experimental results sustain this assumption. From the ideal gas law it follows that ˙pB(t)= ˙mB(t)RgTB−˙ VB(t)pB(t) VB(t). The volume occupied by air increases (and in the same quantity) as the volume occupied by water decreases. Thus, the rate at which it changes, ˙ VB, will be the volume flow out 6 Roberto Font, Javier Garc´ıa of the ballast tank, qB, given by (10). Using the perfect gas equation, the momentary volume of air in the tank is VB(t)=mB(t)RgTB pB(t). The variation in the i–th tank pressure is then mBi(t) pBi(t)˙pBi(t)−˙mBi(t)=−pBi(t)qBi(t) RgTB .(11) 2.2 Coupling of blowing-venting system with a variable mass model for the equations of motion As water flows in or out of the tanks there will be mass variations located at several points of the vehicle. Since the equations of motion assume the mass of the submarine to be constant, it is necessary to identify which terms, formerly constant, will become time dependent due to its dependance with mass. We will need to write mass, moments and products of inertia and the location of center of gravity as a function of the amount of water in the tanks. Let us assume there are Nballast tanks with geometrical centers located at points (xbi,ybi,zbi) (where the subscript idenotes the i−th ballast tank). Let m0be the initial mass of the submarine (with all tanks completely filled with water) and ∆miis the mass loss in the i−th tank. It is 0 when the tank is completely filled with water, and reaches its maximum value when it empties. The volume of water that has left the tank is equal to the volume occupied by air except for the initial air volume in the tank, VB0, which depends on the initial mass of air in the tank, mB0, and the initial depth. The mass loss in the i−th tank is then, ∆mi(t)=ρ(VBi(t)−VB0)=ρ(mBi(t)RgTB pBi(t)−VB0).(12) The momentary mass of the submarine can be expressed as: m(t)=m0− N ∑ i=1 ∆mi(t).(13) To find expressions for the location of the center of gravity and moments and products of inertia we will work under the assumption that the mass loss in each tank occurs at a point, (xbi,ybi,zmli(t)), where zmli(t) is the height at which mass loss happens for each tank. It varies from the top of the tank, when it is completely filled, to its geometric center, zbi, when it is completely empty. This variation is assumed to be linear. Let Ix0, Iy0,Iz0,Ixy0,Ixz0,Iyz0and xG0,yG0,zG0be respectively the initial (all tanks completely filled) moments and products of inertia and coordinates of the center of gravity. Then the moments and products of inertia are: Ix(t)=∫(y2+z2)dm =Ix0− N ∑ i=1 (y2 bi +zmli(t)2)∆mi(t) (14) 7 319
Roberto Font, Javier Garc´ıa and the coordinates of the center of gravity: xG(t)= 1 m0−∑N i=1 ∆mi(t)(m0xG0− N ∑ i=1 xbi∆mi(t))(15) The rest of coordinates and moments and products of inertia are calculated analogously. Substituting (13)−(15) into the equations of motion completes our variable mass model. 3 Formulation of the control problem Next, we plan to analyze the potential use of blowing-venting operations as a control mechanism in a typical emergency rising manoeuvre where the submarine must reach surface quickly while keeping his stability. From now on we will use the following notation: x=x(t)=[[mFi(t),m Bi(t),p Bi(t)]1≤i≤N,η(t)T,ν(t)T]T, where Nis the number of ballast tanks, η=[x,y,z,ϕ,θ,ψ]Tis the vector of positions and Euler angles and ν=[u,v,w,p,q,r]Tare linear and angular velocities. Moreover we write the control vector as u(t)=[si(t), si(t)]T 1≤i≤N,siand sibeing, respectively, the aperture of blowing and venting valves of the i-th tank. Finally, the state law is composed of equations (7), (9) and (11) for the blowing-venting system, the six kinematic equations and the six equations of the hydrodynamic forces and moments (see [5] and [9]), where the time dependent parameters as described in Subsection 2.2 have been taken into account). In compact form we write these equations as A(x(t)) ˙ x(t)=f(t, x(t),u(t)) ,(16) We are now in a position to formulate the manoeuvrability control problem. Given an initial state x(0) = x0and a desired final target xtf, the goal is to calculate the vector of control u=u(t), which is able to draw our system from the initial state x0to (or near to) the final one xtfin a given time tf, also minimizing a cost functional. In mathematical terms we have the Bolza-type problem Minimize in u:J(u)=Φ(x(tf),xtf)+∫tf 0 F(t, x(t)) dt subject to A(x(t)) ˙ x(t)=f(t, x(t),u(t)) x(0) = x0∈Ω 0≤si(t),si(t)≤1,1≤i≤N, and x(t)∈Ω, (17) where Ω stands for the set of constraints for the state variable. Typically Φ ( x(tf),xtf ) = 3N+12 ∑ j=1 αj(xj(tf)−xtf j)2,F(t, x(t)) = 3N+12 ∑ j=1 βj(xj(t)−xj(t))2 8 320
Roberto Font, Javier Garc´ıa and the coordinates of the center of gravity: xG(t)= 1 m0−∑N i=1 ∆mi(t)(m0xG0− N ∑ i=1 xbi∆mi(t))(15) The rest of coordinates and moments and products of inertia are calculated analogously. Substituting (13)−(15) into the equations of motion completes our variable mass model. 3 Formulation of the control problem Next, we plan to analyze the potential use of blowing-venting operations as a control mechanism in a typical emergency rising manoeuvre where the submarine must reach surface quickly while keeping his stability. From now on we will use the following notation: x=x(t)=[[mFi(t),m Bi(t),p Bi(t)]1≤i≤N,η(t)T,ν(t)T]T, where Nis the number of ballast tanks, η=[x,y,z,ϕ,θ,ψ]Tis the vector of positions and Euler angles and ν=[u,v,w,p,q,r]Tare linear and angular velocities. Moreover we write the control vector as u(t)=[si(t), si(t)]T 1≤i≤N,siand sibeing, respectively, the aperture of blowing and venting valves of the i-th tank. Finally, the state law is composed of equations (7), (9) and (11) for the blowing-venting system, the six kinematic equations and the six equations of the hydrodynamic forces and moments (see [5] and [9]), where the time dependent parameters as described in Subsection 2.2 have been taken into account). In compact form we write these equations as A(x(t)) ˙ x(t)=f(t, x(t),u(t)) ,(16) We are now in a position to formulate the manoeuvrability control problem. Given an initial state x(0) = x0and a desired final target xtf, the goal is to calculate the vector of control u=u(t), which is able to draw our system from the initial state x0to (or near to) the final one xtfin a given time tf, also minimizing a cost functional. In mathematical terms we have the Bolza-type problem Minimize in u:J(u)=Φ(x(tf),xtf)+∫tf 0 F(t, x(t)) dt subject to A(x(t)) ˙ x(t)=f(t, x(t),u(t)) x(0) = x0∈Ω 0≤si(t), si(t)≤1,1≤i≤N, and x(t)∈Ω, (17) where Ω stands for the set of constraints for the state variable. Typically Φ(x(tf),xtf)= 3N+12 ∑ j=1 αj(xj(tf)−xtf j)2,F(t, x(t)) = 3N+12 ∑ j=1 βj(xj(t)−xj(t))2 8 Roberto Font, Javier Garc´ıa with αj>0, βj>0 penalty parameters and x(t)=[xj(t)] a desired trajectory. There are several optimization methods which can be applied to solve (17). Due to the complexity of the state law and the large number of variables involved in the problem, it is quite reasonable to use a gradient descent method with projection. We refer to [4] for more details on this method. 4 A numerical experiment The proposed models have been implemented with the help of the software Matlab. At each iteration of the gradient algorithm, the numerical resolutions of the state and adjoint state equations have been carried out by using the ODE45 function, which is a one-step solver based on an explicit Runge-Kutta method. On an emergency situation, like on board fire or flood, submarines may need to rise to the surface quickly. The typical protocol for this situation is to use the control planes to pitch the nose of the submarine up, increase the speed, and blow the ballast tanks to reduce the weight of the submarine and drive it to the surface with buoyancy. As analyzed in [1, 11], small to medium size submarines exhibit a roll instability during these kind of manoeuvres. Full scale trials showed that submarines rose with roll angles up to 25 degrees. It is also known that if the the submarine emerges with a high roll angle, it may experiment large roll oscillations on the surface. Of course, this is an undesirable situation, particularly if the operators are attending to the original problem that required the emergency rise. For these reasons, it might be interesting to check if this situation can be prevented by using our control algorithm. To this end, and emergency rising manoeuvre has been simulated for two different scenarios: 1) A standard manoeuvre. Initial depth is 100 m, initial speed is 2 m/s. At t= 0 the stern and bow planes are set to −20 and 20 degrees respectively and the propeller is set to 150 rpm. At the same time, ballast tanks 2–5 are simultaneously blown with half the maximum intensity (this corresponds to si=0.5 in our model). Vent valves remain closed (si= 0) throughout all the simulation. 2) Same manoeuvre, with the control algorithm acting from t= 0 to t= 30 s using Scenario 1 as initialization and looking to achieve three main objectives: a) Submarine must rise in a similar time as it does in the standard manoeuvre, b) Rising pitch angle must be around 20 degrees and never above 25 degrees and c) Roll angle must be as close as possible to zero throughout all the simulation. After t= 30 s, simulation continues with fixed controls (values equal to those used in Scenario 1) until the submarine reaches a depth of 10 m. Results for Scenario 1 (dashed lines) and Scenario 2 (solid lines) are shown in figures 1 to 3. Figure 1 shows vehicle depth, pitch angle and roll angle for both scenarios. The rest of state variables have not been included since they are not directly relevant for 9 321