Algorithms to Estimate the Ductile to Brittle Transition Temperature, Upper Shelf Energy, and Their Uncertainties for Steel Using Charpy V-Notch Shear Area and Absorbed Energy Data

: Toughness and the transition from ductile to brittle behavior are long-standing concerns for applications of ferritic steel such as line-pipe. Three algorithms have been developed to fit a hyperbolic tangent curve to any Charpy V-notch dataset and estimate the uncertainty for (1) the 85% shear appearance area transition temperature and (2) the upper shelf absorbed energy. To fit the hyperbolic tangent curve to the data the (I) first algorithm relied on iterative estimation of four-parameters; (II) the second algorithm on two parameters (after simplification based on physical assumptions); and (III) the third algorithm on only one parameter (after further simplification). The algorithms were written using the open-source programing language, R. The minimum input requirements for the algorithm are experimental data for shear appearance area and absorbed energy from at least four temperatures for the four-parameter algorithm, two temperatures for the two-parameter algorithm, and one temperature for the one-parameter algorithm. The test temperatures and quantity of tests at each temperature can vary. The algorithms are described in detail and demonstrated using a data set of 12 Charpy test results (shear area and absorbed energy) from one API-5L grade X52 pipe with 4.5 mm thick Charpy bars. A future paper will test and compare the algorithms using a wide variety of Charpy V-notch data sets to clarify their applicability and possible limitations.


Introduction 1.Importance of Toughness Testing
Toughness can be viewed as a measure of the amount of energy required to cause a rapid fracture.In the 1800s and early 1900s, brittle, low-toughness iron and steel caused many catastrophic failures [1][2][3][4][5].Specifically, for steel pressure vessels and pipes, toughness has been recognized as a critical parameter for evaluating burst pressure for over 100 years [6].In the early 1900s, various impact tests were developed, originally to test the quality of armor plate and boiler steels, and the ASTM E23 method for Charpy impact testing procedure was tentatively released in 1933 [1].The use of Charpy testing has expanded greatly, and examples of industries that rely on Charpy testing today include shipbuilding [7][8][9], nuclear power [10,11], armor [12], rail [13,14], construction [15], steam turbine [16], piping and pressure vessel [17][18][19], liquified natural gas storage [20], hydrogen storage [21], additive manufacturing [22], aluminum alloy development [23], and composites [24].The principles and methods described in this paper are relevant to many critical structural applications but will be analyzed and discussed with respect to steel line pipes widely used in natural gas and hazardous liquid pipelines.

Charpy Testing to Assess Steel Ductile and Brittle Behavior
Toughness is often evaluated using a Charpy test.The standard sample for a Charpy test exhibits a 10 mm by 10 mm cross-section and a 2 mm notch.The sample is dynamically fractured using a gravity-driven hammer.The energy lost by the hammer is recorded and equated to the energy absorbed by the sample.The shear appearance area is measured from the fracture surface of the sample.The absorbed energy and shear appearance correlate to the toughness behavior of the steel.
Ferritic steels typically exhibit a transition from ductile behavior (high energy absorption) at room temperature to brittle behavior at low temperatures [25].Structural steel alloys, including those used for line pipe, are intended for use in their ductile regime.Often, pipeline operators desire to know the ductile to brittle transition temperature to establish a safe operating temperature range within which the material is likely to behave in a ductile manner, thereby reducing the risk of catastrophic brittle failure.
When manufacturing line pipe, Charpy tests are usually required to be performed for only one or two temperatures.ASME Boiler and Pressure Vessel Code Section XI (Division 1, Paragraph IWA-4665), API 5L, and ASTM A370 require a minimum toughness based on three tests at one temperature.These tests enable pipe manufacturers and pipeline operators to ensure sufficient toughness relative to some intended operating temperature.However, Charpy testing at a single temperature is insufficient to quantify the change in absorbed energy and shear appearance relative to temperature.Charpy test results from multiple temperatures are necessary to enable the characterization of the transition from ductile behavior to brittle behavior.Thus, operators sometimes request "full Charpy curves", i.e., Charpy tests performed at multiple temperatures (8)(9)(10)(11)(12) to characterize the transition from ductile to brittle behavior and upper shelf energy.

