CROSS-REFERENCE TO RELATED APPLICATION 
   This application is a 371 of PCT/GB02/00983, filed Mar. 5, 2002. 
   BACKGROUND OF THE INVENTION 
   1. Field of the Invention 
   The present invention relates primarily to control for processes involving deposited material (such as for example molten metal spraying processes). 
   2. State of the Art 
   WO-A-96/09421 discloses a technique for spraying molten metal (particularly steel) to produce self supporting articles. In the process disclosed it is clear that for a practically realisable process, accurate control of the temperature of the sprayed metal droplets and/or the temperature of the already deposited material is important. Such considerations are also relevant to spraying of other materials and other deposition processes. Additionally other parameters for spray deposition processes require monitoring regulation and control. 
   The spray forming process deposits molten metal (typically from electric arc spray guns) onto a substrate (typically a ceramic substrate) to form a metal shell that accurately reproduces the topography of the ceramic substrate. 
   The molten metal is typically produced in the guns by direct current arcing between two oppositely charged wires made of the metal being sprayed. The arcing causes the wire tips to melt and a high-pressure inert gas stream continuously strips molten material from the arc, atomising it into a spray of droplets. The gas stream carries the droplets to the surface of the object where they are deposited. Wire is continuously fed to the arc gun to maintain the flow of sprayed metal and the amount of metal that is deposited can be adjusted by changing the feed rate of the wire. The droplet spray from the guns is scanned over the surface of the ceramic substrate by a robot in a pre-determined, repetitive manner, referred to as the “path plan”. 
   The guns act not only as source of material but also as source of heat because the molten droplets transfer their heat to the spray formed metal shell as they cool and solidify to build up a solid metal shell. An important feature of the process described in WO-A-96/09421 is that it relies on the metal droplets undergoing prescribed phase transformations as they cool after being deposited on the surface of the sprayform. These phase transformations offset the natural contraction of the metal as it cools, allowing the dimensional accuracy of the sprayform to be maintained. In order to ensure that the required transformations occur, accurate regulation of the thermal history of the sprayed material is necessary. One method of regulating the thermal history is to ensure that the temperature of the surface at the point where the spray was deposited passes through a given temperature at a specific time after deposition. A system for regulating the thermal history of the deposited material has been proposed that adjusts one or more parameters including the height, velocity and path of the robot and the orientation of the guns. These adjustments are made relative to nominal or reference values for these variables and the purpose of the current invention is to specify a nominal path for the robot over the sprayform that will minimise the variations in temperature over the surface. 
   SUMMARY OF THE INVENTION 
   According to a first aspect, the present invention provides a system for incrementally depositing material, which system comprises:
         delivery means for directing material toward a delivery zone;   control means for controlling operation of the delivery means, the control means controlling the deposition according to a derived path plan predicted to minimise/reduce deviation from an ideal uniform temperature profile during the deposition process.       

   According to a second aspect, the invention provides a control system for deposition apparatus, the control system controlling the deposition according to a derived path plan predicted to minimise/reduce deviation from an ideal uniform temperature profile during the deposition process. 
   According to a further aspect the invention provides a method of producing an article by a deposition process, the method comprising directing material toward a delivery zone and controlling the deposition according to a derived path plan predicted to minimise/reduce deviation from an ideal uniform temperature profile during the deposition process. 
   The material is typically delivered in flight, preferably as vapour/molten droplets. Typically the material may be delivered by spray delivery means. Molten droplets of the material are typically atomised in a conveying gas. 
   The delivery means is typically operable to produce a scanning or traversing pattern of material deposition or flight delivery over the deposition zone; the control means beneficially operates (at least initially) to the predetermined path plan having predetermined scan or traverse rate or scan movement direction. 
   The path plan preferably comprises a predetermined path plan derived by considering spatial modes and selecting spatial modes to optimise the scan launch angle and/or path plan length preferably without exciting lower order modes. The scan path plan preferably reflects at boundaries to form an overcrossing pattern at the deposition zone. 
   The path plan may comprise a repeating pattern returning to a start point following a plurality of scan passes over the deposition zone. Alternatively the path plan may comprise a non-repeating pattern, an artificial correction step may return the path to a common path point following a finite number of scan passes. 
   The predetermined path plan is beneficially derived in a process (preferably a computer software run process) in which one or more of the following input considerations are accredited:
         optimisation criteria selected;   maximum acceptable deviation from desired thermal profile;   dimensions of the deposition zone   size/dimensions of deposition footprint;   mass deposition criteria;   scan velocity.       

   Beneficially a scan angle is set in which:
         having regard for the footprint of the spray gun, {tilde over (f)}(x, y, t), the coefficients, {circumflex over (b)} m,n , are determined (typically when the gun effecting deposition is centred over the deposition zone surface);   Upper bounds, M and N are determined, such that {{circumflex over (b)} m,n ≈0:m&gt;M; n&gt;N};   Integers are selected, μ≦M and υ≦N, such that μ≧υ and μ and υ have no common factors;   Scan angle set to       

   
     
       
         
           
             tan 
             ⁢ 
             
                 
             
             ⁢ 
             ψ 
           
           = 
           
             
               μ 
               ⁢ 
               
                   
               
               ⁢ 
               
                 L 
                 y 
               
             
             
               v 
               ⁢ 
               
                   
               
               ⁢ 
               
                 L 
                 x 
               
             
           
         
       
     
       
       
         
           Search over all modes, {m=1,2, . . . ,M,n=1,2, . . . ,N}, to ensure that all q m,n (t) satisfy the optimisation criterion for this scan angle. 
         
       
     
  
   If the criterion is not satisfied, increase υ and/or μ and repeat preceding steps (from ‘Integers are selected’ step);
         If the criterion is satisfied, check that path satisfies mass deposition criterion;   If the mass deposition criterion is not satisfied, increase υ and/or μ and repeat preceding steps (from ‘integers are selected’ step).   If the mass deposition criterion is satisfied, use scan angle, ψ to generate robot path and download to control scan (download to scanning robot).       

   The system according to the invention is particularly suited to the production of articles in which localised differences in thermal conditions and/or thermal history can lead to differential thermal contraction and distortion. The optimised path plan selection and control enables the spraying regime for such large articles to be closely and accurately regulated. 
   UK Patent Application 0026868.0 (the entirety of which is incorporated herein by reference) relates to controlling deposition processes including the thermal profile of deposited material using real time monitoring of parameters (including thermal parameters) to ensure that a desired thermal history has occurred for deposited material. 
   The present invention is of benefit in its own right as providing for thermal history control by providing an optimised path plan for deposition. Alternatively, the present invention provides a useful adjunct for control processes such as that described in UK Patent Application 0026868.0 because a deposition process can initially be set up to run in accordance with the path plan derived according to the present invention and subsequently feedback monitored control input can be utilised if desired for more accurate or sophisticated control. 
   The system can be used to spray to a predetermined desired temperature profile at which different surface zones may be maintained at different temperatures at different times during the spraying process. 
   The present invention is also of benefit for controlling projected delivery/deposition processes (such as spraying) of materials having other parameters which are time variable (particularly following deposition). Examples of such situations and processes are heat flow, fluid flow, diffusion, decomposition and curing. This list is non-exhaustive. The invention may for example be utilised in processes such as paint spraying where fluid flow may occur following deposition. 
   According to a further aspect, the invention therefore provides A system for incrementally depositing material, which system comprises:
         delivery means for directing material toward a deposition zone;   control means for controlling operation of the delivery means, the control means controlling the deposition according to a derived scan path plan predicted to minimise/reduce deviation from an ideal uniform parameter profile for the deposit during the deposition process.       

   According to a further aspect, the invention therefore also provides a control system for deposition apparatus, the control system controlling the deposition according to a derived scan path plan predicted to minimise/reduce deviation from an ideal uniform parameter profile for the deposit during the deposition process. 
   The invention as defined is applicable to minimise deviation from the ideal value for a parameter of the deposited material that has a tendency to vary over time. For example, the thickness of spray paint material may vary over time as the paint flows at the deposition zone. The preferred features of the invention in relation to deposit temperature profile optimisation may also be preferred in relation to optimisation of parameters for other spray deposited materials or processes. Particularly, scan path plans as defined in the claims having ‘mirrorbox’ or traversing scan passes as defined will improve the resultant deposition characteristics. 


   
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The invention will now be further described in specific embodiments, by way of example only, and with reference to the accompanying drawings, in which: 
       FIG. 1  is a schematic representation of a system according to the invention. 
       FIG. 2  is a representation of a path taken by robot as it scans across the surface of the sprayform deposition zone. 
       FIG. 3  shows normalised peak amplitude of different spatial modes plotted against scan velocity. 
       FIG. 4  shows normalised peak amplitude of different modes for a Gaussian footprint of width L x /20 and scan angle ψ=56.13°. 
       FIG. 5  shows normalised peak amplitude of different modes for a Gaussian footprint of width L x /20 and scan angle ψ=72.9°. 
       FIG. 6  shows normalised peak amplitude of different modes plotted against scan angle for an impulsive footprint when the gun velocity is 0.2 m s −1 . The legend shows the angle at which the peak amplitude occurs for each mode. 
       FIG. 7  shows normalised peak amplitude of different modes plotted against scan angle for a Gaussian footprint of width L x /20 when the gun velocity is 0.2 m s −1 . The legend shows the angle at which the peak amplitude occurs for each mode. 
       FIG. 8  shows normalised peak amplitude of different modes plotted against scan angle for a Gaussian footprint of width L x /5 when the gun velocity is 0.2 m s −1 . The legend shows the angle at which the peak amplitude occurs for each mode. 
       FIG. 9  is a schematic representation of an exemplary path that results in a good thermal profile, but does not repeat. 
       FIG. 10  is a schematic representation of an exemplary poor path that amplifies a particular mode, in this case q 5,3 (t). 
       FIG. 11  is a schematic representation of an exemplary closed path that avoids amplifying low order modes and results in a flat thermal profile. 
       FIG. 12  is a flowchart for optimisation procedure in accordance with the invention. 
       FIG. 13  is a thermal image of a poor “mirrorbox” scan path plan. 
       FIG. 14  is a thermal image of a good “mirrorbox” scan path plan. 
       FIG. 15  is a thermal image of a raster scan path plan. 
   


   DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS 
   Referring to  FIG. 1 , in the embodiment described here the system consists of a single spray gun ( 1 ) spraying molten steel, mounted on a 6-axis industrial robot ( 2 ). The robot moves the spray gun over a ceramic former ( 3 ) and the metal deposited in the spray ( 4 ) builds up a metal shell. The temperature profile on the surface is recorded periodically by a thermal imaging camera ( 5 ). A computer ( 6 ) determines the path to be followed by the gun and downloads it to the robot. 
   In the invention described in UK Patent Application 0026868.0, adjustments are made to the path of the robot and to parameters such as the wire feed rate to achieve the desired thermal profile. In the invention described here, the height, robot velocity, gun orientation, robot path and wire feed rate are kept constant, but the robot velocity and path are chosen to minimise the variations in the thermal profile over the surface. This has two main purposes:
         1. if no further control is applied, then maintaining the required uniform thermal profile over the surface minimises the net stresses and/or distortion across the sprayform, provided that the appropriate spray conditions are used;   2. if control of thermal history is applied as described in UK Patent Application 0026868.0, then adjustments real time to the robot velocity, robot height, path etc., will be made relative to the optimal, predetermined, nominal path.       

   Consider spraying onto a flat rectangular sprayform of dimension L x  in the x direction and L y  in the y direction (other geometries will be described below). Viewed from above,  FIG. 2  shows the path (path plan) taken by the spray from the gun ( 1 ) as it tracks across the surface, at constant velocity, ν. The robot starts from a point (A) on one edge of the sprayform and tracks across the sprayform at an angle ψ, to this edge, until it reaches the opposite edge at point B, where they component of the velocity of the robot is reversed, so that the robot turns round and scans back at the same angle, ψ, to the edge. When the robot reaches the end of the sprayform at point C, the x component of the velocity of the robot is reversed and robot moves back in the negative x direction, making an angle of 90°-ψ to the edge. 
   In order to program the robot movements, it is necessary for the path to consist of a finite number of moves and the ideal path (from the programming point of view) is for the path to end at point A following a finite number of “reflections” at the edges. Under these circumstances, this “closed” path can be repeated either until a new path is determined or until spraying is complete. If the path does not pass through point A, then it is necessary to stop the robot at A′, a point close to A, move the robot to point A and then restart the robot along the path. Because the path consists of a series of reflections when the robot reaches the edge of the sprayform, it is referred to as a “mirrorbox” pattern. 
   If the distance from the gun to the surface and the orientation of the gun remain constant, then for a flat surface, the shape of the “footprint”, or thermal flux, striking the sprayform remains fixed as the robot moves the gun over the surface. The shape of the footprint in the current embodiment is a 2-dimensional Gaussian function. For a given thermal footprint, the invention determines the path (path plan) that minimises the deviations in the thermal profile over the surface by finding the optimal scan angle, ψ, and scan velocity, ν. For ease of exposition, the current embodiment considers the case where L x ≧L x  and 45 °≦ψ&lt;90°, although the cases where L x &lt;L x  and/or ψ&lt;45° can be analysed by the same approach. 
   Mass is deposited onto the sprayform by the spray gun as it is moved over the surface by the robot. The invention describes the path (path plan) that the gun should follow in order to minimise the thermal variations over the surface of the sprayform. 
   According to one aspect, the invention requires knowledge of the thermal “footprint” of the gun, which describes the rate of heat deposited per unit area by the spray gun over the surface of the sprayform. Although the shape of the footprint remains constant, its location changes with time as the gun is moved over the sprayform. The present technique expresses the thermal footprint in terms of a 2-dimensional Fourier series, which describes the footprint as a weighted sum of 2-dimensional sinusoidal spatial components. The coefficients of this weighted sum are denoted by b m,n (t), where m and n are used to index the frequency of the spatial harmonics in the x and y dimensions, respectively. The coefficients, b m,n (t), vary with time as the spray gun is moved over the surface. 
   Because the thermal footprint is a smooth function the surface of sprayform (i.e it does not contain abrupt changes), the magnitude of the coefficients, b m,n (t), tends to zero as m and/or n become large, irrespective of the location of the spray gun. This shows that the thermal effect of the gun is concentrated in the low order spatial modes, i.e. those modes associated with low spatial harmonics. For a closed spray path, where the path that repeats itself after a fixed time interval, the launch angle (i.e the angle that the spray path makes with one edge of the sprayform), ψ, satisfies 
             tan   ⁢           ⁢   ψ     =         m   ′       n   ′       ⁢               ⁢     L   y                 ⁢     L   x                 
