Abstract
Numerical analysis is increasingly used for batch modelling runs, with each individual model possessing a unique combination of input parameters sampled from a range of potential values. Whilst such an approach can help to develop a comprehensive understanding of the inherent unpredictability and variability of explosive events, or populate training/validation data sets for machine learning approaches, the associated computational expense is relatively high. Furthermore, any given model may share a number of common solution steps with other models in the batch, and simulating all models from birth to termination may result in large amounts of repetition. This paper presents a new branching algorithm that ensures calculation steps are only computed once by identifying when the parameter fields of each model in the batch becomes unique. This enables informed data mapping to take place, leading to a reduction in the required computation time. The branching algorithm is explained using a conceptual walk-through for a batch of 9 models, featuring a blast load acting on a structural panel in 2D. By eliminating repeat steps, approximately 50% of the run time can be saved. This is followed by the development and use of the algorithm in 3D for a practical application involving 20 complex containment structure models. In this instance, a ∼20% reduction in computational costs is achieved.
Introduction
Numerical analysis is a vital tool that enables engineers and researchers to investigate diverse phenomena, draw relationships between key parameters, and test scientific hypotheses. In particular, numerical modelling for blast analysis possess significant advantages related to cost, safety and efficiency when compared to conducting practical experiments, which themselves may be impractical or unfeasible given current technological and resource constraints. However, the solution of complex wave propagation problems using physics-based modelling approaches typically requires considerable computational expense and large run times.
Deterministic approaches to blast wave analysis involves a single input pattern being provided to a chosen numerical solver, with a single set of values being output. Considering the unpredictable nature of explosive events where the size, shape, material and position of the explosive charge cannot be known before the detonation takes place, this approach to modelling risks the possibility of misrepresenting the threat posed to a given structure or its inhabitants. Probabilistic approaches are therefore becoming more prevalent in blast protection research and design (e.g. Qi et al., 2020; Seisson et al., 2020; Rebelo and Cismasiu, 2021) as they enable the analysis of a large number of randomly generated model inputs with additional consideration for modelling errors (Stewart et al., 2006; Stewart and Netherton, 2015). Use of Monte-Carlo sampling of the input variables means that randomly selected explosive events are simulated based on the predefined possibilities of each parameter (Murmu et al., 2018). Therefore, instead of being provided with a single output, with this approach the user obtains probability distributions of each tracked variable that can be used to assess the risk to a higher fidelity.
Despite these benefits, probabilistic studies still require a deterministic model to provide the results for every input combination. Accordingly, when analysing complex scenarios, computational fluid dynamics (CFD) solvers could produce total computation times beyond what is acceptable. This is highlighted in a study by Alterman et al. (2019), where 1.55 hours was required for each of the 100 models that were used to determine the fatality risks of a specific domain. There is therefore a clear need for tools that are more suited to the rapid analysis of complex explosive events.
Machine learning (ML) approaches offer the opportunity for such a reduction in run time, however training and validation processes require large amounts of high quality data, which is often generated entirely (or at least supplemented by) numerical modelling results, (e.g. Bortolan Neto et al., 2020). Thus, generation of the database itself brings a significant capital investment in computation time. For example, in a recent study by the current authors (Dennis et al., 2021), an Artificial Neural Network (ANN) was trained to predict blast loading distributions within a confined space to a reasonable level of accuracy (±10%), with results for the whole domain being generated in less than 4 minutes. Achieving this performance required 72 individual numerical analyses to populate the training/validation data set, each requiring around 2 hours of computation. The benefit of developing a fast running ANN is clearly offset by this initial investment, highlighting how the reliance on computationally expensive numerical models remains a key issue.
This requirement for accurate yet rapid computational calculation methods has driven many developments in recent years. One particular example is adaptive mesh refinement (AMR) (Berger, 1989; Belhamadia et al., 2014), where areas of the computational domain are refined at a local level, allowing for coarser representation elsewhere and therefore significant computational savings. A remaining issue, however, is that if a new scenario needs to be simulated, the entire process needs to be remodelled, regardless of any areas of commonality with previous simulations. The focus of this study is therefore to develop a robust and reliable method for systematically identifying and removing any duplicate steps in a batch of numerical models, with the potential for significant time savings in both probabilistic studies and in the development of machine learning datasets.
The ‘Branching Algorithm’ is introduced in this article as a tool for batch analyses that identifies the points/times where the parameter field of each arrangement would become unique to its domain. It was initially created as a method that could be adapted for a range of numerical problems and so a generalised mathematical representation of the algorithm is provided in Appendix A. By operating at a batch-level as opposed to a model-level, as with AMR, the algorithm produces an informed data mapping framework (deviation tree) that can be evaluated in a suitable numerical solver to ensure that duplicate steps are only calculated once in each batch of tests.
The following sections discuss how the algorithm operates and is suited to blast analyses in both 2D and 3D, with a walk-through of the proposed method being applied to a simple 2D batch of blast panel models also being presented to show that approximately half the time steps, and therefore half the computation time, can be removed through informed data mapping. This is followed by a more complex set of 3D containment models, where around 20% of the computation time is identified as obsolete. The work presented in this article shows that, for time-dependant simulations, a significant computational saving can be expected when using the proposed method compared to when each model is ran from birth to termination with no consideration of the test similarities.
The branching algorithm
Principles and terminology
Time-varying numerical forward models can be used to estimate a parameter field, θ, given initial conditions, Ω, in some domain, Δ. The parameter field could, for example, include pressure, temperature and stress at each specified point and it could be used to assess the impact of an explosive, development of a crack, or variation in any relevant quantity. With the aim of the proposed algorithm being to avoid duplicate calculation steps in a batch simulation process, consideration of how the parameter field, θ, changes with respect to space and time in each given domain is required. The calculated parameter field at a location given by x, y and z, at time, t, is therefore given by equation (1), with f(⋅) representing the given numerical model.
The specific time step when the trunk model and any other given model (or ‘branch’ of models) from the batch of tests stops producing identical parameter fields can be defined as the ‘deviation point’ for that model. This is given by equation (2), with
Further, a deviation point corresponds to the first time step where the model’s calculated parameter field would be different from the trunk model. Mapping the data associated to
The branching algorithm determines the deviation point with respect to the spatial location, (x, y, z), for each model prior to any numerical simulation by assessing the ‘influences’ present in each domain. These influences are defined as the factors that change the input conditions into the observed outputs, meaning they are bespoke to each potential application of the algorithm. However, they will be defined by a subset of the inputs to the numerical calculation:
In order for the algorithm to discern when each influence is reached in each respective model, a comparison metric, γ, is defined for all entries. The time step associated with when each potential deviation is reached in the numerical model may not be known prior to the simulation of each domain; however, an expected sequence of when each point is met can be defined with consideration of additional parameters. Again, for the example of modelling an explosion, the distance/time that the blast wave will travel before it will reach each influence can be used to define the order of influence activation, therefore allowing the algorithm to identify if there are any deviating simulations.
The selected influence that correlates to the deviation point of a given model is provided as the output to the algorithm in an ordered vector denoted by ϵ. Here, ϵ provides the deviation condition and the associated model number in a list that is sorted according to when each entry is reached in the trunk model’s simulation. For example:
As the parameter field of the trunk model, θ T , undergoes a change that is not expected to be present in the model given by ϵ1(n), the latter should be initiated by data that is mapped from the last time step of the trunk model. The deviation condition given by ϵ1(λ) is used to identify when this will occur. Once mapping to this domain has taken place, the trunk model simulation continues until the condition defined by ϵ2(λ) is met, and another phase of data mapping can take place. This process continues until all compatible models have been initialised as shown in Algorithm 1 provided in Appendix A.
The branching algorithm for blast analysis
Adapting the methodology explained in the previous section for use with blast analyses requires the key terminology to be assigned to blast relevant parameters. Notably, a deviation point is provided in terms of its spatial location relative to the charge, since the air that fills the domain will remain at ambient conditions until the blast wave emanating from the explosive material reaches that particular point. The solutions to each model will therefore diverge at the moment that the pressure wave reaches a location or material in a given domain that is not present in the other models. The influences used to identify these locations can then be associated to object or boundary surfaces, or changing material properties.
For the branching algorithm to allow for data to be mapped between various models, it is essential for some of the input conditions to be identical. For blast analyses, this relates to the ambient conditions of each domain and the charge shape and composition. If there is a difference between two models because of these variables, the simulation would be different from birth and so no mapping would be possible. The algorithm therefore splits models of a batch into various trees that are sorted and analysed separately. The size of the charges used in each model will not necessarily be a reason for defining a new deviation tree as domain scaling can be used according to Hopkinson-Cranz scaling laws (Hopkinson, 1915; Cranz, 1926). Use of this approach improves the compatibility of models because each domain in the batch of tests can be defined in terms of scaled distance, with a single charge size relating all arrangements. However, for the examples given by this study, scaling was not required.
A simplified version of the blast branching algorithm is provided below to show how the comparison of each domain allows for informed data mapping to take place. 1. Identify unique geometries and create discrete influences associated to the objects and boundaries for each model. 2. Identify the groups of models (deviation trees) that can share numerical data with no loss of modelling accuracy by considering the probabilistic inputs being used (e.g. separate groups are required for differing charge shapes and/or ambient conditions as data mapping cannot occur if difference are present from birth of the simulations). 3. For each tree: (a) Calculate the wave travel distance to each influence of each model so that comparisons between influences can be made. (b) Compile all influences and identify which model has the unique influence that is the furthest distance from its charge. This model acts as the ‘trunk model’, with all other models deviating from its solution. (c) Remove influences that are common between the trunk model and any others. Sort the remaining influences from all models so that the first entry is the one that is closest to its respective charge. (d) Take the first entry as the first deviation from the trunk model and remove any other influences associated to this model from the remaining influence store. Continue this process until all models have deviated. (e) If multiple models share the same deviation at any point, a ‘sub-trunk model’ can be defined by repeating the process with this sub-set of models to allow for additional savings and multiple informed data mappings.
Ultimately, with the model geometries, boundary and ambient conditions and charge characteristics being defined as the input values, this process automatically produces a modelling order for a batch of tests. Through generating a number of deviation locations based on the blast wave’s progression through the domain of a parent model (trunk or sub-trunk), the chosen numerical solver can be monitored so that data maps are created just before the trunk model’s parameter field diverges from that of a branching model. The associated branching models can then be initialised with the exported data maps, removing the need for repeated calculations to be computed, specifically around the charge before the blast wave impacts any boundaries or surfaces.
An example of a deviation tree being output from the algorithm is provided by Figure 1 with model ‘N’ being assigned as the trunk model and various branches showing where data mapping can be utilised. It is also shown how model ‘N-1’ is defined as a sub-trunk model, meaning models ‘N-1’, ‘N-3’ and ‘N-4’ were all identified to deviate from model ‘N’ at the same influence. Additional repeated simulation steps were then identified in a second pass through the branching algorithm when considering only these three models. The recursion capability of the algorithm is therefore essential in allowing for the greatest computational time saving. Example deviation tree obtained using the branching algorithm.
After application of the branching algorithm, a tool capable of performing analysis of the branched network of models will be required. It is important to ensure that there is no/limited detrimental impact to the progressive accuracy of the solutions as data is transferred from one model to another. It is not expected that this would be a problem for many modelling techniques as studies adopting methods such as domain decomposition, multigrid solving and mesh adaptation are able to efficiently solve highly complex problems with data being transferred between parallel computing processors many times throughout the simulation (Wu and Tseng, 2005; Bruneau and Khadra, 2016; Park and Kwon, 2005).
This introduction to the branching algorithm aims to provide a basic understanding of the logical process being employed by the proposed method; however, the following section will expand on this for 2D blast simulations with a walk-through of how the influences are identified and compared.
Example application in 2D
Problem scenario
To show that the proposed algorithm and simulation strategy can be highly beneficial in saving computation time, a batch of nine 2D models based on the experimental work presented by Rigby et al. (2018) and Rigby et al. (2020) have been simulated using the proposed method. Simulation times will be compared between the branching algorithm method and a standard birth to termination approach for the same nine models, with all other factors being identical (mesh size, computational resource, etc.).
Model setup parameters.