Methods to Estimate Upper Shelf Absorbed Energy
Absorbed energy, E, versus test temperature, T test .Absorbed energy, E, forms a sigmoidal curve when plotted versus test temperature, T test .Oldfield (1975) recognized that the most appropriate function for fitting Charpy data is the hyperbolic tangent [26]: A E are B E are defined as: where E US is the upper shelf absorbed energy and E LS is the lower shelf absorbed energy.The constant, C E , is the halfwidth of the transition region such that the slope of the transition region is equal to B E /C E .The constant, D E , is the midpoint of the hyperbolic tangent function.The relationships between the constants, A E , B E , C E , and D E , are demonstrated by Figure 1.

Methods to Estimate Ductile to Brittle Transition Temperature
Along with the  it is common to characterize the toughness of a type of steel using the transition temperature [27].Owing to the transition being generally continuous, there are various definitions for transition temperatures in different industries such as the 28 J transition temperature from BS 7910 [28,29], the 47 J transition temperature for the nuclear industry [30], and the 50% cleavage transition temperature ( ) used in the shipbuilding industry [9].In the pipeline industry, the 85% shear appearance area transition temperature ( ) is referenced for two reasons.Firstly, shear appearance is considered a better indicator of transition behavior than absorbed energy for metals with different processing histories [9].Secondly, fully ductile behavior can be assumed to be predominant for temperatures above the  [31,32].Note that the Charpy test is a dynamic test and usually results in a ductile to brittle transition temperature that is much higher than the ductile to brittle transition temperature for crack initiation, which is more relevant for steel line pipe failures [31].However, it is an important measure of the ability of a pipeline material to arrest a propagating fracture.The test also lends itself to evaluating product specification conformity during manufacturing.

Methods to Estimate Uncertainty
The  and  are useful for fitness-for-service and risk assessments, maximum flaw size estimation, maintenance and replacement procedure development, and ground shift risk mitigation [31].The  and  are usually estimated by manually drawing or plotting a sigmoidal, hyperbolic tangent curve through the data (e.g., Refs.[28,33]).This labor-intensive, qualitative method requires curves to be evaluated one-by-one and does not provide a quantitative estimate of uncertainty.Oldfield developed a least squares curve fitting method, but the method does not provide an estimate for uncertainty, could be difficult to apply, and, for some data sets, may not converge in a satisfactory manner [26].Lucon et al. presented an algorithm to fit the hyperbolic tangent function, but the

Methods to Estimate Ductile to Brittle Transition Temperature
Along with the E US it is common to characterize the toughness of a type of steel using the transition temperature [27].Owing to the transition being generally continuous, there are various definitions for transition temperatures in different industries such as the 28 J transition temperature from BS 7910 [28,29], the 47 J transition temperature for the nuclear industry [30], and the 50% cleavage transition temperature (T 50 ) used in the shipbuilding industry [9].In the pipeline industry, the 85% shear appearance area transition temperature (T 85 ) is referenced for two reasons.Firstly, shear appearance is considered a better indicator of transition behavior than absorbed energy for metals with different processing histories [9].Secondly, fully ductile behavior can be assumed to be predominant for temperatures above the T 85 [31,32].Note that the Charpy test is a dynamic test and usually results in a ductile to brittle transition temperature that is much higher than the ductile to brittle transition temperature for crack initiation, which is more relevant for steel line pipe failures [31].However, it is an important measure of the ability of a pipeline material to arrest a propagating fracture.The test also lends itself to evaluating product specification conformity during manufacturing.

Methods to Estimate Uncertainty
The T 85 and E US are useful for fitness-for-service and risk assessments, maximum flaw size estimation, maintenance and replacement procedure development, and ground shift risk mitigation [31].The T 85 and E US are usually estimated by manually drawing or plotting a sigmoidal, hyperbolic tangent curve through the data (e.g., Refs.[28,33]).This labor-intensive, qualitative method requires curves to be evaluated one-by-one and does not provide a quantitative estimate of uncertainty.Oldfield developed a least squares curve fitting method, but the method does not provide an estimate for uncertainty, could be difficult to apply, and, for some data sets, may not converge in a satisfactory manner [26].Lucon et al. presented an algorithm to fit the hyperbolic tangent function, but the algorithm requires having multiple tests exhibiting > 95% shear appearance area and multiple tests exhibiting < 5% shear appearance area [34].Orynyak et al. developed an analytical method for calculating transition temperature uncertainty, but the method can be difficult to implement [30].Marini described a Monte Carlo method to estimate probability distributions of the transition temperature and upper shelf energy, but it requires manual adjustment of the probability distributions for the input parameters [29].Recently, Anderson et al. published the concept of a four-parameter (general) algorithm and two-parameter (simplified) algorithm for predicting the T 85 and E US and their uncertainty [35].The current study presents these algorithms in detail, and discusses their advantages, and disadvantages, and adds a one-parameter algorithm to the discussion and comparison.