where m′ and n′ are two integers. The optimal launch angle is determined by choosing the smallest pair of integers, m′ and n′, such that b m′,n′ (t) is negligible throughout the spray path. Choosing this value of y avoids exciting those thermal modes for which b m′,n′ (t) are non-zero. Although any value of m′ and n′ for which b m′,n′ (t) is negligible could be used, choosing the smallest possible values shortens the length of the path, which simplifies the programming of the robot path. It is often necessary to minimise variations in the mass deposition, as well as variations in temperature, but because the thermal footprint is highly correlated with the mass deposition footprint, it is likely that an optimising the launch angle for even temperature deposition also optimises the deposition of mass.
 
   The variations in temperature can be quantified in terms of its standard deviation at points over the entire surface. The effect of basing the path plan on the optimal launch angle y is to ensure that this standard deviation remains low throughout the path plan. It is possible to find a location for the spray gun during a non-optimal path plan, where the standard deviation of the temperature profile is less than the standard deviation achieved by the optimal path plan. However, for the non-optimal path, a low standard deviation at one location is offset by much larger standard deviations at other points along the path. The benefit of the optimal path is that the temperature profile has a low standard deviation throughout the path. 
   EXPERIMENTAL RESULTS 
   Three experiments were performed under the same spraying conditions but with different path plans. The spray guns were set at a distance of 160 mm from the surface of the sprayform and the robot moved at a constant velocity of 200 mm.s −1 . The guns each deposited mass at 1.8 g.s −1  onto a square ceramic of dimensions 12 inches by 12 inches. The guns followed a fixed path plan which covered an area of 15 inches by 15 inches. The variations in the thermal profile were recorded by taking an image using a thermal imaging camera, one quarter of the way through each repeat of the path plan. From the recorded thermal images, the standard deviation of the temperature at each pixel was calculated. 
   Three different path plans were compared:
         1. “Bad” mirrorbox (FIG.  13 )—a path plan with a “poor” launch angle of 77.47° for the 15 inches by 15 inches pattern, which excites low order spatial modes associated with the thermal footprint of the guns   2. “Good” mirrorbox (FIG.  14 )—a path plan with an optimised launch angle of 75.07 for the 15 inches by 15 inches pattern size that avoids the exciting the low order spatial modes associated with the thermal footprint of the guns   3. Raster pattern ( FIG. 15 ) of size 15 inches by 15 inches where the guns scan across the sprayform in a direction parallel to one edge. When the guns reach the edge of the spray pattern, they are moved a short distance parallel to the other edge and then scan back across the sprayform parallel to the original track, but in the opposite direction. This is repeated until the guns reach the edge of the spray pattern when the path is reversed. This spray path is commonly used in spraying operations.       

   The image taken during the 14 th  complete scan for each path plan was chosen as a typical result and analysed. The images for the bad mirrorbox pattern is shown in  FIG. 13 , while  FIG. 14  shows the corresponding images for the good mirrorbox pattern. The corresponding image for the raster path plan is shown in  FIG. 15 . In each case, the lighter areas are the areas where the temperature of the surface is higher then the average temperature, while the darker areas correspond to regions where the sprayform is cooler than the average temperature. The images were analysed to determine the mean temperature over the sprayform, together with the standard deviation about the mean of the temperatures associated with the pixels in the mean. 
   
     
       
             
             
             
             
           
         
             
                 
                 
             
             
                 
                 
               Mean 
               Standard Deviation 
             
             
                 
               Path 
               Temperature 
               of Temperature 
             
             
                 
                 
             
           
           
             
                 
               Bad mirrorbox 
               256.4° C. 
               16.5° C. 
             
             
                 
               Good mirrorbox 
               254.9° C. 
               12.2° C. 
             
             
                 
               Raster pattern 
               260.3° C. 
               28.5° C. 
             
             
                 
                 
             
           
        
       
     
   
   The results show that the good mirrorbox has the thermal profile with the lowest standard deviation, indicating that it is the best path to use to minimise the variations in temperature over a scan. The benefits of the optimal path can also be seen, by examining a sequence of thermal images. The images in the raster sequence alternate between a low standard deviation and very high standard deviation, depending on the point in the scan where image is taken. By contrast, the good mirrorbox pattern maintains a low standard deviation throughout the scan and there is little difference in standard deviation of the images whenever they are taken. 
   Procedure for Determining Optimal Path 
   The procedure (shown in  FIG. 12 ) for determining the optimal path is:
         1. Choose optimisation criterion and maximum acceptable level of deviation from the desired thermal profile.       

   2. Input the dimensions of the surface, L x , L x  and the scan velocity, ν. 
   3. Using the thermal footprint of the spray gun, determine the coefficients, b m,n , when the gun is in the center of the sprayform. 
   4. Determine upper bounds, M and N, such that b m,n  0 for m&gt;M and n&gt;N
         5. Choose integers, m and n, such that m 3  n and m and n have no common factors.       

   6. Set scan angle, y, to 
   
     
       
         
           
             tan 
             ⁢ 
             
                 
             
             ⁢ 
             ψ 
           
           = 
           
             
               μ 
               v 
             
             ⁢ 
             
               
                 
                     
                 
                 ⁢ 
                 
                   L 
                   y 
                 
               
               
                 
                     
                 
                 ⁢ 
                 
                   L 
                   x 
                 
               
             
           
         
       
     
       
       
         
           7. Search over all modes, {(n=1, 2, . . . , M, n=1, 2, . . . , N}, to ensure that the optimisation criterion is satisfied for this scan angle. 
           8. If the criterion is not satisfied, increase n and/or it and repeat from step 5. 
           9. If the criterion is satisfied, check that path satisfies mass deposition criterion. 
           10. If the mass deposition criterion is not satisfied, increase n and/or m and repeat from step 5. 
           11. If the mass deposition criterion is satisfied, use scan angle, y, to generate robot path and download path to robot. 
           12. Stop. 
         
       
     
  
   If it is not possible to find a scan angle that satisfies the optimisation criterion, then the scan velocity and/or the width of the spray footprint need to be increased until the procedure can find a suitable path. 
   Theoretical derivation of optimised path plan according to the invention is as follows. 
   Background: 2D Thermal Model 
   Partial Differential Equation 
   A 2D thermal model can be found using an energy balance for an element of the steel shell.
 
Δ E   element   =E   conducted   −E   convected   +E   supplied   (1)
 
where,
         ΔE element =increase in energy of element (J)   E conducted =energy conducted into element (J)   E convected =energy convected from element (J)   E supplied =energy supplied by electric arc spray gun (J)
 
but,
       

                   Δ   ⁢           ⁢     E   element       =     ρ   ⁢           ⁢   c   ⁢           ⁢     z   ⁡     (   t   )       ⁢       ∂   θ       ∂   t       ⁢   δ   ⁢           ⁢   x   ⁢           ⁢   δ   ⁢           ⁢   y             (   2   )               
where,
         ρ=density of sprayed steel (kg m −3 )   c=specific heat capacity of sprayed steel (J kg −1  K −1 )   z(t)=thickness of steel shell (m)   θ(x, y, t)=temperature of element (K)   δxδy=area of element (m 2 )
 
and,
 
 E   conduction   =Kz ( t )∇ 2 θδxδy  (3)
 
where,
   K=thermal conductivity of sprayed steel (W m −1  K −1 )
 
and
       
                     ∇   2     ⁢   θ     =           ∂   2     ⁢   θ       ∂     x   2         +         ∂   2     ⁢   θ       ∂     y   2                   (   4   )               
and,
   E   convection   =[H   a (θ−θ a )+ H   c (θ−θ c )]δxδy  (5) 
where,
         H a =heat transfer coefficient from steel to air (W m −2  K −1 )   θ a =temperature of air (K)   H c =heat transfer coefficient from steel to ceramic (W m −2  K −1 )   θ c =temperature of ceramic (K)
 
and,
 
 E   supplied   =f ( x, y, t ) u ( t )δxδy  (6)
 
where,
   f(x, y, t)=thermal footprint of arc spray gun (J kg m −2 )   υ(t)=wire feed rate to gun (kg s −1 )       
   Substituting (2), (3), (5) and (6) into (1) gives 
                   ρ   ⁢           ⁢   c   ⁢           ⁢     z   ⁡     (   t   )       ⁢       ∂   θ       ∂   t       ⁢   δ   ⁢           ⁢   x   ⁢           ⁢   δ   ⁢           ⁢   y     =       ⁢       K   ⁢           ⁢     z   ⁡     (   t   )       ⁢       ∇   2     ⁢   θδ     ⁢           ⁢   x   ⁢           ⁢   δ   ⁢           ⁢   y     -       (         H   a     ⁡     [     θ   -     θ   a       ]       +       H   c     ⁡     [     θ   -     θ   c       ]         )     ⁢   δ   ⁢           ⁢   x   ⁢           ⁢   δ   ⁢           ⁢   y     +       f   ⁡     (     x   ,   y   ,   t     )       ⁢     u   ⁡     (   t   )       ⁢   δ   ⁢           ⁢   x   ⁢           ⁢   δ   ⁢           ⁢   y               (   7   )               
and dividing through by pcz(t)δxδy leads to
 
                     ∂   θ       ∂   t       =       κ   ⁢       ∇   2     ⁢   θ       -       H   ⁡     (   t   )       ⁢   θ     +         f   ~     ⁡     (     x   ,   y   ,   t     )       ⁢     u   ⁡     (   t   )         +     p   ⁡     (   t   )                 (   8   )               
where
 
           κ   =     K     ρ   ⁢           ⁢   c             
is the thermal diffusivity of sprayed steel and
 
   
     
       
         
           
             
               
                 
                   H 
                   ⁡ 
                   
                     ( 
                     t 
                     ) 
                   
                 
                 = 
                 
                   
                     
                       H 
                       a 
                     
                     + 
                     
                       H 
                       c 
                     
                   
                   
                     ρ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     c 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       z 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 9 
                 ) 
               
             
           
           
             
               
                 
                   
                     f 
                     ~ 
                   
                   ⁡ 
                   
                     ( 
                     
                       x 
                       , 
                       y 
                       , 
                       t 
                     
                     ) 
                   
                 
                 = 
                 
                   
                     f 
                     ⁡ 
                     
                       ( 
                       
                         x 
                         , 
                         y 
                         , 
                         t 
                       
                       ) 
                     
                   
                   
                     ρ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     c 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       z 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 10 
                 ) 
               
             
           
           
             
               
                 
                   p 
                   ⁡ 
                   
                     ( 
                     t 
                     ) 
                   
                 
                 = 
                 
                   
                     
                       
                         H 
                         a 
                       
                       ⁢ 
                       
                         θ 
                         a 
                       
                     
                     + 
                     
                       
                         H 
                         c 
                       
                       ⁢ 
                       
                         θ 
                         c 
                       
                     
                   
                   
                     ρ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     c 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       z 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 11 
                 ) 
               
             
           
         
       
     
   
   The time dependence in the thermal footprint comes from the presence of the term z(t) in the denominator and from the movement of the gun over the surface, so that 
                   f   ⁡     (     x   ,   y   ,   t     )       =         f   _     ⁡     (       x   -       υ   x     ⁢   t       ,     y   -       υ   y     ⁢   t         )         ρ   ⁢           ⁢   c   ⁢           ⁢     z   ⁡     (   t   )                   (   12   )               