Explosive test arrangements to be used with the branching algorithm shown in 2D. Charge is given as a red circle and the impacted panel is shown in grey. Boundaries are ambient non-reflecting. Model numbers are provided in the lower right corner of each image. All dimensions are in millimetres.
Validation of LS-DYNA for blast analysis
The experimental results first published in Rigby et al. (2018) are used to validate the use of LS-DYNA in this article. The detonation of a spherical 100 g PE4 charge placed 80 mm from the rigid plate is simulated using LS-DYNA’s multi-material Arbitrary Lagrangian Eulerian (MMALE) solver. This allows each cell in the model domain to contain air and high explosive without either material needing to coincide with the cell boundaries (Peery and Carroll, 2000) and it is therefore capable of simulating explosive scenarios. Values assigned to each of the relevant material model and equation of state parameters are provided by Rigby et al. (2018).
It is essential for the progression of the blast wave that the initial energy is preserved throughout the detonation process (Lapoujade et al., 2010) and generally over 10 elements across the radius of the charge should be used to ensure sufficient accuracy of the detonation (Schwer and Rigby, 2018). The use of 1.25 mm square elements provides ∼20 elements across the radius of the charge and is deemed acceptable in this instance. Figure 3 shows a comparison on the numerical and experimental reflected pressure and specific impulse (cumulative temporal integral of pressure) histories at the centre of the target panel (0 mm), 50 mm away and 100 mm away from the centre. Furthermore, Table 2 provides the peak values from these plots to verify that the magnitudes and general form of the profiles are in reasonable agreement, giving confidence in the ability of the numerical approach to adequately simulate the salient physical processes. Pressure-time and specific impulse-time histories for the detonation of a 100 g PE4 charge placed 80 mm from a rigid plate for three distances from the centre of the plate. Peak reflected pressure and specific impulse values from the experiment and simulation profiles shown in Figure 3.
The discrepancies between experimental measurements and numerical output have been seen previously Rigby et al. (2018), and are likely attributed to the strong directionality, high pressure/velocity gradients and magnitudes of the near-field blast. Whilst they appear significant when viewing discrete pressure and impulse histories, they are less significant for target response considerations due to the relatively low areas over which they are acting (compared to the pressure histories at 100 mm from the centre which demonstrate much better agreement).
It is likely that a smaller element size would provide an improvement to the agreement in all pressure and impulse profiles; however, the use of 1.25 mm elements ensures a balance between accuracy and computation time will be achieved in the following analyses.
Model specification
Following the successfully validation of LS-DYNA with 1.25 mm elements, each scenario in the example batch of tests given by Table 1 and Figure 2 is modelled using this mesh density and the same material model and equation of state parameters provided by Rigby et al. (2018). They are also modelled in 2D axi-symmetry with the domain boundaries being defined at distances that are sufficiently large so that although reflections will occur as the shock waves impact the boundary nodes, the returning shock waves will not reach the panel before the termination time is met.
As shown in Figure 4, models 1, 2 and 3 were simulated in a 350 × 230 mm domain, with the panel positioned with y-coordinates of 160 mm and 210 mm. Models 4, 5 and 6 were simulated in a 350 × 380 mm domain, with the panel positioned with y-coordinates of 310 mm and 360 mm. Finally, models 7, 8 and 9 were simulated in a 350 × 530 mm domain, with the panel positioned with y-coordinates of 460 mm and 510 mm. Numerical models showing the various stand-off distances, blast panel diameters (grey rectangle) and the 49.2 mm diameter charge (red semicircle). (a) Models 1, 2 and 3 (b) Models 4, 5 and 6 (c) Models 7, 8 and 9.
The termination times for models 1, 2 and 3 were then set at 0.12 ms, models 4, 5 and 6 at 0.2 ms and 7, 8 and 9 at 0.28 ms. This allows for the initial blast wave to fully clear the panel without interference from any unwanted reflections.
In every instance, the charge is centred with a y-coordinate of 80 mm so that the data mapping, achieved using the
Algorithm walk-through and output
With the model geometries clearly defined, the branching algorithm can be used to identify the deviation points where the numerical outputs from each simulation will cease being identical. This section will step through the key stages of the algorithm to show how it systematically selects when each model should be initiated with data mapped from the trunk model.
It is to be noted that this walk-through ignores the complexity that may be required for other applications or in use with more detailed test scenarios. For example, the panels are assumed to be rigid, that is, any motion of the panel following application of the blast loading occurs on timescales such that the development of loading is itself unaffected. This has been shown to be a reasonable assumption when considering blast loading on structural panels (Rigby et al., 2019). Each model is also being solved with the same method, ambient conditions, charge material/detonation location and panel properties, and therefore it is only the differing domain geometries that will provide diverging solutions. This also allows influences to be stored with their spatial locations and comparison values only, as the material properties and surface slopes will not lead to deviations. In the next example application, the 3D problems require a more comprehensive set of variables to be stored to enable influence comparisons to be made correctly.
Individual influences for each model being considered are formalised in the influence table below. Rear nodes of the panels are omitted for brevity. Influence defining the trunk model is shown in italics.
Next, the trunk model can be defined by finding the model that encounters its first unique influence at the latest calculation step in its respective domain. This ‘greatest unique initial influence’ corresponds to the test arrangement that will see all other models deviate from its solution before the step where it would have deviated from the other models itself, thus enabling the largest number of duplicated steps to be removed from each simulation process.
By assessing Table 3, it can be seen that model 9 will be the trunk model since its first unique influence corresponds to the blast wave impacting the panel vertices at the greatest distance from the charge; 429 mm. The influences present in this newly-defined trunk model can then be removed from all other model’s tables, provided that they would occur at identical locations within each simulation. For this example, this relates to the panel face impacts for models 7 and 8, since columns 3, 4 and 5 of Table 3 contain identical values.
Combined influence table is formed and sorted according to the time when each entry is encountered by the blast wave. Entries included in the trunk model are removed.
For this example, the first deviating model (1) diverges due to an influence that is also present in two other models (2 and 3). It is therefore essential for the algorithm to compare the influence causing model 1 to deviate with the next entries to check if a sub-trunk model can be defined. This allows the algorithm to identify further mapping opportunities that can save additional computation time by removing duplicate steps that occur after the initial mapping from the trunk model.
Removing the influences associated with these three diverging models shows that the second divergence from the trunk model also features three models. Models 4, 5 and 6 are shown to have identical influences for when the blast wave hits the panel at a 230 mm stand off distance. After these have branched off from the trunk model, models 7 and 8 remain, with their relative deviation conditions then being defined by the blast wave reaching the vertices of the panels that are positioned at the same stand-off distance as in the trunk model.
Combined influence table for the first sub-trunk. Model 3 is deemed to be the sub-trunk model.
According to the sorting process employed by the branching algorithm, the output vector for this tree denoted by ϵ is given by: Algorithm output (a) flow chart, (b) deviation tree. Coordinates given in (a) are given in millimetres to indicate where the model will deviate relative to the charge centre in each model.