Objectives and Research Significance
The main aim of the present work was to develop new algorithms that can estimate T 85 and E US for several CVN datasets.It is important that the algorithms be robust (converge for data with varying numbers of test temperatures, different spacings between the test temperatures, and varying amounts of uncertainty).An understanding of uncertainty is critical for risk assessments and fitness for service decisions in the pipeline industry, and there is currently no standard method or algorithm to estimate uncertainty in predictions of shear appearance transition temperature and upper shelf energy.Therefore, the proposed algorithms should provide a consistent method for estimating that uncertainty.

Outline
This article will provide a detailed presentation of the three algorithms that were developed based on the hyperbolic tangent model from API 579 Fitness for Service Annex 9F Material Properties for Crack-like Flaws Section 2.3 Charpy V-notch Transition Curve [32].The proposed algorithms include: (1) a four-parameter algorithm requiring the input of shear appearance area and absorbed energy data for at least four different temperatures, (2) a two-parameter algorithm requiring the same data from only two different temperatures, and (3) a one-parameter algorithm requiring the same data from a minimum of only one temperature.An open-source statistical programing language, R (version 4.1.1 10 August 2021) was used for algorithm development.The algorithms are herein described in detail.
The algorithms are demonstrated using a data set of 12 Charpy test results (shear area and absorbed energy) from one API-5L grade X52 pipe with 4.5 mm thick Charpy bars.A future paper will test and compare the algorithms using a large data set to identify the limitations of the algorithms.The predictions of shear appearance transition temperature and upper shelf energy and uncertainty for each algorithm are compared and discussed in terms of the effects of the algorithm assumptions and constraints.The advantages and disadvantages of each algorithm are discussed along with approaches to planning Charpy test temperatures such that the data will result in reliable predictions of T 85 and E US .

Material
The steel pipe from which the Charpy test samples were machined was an API-5L grade X52 electric resistance welded pipe manufactured in ~1972.The Charpy test bars were machined from base metal (not the weld).The pipe had an outside diameter of 324 mm and a reported nominal wall thickness of 5.56 mm.The steel pipe composition was tested using optical emission spectroscopy and is given in Table 1.

Charpy Bar Machining and Testing
The 12 Charpy test bars were oriented in the longitudinal direction (the length of the Charpy bar aligned with the rolling direction of the original plate) such that the crack grew in the transverse direction (perpendicular to the rolling direction).The sample thickness was 4.5 mm.Two tests at each the of six temperatures were conducted using a standard Charpy hammer that recorded the absorbed energy.The guidance on how to interpret shear appearance area and absorbed energy for Charpy samples from ASTM E23 [25] was followed and the results are shown in Table 2.The assumed amount of error for these data points is discussed in the section entitled "Monte-Carlo simulation for error and uncertainty estimation".

Algorithm Overview
Three algorithms were written to estimate the 85% shear appearance transition temperature ( T 85 ) and the upper shelf absorbed energy (E US ) for Charpy V-notch data sets.The purpose of the algorithms was to fit the hyperbolic tangent function to the data.The fitting was first attempted using the nonlinear least squares fitting function, "nls", available in the R package, "stats".In preparation for the algorithms, the nls function was tested for its applicability to a large database with a wide variety of Charpy V-notch data sets, but the nls function was unable to converge for some data sets.Therefore a novel non-linear least squares fitting function based on the Levenberg-Marquardt method [36,37], "nlsLM" available in the R package, "minpack.lm"[38,39] was used.The complete R-Markdown code for all three algorithms is contained in Appendix A, and the theoretical bases for the code will be described here.

Shear Appearance Area vs. Test Temperature
All three algorithms first fit the hyperbolic tangent function to the shear appearance area vs. temperature data.Shear appearance area, S, forms a sigmoidal, hyperbolic tangent curve when plotted versus test temperature, T test [31]: The constants A S and B S are defined based on API 579 equation 9F-14 and 9F-15 as follows [32]: (5) where S US is the upper shelf for the shear appearance area, and S LS is the lower shelf for the shear appearance area.Thus, the parameter A S defines the vertical center point of the hyperbolic tangent curve and B S defines the vertical half-width.Similarly, D S defines the horizontal center point of the hyperbolic tangent curve and C S defines the horizontal half-width.