where ν x  and ν y  are respectively, the robot velocity in the x and y directions and {tilde over (f)}(x′, y′) is the spray footprint, which is independent of the position of the gun over the surface.
 
Boundary Conditions
 
   For a rectangular sheet of steel of length L x  and width L y  that is in contact with the air at the top and sides and underneath with the surface of the ceramic, the heat loss from the top and bottom surfaces are modelled by the term H(t)θ+p(t) in (8). Provided that the sheet is thin, i.e. z(t)&lt;&lt;L x  and z(t)&lt;&lt;L y , it can be assumed that no heat is transferred from the sides of the sheet giving the Neumann boundary conditions, 
                     ∂   θ       ∂   t       ⁢            x   =   0       ⁢     =     0   ⁢           ⁢       ∂   θ       ∂   x       ⁢            x   =     L   x         ⁢     =     0   ⁢           ⁢       ∂   θ       ∂   y       ⁢            y   =   0       ⁢     =     0   ⁢           ⁢       ∂   θ       ∂   y       ⁢            y   =     L   y         ⁢     =   0                                 (   13   )               
together with the final value condition,
 θ( x, y, t )→0 as  t→∞   (14) 
Solving the Partial Differential Equation
 
   The aim is to solve (8) to find θ(x, y, t). 
   Homogeneous Part. Taking the homogeneous part of (8) 
                     ∂   θ       ∂   t       =       κ   ⁢       ∇   2     ⁢   θ       -       H   ⁡     (   t   )       ⁢   θ               (   15   )               
and assuming a separable solution of the form,
 θ( x, y, t )= q ( t )φ( x, y )  (16) 
then upon substituting (16) into (15) gives,
   qφ=κ ( qφ   xx   +qφ   yy )− H ( t ) qφ   (17) 
where,
 
   
     
       
         
           
             
               
                 
                   
                     ϕ 
                     
                       x 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       x 
                     
                   
                   = 
                   
                     
                       
                         
                           
                             ∂ 
                             2 
                           
                           ⁢ 
                           ϕ 
                         
                         
                           ∂ 
                           
                             x 
                             2 
                           
                         
                       
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         ϕ 
                         
                           y 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           y 
                         
                       
                     
                     = 
                     
                       
                         
                           ∂ 
                           2 
                         
                         ⁢ 
                         ϕ 
                       
                       
                         ∂ 
                         
                           y 
                           2 
                         
                       
                     
                   
                 
                 ⁢ 
                 
                     
                 
               
             
             
               
                 ( 
                 18 
                 ) 
               
             
           
         
       
     
   
   Rearranging to get expressions in t on the left and expressions in (x, y) on the right, both sides can be set equal to a constant α giving, 
   
     
       
         
           
             
               
                 
                   
                     
                       q 
                       . 
                     
                     
                       κ 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       q 
                     
                   
                   + 
                   
                     
                       H 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                     κ 
                   
                 
                 = 
                 
                   
                     
                       ( 
                       
                         
                           ϕ 
                           
                             x 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             x 
                           
                         
                         + 
                         
                           ϕ 
                           
                             y 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             y 
                           
                         
                       
                       ) 
                     
                     ϕ 
                   
                   = 
                   α 
                 
               
             
             
               
                 ( 
                 19 
                 ) 
               
             
           
         
       
     
   
   This can be split into,
 
 q+|H ( t )− q= 0  (20)
 
and
 
φ xx +φ yy −αφ=0  (21)
 
   Separating the solution for (21),
 
φ( x, y )= X ( x ) Y ( y )  (22)
 
and substituting (22) into (21) gives,
 
 X″Y+XY″−αXY= 0  (23)
 
   Rearranging to get expressions in x on the left and expressions in y on the right and setting both sides equal to a constant β, gives 
                     X   ″     X     =         -       Y   ″     Y       +   α     =   β             (   24   )               
which can be split into,
   X″−βX= 0  (25) 
and
   Y″− (α−β) Y= 0  (26) 
   There are now three ordinary differential equations (ODE&#39;s), (20), (25) and (26), which can be solved. (20) is a homogeneous first order linear ODE, whose solution is
 
 q ( t )= A  exp(−∫[ H ( t )−κα] dt )  (27)
 
where A is a constant of integration. This satisfies the final value condition (14), provided that ∫[H(t)−κα]dt→∞ as t→∞.
 
   Equation (25) is a second order ODE, which has a solution for β=−p 2 :
 
 X ( x )= C  cos  px+D  sin  px   (28)
 
   Applying the boundary conditions in (13) gives, 
   
     
       
         
           
             
               
                 
                   
                     
                       X 
                       m 
                     
                     ⁡ 
                     
                       ( 
                       x 
                       ) 
                     
                   
                   = 
                   
                     
                       C 
                       m 
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             
                               m 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                             
                             
                               L 
                               x 
                             
                           
                           ⁢ 
                           x 
                         
                         ) 
                       
                     
                   
                 
                 ⁢ 
                 
                   
 
                 
                 ⁢ 
                 
                   where 
                   , 
                   
                     p 
                     = 
                     
                       
                         m 
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         π 
                       
                       
                         L 
                         x 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 29 
                 ) 
               
             
           
         
       
     
   
   Following a similar argument for (26) and writing (α−β)=−q 2 , gives 
                     Y   n     ⁡     (   y   )       =       E   n     ⁢     cos   ⁡     (         n   ⁢           ⁢   π       L   y       ⁢   y     )                 (   30   )               
where, q=nπ/L y .
 
   Substituting (29) and (30) into (22) gives, 
                     ϕ     m   ,   n       ⁡     (     x   ,   y     )       =       C     m   ,   n     ′     ⁢     cos   ⁡     (         m   ⁢           ⁢   π       L   x       ⁢   x     )       ⁢     cos   ⁡     (         n   ⁢           ⁢   π       L   y       ⁢   y     )                 (   31   )               
where C m,n ′ =C m E n . Since β=−p 2  and (α−β)=−q 2 , then by defining λ m,n =−α
 
   
     
       
         
           
             
               
                 
                   λ 
                   
                     m 
                     , 
                     n 
                   
                 
                 = 
                 
                   
                     π 
                     2 
                   
                   ⁡ 
                   
                     ( 
                     
                       
                         
                           m 
                           2 
                         
                         
                           L 
                           x 
                           2 
                         
                       
                       + 
                       
                         
                           n 
                           2 
                         
                         
                           L 
                           y 
                           2 
                         
                       
                     
                     ) 
                   
                 
               
             
             
               
                 ( 
                 32 
                 ) 
               
             
           
         
       
     
   
   Combining (31), (27), (32) and (16) gives the full solution to the homogeneous part of the PDE, 
                   θ   ⁡     (     x   ,   y   ,   t     )       =       ∑     m   =   0     ∞     ⁢           ⁢       ∑     n   =   0     ∞     ⁢           ⁢         q     m   ,   n       ⁡     (   t   )       ⁢       ϕ     m   ,   n       ⁡     (     x   ,   y     )                     (   33   )               where   ,         q     m   ,   n       ⁡     (   t   )       =       F     m   ,   n       ⁢     exp   ⁡     (     -     ∫       [       H   ⁡     (   t   )       +     κ   ⁢           ⁢     λ     m   ,   n           )     ⁢     ⅆ   t           )                   (   34   )                   ϕ     m   ,   n       ⁡     (     x   ,   y     )       =       cos   ⁡     (         m   ⁢           ⁢   π       L   x       ⁢   x     )       ⁢     cos   ⁡     (         n   ⁢           ⁢   π       L   y       ⁢   y     )                 (   35   )               
with F m,n =AC m,n ′.
 
   Complete Solution Substituting equation (33) into equation (8) gives, 
                     ∑     m   =   0     ∞     ⁢           ⁢       ∑     n   =   0     ∞     ⁢           ⁢           q   .       m   ,   n       ⁡     (   t   )       ⁢       ϕ     m   ,   n       ⁡     (     x   ,   y     )             =       ⁢         ∑     m   =   0     ∞     ⁢           ⁢       ∑     n   =   0     ∞     ⁢         q     m   ,   n       ⁡     (   t   )       ⁢       [       κ   ⁢         ∂   2     ⁢     ϕ     m   ,   n           d   ⁢           ⁢     x   2           +     κ   ⁢         ∂   2     ⁢     ϕ     m   ,   n           d   ⁢           ⁢     y   2           -       H   ⁡     (   t   )       ⁢       ϕ     m   ,   n       ⁡     (     x   ,   y     )           ]         +       ⁢         f   ~     ⁡     (     x   ,     y   ¨     ,   t     )       ⁢     u   ~     ⁢     (   t   )       +     p   ⁡     (   t   )                 (   36   )                   but   ⁢           ⁢         ∂   2     ⁢     ϕ     m   ,   n             ∂   2     ⁢   x         +         ∂   2     ⁢     ϕ     m   ,   n             ∂   2     ⁢   y         =       -     λ     m   ,   n         ⁢     ϕ     m   ,   n                 (   37   )               