As discussed, the recursion capabilities of the method are highlighted by how ϵ1 and ϵ2 present the output from additional passes through the branching algorithm for the sets of models that deviated from the trunk model at an identical influence. This process could occur any number of times to meet the requirements of the models being simulated, with the possibility of sub-sub-trunk models and beyond being identified as discussed above with regards to additional parameters such as plate thickness. Thus, the level of recursion is intimately linked to the number of unique input variables of a batch of numerical models.
Simulation times
With the progression of the models through the algorithm now complete, the order of branching and the corresponding influences causing deviation can be implemented using the relevant solving software to enable an efficient simulation process.
Required computation time for each model with and without use of the branching algorithm method.
As expected, Table 6 also shows that when using the branching algorithm, models 7 and 8 experience the greatest reduction in required computation time (75–77%) due to how the deviation points occur at later stages of the time-stepped solutions. A larger amount of the trunk model (9) can be simulated without a difference in output for these cases when compared to models 1, 2 and 3 that must diverge as soon as the shock wave has progressed 80 mm from the charge. This is why the branching algorithm works to identify the trunk model by assessing which model from the framework has the unique initial influence that occurs at the latest time step of the simulation.
For a visual representation at how the data is mapped between each domain, Figures 6 and 7 show how the progression of the blast wave occurs in each domain, with the faded images relating to steps that are omitted from the analysis if the branching algorithm is used. These figures also highlight the importance of using the charge centre as a coordinate that is shared between each model since the blast wave can be mapped relative to this point regardless of the domain size and shape. Progression of the shock front from the LS-DYNA models showing where data mapping occurs. Faded cells show the simulation steps that are not required if the branching algorithm is used. Data mapping is shown with black arrows. Continuation of Figure 6. Progression of the shock front from the LS-DYNA models showing where data mapping occurs. Faded cells show the simulation steps that are not required if the branching algorithm is used. Data mapping is shown with black arrows.