Absorbed Energy vs. Test Temperature
All three algorithms then fit the hyperbolic tangent function to the absorbed energy vs. temperature data.Similar to shear appearance area, absorbed energy, E, forms a sigmoidal, hyperbolic tangent curve when plotted versus test temperature, T test [32], as shown by Equation ( 1): where A E are B E were defined by Equations ( 2) and (3) as: and where E US and E LS are the upper and lower shelf, respectively, for the absorbed energy.Again, the parameter A E defines the vertical midpoint of the hyperbolic tangent curve and B E defines the vertical half-height.Similarly, D E defines the horizontal midpoint of the hyperbolic tangent curve and C E defines the horizontal half-width.

Four-Parameter Algorithm
The first algorithm used to find a solution was a four-parameter algorithm wherein none of the hyperbolic function's constants were initially defined.The algorithm begins with the initial values for the constants as follows: A S,i = 50% and B S,i = 50%.D S,i is taken as the test temperature where the shear area is closest to 50%; and C S,i is calculated as half of the interquartile range for the test temperatures.Since the model is fit based on whole numbers for percentages rather than decimal equivalent the shear area, A S,i , is fixed at 50 rather than 0.5.If decimal equivalents to percentage are used to fit the model 0.5 would be used in the equation.
To estimate T 85 , first, the nlsLM function iteratively calculates the values of the four constants, A S , B S , C S , and D S to find the values that minimize the mean square error between the observed and predicted values.The max number of iterations was fixed at 100 for all runs.To identify the shear area transition temperature, T 85 , the shear area data for each individual data set were fit to the hyperbolic tangent curve.The T 85 is calculated by rearranging Equation ( 4) to calculate the inverse hyperbolic tangent as follows: where a shear area, S, value of 85% was input in the formula to evaluate the function per the definition of T 85 .

and D E and E US
The algorithm calculates the initial values for the constants as follows: where E max and E min are the largest and smallest absorbed energy readings in the data set, respectively.The test temperature where the shear area was closest to 50% is taken as D E,i ; and C E,i is calculated as half of the interquartile range for the test temperatures.
The four-parameter algorithm uses the nlsLM function to converge on a solution for the constants, A E , B E , C E , and D E , with no constraints.The constants D E and C E should be numerically close to D S and C S since these constants relate to the center and width of the transition zone in terms of the horizontal axis variable, temperature.The model calculates E US by rearranging Equations ( 2) and (3) as follows:

Two-Parameter Algorithm
The second algorithm was a two-parameter algorithm that sought to improve the chances of convergence by defining A S , B S , C E , and D E based on physical principles.Since the focus of the effort was to apply these automated algorithms to a large database of Charpy V-notch data sets, the two-parameter algorithm was developed with the intent of enabling the fit to converge for more Charpy data sets in case, for example, a few Charpy samples could be extracted and tested from the pipe or test temperatures were poorly chosen and led to narrow ranges of resulting shear appearance area and absorbed energy values.
Assuming the shear appearance area for the upper shelf is 100% and the shear appearance lower shelf is 0%, then the fitting terms, A S , and B S become Thus, the nlsLM function is left only to solve for two parameters, D S and C S as shown: Then, the 85% shear appearance transition temperature is calculated as Next, understanding that C S , represents the halfwidth of the transition region and D S represents the midpoint of the hyperbolic tangent curve, these values should be the same as C E and D E , respectively, for absorbed energy vs. temperature.Therefore, the two-parameter algorithm equates these parameters (i.e., D S = D E and C S = C E ): The nlsLM function is left only to solve for two parameters, A E and B E .Then the upper shelf energy is calculated using Equation (10).
For the two-parameter algorithm the nlsLM function iterates on the four constants, C S , D S , A E , and B E to converge to a solution compared with eight for the four-parameter algorithm.This reduction of unknowns increases the probability of finding a solution and allows a reduction of the minimum number of required data points.The minimum input data requirement for the two-parameter algorithm is the shear appearance area and absorbed energy data from at least two different temperatures (at least one test per temperature).

One-Parameter Algorithm
The third algorithm is a further simplification from API 579 that defined most of the parameters and only left D S and A E for the calculation.The one-parameter algorithm was first published by Rosenfeld [31], and later included in API 579 [32] and gives the relationship between shear appearance area and test temperature as: where T test is the test temperature and C A and C B are known as the sigmoidal parameters from API 579, listed in Table 3. Equation ( 16) is equivalent to: Table 3. Sigmoidal parameters from API 579 (converted from US-customary to SI units).