which gives,
 
   
     
       
         
           
             
               
                 
                   
                     ∑ 
                     
                       m 
                       = 
                       0 
                     
                     ∞ 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         0 
                       
                       ∞ 
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       
                         
                           
                             q 
                             . 
                           
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁡ 
                         
                           ( 
                           t 
                           ) 
                         
                       
                       ⁢ 
                       
                         
                           ϕ 
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁡ 
                         
                           ( 
                           
                             x 
                             , 
                             y 
                           
                           ) 
                         
                       
                     
                   
                 
                 = 
                   
                 ⁢ 
                 
                   
                     
                       ∑ 
                       
                         m 
                         = 
                         0 
                       
                       ∞ 
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       
                         ∑ 
                         
                           n 
                           = 
                           0 
                         
                         ∞ 
                       
                       ⁢ 
                       
                         
                           - 
                           
                             [ 
                             
                               
                                 H 
                                 ⁡ 
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               + 
                               
                                 κ 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   λ 
                                   
                                     m 
                                     , 
                                     n 
                                   
                                 
                               
                             
                             ] 
                           
                         
                         ⁢ 
                         
                           
                             q 
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁡ 
                           
                             ( 
                             t 
                             ) 
                           
                         
                         ⁢ 
                         
                           ϕ 
                           
                             m 
                             , 
                             n 
                           
                         
                       
                     
                   
                   + 
                   
                     
                       
                         f 
                         ~ 
                       
                       ⁡ 
                       
                         ( 
                         
                           x 
                           , 
                           y 
                           , 
                           t 
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       u 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                   
                   + 
                   
                     p 
                     ⁡ 
                     
                       ( 
                       t 
                       ) 
                     
                   
                 
               
             
             
               
                 ( 
                 38 
                 ) 
               
             
           
         
       
     
   
   Multiplying both sides by φ m′,n′ (x, y) and integrating gives, 
   
     
       
         
           
             
               
                 
                   
                     ∑ 
                     
                       m 
                       = 
                       0 
                     
                     ∞ 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         0 
                       
                       ∞ 
                     
                     ⁢ 
                     
                       
                         
                           q 
                           . 
                         
                         
                           m 
                           , 
                           n 
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           0 
                           
                             L 
                             y 
                           
                         
                         ⁢ 
                         
                           
                             ∫ 
                             0 
                             
                               L 
                               x 
                             
                           
                           ⁢ 
                           
                             
                               ϕ 
                               
                                 
                                   m 
                                   ′ 
                                 
                                 , 
                                 
                                   n 
                                   ′ 
                                 
                               
                             
                             ⁢ 
                             
                               ϕ 
                               
                                 m 
                                 , 
                                 n 
                               
                             
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               ⅆ 
                               x 
                             
                             ⁢ 
                             
                               ⅆ 
                               y 
                             
                           
                         
                       
                     
                   
                 
                 = 
                   
                 ⁢ 
                 
                   
                     
                       ∑ 
                       
                         m 
                         = 
                         0 
                       
                       ∞ 
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       
                         ∑ 
                         
                           n 
                           = 
                           0 
                         
                         ∞ 
                       
                       ⁢ 
                       
                         
                           - 
                           
                             [ 
                             
                               
                                 H 
                                 ⁡ 
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               + 
                               
                                 κ 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   λ 
                                   
                                     m 
                                     , 
                                     n 
                                   
                                 
                               
                             
                             ] 
                           
                         
                         ⁢ 
                         
                           q 
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁢ 
                           
                         ⁢ 
                         
                           
                             ∫ 
                             0 
                             
                               L 
                               y 
                             
                           
                           ⁢ 
                           
                             
                               ∫ 
                               0 
                               
                                 L 
                                 x 
                               
                             
                             ⁢ 
                             
                               
                                 ϕ 
                                 
                                   
                                     m 
                                     ′ 
                                   
                                   , 
                                   
                                     n 
                                     ′ 
                                   
                                 
                               
                               ⁢ 
                               
                                 ϕ 
                                 
                                   m 
                                   , 
                                   n 
                                 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ⅆ 
                                 x 
                               
                               ⁢ 
                               
                                 ⅆ 
                                 y 
                               
                             
                           
                         
                       
                     
                   
                   + 
                     
                   ⁢ 
                   
                     
                       u 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         0 
                         
                           L 
                           y 
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           0 
                           
                             L 
                             x 
                           
                         
                         ⁢ 
                         
                           
                             ϕ 
                             
                               
                                 m 
                                 ′ 
                               
                               , 
                               
                                 n 
                                 ′ 
                               
                             
                           
                           ⁢ 
                             
                           ⁢ 
                           
                             
                               f 
                               ~ 
                             
                             ⁡ 
                             
                               ( 
                               
                                 x 
                                 , 
                                 y 
                                 , 
                                 t 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             x 
                           
                           ⁢ 
                           
                             ⅆ 
                             y 
                           
                         
                       
                     
                   
                   + 
                     
                   ⁢ 
                   
                     
                       p 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         0 
                         
                           L 
                           y 
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           0 
                           
                             L 
                             x 
                           
                         
                         ⁢ 
                         
                           
                             ϕ 
                             
                               
                                 m 
                                 ′ 
                               
                               , 
                               
                                 n 
                                 ′ 
                               
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             x 
                           
                           ⁢ 
                           
                             ⅆ 
                             y 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 39 
                 ) 
               
             
           
         
       
     
   
   Using the orthogonality of φ m,n (x, y) 
                     ∫   0     L   y       ⁢       ∫   0     L   x       ⁢       ϕ       m   ′     ,     n   ′         ⁢     ϕ     m   ,   n       ⁢           ⁢     ⅆ   x     ⁢     ⅆ   y           =     {               L   x     ⁢     L   y       4         for         m   =         m   ′     ⁢           ⁢   and   ⁢           ⁢   n     =     n   ′                 0       for         m   ≠       m   ′     ⁢           ⁢   or   ⁢           ⁢   n     ≠     n   ′                       (   40   )               
together with
 
                     ∫   0     L   y       ⁢       ∫   0     L   x       ⁢       ϕ       m   ′     ,     n   ′         ⁢           ⁢     ⅆ   x     ⁢     ⅆ   y           =     {             L   x     ⁢     L   y           for           m   ′     =       0   ⁢           ⁢   and   ⁢           ⁢     n   ′       =   0               0       for           m   ′     ≠     0   ⁢           ⁢   or   ⁢           ⁢     n   ′       ≠   0                     (   41   )               
reduces (39) to
 
   
     
       
         
           
             
               
                 
                   
                     q 
                     . 
                   
                   
                     m 
                     , 
                     n 
                   
                 
                 = 
                 
                   
                     
                       - 
                       
                         [ 
                         
                           
                             H 
                             ⁢ 
                             
                               ( 
                               t 
                               ) 
                             
                           
                           + 
                           
                             κ 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               λ 
                               
                                 m 
                                 , 
                                 n 
                               
                             
                           
                         
                         ] 
                       
                     
                     ⁢ 
                     
                       q 
                       
                         m 
                         , 
                         n 
                       
                     
                   
                   + 
                   
                     
                       u 
                       ⁡ 
                       
                         ( 
                         t 
                         ) 
                       
                     
                     ⁢ 
                     
                       4 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         0 
                         
                           L 
                           y 
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           0 
                           
                             L 
                             x 
                           
                         
                         ⁢ 
                         
                           
                             ϕ 
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             
                               f 
                               ~ 
                             
                             ⁡ 
                             
                               ( 
                               
                                 x 
                                 , 
                                 y 
                                 , 
                                 t 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             x 
                           
                           ⁢ 
                           
                             ⅆ 
                             y 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 42 
                 ) 
               
             
           
         
       
     
   
   Remark. There will be an additional term, p(t)L x L y , that is added to the expression for q 0,0 , but because this only affects the DC mode, this term will be ignored. 
   If b m,n (t) is used to denote 
                     b     m   ,   n       ⁡     (   t   )       =       4       L   x     ⁢     L   y         ⁢       ∫   0     L   y       ⁢       ∫   0     L   x       ⁢           ⁢         f   ~     ⁡     (     x   ,   y   ,   t     )       ⁢     ϕ     m   ,   n       ⁢     ⅆ   x     ⁢     ⅆ   y                     (   43   )               
then rearranging (42) gives,
   {dot over (q)}   m,n ( t )=−[ H ( t )+κλ m,n   ]q   m,n ( t )+ b   m,n ( t ) u ( t )  (44) 
for each thermal mode.
 
Impulsive Heat Source
 
   Consider the case of a rectangular surface of length L x  and width L y , insulated on all sides, which is healed by an impulse heat source moving with velocity ν at an angle ψ to the side of the rectangle. The velocity of the source call be split into its components in the x and y directions giving,
 
ν x =ν cos ψ t   (45)
 
and,
 
ν y =ν sin ψ t   (46)
 
   If the spatial profile of the heat source is a delta function, then (to within a scaling factor)
 
{tilde over ( f )}( x, y, t )=δ(x−ν x   t, y−ν   y   t )  (47)
 
   Each of the states associated with the spatial modes satisfies (44) where, 
   
     
       
         
           
             
               
                 
                   
                     
                       
                         
                           
                             b 
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁡ 
                           
                             ( 
                             t 
                             ) 
                           
                         
                         = 
                           
                         ⁢ 
                         
                           
                             4 
                             
                               
                                 L 
                                 x 
                               
                               ⁢ 
                               
                                 L 
                                 y 
                               
                             
                           
                           ⁢ 
                           
                             
                               ∫ 
                               0 
                               
                                 L 
                                 y 
                               
                             
                             ⁢ 
                             
                               
                                 ∫ 
                                 0 
                                 
                                   L 
                                   x 
                                 
                               
                               ⁢ 
                               
                                 δ 
                                 ⁡ 
                                 
                                   ( 
                                   
                                     
                                       x 
                                       - 
                                       
                                         
                                           υ 
                                           x 
                                         
                                         ⁢ 
                                         t 
                                       
                                     
                                     , 
                                     
                                       y 
                                       - 
                                       
                                         
                                           υ 
                                           y 
                                         
                                         ⁢ 
                                         t 
                                       
                                     
                                   
                                   ) 
                                 
                               
                             
                           
                         
                       
                       ⁢ 
                       
                           
                       
                     
                   
                 
                 
                   
                     
                         
                       ⁢ 
                       
                         
                           cos 
                           ⁡ 
                           
                             ( 
                             
                               
                                 m 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 x 
                               
                               
                                 L 
                                 x 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         
                           cos 
                           ⁡ 
                           
                             ( 
                             
                               
                                 n 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 y 
                               
                               
                                 L 
                                 y 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         
                           ⅆ 
                           x 
                         
                         ⁢ 
                         
                           ⅆ 
                           y 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 48 
                 ) 
               
             
           
           
             
               
                 
                     
                 
                 ⁢ 
                 
                   = 
                   
                     
                       4 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             
                               m 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 υ 
                                 x 
                               
                             
                             
                               L 
                               x 
                             
                           
                           ⁢ 
                           t 
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             
                               n 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 υ 
                                 y 
                               
                             
                             
                               L 
                               y 
                             
                           
                           ⁢ 
                           t 
                         
                         ) 
                       
                     
                   
                 
               
             
             
               
                 ( 
                 49 
                 ) 
               
             
           
         
       
     
   
   Because the system is assumed to have Neumann boundary conditions the spatial eigenfunctions, φ m,n (x, y) consist of cosine functions. As a result, φ m,n (x, y) is an even function with respect to both x and y, so this expression for b m,n (t) holds as the sign of ν x  and ν y  switches when the heat source changes direction at the edge of the surface. 
   The expression for b m,n (t) in (49) can be rearranged using a trigonometric identity to give, 
   
     
       
         
           
             
               
                 
                   
                     b 
                     
                       m 
                       , 
                       n 
                     
                   
                   ⁡ 
                   
                     ( 
                     t 
                     ) 
                   
                 
                 = 
                   
                 ⁢ 
                 
                   
                     2 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   ⁡ 
                   
                     [ 
                     
                       
                         
                           cos 
                           ⁡ 
                           
                             ( 
                             
                               
                                 
                                   m 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     υ 
                                     x 
                                   
                                 
                                 
                                   L 
                                   x 
                                 
                               
                               + 
                               
                                 
                                   n 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     υ 
                                     y 
                                   
                                 
                                 
                                   L 
                                   y 
                                 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         t 
                       
                       + 
                         
                       ⁢ 
                       
                         
                           cos 
                           ⁡ 
                           
                             ( 
                             
                               
                                 
                                   m 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     υ 
                                     x 
                                   
                                 
                                 
                                   L 
                                   x 
                                 
                               
                               - 
                               
                                 
                                   n 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     υ 
                                     y 
                                   
                                 
                                 
                                   L 
                                   y 
                                 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         t 
                       
                     
                     ] 
                   
                 
               
             
             
               
                 ( 
                 50 
                 ) 
               
             
           
           
             
               
                 
                     
                 
                 ⁢ 
                 
                   = 
                     
                   ⁢ 
                   
                     
                       2 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁡ 
                     
                       [ 
                       
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             ω 
                             1 
                           
                           ⁢ 
                           t 
                         
                         + 
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             ω 
                             2 
                           
                           ⁢ 
                           t 
                         
                       
                       ] 
                     
                   
                 
               
             
             
               
                 ( 
                 51 
                 ) 
               
             
           
           
             
               
                 where 
                 , 
                 
                   
                     ω 
                     1 
                   
                   = 
                   
                     
                       
                         
                           m 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           π 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             υ 
                             x 
                           
                         
                         
                           L 
                           x 
                         
                       
                       + 
                       
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             π 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               υ 
                               y 
                             
                           
                           
                             L 
                             y 
                           
                         
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           ω 
                           2 
                         
                       
                     
                     = 
                     
                       
                         
                           m 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           π 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             υ 
                             x 
                           
                         
                         
                           L 
                           x 
                         
                       
                       - 
                       
                         
                           n 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           π 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           
                             υ 
                             y 
                           
                         
                         
                           L 
                           y 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 52 
                 ) 
               
             
           
         
       
     
   
   The term H(t) is time-varying due to the change in z(t), the mean thickness of the steel. Since the thickness builds up slowly, it is reasonable to assume that H(t) will remain approximately constant over the period of a complete cycle of scans. If the wire feed rate is also constant, so that υ(t)=υ 0 , then applying Laplace transforms to (44) (assuming that q m,n (0)=0) gives,
 
 sQ   m,n ( s )=−[ H ( t )+κλ m,n   ]Q   m,n ( s )+ B   m,n ( s ) υ   0   (53)
 
which leads to an expression-for G(s), the transfer function from B m,n (s) to Q m,n (s)
 
                       Q     m   ,   n       ⁡     (   s   )           B     m   ,   n       ⁡     (   s   )         =       G   ⁡     (   s   )       =       u   0       s   +     H   ⁡     (   t   )       +     κ   ⁢           ⁢     λ     m   ,   n                       (   54   )               
so that
 
                       q     m   ,   n       ⁡     (   t   )       =              G   ⁡     (     j   ⁢           ⁢     ω   1       )            ⁢     2       L   x     ⁢     L   y         ⁢     cos   ⁡     [         ω   1     ⁢   t     +     ∠   ⁢           ⁢     G   ⁡     (     j   ⁢           ⁢     ω   1       )           ]         +            G   ⁡     (     j   ⁢           ⁢     ω   2       )            ⁢     2       L   x     ⁢     L   y         ⁢     cos   ⁡     [         ω   2     ⁢   t     +     ∠   ⁢           ⁢     G   ⁡     (     j   ⁢           ⁢     ω   2       )           ]             ⁢     
     ⁢   where           (   55   )                      G   ⁡     (     j   ⁢           ⁢   ω     )            =       u   0           ω   2     +       [       H   ⁡     (   t   )       +     κλ     m   ,   n         ]     2                   (   56   )                 ∠   ⁢           ⁢     G   ⁡     (     j   ⁢           ⁢   ω     )         =     -     arctan   ⁡     (     ω       H   ⁡     (   t   )       +     κλ     m   ,   n           )                 (   57   )               
giving
 
                     q     m   ,   n       ⁡     (   t   )       =         2       L   x     ⁢     L   v         ⁢       u   0             (         m   ⁢           ⁢     πυ   x         L   x       +       n   ⁢           ⁢     πυ   y         L   y         )     2     +       [       H   ⁢     (   t   )       +     κλ     m   ,   n         ]     2           ⁢     cos   ⁡     [         (         m   ⁢           ⁢     πυ   x         L   x       +       n   ⁢           ⁢     πυ   y         L   y         )     ⁢   t     -     arctan   ⁡     (         m   ⁢           ⁢     πυ   x     ⁢     L   y       +     n   ⁢           ⁢     πυ   y     ⁢     L   x               H   ⁡     (   t   )       ⁢     L   x     ⁢     L   y       +       κλ     m   ,   n       ⁢     L   x     ⁢     L   y           )         ]         +       2       L   x     ⁢     L   y         ⁢       u   0             (         m   ⁢           ⁢     πυ   x         L   x       -       n   ⁢           ⁢     πυ   y         L   y         )     2     +       [       H   ⁢     (   t   )       +     κλ     m   ,   n         ]     2           ⁢     cos   ⁡     [         (         m   ⁢           ⁢     πυ   z         L   x       -       n   ⁢           ⁢     πυ   y         L   y         )     ⁢   t     -     arctan   ⁡     (         m   ⁢           ⁢     πυ   x     ⁢     L   y       -     n   ⁢           ⁢     πυ   y     ⁢     L   x               H   ⁡     (   t   )       ⁢     L   x     ⁢     L   y       +       κλ     m   ,   n       ⁢     L   x     ⁢     L   y           )         ]                   (   58   )               
General Heat Sources
 
   The analysis above assumes that the surface is heated by a source which has a spatial profile consisting of an impulse function, δ(x, y). This is a specific case of the more general 2D heat source {tilde over (f)}(x, y, t). In the general case, with the heat source moving with velocity ν and angle ψ over the surface, 
                     ∂   θ       ∂   t       =       κ   ⁢       ∇   2     ⁢   θ       -       H   ⁡     (   t   )       ⁢   θ     +         f   ~     ⁡     (       x   -       υ   x     ⁢   t       ,     y   -       υ   y     ⁢   t         )       ⁢     u   ⁡     (   t   )         +     p   ⁡     (   t   )                 (   59   )               
and the coefficients, q m,n (t), have the solution
   {dot over (q)}   m,n ( t )=−[ H ( t )+κλ m,n ]( t )+ {tilde over (b)}   m,n ( t ) υ   0   (60) 
where,
 
   
     
       
         
           
             
               
                 
                   
                     
                       b 
                       ~ 
                     
                     
                       m 
                       , 
                       n 
                     
                   
                   ⁡ 
                   
                     ( 
                     t 
                     ) 
                   
                 
                 = 
                 
                   
                     4 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   ⁢ 
                   
                     
                       ∫ 
                       0 
                       
                         L 
                         y 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         0 
                         
                           L 
                           x 
                         
                       
                       ⁢ 
                       
                         
                           
                             f 
                             ~ 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 x 
                                 - 
                                 
                                   
                                     υ 
                                     x 
                                   
                                   ⁢ 
                                   t 
                                 
                               
                               , 
                               
                                 y 
                                 - 
                                 
                                   
                                     υ 
                                     y 
                                   
                                   ⁢ 
                                   t 
                                 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         
                           cos 
                           ⁡ 
                           
                             ( 
                             
                               
                                 m 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 x 
                               
                               
                                 L 
                                 x 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ( 
                           
                             
                               n 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               y 
                             
                             
                               L 
                               y 
                             
                           
                           ) 
                         
                         ⁢ 
                         
                           ⅆ 
                           x 
                         
                         ⁢ 
                         
                           ⅆ 
                           y 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 61 
                 ) 
               
             
           
         
       
     
   
   Applying a change of variables, x′=x−ν x t, y′=ν y t 
   
     
       
         
           
             
               
                 
                   
                     
                       b 
                       ~ 
                     
                     
                       m 
                       , 
                       n 
                     
                   
                   ⁡ 
                   
                     ( 
                     t 
                     ) 
                   
                 
                 = 
                 
                   
                     4 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   ⁢ 
                   
                     
                       ∫ 
                       
                         
                           - 
                           
                             υ 
                             y 
                           
                         
                         ⁢ 
                         t 
                       
                       
                         
                           L 
                           y 
                         
                         - 
                         
                           
                             υ 
                             y 
                           
                           ⁢ 
                           t 
                         
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         
                           
                             - 
                             
                               υ 
                               x 
                             
                           
                           ⁢ 
                           t 
                         
                         
                           
                             L 
                             x 
                           
                           - 
                           
                             
                               υ 
                               x 
                             
                             ⁢ 
                             t 
                           
                         
                       
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         
                           
                             f 
                             ~ 
                           
                           ⁡ 
                           
                             ( 
                             
                               
                                 x 
                                 ′ 
                               
                               , 
                               
                                 y 
                                 ′ 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         
                           cos 
                           ⁡ 
                           
                             ( 
                             
                               
                                 m 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   ( 
                                   
                                     
                                       x 
                                       ′ 
                                     
                                     + 
                                     
                                       
                                         υ 
                                         x 
                                       
                                       ⁢ 
                                       t 
                                     
                                   
                                   ) 
                                 
                               
                               
                                 L 
                                 x 
                               
                             
                             ) 
                           
                         
                         ⁢ 
                         
                           cos 
                           ⁢ 
                           
                               
                           
                           ( 
                           
                             
                               n 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 ( 
                                 
                                   
                                     y 
                                     ′ 
                                   
                                   + 
                                   
                                     
                                       υ 
                                       y 
                                     
                                     ⁢ 
                                     t 
                                   
                                 
                                 ) 
                               
                             
                             
                               L 
                               y 
                             
                           
                           ) 
                         
                         ⁢ 
                         
                           ⅆ 
                           
                             x 
                             ′ 
                           
                         
                         ⁢ 
                         
                           ⅆ 
                           
                             y 
                             ′ 
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 62 
                 ) 
               
             
           
         
       
     
   
   Using cos(A+B)=cos A cos B−sin A sin B 
   
     
       
         
           
             
               
                 
                   
                     
                       b 
                       ~ 
                     
                     
                       m 
                       , 
                       n 
                     
                   
                   ⁡ 
                   
                     ( 
                     t 
                     ) 
                   
                 
                 = 
                 
                   
                     
                       4 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             m 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               x 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             x 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               y 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             y 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         
                           
                             - 
                             
                               υ 
                               y 
                             
                           
                           ⁢ 
                           t 
                         
                         
                           
                             L 
                             y 
                           
                           - 
                           
                             
                               υ 
                               y 
                             
                             ⁢ 
                             t 
                           
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           
                             
                               - 
                               
                                 υ 
                                 x 
                               
                             
                             ⁢ 
                             t 
                           
                           
                             
                               L 
                               x 
                             
                             - 
                             
                               
                                 υ 
                                 x 
                               
                               ⁢ 
                               t 
                             
                           
                         
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           
                             
                               f 
                               ~ 
                             
                             ⁡ 
                             
                               ( 
                               
                                 
                                   x 
                                   ′ 
                                 
                                 , 
                                 
                                   y 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             cos 
                             ⁡ 
                             
                               ( 
                               
                                 
                                   m 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     x 
                                     ′ 
                                   
                                 
                                 
                                   L 
                                   x 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ( 
                             
                               
                                 n 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   y 
                                   ′ 
                                 
                               
                               
                                 L 
                                 y 
                               
                             
                             ) 
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               x 
                               ′ 
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               y 
                               ′ 
                             
                           
                         
                       
                     
                   
                   - 
                   
                     
                       4 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             m 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               x 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             x 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       sin 
                       ⁡ 
                       
                         ( 
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               y 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             y 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         
                           
                             - 
                             
                               υ 
                               y 
                             
                           
                           ⁢ 
                           t 
                         
                         
                           
                             L 
                             y 
                           
                           - 
                           
                             
                               υ 
                               y 
                             
                             ⁢ 
                             t 
                           
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           
                             
                               - 
                               
                                 υ 
                                 x 
                               
                             
                             ⁢ 
                             t 
                           
                           
                             
                               L 
                               x 
                             
                             - 
                             
                               
                                 υ 
                                 x 
                               
                               ⁢ 
                               t 
                             
                           
                         
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           
                             
                               f 
                               ~ 
                             
                             ⁡ 
                             
                               ( 
                               
                                 
                                   x 
                                   ′ 
                                 
                                 , 
                                 
                                   y 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             cos 
                             ⁡ 
                             
                               ( 
                               
                                 
                                   m 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     x 
                                     ′ 
                                   
                                 
                                 
                                   L 
                                   x 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             sin 
                             ⁢ 
                             
                                 
                             
                             ( 
                             
                               
                                 n 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   y 
                                   ′ 
                                 
                               
                               
                                 L 
                                 y 
                               
                             
                             ) 
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               x 
                               ′ 
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               y 
                               ′ 
                             
                           
                         
                       
                     
                   
                   - 
                   
                     
                       4 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁢ 
                     
                       sin 
                       ⁡ 
                       
                         ( 
                         
                           
                             m 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               x 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             x 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       cos 
                       ⁡ 
                       
                         ( 
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               y 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             y 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         
                           
                             - 
                             
                               υ 
                               y 
                             
                           
                           ⁢ 
                           t 
                         
                         
                           
                             L 
                             y 
                           
                           - 
                           
                             
                               υ 
                               y 
                             
                             ⁢ 
                             t 
                           
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           
                             
                               - 
                               
                                 υ 
                                 x 
                               
                             
                             ⁢ 
                             t 
                           
                           
                             
                               L 
                               x 
                             
                             - 
                             
                               
                                 υ 
                                 x 
                               
                               ⁢ 
                               t 
                             
                           
                         
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           
                             
                               f 
                               ~ 
                             
                             ⁡ 
                             
                               ( 
                               
                                 
                                   x 
                                   ′ 
                                 
                                 , 
                                 
                                   y 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             sin 
                             ⁡ 
                             
                               ( 
                               
                                 
                                   m 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     x 
                                     ′ 
                                   
                                 
                                 
                                   L 
                                   x 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             cos 
                             ⁢ 
                             
                                 
                             
                             ( 
                             
                               
                                 n 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   y 
                                   ′ 
                                 
                               
                               
                                 L 
                                 y 
                               
                             
                             ) 
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               x 
                               ′ 
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               y 
                               ′ 
                             
                           
                         
                       
                     
                   
                   + 
                   
                     
                       4 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     ⁢ 
                     
                       sin 
                       ⁡ 
                       
                         ( 
                         
                           
                             m 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               x 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             x 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       sin 
                       ⁡ 
                       
                         ( 
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               πυ 
                               y 
                             
                             ⁢ 
                             t 
                           
                           
                             L 
                             y 
                           
                         
                         ) 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         
                           
                             - 
                             
                               υ 
                               y 
                             
                           
                           ⁢ 
                           t 
                         
                         
                           
                             L 
                             y 
                           
                           - 
                           
                             
                               υ 
                               y 
                             
                             ⁢ 
                             t 
                           
                         
                       
                       ⁢ 
                       
                         
                           ∫ 
                           
                             
                               - 
                               
                                 υ 
                                 x 
                               
                             
                             ⁢ 
                             t 
                           
                           
                             
                               L 
                               x 
                             
                             - 
                             
                               
                                 υ 
                                 x 
                               
                               ⁢ 
                               t 
                             
                           
                         
                         ⁢ 
                         
                             
                         
                         ⁢ 
                         
                           
                             
                               f 
                               ~ 
                             
                             ⁡ 
                             
                               ( 
                               
                                 
                                   x 
                                   ′ 
                                 
                                 , 
                                 
                                   y 
                                   ′ 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             sin 
                             ⁡ 
                             
                               ( 
                               
                                 
                                   m 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   π 
                                   ⁢ 
                                   
                                       
                                   
                                   ⁢ 
                                   
                                     x 
                                     ′ 
                                   
                                 
                                 
                                   L 
                                   x 
                                 
                               
                               ) 
                             
                           
                           ⁢ 
                           
                             sin 
                             ⁢ 
                             
                                 
                             
                             ( 
                             
                               
                                 n 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 π 
                                 ⁢ 
                                 
                                     
                                 
                                 ⁢ 
                                 
                                   y 
                                   ′ 
                                 
                               
                               
                                 L 
                                 y 
                               
                             
                             ) 
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               x 
                               ′ 
                             
                           
                           ⁢ 
                           
                             ⅆ 
                             
                               y 
                               ′ 
                             
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 63 
                 ) 
               
             
           
         
       
     
   
   If the spatial range of the heat source is limited, so that {tilde over (f)}(x′, y′)=0 for |x′|&gt;γ x  and for |y′|&gt;γ y , then the limits of the integrations in (63) can be truncated. In addition, if {tilde over (f)}(x′, y′) is an even function with respect to both x′ and y′, then only the integrand in the first integral is also even. The other three integrands are odd functions and will therefore integrate to zero provided that −ν x t≦−γ x , L x −ν x t≧γ x , −ν y t≦−γ y  and L y −ν y t≧γ y . Clearly this will not be the case when the heat source is close to the edges of the surface, so an error will be introduced. If L x &gt;&gt;γ x  and L y &gt;&gt;γ y  this error will be small and will be ignored in the rest of the analysis. 
   Equation (63) reduces to 
                       b   ~       m   ,   n       ⁡     (   t   )       =         b   ~       m   ,   n       ⁢     4       L   x     ⁢     L   y         ⁢     cos   ⁡     (       m   ⁢           ⁢     πυ   x     ⁢   t       L   x       )       ⁢     cos   ⁡     (       n   ⁢           ⁢     πυ   y     ⁢   t       L   y       )                 (   64   )               
where {circumflex over (b)} m,n  is obtained from the expansion of the spatial footprint of the gun when it is positioned in the centre of the surface, so that the region where {tilde over (f)}(x, y, t)≠0 does not extend beyond the edges of the surface. The gun will be at the centre of the surface when ν x t=L x /2 and ν y t=L y /2, so that
 
   
     
       
         
           
             
               
                 
                   
                     b 
                     ~ 
                   
                   
                     m 
                     , 
                     n 
                   
                 
                 = 
                 
                   
                     ∫ 
                     
                       
                         - 
                         
                           L 
                           y 
                         
                       
                       / 
                       2 
                     
                     
                       
                         L 
                         y 
                       
                       / 
                       2 
                     
                   
                   ⁢ 
                   
                     
                       ∫ 
                       
                         
                           - 
                           
                             L 
                             x 
                           
                         
                         / 
                         2 
                       
                       
                         
                           L 
                           x 
                         
                         / 
                         2 
                       
                     
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       
                         
                           f 
                           ~ 
                         
                         ⁡ 
                         
                           ( 
                           
                             
                               x 
                               ′ 
                             
                             , 
                             
                               y 
                               ′ 
                             
                           
                           ) 
                         
                       
                       ⁢ 
                       
                         cos 
                         ⁡ 
                         
                           ( 
                           
                             
                               m 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 x 
                                 ′ 
                               
                             
                             
                               L 
                               x 
                             
                           
                           ) 
                         
                       
                       ⁢ 
                       
                         cos 
                         ⁢ 
                         
                             
                         
                         ( 
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             π 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             
                               y 
                               ′ 
                             
                           
                           
                             L 
                             y 
                           
                         
                         ) 
                       
                       ⁢ 
                       
                         ⅆ 
                         
                           x 
                           ′ 
                         
                       
                       ⁢ 
                       
                         ⅆ 
                         
                           y 
                           ′ 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 65 
                 ) 
               
             
           
         
       
     
   
   This shows that for a general heat source, {tilde over (f)}(x, y, t), the coefficients associated with each mode, q m,n (t) for a general heat source reduce to the solution for an impulsive heat source multiplied by {circumflex over (b)} m,n    
                       q     m   ,   n       ⁡     (   t   )       =         2       L   x     ⁢     L   v         ⁢           b   ~       m   ,   n       ⁢     u   0               (         m   ⁢           ⁢     πυ   x         L   x       +       n   ⁢           ⁢     πυ   y         L   y         )     2     +       [       H   ⁢     (   t   )       +     κλ     m   ,   n         ]     2           ⁢     cos   ⁡     [         (         m   ⁢           ⁢     πυ   x         L   x       +       n   ⁢           ⁢     πυ   y         L   y         )     ⁢   t     -     arctan   ⁡     (         m   ⁢           ⁢     πυ   x     ⁢     L   y       +     n   ⁢           ⁢     πυ   y     ⁢     L   x               H   ⁡     (   t   )       ⁢     L   x     ⁢     L   y       +       κλ     m   ,   n       ⁢     L   x     ⁢     L   y           )         ]         +       2       L   x     ⁢     L   y         ⁢           b   ~       m   ,   n       ⁢     u   0               (         m   ⁢           ⁢     πυ   x         L   x       -       n   ⁢           ⁢     πυ   y         L   y         )     2     +       [       H   ⁢     (   t   )       +     κλ     m   ,   n         ]     2           ⁢     cos   ⁡     [         (         m   ⁢           ⁢     πυ   z         L   x       -       n   ⁢           ⁢     πυ   y         L   y         )     ⁢   t     -     arctan   ⁡     (         m   ⁢           ⁢     πυ   x     ⁢     L   y       -     n   ⁢           ⁢     πυ   y     ⁢     L   x               H   ⁡     (   t   )       ⁢     L   x     ⁢     L   y       +       κλ     m   ,   n       ⁢     L   x     ⁢     L   y           )         ]             ⁢     
     ⁢   where           (   66   )                 λ     m   ,   n       =           m   2     ⁢     π   2         L   x   2       +         n   2     ⁢     π   2         L   y   2                 (   67   )               
Choosing the Optimal Path
 
Optimisation Criteria
 
   The thermal profile over the surface is 
                   θ   ⁡     (     x   ,   y   ,   t     )       =       ∑     m   =   0     ∞     ⁢           ⁢       ∑     n   =   0     ∞     ⁢         q     m   ,   n       ⁡     (   t   )       ⁢       ϕ     m   ,   n       ⁡     (     x   ,   y     )                     (   68   )               
where q m,n (t) are given in (66) and from (35), the spatial eigenfunctions, are
 
   
     
       
         
           
             
               
                 
                   
                     ϕ 
                     
                       m 
                       , 
                       n 
                     
                   
                   ⁡ 
                   
                     ( 
                     
                       x 
                       , 
                       y 
                     
                     ) 
                   
                 
                 = 
                 
                   
                     cos 
                     ⁡ 
                     
                       ( 
                       
                         
                           
                             
                               m 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                             
                             ⁢ 
                             
                                 
                             
                           
                           
                             L 
                             x 
                           
                         
                         ⁢ 
                         x 
                       
                       ) 
                     
                   
                   ⁢ 
                   
                     cos 
                     ⁢ 
                     
                         
                     
                     ( 
                     
                       
                         
                           
                             n 
                             ⁢ 
                             
                                 
                             
                             ⁢ 
                             π 
                           
                           ⁢ 
                           
                               
                           
                         
                         
                           L 
                           y 
                         
                       
                       ⁢ 
                       y 
                     
                     ) 
                   
                 
               
             
             
               
                 ( 
                 69 
                 ) 
               
             
           
         
       
     
   
   The deviation from the average temperature is given by
 
θ( x, y, t )−θ( t )  (70)
 
where
 
                     θ   ~     ⁡     (   t   )       =       1       L   x     ⁢     L   y         ⁢       ∫   0     L   y       ⁢       ∫   0     L   y       ⁢       θ   ⁡     (     x   ,   y   ,   t     )       ⁢     ⅆ   x     ⁢     ⅆ   y                     (   71   )                       ⁢     =       ∑     m   =   0     ∞     ⁢           ⁢       ∑     n   =   0     ∞     ⁢         q     m   ,   n       ⁡     (   t   )       ⁢     1       L   x     ⁢     L   y         ⁢       ∫   0     L   y       ⁢       ∫   0     L   y       ⁢       cos   ⁡     (           m   ⁢           ⁢   π     ⁢               L   x       ⁢   x     )       ⁢     cos   ⁢           (           n   ⁢           ⁢   π     ⁢               L   y       ⁢   y     )     ⁢     ⅆ   x     ⁢     ⅆ   y                           (   72   )                       ⁢     =       q     0   ,   0       ⁡     (   t   )                 (   73   )               
since φ 0,0 (x, y)=1. Hence, the deviation in the temperature profile is obtained by removing the 0, 0 term from the summations in (68)
 
   
     
       
         
           
             
               
                 
                   
                     θ 
                     ⁡ 
                     
                       ( 
                       
                         x 
                         , 
                         y 
                         , 
                         t 
                       
                       ) 
                     
                   
                   - 
                   
                     
                       θ 
                       ~ 
                     
                     ⁡ 
                     
                       ( 
                       t 
                       ) 
                     
                   
                 
                 = 
                 
                   
                     ∑ 
                     
                       m 
                       = 
                       1 
                     
                     ∞ 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         1 
                       
                       ∞ 
                     
                     ⁢ 
                     
                       
                         
                           q 
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁡ 
                         
                           ( 
                           t 
                           ) 
                         
                       
                       ⁢ 
                       
                         
                           ϕ 
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁡ 
                         
                           ( 
                           
                             x 
                             , 
                             y 
                           
                           ) 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 74 
                 ) 
               
             
           
         
       
     
   
   This justifies excluding the p(t) term in (42) as it only affects the q 0,0 (t) term which does not contribute to the deviation from the average temperature. 
   The aim is to choose a path for the spray gun that minimises (in some sense), the deviation. There are a number of approaches to minimising the deviation in temperature, but three appropriate choices are considered here Maximum Deviation At any time, t, the maximum value of the temperature deviation over the surface is given by 
                          θ   ⁡     (     x   ,   y   ,   t     )       -       θ   ~     ⁡     (   t   )              =            ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢         q     m   ,   n       ⁡     (   t   )       ⁢       ϕ     m   ,   n       ⁡     (     x   ,   y     )                          (   75   )                       ⁢     ≤       ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢              q     m   ,   n       ⁡     (   t   )       ⁢       ϕ     m   ,   n       ⁡     (     x   ,   y     )                            (   76   )                       ⁢     ≤       ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢            q     m   ,   n       ⁡     (   t   )                          (   77   )               
where (77) follows because the maximum value of φ m,n (x, y) over the surface is unity for all spatial eigenvalues. The peak value of |q m,n (t)| will occur at times when the two cosine components in (66) interfere constructively, so that
 
   
     
       
         
           
             
               
                 
                   
                      
                     
                       q 
                       
                         m 
                         , 
                         n 
                       
                     
                      
                   
                   peak 
                 
                 = 
                 
                   
                     2 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   [ 
                   
                     
                       
                         
                           
                             b 
                             ^ 
                           
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁢ 
                         
                           u 
                           0 
                         
                       
                       
                         
                           
                             
                               ( 
                               
                                 
                                   
                                     m 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       x 
                                     
                                   
                                   
                                     L 
                                     x 
                                   
                                 
                                 + 
                                 
                                   
                                     n 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       y 
                                     
                                   
                                   
                                     L 
                                     y 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           + 
                           
                             
                               [ 
                               
                                 
                                   H 
                                   ⁢ 
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 + 
                                 
                                   κλ 
                                   
                                     m 
                                     , 
                                     n 
                                   
                                 
                               
                               ] 
                             
                             2 
                           
                         
                       
                     
                     + 
                     
                       
                         
                           
                             b 
                             ^ 
                           
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁢ 
                         
                           u 
                           0 
                         
                       
                       
                         
                           
                             
                               ( 
                               
                                 
                                   
                                     m 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       x 
                                     
                                   
                                   
                                     L 
                                     x 
                                   
                                 
                                 - 
                                 
                                   
                                     n 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       y 
                                     
                                   
                                   
                                     L 
                                     y 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           + 
                           
                             
                               [ 
                               
                                 
                                   H 
                                   ⁢ 
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 + 
                                 
                                   κλ 
                                   
                                     m 
                                     , 
                                     n 
                                   
                                 
                               
                               ] 
                             
                             2 
                           
                         
                       
                     
                   
                   ] 
                 
               
             
             
               
                 ( 
                 78 
                 ) 
               
             
           
         
       
     
   
   The overall deviation in temperature is minimsed by minimising the maximum peak value, |q m,n | peak , for {m=1,2, . . . ,n=1,2, . . . }. 
   Thermal Gradient The gradient of the temperature deviation in the x-direction is 
   
     
       
         
           
             
               
                 
                   
                     ∂ 
                     θ 
                   
                   
                     ∂ 
                     x 
                   
                 
                 = 
                 
                   
                     ∑ 
                     
                       m 
                       = 
                       1 
                     
                     ∞ 
                   
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   
                     
                       ∑ 
                       
                         n 
                         = 
                         1 
                       
                       ∞ 
                     
                     ⁢ 
                     
                       
                         
                           q 
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁡ 
                         
                           ( 
                           t 
                           ) 
                         
                       
                       ⁢ 
                       
                         
                           ∂ 
                           
                             ϕ 
                             
                               m 
                               , 
                               n 
                             
                           
                         
                         
                           ∂ 
                           x 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 79 
                 ) 
               
             
           
           
             
               
                 
                     
                 
                 ⁢ 
                 
                   = 
                   
                     - 
                     
                       
                         ∑ 
                         
                           m 
                           = 
                           1 
                         
                         ∞ 
                       
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       
                         
                           ∑ 
                           
                             n 
                             = 
                             1 
                           
                           ∞ 
                         
                         ⁢ 
                         
                           
                             
                               m 
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               π 
                             
                             
                               L 
                               x 
                             
                           
                           ⁢ 
                           
                             
                               q 
                               
                                 m 
                                 , 
                                 n 
                               
                             
                             ⁡ 
                             
                               ( 
                               t 
                               ) 
                             
                           
                           ⁢ 
                           
                             
                               ϕ 
                               
                                 m 
                                 , 
                                 n 
                               
                             
                             ⁡ 
                             
                               ( 
                               
                                 x 
                                 , 
                                 y 
                               
                               ) 
                             
                           
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 80 
                 ) 
               
             
           
         
       
     
   
   Hence the magnitude of the thermal gradient in the x-direction can be minimised by minimising the maximum value of 
   
     
       
         
           
             
               
                 
                   
                      
                     
                       
                         
                           m 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           π 
                         
                         
                           L 
                           x 
                         
                       
                       ⁢ 
                       
                         q 
                         
                           m 
                           , 
                           n 
                         
                       
                     
                      
                   
                   peak 
                 
                 = 
                 
                   
                     
                       m 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       π 
                     
                     
                       L 
                       x 
                     
                   
                   ⁢ 
                   
                     
                       2 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     [ 
                     
                       
                         
                           
                             
                               b 
                               ^ 
                             
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁢ 
                           
                             u 
                             0 
                           
                         
                         
                           
                             
                               
                                 ( 
                                 
                                   
                                     
                                       m 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         x 
                                       
                                     
                                     
                                       L 
                                       x 
                                     
                                   
                                   + 
                                   
                                     
                                       n 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         y 
                                       
                                     
                                     
                                       L 
                                       y 
                                     
                                   
                                 
                                 ) 
                               
                               2 
                             
                             + 
                             
                               
                                 [ 
                                 
                                   
                                     H 
                                     ⁢ 
                                     
                                       ( 
                                       t 
                                       ) 
                                     
                                   
                                   + 
                                   
                                     κλ 
                                     
                                       m 
                                       , 
                                       n 
                                     
                                   
                                 
                                 ] 
                               
                               2 
                             
                           
                         
                       
                       + 
                       
                         
                           
                             
                               b 
                               ^ 
                             
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁢ 
                           
                             u 
                             0 
                           
                         
                         
                           
                             
                               
                                 ( 
                                 
                                   
                                     
                                       m 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         x 
                                       
                                     
                                     
                                       L 
                                       x 
                                     
                                   
                                   - 
                                   
                                     
                                       n 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         y 
                                       
                                     
                                     
                                       L 
                                       y 
                                     
                                   
                                 
                                 ) 
                               
                               2 
                             
                             + 
                             
                               
                                 [ 
                                 
                                   
                                     H 
                                     ⁢ 
                                     
                                       ( 
                                       t 
                                       ) 
                                     
                                   
                                   + 
                                   
                                     κλ 
                                     
                                       m 
                                       , 
                                       n 
                                     
                                   
                                 
                                 ] 
                               
                               2 
                             
                           
                         
                       
                     
                     ] 
                   
                 
               
             
             
               
                 ( 
                 81 
                 ) 
               
             
           
         
       
     
   
   This criterion is similar to minimising the deviation, but more “weight” is applied to the magnitude of the higher order modes, which generate larger thermal gradients. The magnitude of the thermal gradient in the y-direction is minimised by minimising the maximum value of 
   
     
       
         
           
             
               
                 
                   
                      
                     
                       
                         
                           m 
                           ⁢ 
                           
                               
                           
                           ⁢ 
                           π 
                         
                         
                           L 
                           x 
                         
                       
                       ⁢ 
                       
                         q 
                         
                           m 
                           , 
                           n 
                         
                       
                     
                      
                   
                   peak 
                 
                 = 
                 
                   
                     
                       n 
                       ⁢ 
                       
                           
                       
                       ⁢ 
                       π 
                     
                     
                       L 
                       y 
                     
                   
                   ⁢ 
                   
                     
                       2 
                       
                         
                           L 
                           x 
                         
                         ⁢ 
                         
                           L 
                           y 
                         
                       
                     
                     [ 
                     
                       
                         
                           
                             
                               b 
                               ^ 
                             
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁢ 
                           
                             u 
                             0 
                           
                         
                         
                           
                             
                               
                                 ( 
                                 
                                   
                                     
                                       m 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         x 
                                       
                                     
                                     
                                       L 
                                       x 
                                     
                                   
                                   + 
                                   
                                     
                                       n 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         y 
                                       
                                     
                                     
                                       L 
                                       y 
                                     
                                   
                                 
                                 ) 
                               
                               2 
                             
                             + 
                             
                               
                                 [ 
                                 
                                   
                                     H 
                                     ⁢ 
                                     
                                       ( 
                                       t 
                                       ) 
                                     
                                   
                                   + 
                                   
                                     κλ 
                                     
                                       m 
                                       , 
                                       n 
                                     
                                   
                                 
                                 ] 
                               
                               2 
                             
                           
                         
                       
                       + 
                       
                         
                           
                             
                               b 
                               ^ 
                             
                             
                               m 
                               , 
                               n 
                             
                           
                           ⁢ 
                           
                             u 
                             0 
                           
                         
                         
                           
                             
                               
                                 ( 
                                 
                                   
                                     
                                       m 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         x 
                                       
                                     
                                     
                                       L 
                                       x 
                                     
                                   
                                   - 
                                   
                                     
                                       n 
                                       ⁢ 
                                       
                                           
                                       
                                       ⁢ 
                                       
                                         πυ 
                                         y 
                                       
                                     
                                     
                                       L 
                                       y 
                                     
                                   
                                 
                                 ) 
                               
                               2 
                             
                             + 
                             
                               
                                 [ 
                                 
                                   
                                     H 
                                     ⁢ 
                                     
                                       ( 
                                       t 
                                       ) 
                                     
                                   
                                   + 
                                   
                                     κλ 
                                     
                                       m 
                                       , 
                                       n 
                                     
                                   
                                 
                                 ] 
                               
                               2 
                             
                           
                         
                       
                     
                     ] 
                   
                 
               
             
             
               
                 ( 
                 82 
                 ) 
               
             
           
         
       
     
   
   Mean Square Deviation The mean square deviation (or variance) of the thermal profile over the surface is 
   
     
       
         
           
             
               
                 
                   
                     1 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   ⁢ 
                   
                     
                       ∫ 
                       0 
                       
                         L 
                         y 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         0 
                         
                           L 
                           x 
                         
                       
                       ⁢ 
                       
                         
                           
                             [ 
                             
                               
                                 θ 
                                 ⁡ 
                                 
                                   ( 
                                   
                                     x 
                                     , 
                                     y 
                                     , 
                                     t 
                                   
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   θ 
                                   ~ 
                                 
                                 ⁡ 
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                             ] 
                           
                           2 
                         
                         ⁢ 
                         
                           ⅆ 
                           x 
                         
                         ⁢ 
                         
                           ⅆ 
                           y 
                         
                       
                     
                   
                 
                 = 
                 
                   
                     1 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   ⁢ 
                   
                     
                       ∫ 
                       0 
                       
                         L 
                         y 
                       
                     
                     ⁢ 
                     
                       
                         ∫ 
                         0 
                         
                           L 
                           x 
                         
                       
                       ⁢ 
                       
                         
                           
                             [ 
                             
                               
                                 ∑ 
                                 
                                   m 
                                   = 
                                   1 
                                 
                                 ∞ 
                               
                               ⁢ 
                               
                                   
                               
                               ⁢ 
                               
                                 
                                   ∑ 
                                   
                                     n 
                                     = 
                                     1 
                                   
                                   ∞ 
                                 
                                 ⁢ 
                                 
                                   
                                     
                                       q 
                                       
                                         m 
                                         , 
                                         n 
                                       
                                     
                                     ⁡ 
                                     
                                       ( 
                                       t 
                                       ) 
                                     
                                   
                                   ⁢ 
                                   
                                     
                                       ϕ 
                                       
                                         m 
                                         , 
                                         n 
                                       
                                     
                                     ⁡ 
                                     
                                       ( 
                                       
                                         x 
                                         , 
                                         y 
                                       
                                       ) 
                                     
                                   
                                 
                               
                             
                             ] 
                           
                           2 
                         
                         ⁢ 
                         
                           ⅆ 
                           x 
                         
                         ⁢ 
                         
                           ⅆ 
                           y 
                         
                       
                     
                   
                 
               
             
             
               
                 ( 
                 83 
                 ) 
               
             
           
         
       
     
   
   By the orthogonality properties of the spatial eigenfunctions, φ m,n (x, y), this reduces to 
                     1       L   x     ⁢     L   y         ⁢       ∫   0     L   y       ⁢       ∫   0     L   x       ⁢         [       θ   ⁡     (     x   ,   y   ,   t     )       -       θ   ~     ⁡     (   t   )         ]     2     ⁢     ⅆ   x     ⁢     ⅆ   y             =       ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢       [       q     m   ,   n       ⁡     (   t   )       ]     2                 (   84   )               
where q m,n (t) is given in (66). It this mean square deviation is averaged over time,
 
                     lim     T   -&gt;   ∞       ⁢       1   T     ⁢       ∫   0   T     ⁢       ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢           ⁢                q     m   ,   n       ⁡     (   t   )       ]     2     ⁢     ⅆ   t                 =         ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢       lim     t   -&gt;   ∞       ⁢       1   T     ⁢       ∫   0   T     ⁢                q     m   ,   n       ⁡     (   t   )       ]     2     ⁢     ⅆ   t                 =             (   85   )                       ⁢       ∑     m   =   1     ∞     ⁢           ⁢       ∑     n   =   1     ∞     ⁢       1       L   x     ⁢     L   y         ⁢           [             b   ^       m   ,   n     2     ⁢     u   0   2             (         m   ⁢           ⁢     πυ   x         L   x       +       n   ⁢           ⁢     πυ   y         L   y         )     2     +       [       H   ⁢     (   t   )       +     κλ     m   ,   n         ]     2         +           b   ^       m   ,   n     2     ⁢     u   0   2             (         m   ⁢           ⁢     πυ   x         L   x       -       n   ⁢           ⁢     πυ   y         L   y         )     2     +       [       H   ⁢     (   t   )       +     κλ     m   ,   n         ]     2           ]                 (   86   )               
Effect of Changing Path on Thermal Profile
 
   For each of the criteria listed above, the magnitude of the criteria are determined by the maximum amplitude of the oscillations in q m,n (t) for each mode 
   
     
       
         
           
             
               
                 
                   
                      
                     
                       q 
                       
                         m 
                         , 
                         n 
                       
                     
                      
                   
                   peak 
                 
                 = 
                 
                   
                     2 
                     
                       
                         L 
                         x 
                       
                       ⁢ 
                       
                         L 
                         y 
                       
                     
                   
                   [ 
                   
                     
                       
                         
                           
                             b 
                             ^ 
                           
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁢ 
                         
                           u 
                           0 
                         
                       
                       
                         
                           
                             
                               ( 
                               
                                 
                                   
                                     m 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       x 
                                     
                                   
                                   
                                     L 
                                     x 
                                   
                                 
                                 + 
                                 
                                   
                                     n 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       y 
                                     
                                   
                                   
                                     L 
                                     y 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           + 
                           
                             
                               [ 
                               
                                 
                                   H 
                                   ⁢ 
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 + 
                                 
                                   κλ 
                                   
                                     m 
                                     , 
                                     n 
                                   
                                 
                               
                               ] 
                             
                             2 
                           
                         
                       
                     
                     + 
                     
                       
                         
                           
                             b 
                             ^ 
                           
                           
                             m 
                             , 
                             n 
                           
                         
                         ⁢ 
                         
                           u 
                           0 
                         
                       
                       
                         
                           
                             
                               ( 
                               
                                 
                                   
                                     m 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       x 
                                     
                                   
                                   
                                     L 
                                     x 
                                   
                                 
                                 - 
                                 
                                   
                                     n 
                                     ⁢ 
                                     
                                         
                                     
                                     ⁢ 
                                     
                                       πυ 
                                       y 
                                     
                                   
                                   
                                     L 
                                     y 
                                   
                                 
                               
                               ) 
                             
                             2 
                           
                           + 
                           
                             
                               [ 
                               
                                 
                                   H 
                                   ⁢ 
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 + 
                                 
                                   κλ 
                                   
                                     m 
                                     , 
                                     n 
                                   
                                 
                               
                               ] 
                             
                             2 
                           
                         
                       
                     
                   
                   ] 
                 
               
             
             
               
                 ( 
                 87 
                 ) 
               
             
           
         
       
     
   
   When choosing a regular scanning path, there are two degrees of freedom for adjusting the magnitude of each mode:
     Scan velocity, ν. Prom equation (87), it can be seen that increasing the velocity, ν, reduces the magnitude of all modes and there is an approximately inverse relationship between the amplitude of q m,n (t) and scan velocity, as shown in  FIG. 3 , which plots the amplitude of different spatial modes against scan velocity, ν. As a result, to achieve a “flat” temperature profile, the scan velocity should be as fast as possible.   Scan angle, ψ. The relationship between the amplitude of q m,n (t) and the scan angle is more complicated. The first term inside the square brackets is large when m and n, and consequently, λ m,n , are small. The second term is maximised when   

                       m   ⁢           ⁢   πυ   ⁢           ⁢   cos   ⁢           ⁢   ψ       L   x       +       n   ⁢           ⁢   πυsinψ       L   y         ⁢     
     ⁢   or           (   88   )                 tan   ⁢           ⁢   ψ     =       m   ⁢           ⁢     L   y         n   ⁢           ⁢     L   x                 (   89   )               
so that the first term under the square root in the denominator becomes zero. This is illustrated in  FIG. 4  which shows the relative magnitude of the different modes when {tilde over (f)}(x, y, t) is a 2-dimensional Gaussian function with circular symmetry of width L x /20. For a square surface, so that L x =L y , when the scan angle is 56.13°, tan ψ=3/2 and the plot shows that the q 3,2 (t) mode has the maximum amplitude. As a result, this scanning pattern will result in a poor thermal profile. By contrast, for the path shown in  FIG. 5 , ψ=72.9°, so that tan ψ=3.25, then the relative magnitude of the modes is much lower. The mode with the largest amplitude on the plot is q 3,1 (t) as this is closest to tan ψ. Since tan ψ=13/4, it might be expected that q 13,4 (t) would have the largest amplitude, but the presence of the m 2  and n 2  terms in
 
                   λ     m   ,   n       =       π   2     ⁢       υ   2     ⁡     (           m   2     ⁢     cos   2     ⁢   ψ       L   x   2       +         n   2     ⁢     sin   2     ⁢   ψ       L   y   2         )                 (   90   )               
which is also under the square root in the denominator, reduces the amplitude of this mode. In addition, if {tilde over (f)}(x, y, t) is smooth, so that |  b   m,n |→0 as m and n become large and  b   13,4  is likely to be small.
 
   The effect of the shape of the footprint is illustrated in  FIGS. 6 ,  7  and  8 .  FIG. 6  shows the relative magnitude of various modes, q m,n (t) for m≧n plotted against scan angle, ψ, for a square surface, when {tilde over (f)}(x, y, t) is a delta function (the plot for m≦n is the mirror image around ψ=45°). The angles at which each mode is a maximum are shown in the legend to the figure.  FIG. 7  shows the magnitude of the corresponding modes when {tilde over (f)}(x, y, t) is a narrow 2-dimensional Caussian function of width (standard deviation) L x /20. Because this is smoother than a delta function, the magnitude of the modes are lower than the corresponding modes for the delta function.  FIG. 8  shows the magnitude of the modes for a wide 2-dimensional Gaussian function of width L x /5 and for this case, the magnitude of all modes is much lower, indicating that in order to avoid large deviations in the thermal profile, the “footprint” of the gun should be as wide as possible. 
   Determining the Path 
   This analysis indicates that the thermal profile will be minimised by choosing a scan angle such that 
   
     
       
         
           
             
               
                 
                   tan 
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   ψ 
                 
                 ≠ 
                 
                   
                     m 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       L 
                       y 
                     
                   
                   
                     n 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       L 
                       x 
                     
                   
                 
               
             
             
               
                 ( 
                 91 
                 ) 
               
             
           
         
       
     
   
   One such example is given in  FIG. 9 , which shows the pattern generated when ψ=73.5° for L x =L y , so that tan ψ=3.37. This path generates a “flat” thermal profile, but it is difficult to program-the-path into the robot as it never repeats itself, leading to a robot program that (theoretically) consists of an infinite number of points. For ease of robot path programming, if the robot is started at a point on one edge of the surface, it should return to this point after a finite, manageable number of passes over the surface. Unfortunately, the condition on the scan angle to ensure that this occurs is that 
                   tan   ⁢           ⁢   ψ     =       μ   ⁢           ⁢     L   y         υ   ⁢           ⁢     L   x                 (   92   )               
where μ and ν are integers, which is exactly the same as the condition for exciting the thermal modes. Thus, the requirement for a closed path is in direct contradiction to the requirement for a flat thermal profile. This is illustrated in  FIG. 10 , which shows a path that repeats itself, but it also excites the q 5,3 (t) mode, resulting in a poor thermal profile. However, by choosing a scan angle as in  FIG. 11  that satisfies the criterion in (92) but making sure that μ and ν are sufficiently large so that |q μ,ν | peak  is small (because λ μ,ν is large and b μ,ν is small) then a good thermal profile is achieved using a repeating scan pattern. It is important to ensure that μ and ν have no common factors to avoid exciting lower order modes: for example, if μ=12 and ν=6, although the magnitude of q 12,6 (t) may be relatively small, this path will also excite q 2,1 (t) which will be much larger.
 
   Having chosen a scan angle, one final check that needs to be carried out is to ensure that the maximum distance between scans in the same direction satisfies the condition for uniform mass deposition. For a spray footprint with 2-dimensional Gaussian shape, this is equivalent to requiring the that distance between the scans should be less than πσ/3, where σ is the width (standard deviation) of the Gaussian [1]. 
   This leads to the procedure shown in  FIG. 12  for determining the optimal path.
         1. Choose optimisation criterion and maximum acceptable level of deviation from the desired thermal profile.   2. Input the dimensions of the surface, L x , L y  and the scan velocity, ν.   3. Enter the footprint of the spray gun, {tilde over (f)}(x, y, t) and determine the coefficients, {circumflex over (b)} m,n  when the gun is centre of the surface, using (65).   4. Determine upper bounds, M and N, such that {{circumflex over (b)} m,n ≈0: m&gt;M;n&gt;N}   5. Choose integers, μ and ν, such that μ≧ν and μ and ν have no common factors.   6. Set scan angle to       

   
     
       
         
           
             
               
                 
                   tan 
                   ⁢ 
                   
                       
                   
                   ⁢ 
                   ψ 
                 
                 = 
                 
                   
                     μ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       L 
                       y 
                     
                   
                   
                     υ 
                     ⁢ 
                     
                         
                     
                     ⁢ 
                     
                       L 
                       x 
                     
                   
                 
               
             
             
               
                 ( 
                 93 
                 ) 
               
             
           
         
       
     
       
       
         
           7. Search over all modes, {m=1,2, . . . , M,n=1,2, . . . , N}, to ensure that all q m,n (t) satisfy the optimisation criterion for this scan angle. 
           8. If the criterion is not satisfied, increase ν and/or μ and repeat from step 5. 
           9. If the criterion is satisfied, check that path satisfies mass deposition criterion 
           10. If the mass deposition criterion is not satisfied, increase ν and/or p and repeat from step 5 
           11. If the mass deposition criterion is satisfied, use scan angle, ψ, to generate robot path and download to robot. 
           12. Stop. 
         
       
     
  
   If it is not possible to find a scan angle that satisfies the optimisation criterion, then the scan velocity and/or the width of the spray footprint need to be increased until the procedure can find an suitable path. 
   It should be noted that because H(t) arid {tilde over (f)}(x, y, t) depend upon z(t), their values will change as the thickness of the steel shell builds up. As a result, the optimal path may change as z(t) increases and it may be necessary to perform the optimisation at a range of different thicknesses. 
   Extensions to Other Geometries 
   The process described above is based upon the assumption that the surface is flat and rectangular with edges that are insulated. The approach can be extended to accommodate other geometries, as follows.
     Non-flat Surfaces The same approach can be used for surfaces that are not flat by ensuring the height and orientation of the spray gun(s) are adjusted so that a constant distance is maintained between the guns and the surface and that the guns are always oriented perpendicular to the surface. Under these circumstances, there will be a uniform build of mass and the surface can be considered as flat. Once the optimal scan angle, ψ, has been determined, the robot movements required to maintain constant offset and orientation to the surface along this path can be determined.   Circular Surfaces The method can be adapted to accommodate surface with circular geometry by expressing the problem in terms of cylindrical polar co-ordinates, (r, ξ). Under these circumstances, the spatial modes become   

                     ϕ     m   ,   n       ⁡     (     r   ,   ξ     )       =     {               J   0     ⁡     (       λ     m   ,   0       ⁢   r     )       ⁢                           for   ⁢           ⁢   n     =   0     ;     m   =   1       ,   2   ,   3   ,   …     ⁢                           J   n     ⁡     (       λ     m   ,   n       ⁢   r     )       ⁢   cos   ⁢           ⁢   n   ⁢           ⁢   ξ               for   ⁢           ⁢   n     =   1     ,   2   ,   3   ,     …   ;     m   =   0       ,   2   ,   4   ,   …                   J   n     ⁡     (       λ     m   ,   n       ⁢   r     )       ⁢   sin   ⁢           ⁢   n   ⁢           ⁢   ξ               for   ⁢           ⁢   n     =   1     ,   2   ,   3   ,     …   ;     m   =   1       ,   3   ,   5   ,   …                     (   94   )               
where J n (r) are the nth order Bessel functions of the first kind and λ m,n  are chosen to satisfy the boundary conditions, which for the case where the edges are insulated are
 
                         ∂     ϕ     m   ,   n           ∂   r              r   =       r   ⁢             max         =   0           (   95   )               
with r max  being the radius of the sprayed surface. This is particularly relevant to controlling the thermal profile in process such as the Osprey Process as described in P. S. Grant, “Spray Forming,”  Progress in Materials Science . vol. 39. pp. 497-545, 1995, herein incorporated by reference in its entirety, where objects with circular symmetry are commonly formed by spray deposition. Regulating the thermal profile during spraying in this case, controls the porosity, microstructure and yield of these processes. The approach could also be applied to spraying onto spheres or spherical shells by expressing the problem in terms of spherical polar co-ordinates.
     Rotating Surfaces By transforming the co-ordinates, the thermal profile in process where the surface and/or the spray guns are rotated can be modelled and an optimal path found. This is particularly applicable for processes with circular symmetry, such as the Osprey process.   General Shapes When spraying onto surfaces that do not have a regular shape, it is more difficult to identify the spatial modes, φ m,n (x, y) Under these circumstances, the “long term” thermal profile described by the partial differential equation can be modelled using a numerical method such as finite differences as described in K. W. Morton and D. F. Mayers, “ Numerical Solution of Partial Differential Equations ,” Cambridge University Press, Cambridge, UK 1996, or finite elements as described in K. Eriksson et al., “ Computational Differential Equations .” Cambridge University Press. Cambridge, UK, 1996, both of these references herein incorporated by reference in their entirety. For either method, a suitable path can be found by defining a number of points around the edge of the surface and then using a non-linear optimisation method, such as simulated annealing or genetic algorithms to determine the path between the points that minimises the thermal profile. Such non-linear optimisation methods are described in M. H. Hassoun. “ Fundamentals of Artificial Neural Networks ,” MIT Press, Cambridge, Mass. 1995, herein incorporated by reference in its entirety.   
   REFERENCES 
   
       
       [1] J. K. Antonio, R. Ramabhadran, and T.-L. Ling, “A framework for optimal trajectory planning for automated spray coating,”  International Journal of Robotics and Automation , vol. 12, no. 4, pp. 124-134, 1997. 
       [2] P. S. Grant, “Spray forming,”  Progress in Materials Science , vol. 39, pp. 497-545, 1995. 
       [3] K. W. Morton and D. F. Mayers,  Numerical Solution of Partial Differential Equations , Cambridge university Press, Cambridge, UK, 1994. 
       [4] K. Eriksson, D. Estep, P. Hansbo, and C. Johnson,  Computational Differential Equations , Cambridge University Press, Cambridge, UK, 1996. 
       [5] M. H. Hassoun,  Fundamentals of Artificial Neural Networks , MIT Press, Cambridge, Mass., 1995.
Material is incrementally deposited using material directed toward a deposition zone. The scan path of the directed material is controlled according to a path plan derived to reduce derivation from an ideal uniform temperature profile for the deposition during the deposition process. A path plan having angled scan passes that intersect (or overcross one another), for example in a mirrorbox path plan, is preferred.