Mapping results
The mapping functionality in many numerical solvers is intended to allow for adaptive mesh refinement where dense grids of elements and nodes need to be specified for the start of a simulation where more detail in the parameter field may be required to preserve the energy of the detonation. When this stage of the process has concluded, the data can be mapped to the same domain geometry, but with a coarser mesh that helps to reduce computation time. Consequently, the mapping process requires interpolation of values to fit to the new mesh.
For the mapping displayed in this article, every model shares the same mesh conditions and so interpolation is not required. This results in rapid initialisation of the models receiving the parameter field from a trunk or sub-trunk model with no loss of information that could lead to differing outputs between a mapped and non-mapped solution.
Figure 8 shows this to be the case with results from the branched analysis being compared to those from the full simulations for model 1. The combined outputs from each stage of the mapping procedure are shown using different line types, with the results from the full simulation shown with a solid black line and mapping times shown as black dashed vertical markers. The results are effectively indistinguishable, demonstrating that the branching algorithm has successfully identified a robust and repeatable methodology for removing unnecessary steps in the simulations. Pressure time histories for model 1 generated from simulations with and without use of the branching algorithm.
Developments for 3D analyses
So far this article has proved the concept of the branching algorithm for a tailored example in 2D. The process involved in obtaining the ∼50% computation time saving discussed previously is simplified greatly by using 2D models, making it well suited to a walk-through example. However, the following sections will now explore the developments required in defining and sorting influences present in 3D blast models. This will be followed by a practical application for the simulation of a batch of containment structures.
Domain discretisation and influence comparison
The most important adaptation to make to the branching for use in 3D is related to the definition of the influences in the blast domains. As shown in the previous example and in Figure 9, 2D models only require the object vertices and a single surface definition to be identified as potential locations where the output between different models may diverge. This is because if the wave hits the surface, the next point it will hit is a vertex and vice versa. Conversely, in a 3D model, the label ‘edge’ is required since the wave can progress in multiple directions and its impact at the edges may lead to deviating outputs. Comparison of how a blast wave may interact with a rigid object in 2D and 3D.
With this inclusion, the way in which the algorithm identifies and compares influences must change to account for variations in the type of impact the wave is predicted to experience. Specifically, in order for the branching algorithm to identify which parts of a given domain are reached first, potentially causing a deviation, the geometries of each model must be represented discretely. This requires a series of nodes to be defined to act as individual influences on all surfaces of the objects and boundaries and along all edges in each domain.
The mesh of influences representing each object and boundary surface in every model of the batch are generated using a user defined mesh density that coincides with the edges of the objects and locations of any charges. As shown in Figure 10 on the left hand side, if a mesh density of 0.1 is specified and a local grid of points is used to form the surface and edges, there is a high possibility of misaligning influences. In this case, the branching algorithm would identify the blast wave’s impact at any node as a numerical deviation when comparing these models. It is therefore necessary to use a global grid, that is centred on the respective charges of each domain, with the same mesh density in every model. Example of how the adopted meshing strategy, using a mesh density of 0.1, enables influences to be defined relative to the charge centre, (0,0), in comparable terms regardless of the orientation of the objects in each model.
The right hand side of Figure 10 shows of how this adjustment allows for aligned nodes that the algorithm would ignore when considering if a deviation has occurred. Through implementing this meshing strategy, if a surface is present in multiple models at the same relative location, a range of influences will be defined in an identical way regardless of the domain orientation or size.
The comparison of these globally defined influences is achieved through comparing the relevant variables assigned to each influence type. Figure 11 shows the values associated to each influence designation that will be stored in a table that is structured in the same way as Table 7. In every instance, the material properties or boundary types are also included. Variation of values stored by the algorithm enabling comparisons to be made between each identified influence. Example influence table structure for 3D analyses.
Blast wave path tracing
The comparison metric used to sort the influences according to the step where they are encountered in the numerical simulation was previously assigned to the direct distance between the charge and the relevant point to utilise the simplicity of the 2D geometry. However, this is not suitable for complex 3D models where the blast wave is expected to reflect off rigid surfaces and clear around object corners.
Ideally, the time of arrival of the blast wave would be calculated at each influence; however, there are currently no suitable rapid analysis methods for complex 3D geometries. The discrete series of nodes therefore acts as a connected graph upon which the blast wave can be tracked from the charge to each individual influence (or node). By considering the problem in this way, Dijkstra’s shortest path analysis is used to identify the shortest distance that the blast wave would have to travel to reach each relevant point of a given domain.
Figure 12 provides a visual representation of an influence mesh for a scaled city street curated by Brittle (2004). It also shows red lines that are formed considering the domain as a 3D graph, with shortest path analysis enabling the wave to be traced around the objects to a variety of points. Example shortest path analysis is used with a 3D connected graph to identify wave travel paths (red lines). Geometry shown is formulated in a study by Brittle (2004). Note that to improve image clarity no floor or boundaries has been defined for this arrangement and so the wave can be traced underneath the objects.
With these developments for influence generation and comparison, the algorithm can now be applied to 3D blast models using the same step-by-step procedure that was provided in The branching algorithm for blast analysis.
Example application in 3D
Problem scenario and model specification
Figure 13 provides a plan view of the 5 geometries that feature in a batch of 20, 3D models that aims to replicate a study where the effect of reducing the material use of geometry 1 is evaluated in terms of the overpressure that is recorded at key surrounding locations in the event of an accidental detonation. Each containment structure is 4 m tall, with base dimensions covering 18 x 5.5 m. Plan view of the five containment structures included in the example analysis.
The locations of the gauges used to monitor the pressure variations are presented in Figure 14 alongside the four charge locations that are used independently with each geometry. Furthermore, the simulation domain that was adopted for use in the chosen computational fluid dynamics (CFD) solver, Viper::Blast (Stirling, 2021), is also provided. The floor is defined as the only reflecting surface with all others being able to transmit the blast wave outside of the domain. Plan view of the modelling domain, showing the origin point of the containment structures in Viper::Blast, four potential charge locations and five gauges used to record pressure-time profiles.
In each case, the Viper::Blast models are simulated using an ideal gas calculation with a 5kg, TNT, spherical charge positioned 1.5 m above the ground and a termination time of 55 ms. Ambient pressure and temperature are 101,325 Pa and 288 K, respectively. Simulations including the initial detonation utilised 1D to 3D mapping that takes place one cell before the wave reaches a rigid surface.
Unlike the previous example where LS-DYNA required validation for use in blast analyses, here the purpose written solver Viper::Blast does not require explicit validation. This is firstly because the results obtained from the analysis are not used in forming the conclusions of this article, with the focus instead being placed on the ability of the proposed method to save computation time. It is however important for the obtained results to be representative of the explosive scenario and since Viper::Blast is a tool founded upon established work published by Rose (2001) and Wada and Liou (1997), it is chosen approach for various studies including an air blast variability analysis conducted by Marks et al. (2021) and the evaluation of multiple simultaneously detonated charges by Zaghloul et al. (2021). This gives confidence that the observed parameters will be characteristic of an explosive test and therefore with progressive simulation time steps that represent typical blast analyses.
For all models, the element size of the 1D stage is specified as 0.002 m to provide ∼45 elements across the charge radius for the simulation of the initial detonation. As before, this surpasses the general requirement for around 10 elements to be used to ensure that the initial energy of the detonation process is preserved (Schwer and Rigby, 2018). This element size is increased to 0.04 m for the 3D stage.
A visual representation of all 20 models, including their numbers and charge locations is given in Figure 15. All 20 models included in the simulation batch. Each containment structure is modelled with each possible charge location.
Algorithm output
To identify the steps where informed data mappings can take place between the 20 models included in the given batch, the 3D geometries, boundaries and ambient conditions must be provided to the branching algorithm. In this example, the ambient conditions do not change in each domain and so the models are assigned to four trees, each corresponding to a charge location.
Figure 16 displays how the trees have been ordered, with red lines on each model showing the path of the wave from the charge to the uniquely identified deviation points. For lines that track through the containment walls, the wave is progressing up and over the 4 m structure. Domains including no red line are the trunk models of each group. Generated deviation trees and visual representations of the deviation points for each model. Red lines show the blast wave travel path to the first influence that results in a parameter field that is no longer identical to the parent model.
It should be noted that it is the final deviations being shown for each model in each tree. For example, reviewing the output for the first tree, model 5 deviates from the trunk model as the blast wave reaches the right hand wall of the central bay. No other model shows this to be a deviation point, however every other model also deviates from the trunk model at this step. Model 5 is therefore a sub-trunk model that was defined to enable greater computational savings. It is also only the final deviation point that is relevant for the initialisation of each domain in the batch, since the mapping order given by the deviation trees will be followed when transferring data between domains.
Simulation times
Comparison of model computation times.
For this complex scenario, a saving of around 20% means that an additional geometry could be assessed with all four charge locations at no extra cost when compared to the standard birth to termination simulation approach. Accordingly, an additional geometry could be explored that may benefit from the knowledge gained from the first batch at no additional computational cost.
When discussing the reported time saving, it is also important to consider how the individual computation requirements for each model are variable depending on the termination time and mesh density used in the numerical calculation. If these models were to have used higher resolution of elements, the relative cost of the algorithm would be reduced. This ultimately drives the total percentage saving to be closer to when the algorithm cost is ignored, in this case, moving 19.2% closer to 20.8%.
Furthermore, this sample study only contains 20 models. If instead, it featured upwards of 100 different arrangements with various combinations of geometry and charge size, it would be possible for a greater amount of saving to be observed with each model having a higher chance of sharing certain simulation steps with another in the batch.
Similarly, the solver Viper::Blast utilises Nvidia GPU processing in addition to various optimisation methods that significantly reduce the time required to analyse any given model when compared to alternatives exclusively featuring CPU processing power. Viper::Blast is therefore already likely to be a less time consuming approach to conducting batch analyses and so the savings noted here are expected to be far greater if less optimised solvers were to be used instead.
Regarding the implementation of the branching algorithm and data mapping, the algorithm could have used all models in one tree rather than splitting them into four separate trees. This would have increased the number of simulation steps being removed as the initial detonation of the charge, that was common to all models, would only need to be simulated once whereas here it was done four times. However, the sorting process used by the algorithm runs more efficiently with smaller trees because fewer model to model comparisons are required when defining the trunk model. Ultimately, this improved algorithm efficiency outweighs the potential saving of modelling the detonation once because the 1D solution used for this stage is already rapid in its execution.
Mapping results
As with the previous application, Figure 17 shows how the branched output for gauge 2 in model 9 is indistinguishable to the output from the same gauge when simulating the entire model without informed data mapping. The reduction in simulation time from 1013 s to 603 s for this model is therefore not affected by a reduction in the simulation accuracy. Pressure-time history recorded by gauge 2 when simulating model 9 entirely in its own domain (left) compared to when informed data mapping is used (right). Each line type shows which domain the data was record in.
Comparison of the peak overpressure recorded at each gauge for each containment structure considering all charge locations.
Conclusion
This paper has proposed and applied a new branching algorithm that can be used when modelling a range of similar numerical models with differing input parameters. The algorithm removes the need to simulate the steps of a simulation more than once if they occur within multiple models by identifying the similarities between the inputs and the newly defined ‘influences’.
It is shown that by using the developed approach for a simple blast analysis featuring 9 models, approximately 50% of the required computation time can be saved when compared to simulating each model independently. Similarly, when developing the influence definitions and applying the proposed method to a complex set of 20, 3D containment structures, the computation time can be reduced by approximately 20%.
A key advantage of utilising this method is therefore that it provides the researcher with the ability to conduct a more robust analysis of various problems with the same computation expense. Thus benefiting the analysis of probabilistic frameworks, or development of machine learning training datasets to ultimately promote more effective design optimisation and exploration. The ability to remap data from one domain to another relative to the centre of an explosion lends itself well to transferring data at time steps where a deviation in the outputs will occur, however, the magnitude of the improvement to the required computation time will vary depending on the application and complexity of the batch of models being simulated.
The key contribution of this work is that it provides a robust, reliable and repeatable method for formalising efficient remapping of numerical modelling, by identifying a main ‘trunk’ model and sorting each subsequent model according to when its results are expected to deviate from that model. Whilst this article focusses on blast analyses, future applications could look to tailor and develop the algorithm for different numerical problems, where batches of models are equally as important for understanding the processes being models. This includes vehicle design and safety assessments (e.g. Lu et al., 2020; Wu et al., 2020), search and rescue tools (e.g. Coppini et al., 2016), pressurised water pipe failure (e.g. Barr et al., 2020) and structural topology optimisation.
Future developments focussed on the method’s usability for blast analyses includes automating the execution stage of the proposed method. At present, the order of effective simulation is automatically generated by the algorithm using the batch inputs, but manual intervention is required when using the chosen numerical solver to export the parameter field as a change in ambient conditions is observed at each deviation condition and when initialising each of the models with the relevant data map that has been produced. Nevertheless, the recorded simulation times presented in this study remain consistent with if the full process were to be carried out with no manual intervention. Thus proving that a solver that is able to monitor deviation points, export parameter fields and initialise models using this data automatically can be used in conjunction with the branching algorithm to reduce batch computation times.
Lastly, as the branching algorithm presented herein operates as a forward model (causalities → effects), in future work we aim to investigate the feasibility of inverting the framework (effects → causalities). Pragmatically, such an inverse approach may afford users the ability to directly approximate realisations, such as charge size, location and type, directly from spatial-temporal measurements, having application in post-blast prognosis and site investigation. From a technical standpoint, an inverse truncated model may offer numerical benefits, for example, conditional well-posedness, reduced sensitivity to measurement noise/error and reduced computational demand.
Footnotes
Acknowledgement
Adam A Dennis gratefully acknowledges the financial support from the Engineering and Physical Sciences Research Council (EPSRC) Doctoral Training Partnership.
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This study was supported by grants from Engineering and Physical Sciences Research Council (EPSRC) Doctoral Training Partnership.