Sigmoidal Parameters
(where C S is the half-width of the transition region.) The sigmoidal parameters depend on sample thickness and were empirically derived from tests on a variety of pipeline steels.They are sets of temperature offsets that help describe the width of the transition region.For ease of interpolation for non-standard Charpy sample thicknesses we fit these sigmoidal parameters to the following equations where t is the Charpy sample thickness in mm: The empirically determined sigmoidal parameters, C A and C B , relate to the hyperbolic tangent parameters from the simplified model as D S = T 85 − C A and C S = 2C B .Thus, Equation ( 17) is equivalent to: For example, for a full size (10 mm) Charpy V-notch sample, the sigmoidal parameter C B = 18 • C defines the half-width of the transition region, C S , as 36 • C. Therefore: Thus, the only fitting parameter for which to solve for the one-parameter model for shear area is D S , the midpoint of the hyperbolic tangent curve.
Next, the one-parameter algorithm states that each sample's absorbed energy is proportional to 90% of the sample shear area plus a 10% offset: where E test and S test are the sample absorbed energy and shear appearance area measurements, respectively.The underlying assumption therefore is that the lower shelf energy is 10% of the upper shelf energy.Substituting these values into Equations ( 2) and (3), we obtain: Solving the above system of equations leads to B E = 0.818A E , and plugging this relationship into Equation (15) gives: The 10% offset ensures that the predicted lower shelf of the absorbed energy matches the physical reality that absorbed energy is always above zero.The C S is again calculated from the sigmoidal parameter as C S = 2C B , and the D S value is carried over from the shear area curve fit.The upper shelf energy becomes: In summary, the one-parameter algorithm is like the two-parameter algorithm except with the two additional assumptions that (1) the width of the transition zone is known, and (2) that the absorbed energy lower shelf is 10% of the upper shelf.These additional assumptions allow the algorithm to find a solution with only one data point, i.e., values for shear area and absorbed energy for one temperature.

Monte-Carlo Simulation for Error and Uncertainty Estimation
In any regression solution, the assumption is that all the residual error between the model and the observations follows a distribution with a mean of zero and a common variance across the entire range of the independent variable.This is not likely the case as there is a physical limitation of the shear area being between 0 and 100%, and the absorbed energy being greater than zero, therefore the potential absolute error at lower temperatures is going to be much smaller than at higher temperatures.
To account for the uneven variance in shear estimates and absorbed energy, and their effect on the model solution, a Monte Carlo (MC) simulation was employed.In the MC process, the shear area and absorbed energy are treated as normally distributed stochastic variables with a mean equal to the observed value.For the shear area, the standard deviation was assumed to be 5% of the observed value based on ASTM E23.For absorbed energy, the standard deviation was assumed to be a minimum of 0.6 J and increase with increasing absorbed energy measurement, as prescribed by ASTM E23 at a rate of 2.6% of the value (i.e., absorbed energy standard deviation = 0.6 + 0.026 × measured value).
For each temperature, 1000 pairs of the test temperatures and absorbed energy or shear areas are generated.After the data is generated, a solution is created for each set of data, and the 95% sample quantile for each of the coefficients is calculated.The benefit of using the sample quantile is that it makes no assumption about the distribution of the coefficient solutions such as following a normal or t-distribution.It uses the quantiles from the empirical distribution of results, thus preserving any skew to the data.In this study, the median value and 95% quantile (uncertainty) are used for comparison with the parameter estimates and confidence intervals between the three algorithms.

Results
First, for the example shear appearance area vs. temperature data from Table 2, all three algorithms were used to fit the hyperbolic tangent curve and generate the values for the parameters, A S , B S , C S , and D S , and their associated standard error ( ) as given in Table 4.The four-parameter algorithm iteratively adjusted all four parameters to fit a hyperbolic tangent curve to the data.On the contrary, for the two-parameter and oneparameter the A S and B S parameters were set to 50 so that the hyperbolic tangent fitting curve for shear appearance area must stay within the limitations of 0-100%.Furthermore, for the one-parameter algorithm the C S was calculated to be 29.7 based on inserting the sample thickness, 4.5 mm, into Equation (19) to calculate C B and finding C S using the relationship, C S = 2C B .The relative agreement between all the parameters in each column is represented by the similar shapes of the hyperbolic tangent curves in Figures 2-4.Second, for the example absorbed energy vs. temperature data from Table 2, all three algorithms were used to fit the hyperbolic tangent curves and generate the values for the parameters, A E , B E , C E , and D E , and their associated standard error ( ) as given in Table 5.The four-parameter algorithm iteratively adjusted all four parameters to fit a hyperbolic tangent curve to the data.On the contrary, for the two-parameter and one-parameter the C E and D E parameters were assumed to equal C S and D S .For the one-parameter algorithm the B E was set to 0.818A E based on Equation (26).The relative agreement between all the parameters in each column is represented by the similar shapes of the hyperbolic tangent curves in Figures 5-7.
Table 5. Absorbed energy vs. temperature parameters from the hyperbolic tangent fit.

