Abstract
We introduce PeriFast/Corrosion, a MATLAB code that uses the fast convolution-based method (FCBM) for peridynamic (PD) models of corrosion damage. The FCBM uses the convolutional structure of PD equations and employs the Fast Fourier transform (FFT) to achieve a computational complexity of \(O(NlogN)\). PeriFast/Corrosion has significantly lower memory allocation needs, \(O(N)\), compared with, for example, the meshfree method with direct summation for PD models that requires \(O({N}^{2})\). The PD corrosion model and the fast convolution-based method are briefly reviewed, and the detailed structure of the code is presented. The code efficiently solves 3D uniform corrosion (example for copper) and pitting corrosion (example for stainless steel) problems with multiple growing and merging pits, set in a complicated shape sample. Discussions on possible immediate extensions of the code to other corrosion damage problems are provided. PeriFast/Corrosion is a branch of PeriFast codes and is freely available on GitHub [1].
Similar content being viewed by others
Data Availability
The source code can be downloaded from https://github.com/PeriFast/Code by clicking the green “Code” button and selecting “Download ZIP”. This will download all of the branches of the PeriFast code, at this time PeriFast/Corrosion and PeriFast/Dynamics, which solves dynamic fracture problems.
References
PeriFast/Corrosion (2022) Retrieved from https://github.com/PeriFast/Code
Pistorius PC, Burstein GT (1992) Metastable pitting corrosion of stainless steel and the transition to stability. Philosophical transactions of the royal society of London. Series A: Phys Eng Sci 341(1662):531–559. https://doi.org/10.1098/rsta.1992.0114
Jafarzadeh S, Chen Z, Bobaru F (2019) Computational modeling of pitting corrosion. Corros Rev 37(5):419–439. https://doi.org/10.1515/corrrev-2019-0049
Chen Z, Bobaru F (2015) Peridynamic modeling of pitting corrosion damage. J Mech Phys Solids 78:352–381. https://doi.org/10.1016/j.jmps.2015.02.015
Jafarzadeh S, Chen Z, Zhao J, Bobaru F (2019) Pitting, lacy covers, and pit merger in stainless steel: 3D peridynamic models. Corros Sci 150:17–31. https://doi.org/10.1016/j.corsci.2019.01.006
Jafarzadeh S, Chen Z, Li S, Bobaru F (2019) A peridynamic mechano-chemical damage model for stress-assisted corrosion. Electrochimica Acta, 323:134795. https://doi.org/10.1016/j.electacta.2019.134795
Jafarzadeh S, Zhao J, Shakouri M, Bobaru F (2022) A peridynamic model for crevice corrosion damage. Electrochimica Acta, 401:139512. https://doi.org/10.1016/j.electacta.2021.139512
Zhao J, Jafarzadeh S, Rahmani M, Chen Z, Kim YR, Bobaru F (2021) A peridynamic model for galvanic corrosion and fracture. Electrochimica Acta 391:138968. https://doi.org/10.1016/j.electacta.2021.138968
Jafarzadeh S, Chen Z, Bobaru F (2018) Peridynamic modeling of intergranular corrosion damage. J Electrochem Soc 165(7):C362–C374. https://doi.org/10.1149/2.0821807jes
Chen Z, Jafarzadeh S, Zhao J, Bobaru F (2021) A coupled mechano-chemical peridynamic model for pit-to-crack transition in stress-corrosion cracking. J Mech Phys Solids 146:104203. https://doi.org/10.1016/j.jmps.2020.104203
Silling SA, Askari E (2005) A meshfree method based on the peridynamic model of solid mechanics. Comput Struct 83(17–18):1526–1535. https://doi.org/10.1016/j.compstruc.2004.11.026
Wang L, Bobaru F (2021) Connections between the meshfree peridynamics discretization and graph Laplacian for transient diffusion problems. J Peridynamics Nonlocal Model 3(4):307–326. https://doi.org/10.1007/s42102-021-00053-2
Seleson P, Littlewood DJ (2016) Convergence studies in meshfree peridynamic simulations. Comput Math Appl 71(11):2432–2448. https://doi.org/10.1016/j.camwa.2015.12.021
Mehrmashhadi J, Wang L, Bobaru F (2019) Uncovering the dynamic fracture behavior of PMMA with peridynamics: the importance of softening at the crack tip. Eng Fracture Mech 219:106617. https://doi.org/10.1016/j.engfracmech.2019.106617
Bobaru F, Zhang G (2015) Why do cracks branch? A peridynamic investigation of dynamic brittle fracture. Int J Fract 196(1–2):59–98. https://doi.org/10.1007/s10704-015-0056-8
Macek RW, Silling SA (2007) Peridynamics via finite element analysis. Finite Elem Anal Des 43(15):1169–1178. https://doi.org/10.1016/j.finel.2007.08.012
Liu W, Hong J-W (2012) A coupling approach of discretized peridynamics with finite element method. Comput Methods Appl Mech Eng 245:163–175. https://doi.org/10.1016/j.cma.2012.07.006
Jafarzadeh S, Larios A, Bobaru F (2020) Efficient solutions for nonlocal diffusion problems via boundary-adapted spectral methods. J Peridynamics Nonlocal Model 2:85–110. https://doi.org/10.1007/s42102-019-00026-6
Jafarzadeh S, Wang L, Larios A, Bobaru F (2021) A fast convolution-based method for peridynamic transient diffusion in arbitrary domains. Comput Methods Appl Mech Eng 375:113633. https://doi.org/10.1016/j.cma.2020.113633
Jafarzadeh S, Mousavi F, Larios A, Bobaru F (2022) A general and fast convolution-based method for peridynamics: applications to elasticity and brittle fracture. Comput Methods Appl Mech Eng 392:114666. https://doi.org/10.1016/j.cma.2022.114666
Wang L, Jafarzadeh S, Larios A, Bobaru F (2023) A fast convolution-based method for peridynamics model of pitting corrosion. Submitted
Lopez L, Pellegrino SF (2022) A fast-convolution based space–time Chebyshev spectral method for peridynamic models. Adv Continuous Discrete Models 2022(1):70. https://doi.org/10.1186/s13662-022-03738-0
Lopez L, Pellegrino SF (2022) A space-time discretization of a nonlinear peridynamic model on a 2D lamina. Comput Math Appl 116:161–175. https://doi.org/10.1016/j.camwa.2021.07.004
Oterkus S, Madenci E, Agwai A (2014) Peridynamic thermal diffusion. J Comput Phys 265:71–96. https://doi.org/10.1016/j.jcp.2014.01.027
Zhao J, Jafarzadeh S, Chen Z, Bobaru F (2020) An algorithm for imposing local boundary conditions in peridynamic models on arbitrary domains. https://doi.org/10.31224/osf.io/7z8qr
Le QV, Bobaru F (2018) Surface corrections for peridynamic models in elasticity and fracture. Comput Mech 61(4):499–518. https://doi.org/10.1007/s00466-017-1469-1
Isaacs HS, Cho J, Rivers ML, Sutton SR (1995) In situ X-Ray microprobe study of salt layers during anodic dissolution of stainless steel in chloride solution. J Electrochem Soc 142(4):1111. https://doi.org/10.1149/1.2044138
Jafarzadeh S, Mousavi F, Wang L, Bobaru F (2023) PeriFast/Dynamics: a MATLAB code for explicit fast convolution-based peridynamic analysis of deformation and fracture. J Peridynamics Nonlocal Model. https://doi.org/10.1007/s42102-023-00097-6
Vallabhaneni R, Stannard TJ, Kaira CS, Chawla N (2018) 3D X-ray microtomography and mechanical characterization of corrosion-induced damage in 7075 aluminium (Al) alloys. Corros Sci 139(2017):97–113. https://doi.org/10.1016/j.corsci.2018.04.046
Chen Z, Bobaru F (2015) Selecting the kernel in a peridynamic formulation: a study for transient heat diffusion. Comput Phys Commun 197:51–60. https://doi.org/10.1016/j.cpc.2015.08.006
Ribeiro ACF, Esteso MA, Lobo VMM, Valente AJM, Simoes SMN, Sobral AJFN, Burrows HD (2005) Diffusion coefficients of copper chloride in aqueous solutions at 298.15 K and 310.15 K. J Chem Eng Data 50(6):1986–1990. https://doi.org/10.1021/je050220y
Almuaili FA (2017) Characterisation of 3D pitting corrosion kinetics of stainless steel in chloride containing environments. Ph.D. dissertation, The University of Manchester
Jafarzadeh S, Chen Z, Bobaru F (2018) Peridynamic modeling of repassivation in pitting corrosion of stainless steel. Corrosion 74(4):393–414
Mousavi F, Jafarzadeh S, Bobaru F (2021) An ordinary state-based peridynamic elastoplastic 2D model consistent with J2 plasticity. Int J Solids Struct 229:111146. https://doi.org/10.1016/j.ijsolstr.2021.111146
Mousavi F, Jafarzadeh S, Bobaru F (2023) A fast convolution-based method for peridynamic models in plasticity and ductile fracture. (submitted)
Scheiner S, Hellmich C (2009) Finite Volume model for diffusion- and activation-controlled pitting corrosion of stainless steel. Comput Methods Appl Mech Eng 198(37–40):2898–2910. https://doi.org/10.1016/j.cma.2009.04.012
Scheiner S, Hellmich C (2007) Stable pitting corrosion of stainless steel as diffusion-controlled dissolution process with a sharp moving electrode boundary. Corros Sci 49(2):319–346. https://doi.org/10.1016/j.corsci.2006.03.019
Ernst P, Newman RC (2002) Pit growth studies in stainless steel foils. I. Introduction and pit growth kinetics. Corros Sci 44(5):927–941. https://doi.org/10.1016/S0010-938X(01)00133-0
Funding
This work has been supported by NSF CDS&E-CMMI grant No. 1953346 and by a Nebraska System Science award from the Nebraska Research Initiative. This work was completed utilizing the Holland Computing Center of the University of Nebraska, which receives support from the Nebraska Research Initiative.
Author information
Authors and Affiliations
Contributions
L. W., S. J., and F. M. implemented and tested the computer code. All authors wrote the manuscript draft. F. B. acquired funding, designed and coordinated research plan, supervised the code implementation, and edited the manuscript and computer code.
Corresponding author
Ethics declarations
Ethics Approval
Not applicable.
Competing Interests
The authors declare no competing interests.
Additional information
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Electronic supplementary material
Below is the link to the electronic supplementary material.
Supplementary file1 (MP4 246 KB)
Supplementary file2 (MP4 314 KB)
Appendix: The Influence of the Salt Layer
Appendix: The Influence of the Salt Layer
In this part, using a 2D version of the FCBM pitting corrosion code [21], we investigate the influence of the salt layer by running the same pitting corrosion example with and without considering the salt layer effect. The specimen’s configuration and boundary condition are shown in Fig. 11.
The size of the 2D computational sample is \(1 \mathrm{mm}\times 1 \mathrm{mm}\). The material is stainless steel 304SS. The average charge number (\(n=2.19\)) [36] of 304SS is calculated from the charge number of Fe, Ni, Cr, and their mole fractions. The specimen is submerged in 1 M NaCl solution. The material properties are given [37]: \({C}_{\mathrm{Solid}}=143000 \mathrm{mol}/{\mathrm{m}}^{3}\) and\({C}_{\mathrm{sat}}=5100 \mathrm{mol}/{\mathrm{m}}^{3}\). The initial current density in the experiment [38] is measured to be \(3.8 \mathrm{A}\cdot {\mathrm{cm}}^{-2}\).
The simulation results with and without the salt layer can be found in Fig. 12. We can see that the salt layer at the pit bottom influences the pit’s shape and size. With the salt layer effect, the corrosion near the pit bottom is temporarily stopped, leading to the shallower pit shape. In cases when the current density is small and ions can be timely diffused out of the pit, the salt layer may not play an important role and can be ignored. A more detailed discussion of the salt layer effect can be found in [21].
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Wang, L., Jafarzadeh, S., Mousavi, F. et al. PeriFast/Corrosion: A 3D Pseudospectral Peridynamic MATLAB Code for Corrosion. J Peridyn Nonlocal Model 6, 62–86 (2024). https://doi.org/10.1007/s42102-023-00098-5
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s42102-023-00098-5