Algorithm
Parameters Firstly, we will compare the three algorithms in terms of their estimation of T 85 .For the four-parameter algorithm, the Charpy V-notch shear area versus temperature data (black points), the hyperbolic tangent fit (orange line), and the 95% quantile for T 85 are shown in Figure 2. The estimate for T 85 (median) is shown as −46 • C, and the 95% quantile is shown as −66 to −26 • C. One issue with the four-parameter algorithm is that the lower shelf (lower left) goes below zero, which is physically impossible.There cannot be a shear appearance area measurement below 0% shear appearance area.
For the two-parameter algorithm the hyperbolic tangent fit is shown in Figure 3.The two-parameter model fixed the lower shelf shear appearance area at 0% to avoid the physical impossibility of a negative shear appearance area and fixed the upper shelf shear appearance area at 100% to avoid the physically impossible shear appearance area > 100%.The T 85 median value is −47 • C, nearly the same as for the four-parameter model.The error range for the two-parameter model, −55 to −39 • C, is much smaller than that for the four-parameter model because there were fewer parameters.
For the one-parameter algorithm, the hyperbolic tangent fit is shown in Figure 4.The lower and upper shelf shear appearance area were fixed at 0% and 100%, respectively, like the two-parameter.Additionally, the one-parameter model assumed the half-width of the transition region (C S ) as two times the sigmoidal parameter B ( C B ), thus C S = 2C B .C B was calculated using Equation (19).One issue is that the calculated C S parameter appears to be larger than what would be expected from the data.Observe from Table 4 that the C S value for the four-parameter and two-parameter models was 18-19 • C, whereas the assumed C S for the one-parameter model is nearly 30 • C. Mostly due to the excessive C S estimate, the median estimate for T 85 , −36 • C, was higher than that for the four-parameter and two-parameter models.The range, −42 to −31 • C was the smallest because only one parameter contributed error and the other three were fixed with an effective uncertainty of zero.But observe that the one-parameter algorithm exhibits the largest differences between the observed and predicted values represented by the curve.

Estimates of Upper Shelf Energy (E US )
Secondly, we will compare the three algorithms in terms of their estimation of E US .For the four-parameter algorithm, the Charpy V-notch absorbed energy versus temperature data (black points), the hyperbolic tangent fit (orange line), and the 95% quantile for E US are shown in Figure 5.The estimate for E US is shown as 46 ± 8 J.For the two-parameter algorithm is shown in Figure 6, showing an estimate for E US of 46 ± 5 J. Finally, the one-parameter algorithm in Figure 7 shows an estimate for E US of 47 ± 5 J.

Function Convergence
Compared to the least squares curve fitting approach of Oldfield [26], the algorithms developed in this work are easy to apply and are more likely to find convergence for more Charpy V-notch datasets since a robust nonlinear least squares fitting function (nlsLM) is being used.Additionally, unlike the algorithm presented by Lucon et al. [34], the algorithms presented in this work do not require tests with <5% and >95% shear appearance area.
The four-parameter algorithm presented in this work allows the nlsLM function to find a solution without defining any of the constants, A S , B S , C S , D S , A E , B E , C E , or D E .One problem with the four-parameter algorithm is that the hyperbolic tangent fit could predict a shear appearance area lower than 0% or higher than 100% (in some cases depending on the scatter in the data), which are both physically impossible.Additionally, even though the nlsLM function is quite robust, the quantity, four hyperbolic tangent fitting parameters for each of two different solutions, is a large number and sometimes the function fails to converge for all of the parameters.
By contrast, the two-parameter algorithm improves the chances of algorithm convergence by incorporating some knowledge of the physical limits of the test data and relationships between the data.The two-parameter algorithm sought to improve the chances of convergence by defining half of the parameters based on physical principles.Specifically, the shear appearance area lower limit was fixed at 0% and upper limit was fixed at 100%, which fixed the A S and B S at 50% and 50%, respectively.Thus, to calculate the T 85 , the nlsLM function iterated only on C S , and D S to converge on a solution.Next, the two-parameter algorithm assumed that the width of the of the shear appearance area vs. temperature curve transition region was the same as the width of the absorbed energy vs. temperature curve transition region by assuming C S = C E .Also, the two-parameter algorithm assumed that the midpoint of the shear appearance area vs. temperature curve transition region was the same as the midpoint of the absorbed energy vs. temperature curve transition region by assuming D S = D E .

Uncertainty Estimation
One advantage of the algorithms developed in this work is a simple, straightforward estimation of uncertainty that relies on a Monte Carlo approach.As mentioned in the Materials and Methods section, the Monte Carlo input parameters were based on the typical test data error published in ASTM E23 for laboratory testing of Charpy V-notch specimens and the 95% quantile was used for the output uncertainty (85% shear appearance transition temperature and upper shelf energy).The authors consider the approach to be simpler to implement in comparison with the analytical approach of Orynyak et al. [30].Additionally, the estimate of uncertainty is directly quantified and does not require manual adjustment, similar to the method given by Marini [29].
Comparing the algorithms developed in this paper, not only do the assumptions built into the two-parameter algorithm improve the chances of convergence, but they could also reduce the uncertainty in the predictions of T 85 and E US .For the data set analyzed in this paper, the two-parameter method reduced the uncertainty range of T 85 by 60%, from 40 Additionally, the two-parameter method reduced the uncertainty range of the E US prediction by 38% from ±8 J to ±5 J.The uncertainty could decrease from the four-parameter model to the two-parameter model because two of the parameters are fixed for the twoparameter model and the effective uncertainty of the fixed parameters is zero in the calculation.
Another benefit of the two-parameter algorithm is that CVN data from only two temperatures are required to obtain T 85 and E US predictions, rather than the four temperatures required for the four-parameter method.This reduction in the number of samples necessary could help conserve material if the amount of test material is limited and could also help reduce test time and costs.
The one-parameter algorithm makes two assumptions that could help reduce test time and costs but could also lead to non-conservative results with inappropriate material or test temperature selection.The one-parameter model assumes the width of the transition region (2C S ), is known, but the width of the transition region is a material sensitive parameter and has been shown to increase with carbon content and higher transition temperatures and carbon content [40].On the other hand, the width of the transition region decreases with lower transition temperatures.The steel in this study exhibited a low (subzero) transition temperature, and that could be part of the reason that the transition region width predicted by the one-parameter algorithm was too wide and did not fit the data well.This wide prediction for the transition region caused the overestimation of the T 85 by about 10 • C. Specifically, the T 85 predicted by the four-parameter algorithm was −46 • C and the T 85 predicted by the one-parameter algorithm was −36 • C. The main benefit of the one-parameter algorithm is that it only requires CVN data from one temperature (one test) to generate an estimate of both T 85 and E US .However, the further from 85% shear area the observations come from, the more likely the T 85 is to lose accuracy, unless the actual width of the transition region is exactly as expected from the original data fit performed by Rosenfeld [31] and API-579 [32].For this one set of Charpy test data, the E US prediction appears to be at least as accurate and precise as that of the four-parameter and two-parameter algorithms.
In comparison with the one-parameter approach of Rosenfeld [31] and API-579 [32], the two-parameter algorithm should provide better fitting of the hyperbolic tangent curve to the data because the two-parameter algorithm has the freedom to adjust the width of the transition region (2C S ).

Advantages and Disadvantages of Each Algorithm
The four-parameter algorithm is best suited for CVN datasets with test data from more than four temperatures that adhere well to the hyperbolic tangent shape.The fourparameter algorithm will fail if there are fewer than four temperatures represented in the data set because the algorithm solves for four unknown constants.The algorithm could also fail if the data do not generally follow the expected sigmoidal shape.A large number of degrees of freedom means that if the data do not generally follow the expected sigmoidal shape for a hyperbolic tangent curve, then the curve fitting algorithm could have difficulty converging.A related type of failure is poor convergence.Evidence for this type of failure could include unreasonably high uncertainty in the shear appearance transition temperature value (i.e., greater than the value for the half-width of the transition range, C S ), an unreasonably high predicted upper shelf energy value (i.e., thousands of J), or high uncertainty in the upper shelf energy value (i.e., greater than the upper shelf energy prediction).
For CVN datasets for which the four-parameter algorithm does not converge or generate unreasonable results, the two-parameter algorithm (with its helpful physical constraints) could be used to identify a more sensible solution.Both the four-parameter algorithm and the two-parameter algorithm could fail if the test temperatures are all the same value, which results in a "singular gradient error".One solution to this problem that was applied in the code was to automatically add an insignificant amount of random error to each recorded data item, including the temperature, shear appearance area, and absorbed energy.
The algorithms will also fail if all the shear appearance area readings are at either the upper shelf energy or lower shelf energy.This failure would be the result of poor selection of test temperatures.One must select at least one temperature within the transition region such that the shear appearance area is not 0% or 100%, but somewhere in between.The one-parameter algorithm must be used if the CVN dataset includes data from only one temperature.

Recommendations for Selection of Test Temperatures for Unknown Steel
For the four-parameter model, the best results will be obtained if the samples' shear appearance areas are roughly spaced evenly between 0% and 100%, with at least one or two additional tests at the high temperature end of the range exhibiting a shear appearance area close to 100%.If testing was conducted at a minimum of four temperatures, for example, the target shear appearance areas would be 5%, 40%, 70%, and 100%.
Similarly, for the two-parameter model, the best results will be obtained if the samples' shear appearance areas are evenly spaced between 0% and 100%, with at least one or two additional tests at the high-temperature end of the range exhibiting a shear appearance area close to 100%.If testing was conducted at the minimum of two temperatures, for example, an optimal data set would include shear appearance areas of 50% and 100%.Note that since the important outputs, T 85 and E US , are on the right side of the hyperbolic tangent curve, it is more important to have data for high values of shear area (50% or greater) than low values.
For the one-parameter algorithm, it is best to have data near 85% shear appearance area.This minimizes any possible error that could be introduced due to the calculation of the width of the transition region.
Finally, it is recommended to choose Charpy test temperatures one at a time, rather than prescribe all the test temperatures at once.If there is no other information known about the steel pipe, 0 • C would be a good temperature to select for the first test.After recording the shear appearance area for the 0 • C sample, if the shear appearance area was <70%, then the next test temperature could be 20 to 60 • C higher than the first test temperature.On the other hand, if the shear appearance area was >70%, then the next temperature could be 20 to 60 • C lower than the first test temperature.From those starting points, test temperatures could be chosen to generate data according to the recommendations for the desired algorithm as discussed above.

Figure 1 .
Figure 1.Example plot of Charpy sample absorbed energy vs. temperature data demonstrating the relationships between the hyperbolic tangent function (red line) and the parameters,  ,  ,  , and  (dashed construction lines).

Figure 1 .
Figure 1.Example plot of Charpy sample absorbed energy vs. temperature data demonstrating the relationships between the hyperbolic tangent function (red line) and the parameters, A E , B E , C E , and D E (dashed construction lines).

2. 4 . 1 .
Calculation of Parameters A S , B S , C S , and D S and T 85 T 85 − D S (where D S is the center of the transition region.)

Figure 2 .
Figure 2. Four-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted  (blue line and marker, respectively).

Figure 3 .
Figure 3. Two-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted  (blue line and marker, respectively).

Figure 4 .
Figure 4. One-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted  (blue line and marker, respectively).

Figure 2 .
Figure 2. Four-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted T 85 (blue line and marker, respectively).

Figure 3 .
Figure 3. Two-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted T 85 (blue line and marker, respectively).

Figure 2 .
Figure 2. Four-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted  (blue line and marker, respectively).

Figure 3 .
Figure 3. Two-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted  (blue line and marker, respectively).

Figure 4 .
Figure 4. One-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted  (blue line and marker, respectively).

Figure 4 .
Figure 4. One-parameter algorithm hyperbolic tangent fit (red curve) for shear appearance area vs. temperature data (black markers) displaying the range and median for predicted T 85 (blue line and marker, respectively).

Figure 5 .
Figure 5. Four-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 6 .
Figure 6.Two-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 7 .
Figure 7. One-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 5 .
Figure 5. Four-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 5 .
Figure 5. Four-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 6 .
Figure 6.Two-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 7 .
Figure 7. One-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 6 .
Figure 6.Two-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 5 .
Figure 5. Four-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 6 .
Figure 6.Two-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 7 .
Figure 7. One-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Figure 7 .
Figure 7. One-parameter algorithm hyperbolic tangent fit (red curve) for Charpy sample absorbed energy vs. temperature data (black markers) displaying the predicted upper shelf energy and range (blue line).

Table 2 .
Input data set from a series of Charpy V-notch tests at different temperatures.

Table 4 .
Shear area vs. temperature parameters from the hyperbolic tangent fit.