원시데이터 수집 시스템
선정목록으로

A computational framework to establish data-driven constitutive models for time- or path-dependent heterogeneous solids

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (9) 타이어코드(10) 아라미드(21) 에폭시수지

기본 정보

저자
  1. Weijian Ge — Department of Aeronautical Engineering, Imperial College London, Imperial College Road, London, SW7 2AZ, UK
  2. Vito L. Tagarielli — Department of Aeronautical Engineering, Imperial College London, Imperial College Road, London, SW7 2AZ, UK
DOI
10.1038/s41598-021-94957-0
저널
Scientific Reports
발행년도
2021
발행기관
Nature Portfolio
피인용수
20
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-021-94957-0
토픽
Composite Material Mechanics
OpenAlex ID
W3189319889

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(9) 타이어코드, (10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.80
근거 용어
n-phase composites, constitutive models, neural networks, Finite Element (FE) simulations, computational homogenisation
판단 근거
이 논문은 불균질한 복합소재(n-phase composites)의 기계적 거동을 예측하기 위한 데이터 기반 구성 모델(constitutive models) 및 신경망(NN) 프레임워크를 다룹니다. 이는 코오롱인더스트리의 핵심 사업인 컴파운드(23) 및 아라미드(10), 타이어코드(9) 등 고분자 복합소재의 물성 설계 및 해석 방법론에 간접적으로 적용 가능합니다.
R&D 활용 포인트
고분자/섬유 복합소재의 미세구조 변화에 따른 거동을 시뮬레이션하거나, 실험 데이터를 활용하여 신규 컴파운드 및 강화 소재의 물성을 빠르게 예측하는 디지털 트윈/AI 모델 개발에 활용할 수 있습니다.
평가 입력
본문 71,730자 중 30,032자 발췌

초록

Abstract We propose and implement a computational procedure to establish data-driven surrogate constitutive models for heterogeneous materials. We study the multiaxial response of non-linear n-phase composites via Finite Element (FE) simulations and computational homogenisation. Pseudo-random, multiaxial, non-proportional histories of macroscopic strain are imposed on volume elements of n-phase composites, subject to periodic boundary conditions, and the corresponding histories of macroscopic stresses and plastically dissipated energy are recorded. The recorded data is used to train surrogate, phenomenological constitutive models based on neural networks (NNs), and the accuracy of these models is assessed and discussed. We analyse heterogeneous composites with hyperelastic, viscoelastic or elastic–plastic local constitutive descriptions. In each of these three cases, we propose and assess optimal choices of inputs and outputs for the surrogate models and strategies for their training. We find that the proposed computational procedure can capture accurately and effectively the response of non-linear n-phase composites subject to arbitrary mechanical loading.

본문 71,730자

본문 펼치기
## OPEN # A computational framework to establish data‑driven constitutive models for time‑ or path‑dependent heterogeneous solids Weijian Ge & Vito L. Tagarielli <sup>*</sup> We propose and implement a computational procedure to establish data-driven surrogate constitutive models for heterogeneous materials. We study the multiaxial response of non-linear n-phase composites via Finite Element (FE) simulations and computational homogenisation. Pseudo-random, multiaxial, non-proportional histories of macroscopic strain are imposed on volume elements of n-phase composites, subject to periodic boundary conditions, and the corresponding histories of macroscopic stresses and plastically dissipated energy are recorded. The recorded data is used to train surrogate, phenomenological constitutive models based on neural networks (NNs), and the accuracy of these models is assessed and discussed. We analyse heterogeneous composites with hyperelastic, viscoelastic or elastic–plastic local constitutive descriptions. In each of these three cases, we propose and assess optimal choices of inputs and outputs for the surrogate models and strategies for their training. We find that the proposed computational procedure can capture accurately and effectively the response of non-linear n-phase composites subject to arbitrary mechanical loading. All solids display a heterogeneous microstructure and their mechanical response depends on complex mechanisms spanning multiple length- and time-scales. For this reason, recent research has focused on multi-scale computational modelling of different types of ­materials <sup>1,2</sup> . This is typically conducted via computational homogenization, commonly of the 1st ­order <sup>3</sup>, across multiple ­scales <sup>1,3,4</sup> . Such multiscale calculations often have prohibitive computational cost, such that several researchers have been working at reduced-order modelling (ROM) and surrogate modelling, which is the subject of the current investigation. In ROM, the original problem is mapped to a lower-dimensional problem space, saving computational cost but reducing the fidelity of the physical description of the material. This mapping occurs by a data-driven method and can be applied to the system equations (as in the R3M ­method <sup>5</sup> ), to the spatial fields of quantities that are being ­sought <sup>2,6–9</sup>, or to the information describing the ­microstructure <sup>10</sup> . Reduced-order models typically have neglected microstructure evolution, which limits their predictive capabilities in some nonlinear problems. In surrogate modelling the predictions of detailed and computationally demanding physically-based models are used to perform regressions, using for example Neural Networks (NNs) <sup>11</sup> and Gaussian ­processes <sup>12</sup>, also in the case of history-dependent ­responses <sup>13</sup> . Some of these models capture low-dimensional representations of the field of variables of interest through data ­compression <sup>14</sup> ; others use physical governing laws to achieve higher accuracy and to accelerate the training ­process <sup>15</sup> . Some authors have suggested developing ‘data-driven mechanics’ <sup>16,17</sup> informed exclusively by detailed measurements. In the current paper, we focus on using NNs to develop surrogate constitutive models for heterogeneous solids. This is of interest for two reasons: first, because it enables computational savings of multiple order of magnitudes when performing multiscale simulations; secondly, it poses the theoretical basis for the development of surrogate models obtained directly from measured data. The existing literature has not explored quantitatively how the heterogeneity of the solid under investigation affects the predictions of a surrogate model, and for this reason, we focus on the response of a general n-phase composite with tuneable heterogeneity. While many of the existing approaches rely on assuming, to some extent, the mathematical structure of the surrogate model Department of Aeronautical Engineering, Imperial College London, Imperial College Road, London SW7 2AZ, UK. *email: v.tagarielli@imperial.ac.uk Figure 1. A realisation of the n-phase composite investigated in this study. (for example the existence of a yield surface, or the existence of an associated flow rule), we aim at constructing surrogate models that are purely data-driven. Most studies have focused on the response of solids to monotonic proportional loading, while here we aim at achieving generality of the loading, such as to obtain surrogate models that can be employed effectively in cases where the loading is far from proportional, for example in impact applications. We study separately the cases of nonlinear elastic, time-dependent and history-dependent local constitutive response (hyperelastic, viscoelastic or elastoplastic, respectively), and we identify optimal modelling strategies, including the optimal features of the NNs, for each case, and accompanying procedures for the training of the models. The computational framework is presented in “Computational framework” while results are shown and discussed in “Results and discussion”. Computational framework In this study we analyse volume elements (VEs) of n-phase composites. We simulate their mechanical response using FE calculations and computational homogenisation, and we employ the results of such calculations to assemble a training dataset used to teach the _macroscopic_ material behaviour to neural networks. The choice of using neural networks over other machine learning techniques is driven by the ready availability of computational tools, but many of the conclusions of the present study can be extended to other machine learning methods. In this section, we describe the steps of the process. Definition of the VEs. In this study we simulate the response of model heterogeneous materials; these consist of a cubic domain of unit volume discretised into 10 × 10 × 10 cubic cells, each possessing different mechanical properties, as sketched in Fig. 1. Each of such cells is meshed by one single eight-noded finite element of type C3D8 in ­Abaqus <sup>18</sup> . The choice of the density of the discretisation was made to ensure that the VEs displayed a reasonably complex and approximately isotropic macroscopic mechanical response while keeping the computational cost low. This model material is not intended to quantitatively represent any real solid, but rather to represent n n-phase composite of easily tuneable heterogeneity; the spatial distribution P(xi) of a mechanical property P of the composite under investigation is assumed to follow P(xi) = Pmin + ri(Pmax - Pmin) (1) where ri ∈ [0, 1] represents random numbers of uniform probability density generated at the position of each cell, xi, i = 1, 2, . . . 1000 . We quantify the randomness of each mechanical property P by its relative variance, defined as κ = 2(Pmax - Pmin)/(Pmax + Pmin) ∈ [0, 2] (2) where κ = 0 corresponds to no spatial variation of _<u>P</u>_ and κ <u>=</u> 2 corresponds to the maximum variation, obtained in the case Pmin = 0 (in which it is also Pmax = 2P, where P is the average value of _P_ ). The choice of an uncorrelated, uniform probability density for the mechanical properties of each phase of the composite was based on the ease of implementation. In the course of this study, we will analyse the performance of only one realization of the VEs for each of the three types of constitutive models analysed. <u>Viscoelastic with 1 term of Prony series</u> <u>Instantaneous elastic constants</u> E0 = 3Gpa ν0 = 0.45 <u>Prony coefficients</u> µ1 = 0.5, k1 = 0.5, t1 = 1 s <u>Viscoelastic with 3 terms of Prony series</u> <u>Instantaneous elastic constants</u> E0 = 3Gpa ν0 = 0.45 Prony coefficients µ1 = 0.177, k1 = 0.177, t1 = 7.71 10 <sup>−3</sup> s µ2 = 0.074, k2 = 0.074, t2 = 0.21 s µ3 = 0.017, k3 = 0.017, t3 = 3.88 s Table 1. Relevant properties of the viscoelastic composites. Finite element simulations. FE simulations were conducted in Abaqus ­Standard <sup>18</sup> and were fully automated via Python scripts. Periodic boundary conditions were prescribed on the three pairs of opposite faces of the VEs, as prescribed ­in <sup>19</sup> . The macroscopic true strains on the VE were controlled by prescribing appropriate displacements on a set of auxiliary nodes; such displacements controlled the distance between opposite faces of the cuboidal domains and also allowed to calculate the current area of all the faces of the VE. The corresponding reaction forces at these auxiliary nodes, representing the components of the total forces acting on the faces of the VE, were recorded during the simulations and used, together with the current area of the faces, to calculate the histories of macroscopic true stress components, as described in detail ­in <sup>3,19</sup> . In this study, we analyse VEs that are initially approximately isotropic and are subject to small strains, such that strain-induced anisotropy is negligible. Driven by the need to keep the computational cost low, we assume that the material response can be evaluated in principal strain space, which coincides with principal stress space for our isotropic material. In the FE simulations, we prescribe time histories of only the normal macroscopic strains εxx, εyy, εzz, while the macroscopic shear strains are set to zero, εxy, εxz, εyz = 0 ( _xyz_ is a reference system aligned with the edges of the cubic VE). In other words, the applied strains εxx, εyy, εzz are interpreted as principal strains εI, εII, εIII . We check that the macroscopic shear tractions are negligibly small in the simulations, τxy, τxz, τyz ≈ 0, confirming that the global reference system _xyz_ is a principal system also for the macroscopic stress tensor. We analyse separately three local constitutive behaviours, using models readily available in Abaqus. We summarise these models briefly here. _Neohookean hyperelastic._ A hyperelastic composite was studied as a reference case. For this conservative material, a one-to-one correspondence exists between stress and strain tensors, and we expect a NN to comfortably capture such correspondence. Due to the small deformation imposed, the response of such hyperelastic model practically coincides with that of a linear elastic model of equal initial elastic constants. Therefore, the effects of elastic nonlinearity in the structural response are not examined in this study. We model an array of isotropic, hyperelastic cubic cells, each having an initial Poisson’s ratio of 0.45 and an initial Young’s modulus randomly assigned as in Eq. (1) and having a spatial average of 3 GPa. A time-independent neohookean local strain energy density is assumed. _Linear viscoelastic._ We also consider a model where the local response is taken as linear isotropic viscoelastic. Such response is defined in Abaqus in terms of instantaneous Young’s modulus and Poisson’s ratio and of the time-decay of the shear and bulk moduli, expressed by the Prony ­series <sup>20</sup> . In this study the Poisson’s ratio is taken as constant in time and space and equal to 0.45, while the instantaneous Young’s modulus is randomly assigned according to Eq. (1) and has an average value of 3 GPa. The time decay law is taken as spatially uniform across the VE and two different laws are considered: one consisting of a single-term Prony series, and one consisting of three terms of such series, each associated with time decay constants of different orders of magnitude. A summary of the relevant properties for the viscoelastic composites is provided in Table 1. _Elastic–plastic._ Elastic–plastic model composites were assembled by assigning to each cell a linear elastic response and J2 incompressible, rate-independent plasticity with isotropic hardening. We assume that the material has substantial strain hardening, with a constant true hardening modulus of 1 GPa, such that the local material response is defined by two elastic constants, a yield stress and this hardening modulus, which is assumed to be uniform. The Poisson’s ratio is also assumed to be spatially uniform and equal to 0.45, while spatial variations of Young’s modulus and the yield stress are considered separately and prescribed according to Eq. (1), using average values of 3 GPa for the elastic modulus and 50 MPa for the yield stress. The FE analyses were conducted via Abaqus Standard using adaptive time stepping. A ‘general step’ was used for the hyperelastic and elastic–plastic models, while a ‘visco step’ was used for the viscoelastic model. In all simulations, we accounted for geometric non-linearity. Generation of the training datasets. To generate the training datasets we consider, for each type of constitutive model, a single realisation of the VE described in “Definition of the VEs” and “Finite element simulations”. Note that since we analyse only one realisation of the VE, this does not need to be sufficiently large to be “representative”; the only requirement is that such domain is sufficiently large to be approximately isotropic, since we will work in principal stress/strain space. A preliminary RVE size convergence analysis showed that the VEs analysed had an intrinsic scatter of approximately 5%, and that a further increase in the number of statisti Figure 2. Illustration of the random strain histories imposed on the VEs to generate the training data. (a) Three examples of pseudo-random loading paths. (b) Details of the strain histories associated to Path 1. cal cells would not affect the average response considerably (while it would reduce such intrinsic scatter). With regards to the FE discretisation, the response of the domain is mildly sensitive to the mesh; however, considering domains with a finer FE mesh merely results in a marginally different (weaker) macroscopic material response. Displacement boundary conditions are applied to the auxiliary nodes of the VE to prescribe appropriate histories of strain and strain rate. The VEs are taken for pseudo-random walks in true principal strain space �each random walk is terminated upon meeting the condition εxx, εyy, εzz�. The random walks comprise a number of consecuti ~~�~~ <u>ve steps of randoεxx</u> <sup>2</sup> + εyy <sup>2</sup> + εzz <sup>2</sup> ≥m amplitude and duration; εmax = 0.05, to limit the �each random walk is terminated upon meeting the condition εxx, εyy, εzz�. The random walks comprise a number of consecuti ~~�~~ <u>ve steps of randoεxx</u> <sup>2</sup> + εyy <sup>2</sup> + εzz <sup>2</sup> ≥m amplitude and duration; εmax = 0.05, to limit the �each random walk is terminated upon meeting the condition � ~~�~~ εxx <sup>2</sup> + εyy <sup>2</sup> + εzz <sup>2</sup> ≥ εmax = 0.05, to limit the magnitude of the applied strains, as illustrated in Fig. 2. Each step in the random walks corresponds to relative strain amplitudes (final strain minus initial strain) taken, in the case of the hyperelastic and elastic–plastic models, as �εi = sgn(rβi - θ)[�εmin + rαi - (�εmax - �εmin)], i = x, y, z (3) −1 x ≤ 0 sgn(x) = - 1 x - 0 (4) where �εmin = 0.01 and �εmax = 0.015 are the minimum and maximum amplitude of the strain step in each Cartesian direction, rαi and rβi are uniform random variables between 0 and 1, and θ = 0.5 defines the probability that the amplitude of each strain step is negative (equal probability of positive and negative steps is assumed in this study). For rate-independent materials (hyperelastic and elastic–plastic constitutive models), each step in the random walks has a time duration �T = 1. For the rate-dependent viscoelastic material, a different approach is taken: for each step of the pseudo-random walks, three strain rates are randomly generated for each of the Cartesian directions, such that log ˙ε = ηmin + rγ - (ηmax - ηmin); ηmin = log (ε˙min); ηmax = log (ε˙max) (5) where rγ is a uniform random number between 0 and 1 and ε˙min, ε˙max are the smallest and largest possible strain rates. This ensures that the logarithms of such strain rates are uniformly distributed. Then, the step size �ε is generated according to Eq. (3) and the time step duration is determined as �T = �ε/ max ε˙x, ˙εy, ˙εz, where generated according to Eq. (3) and the time step duration is determined as �T = �ε/ max ε˙x, ˙εy, ˙εz, where ε˙x, ˙εy, ˙εz are the three randomly generated strain rates for each current step. - The FE simulations are then conducted for as many random walks as needed (100 in this study); their solutions are incremental, due to the non-linearity of the problems, and the solution time increments �t are determined adaptively by the solver. We post-process the results to extract the histories of macroscopic true strain and true stress as well as of the plastically dissipated energy Wpl . We then create a database in which each row represents a �ε˙x, ˙εy, ˙εz general increment of the solution, and the columns report: the time increment �t ; the initial strains ε <sup>i</sup> yy <sup>i</sup> <sup>, εi</sup> zz <sup>i</sup> <sup>;</sup> xx <sup>i</sup> <sup>,</sup> <sup>εi</sup> zz <sup>i</sup> <sup>; stress</sup> the initial stresses σ <sup>i</sup> yy <sup>i</sup> <sup>, �σzz</sup> <sup>= σ</sup> zz <sup>f</sup> xx <sup>i</sup> <sup>,</sup> <sup>σ i</sup> zz <sup>i</sup> <sup>; strain increments �εxx</sup> <sup>= ε</sup> xx <sup>f</sup> xx <sup>i</sup> <sup>, �σyy</sup> <sup>= σ f</sup> zz <sup>f</sup> <sup>−</sup> <sup>εi</sup> yy <sup>f</sup> <sup>−</sup> <sup>εi</sup> yy <sup>i</sup> <sup>, �εzz</sup> <sup>= εf</sup> increments �σxx = σ <sup>f</sup> yy <sup>i</sup> <sup>, σ i</sup> xx <sup>i</sup> <sup>, �εyy</sup> <sup>= εf</sup> zz <sup>i</sup> <sup>; increment in plastically dissipated energy,</sup> xx <sup>f</sup> <sup>−</sup> <sup>ε</sup> xx <sup>i</sup> zz <sup>f</sup> <sup>−</sup> <sup>σ i</sup> xx <sup>f</sup> <sup>−</sup> <sup>σ</sup> xx <sup>i</sup> yy <sup>f</sup> <sup>−</sup> <sup>σ i</sup> �Wpl = Wpl <sup>f</sup> <sup>−</sup> <sup>W</sup> pl <sup>i</sup> pl <sup>i</sup> <sup>, where the superscripts</sup> <sup>_i_</sup> <sup>and</sup> <sup>_f_</sup> <sup>denote values at the beginning (initial) and the end (final) of</sup> each increment, respectively. Additional quantities, such as strain rates, macroscopic elastic and plastic strains, equivalent plastic strain are calculated from this data as will be detailed below. All quantities with dimensions of stress are divided by the average Young’s modulus (3 GPa), while the plastically dissipated energy is divided by the average Young’s modulus and by the volume of the VE (equal to 1 in all cases), to obtain a dataset with non-dimensional entries. Each row of such a database represents a data point used to train the surrogate models. The method proposed to generate the training dataset was the result of a preliminary study in which we assessed the distribution of the generated data over the input space of the surrogate models; it was found that the choices in Eqs. (3)–(5) correspond to an adequate spread of such data, as shown in detail in Appendix A (Supplementary Material). By adjusting the parameters εmax,θ, �εmax, �εmin, ηmax, ηmin, the distribution of the training data over the input space can be modified to optimise it for different physical situations. A study of the sensitivity of the results to the above parameters is not pursued here, but rather we employ the parameters described above for all types of models investigated in this study. A workstation with 2 processors (Intel Xeon e5-2650 v4, 2.20 GHz) and 256 GB of RAM was used in all computations. Approximately 10 h of CPU time were necessary to produce the training dataset. Training of the neural networks. We first randomly choose a number φ of data points from the database described above. A number φ <sup>¯</sup> = 0.9φ of these data points are used to train the NNs, while the remaining 0.1φ points are used for validation. All the coordinates of the training data points are normalised by subtracting their average value and dividing by their variances (averages and variances are calculated over the set of φ <sup>¯</sup> training data points). In this study we use multi-layer feed-forward neural ­networks <sup>21</sup>, with two hidden layers of 100 neurons in all cases; the choice of using the same NN architecture in all cases allows a fair comparison between the performances of the different models produced in this study. Such networks establish a non-linear function relating the desired inputs and outputs. If x and y are column vectors containing the inputs and outputs, respectively, such non-linear function reads y =NN( x )= W2 f - W1 �f ( W0x + b0 )�+ b1 �+ b2 (6) - W1 �f ( W0x + b0 ) )�+ b1 �+ b2 where f is a non-linear activation function, taken in this study as the Rectified Linear (ReLu) function, defined as f (α) = max(0, α), (7) W 0, W1, W 2 are weight matrices and b 0, b1, b 2 are column vectors of biases. Training of the neural network is a stochastic optimisation process aimed at minimising a chosen objective (or ‘loss’) function. When NNs are used to perform regressions, in this study we choose the loss function to be the mean absolute error ( _MAE_ ), defined as k −¯yk <sup>(j)</sup> ���y(j) MAE = <sup><u>1</u></sup> k −¯yk <sup>(j)</sup> (8) - ��� φˆ φˆ �j=1 j=1 k d �k=1 where yk <sup>(j)</sup> - x ¯ <sup>(j)</sup> - is the output of the NN [Eq. (6)] corresponding to the input vector x ¯ <sup>(j)</sup>, y¯k <sup>(j)</sup> j = 1, 2..φ <sup>¯</sup> where yk <sup>(j)</sup> = NN x ¯ <sup>(j)</sup> is the output of the NN [Eq. (6)] corresponding to the input vector x ¯ <sup>(j)</sup>, y¯k <sup>(j) is the cor-</sup> - responding output taken from the training database, j = 1, 2..φ <sup>¯</sup> is used to sum over each of the training data points and _d_ is the length of the vector y . Minimisation of the loss function is achieved by back-propagation, using the Adam algorithm ( <sup>22</sup>, with β1 = 0.9, β2 = 0.999, ε = 0 ) with no regularisation, a maximum of 3000 epochs, a batch size of 50 and learning rate of 0.001. The choice of these parameters was made based on the result of a preliminary study aimed at maximising accuracy while maintaining a reasonable computational cost. We will discuss below that for the elastic–plastic models, separate neural networks will be used to perform regressions and classifications, and a different loss function will be used in the case of classification, as described in detail in “Response of an elastic–plastic VE”. Training of a single NN took an average CPU time of 20 min. Structure of the neural networks. For each of the three constitutive descriptions investigated (hyperelastic, linear viscoelastic, elastic–plastic), we use NNs as a surrogate model to predict the homogenised constitutive response of the VEs. In each case, the input and output vectors x and y in Eq. (6) contain different quantities; in this section, we present and motivate in detail the choice of inputs and outputs for each surrogate model. _Response of a hyperelastic VE._ For the case of the hyperelastic analyses, each cell (or finite element) of the VE is assigned a local response chosen as neohookean. In such constitutive description, which does not include energy dissipation, the local stresses [σ ] are obtained by differentiating a scalar elastic potential function as k <sup>(j)</sup> = NN <u>∂W</u> [σ ] = <sup><u>1</u></sup> <u>∂∂W</u> F <sup>F</sup> <sup>;</sup> J = �1�2�3 (9) J ∂ F <sup>F</sup> <sup>;</sup> J = �1�2�3 where F is deformation gradient, �1, �2, �3 are principal stretches, and W is the neohookean elastic potential, defined as W = C10(I1 − 3) + <sup><u>1</u></sup> (J - 1) <sup>2</sup> ; I1 = � <sup>2</sup> 1 <sup>+ �2</sup> 2 <sup>+ �2</sup> 3 <sup>;</sup> C10 = <sup><u>µ</u></sup> (10) 2 <sup>,</sup> <sup>D1</sup> <sup>=</sup> <sup><u>2</u></sup> <sup><u>µ</u></sup> 2 <sup>,</sup> <sup>D1</sup> <sup>=</sup> K <sup><u>2</u></sup> D1 (J - 1) <sup>2</sup> ; I1 = � <sup>2</sup> 1 <sup>2</sup> 1 <sup>+ �2</sup> 2 <sup>+ �2</sup> 3 <sup>;</sup> C10 = <sup><u>µ</u></sup> 2 where µ and K are the local shear and bulk moduli, respectively, and they are related to the local Young’s modulus E and Poisson’s ratio ν by the usual relations <u>E</u> <u>E</u> µ = 2(1 + ν) <sup>,</sup> <sup>K</sup> <sup>=</sup> 3(1 − 2ν) (11) The hyperelastic VEs are n-phase composites in which each phase has a different Young’s modulus and a Poisson’s ratio ν = 0.45 ; their macroscopic response is conservative. An elastic potential could be introduced to describe such macroscopic response, however, this would take a form different, in general, from the local potential in Eq. (10). Such potential would establish a non-linear one-to-one mapping of the macroscopic true stress and true strain tensors. In our surrogate models, the neural network (6) will establish such correspondence, such that y = �T = ε; �T = σ/E = NN( x ) x = εxx, εyy, εzz y = σxx/E, σyy/E, σzz/E (12) �εxx, εyy, εzz �σxx/E, σyy/E, σzz/E� where E is the average Young’s modulus of the VE. The choice of having true principal strains ε as input and principal stresses σ as an output, rather than vice-versa, is convenient since our simulations are conducted in strain control. _Response of a linear viscoelastic VE._ In this case, the VEs are assigned linear viscoelastic local constitutive response, as σ = σ <sup>dev</sup> + I σ <sup>vol</sup> ; σ <sup>dev</sup> = 2 �0 t µR(t − t <sup>′</sup> ) <sup><u>∂εdev(t′)</u></sup> 0 t ∂t <sup>′</sup> <sup>dev(t′)</sup> dt; σ <sup>vol</sup> = ∂t <sup>′</sup> �0 t KR(t − t <sup>′</sup> ) <sup><u>∂εvol(t′)</u></sup> 0 t ∂t <sup>′</sup> <sup><u>(t′)</u></sup> dt ∂t <sup>′</sup> (13) �1 − e <sup>−t/tk</sup> <sup>�</sup> ; KR(t)/K0 = 1 − kk�1 − e <sup>−t/tk</sup> <sup>�</sup>, kk = µk. N �k=1 µR(t)/µ0 = 1 − N �k=1 µk where µ0 and K0 are the instantaneous shear and bulk moduli, respectively. The principal stress vector σ is decomposed into its deviatoric and hydrostatic parts as in Eq. (13) (note I = moduli µR(t) and KR(t) are assumed to relax according to identical Prony ­series <sup>20</sup>, having N terms. The macroscopic response of the composite VE can be proven to be also linear ­viscoelastic� 1 1 1 �T ), and the shear and bulk <sup>23</sup> . It can also be shown that the change in principal stresses �σ over a generic time increment �t can be approximated by N <u>�k=1</u> <u>tk</u> (14)  + γk - <sup><u>�t</u></sup> <u>tk</u> - 1 - <sup><u>�t</u></sup> �σ = E 0 - <u>��εt</u> <sup>◦</sup>  �t I  - <u>�tkt</u> + e N �k=1 N �k=1 - <u>�t</u> 1 − e <u>tN−1</u> ε − E 0 <sup>−1σ</sup> �� - <sup>�</sup> - ε ◦ - <sup><u>�t</u></sup> 1 − e <u>tk</u> γk + - <u>where</u> E 0 is the instantaneous stiffness matrix, γk is relative relaxation tensor, ◦ indicates the Hadamard product, N is the number of terms in the Prony series which approximates the macroscopic relaxation response, and tk is the time relaxation constant of the _k_ -th term of such Prony series. Inspired by the structure of Eq. (14), in our machine learning exercise we use y = �σ/E0 = NN( x ) �T ; x = ε, σ/E0, tmax ˙ε, �t/tmax y = �σ/E0 = NN( x ) (15) �ε, σ/E0, tmax ˙ε, �t/tmax where E0 is the average instantaneous Young’s modulus of the VE, �σ is a column vector of the increments in principal stresses over a time increment �t, corresponding to an increment in principal strains �ε = ε �˙ t, tmax is the largest of the time decay constants used in the local Prony series described in Eq. (13). The proposed regression neglects the effect of history-dependent viscous strains on the behaviour of the composite, assuming that the history dependence of the response can be quantified by knowledge of the macroscopic stresses and strains. _Response of an elastic–plastic VE._ For the case of elastic–plastic VEs, the material is assigned a local elastic– plastic response consisting of isotropic linear elasticity and incompressible, rate-independent J2 plasticity with isotropic hardening and strain hardening given by ε <sup>˙</sup> ¯ <sup>pl</sup> = σ/ <sup>˙</sup> ¯ H, where <u>3</u> ε¯ <sup>pl</sup> = - 2 <sup>S</sup> <sup>:</sup> <sup>S</sup> <sup>;</sup> t ~~�~~ <u>23</u> <sup>ε˙</sup> loc <sup>pl</sup> <sup>ε˙</sup> loc <sup>pl</sup> σ¯ = - 2 <sup>S</sup> <sup>:</sup> <sup>S</sup> <sup>;</sup> ε¯ <sup>pl</sup> = - ~~�~~ 3 <sup>ε˙</sup> loc <sup>pl</sup> <sup>ε˙</sup> loc <sup>pl</sup> <sup>dt</sup> (16) loc <sup>pl</sup> <sup>dt</sup> 0 are the von Mises equivalent stress and accumulated equivalent plastic strain, respectively, such that σijε˙ij = σ¯ ε <sup>˙</sup> ¯ <sup>pl</sup> (Einstein’s summation convention applies), S is the local deviatoric stress tensor, ε <sup>pl</sup> loc <sup>is the local plastic strain</sup> tensor, and _H_ is a constant hardening modulus. In this study, we will compare the performance of three different surrogate models based on multiple NNs with different features. The formulation of each of these three surrogate models comprises three steps, as follows. (i) A linear perturbation analysis of the unloaded VE is conducted in Abaqus to determine the initial mac roscopic elastic stiffness matrix of the VE. This is achieved by imposing a small macroscopic normal strain on the VE (in turn, along each of the three Cartesian directions) while constraining the normal macroscopic strains in the other two Cartesian directions to vanish, and extracting the corresponding macroscopic stresses in all directions, such to assemble the 3 by 3 stiffness matrix, written in principal stress/strain space. As the study is limited to small strains and isotropic VEs, we assume that such stiffness matrix does not change with the applied macroscopic strain. (ii) A NN is used to perform a classification exercise, to distinguish between elastic increments (in which no plastic dissipation occurs, �Wpl = 0 ) from elastic–plastic increments (in which some energy is plastically dissipated, �Wpl - 0). (iii) Then, if an increment is classified as elastic, the change in the macroscopic stress state of the VE is obtained from the equations of linear elasticity, using the stiffness matrix calculated in step (i). Conversely, if an increment is classified as elastic–plastic, a second NN is used to perform a regression exercise to predict the change in the macroscopic stress state of the VE over that increment. In the following, due to the isotropy of the VEs and the small strains imposed, we will assume (as observed from the simulations) that no substantial strain localisation and softening occur during deformation of the VEs, such that the macroscopic principal stress σ and principal strain ε are, in first approximation, sufficient to describe the state of the solid at any given point in time, and that history effects can be quantified by appropriate auxiliary variables depending on the histories of σ and ε . This justifies the use of simple feed-forward NNs as opposed to more complex, computationally demanding, and hard to train recurrent ­NNs <sup>13</sup> . We also note that the presence of the classification step can be in principle avoided, however in our preliminary studies we found that including the preliminary classification step increases the accuracy by approximately 20%. We now proceed to describe the three different models proposed in this study. Model I. The classification is performed by a neural network NNclas <sup>I</sup> <sup>having as inputs σ, ε and �ε for each</sup> increment, and providing a single scalar output NNclas <sup>I</sup> <sup>(σ</sup> <sup>, ε,�ε) ∈</sup> <sup>[0, 1], such that an increment is considered</sup> elastic if NNclas <sup>I</sup> <sup>has an output less than 0.5 and elastic–plastic otherwise. To train such NN we proceed broadly</sup> as described in “Training of the neural networks”. Our results database is pre-processed to include, for each increment, a column ylabel that is set to 0 if no plastic dissipation occurs over that increment, and to 1 otherwise clas <sup>I</sup> <sup>(σ</sup> <sup>, ε,�ε) ∈</sup> <sup>[0, 1], such that an increment is considered</sup> clas <sup>I</sup> <sup>has an output less than 0.5 and elastic–plastic otherwise. To train such NN we proceed broadly</sup> ylabel = (17) - 10 ifif ��WWplpl >= 0 0 (elastic)(elastic - plastic) (note that �Wpl < 0 does not occur in our thermodynamically consistent training dataset).The desired number of training data points φ is selected from the database such that φ/2 such points have ylabel = 0 and φ/2 have ylabel = 1, to avoid any bias. A number φ <sup>¯</sup> = 0.9φ of these data points is randomly selected for training and the remaining 0.1φ is used for validation. The loss function used to train NNclas <sup>I</sup> <sup>is chosen as the binary cross-entropy</sup> _BCE_, defined as + <sup>j</sup> �� - <u>σEj</u> <u>σEj</u> <sup>, εj,�εj</sup> 1 − ylabel <sup>j</sup> BCE = <sup>−1</sup> ylabel <sup>j</sup> <sup>ln</sup> NNclas <sup>I</sup> + 1 − ylabel <sup>j</sup> ln 1 − NNclas <sup>I</sup> (18) φ¯ - - - - <u>σEj</u> <sup>, εj,�εj</sup> �� - - - - <u>σEj</u> <sup>, εj,�εj</sup> ��� 1 − NNclas <sup>I</sup> ln ��� NN <sup>I</sup> - <u>σEj</u> <u>σEj</u> <sup>, εj,�εj</sup> φ¯ φ¯ �j=1 y <sup>j</sup> label <sup>j</sup> <sup>ln</sup> clas with j = 1, 2..φ <sup>¯</sup> used to sum over each of the training data points. The regression to predict the change in the macroscopic stress state is performed by a separate NN using the same inputs as NNclas <sup>I</sup> <sup>and providing as output �σ, as</sup> clas <sup>I</sup> <sup>and providing as output �σ, as</sup> �σ/E = NNreg <sup>I</sup> �σ/E, ε,�ε�. (19) �σ/E, ε,�ε �. This is the simplest possible choice to capture a path-dependent, rate-independent response, and it assumes that path-dependence is completely quantified by knowledge of the initial σ and ε. Model II. In this model we include as an input for the classification and regression a macroscopic measure of the accumulated equivalent von Mises plastic strain; this is obtained by assuming that the total macroscopic strains can be decomposed as the sum of elastic and plastic parts ε = ε <sup>el</sup> + ε <sup>pl</sup> = C 0 <sup>−1σ + εpl;</sup> �ε = �ε <sup>el</sup> + �ε <sup>pl</sup> = C 0 <sup>−1�σ</sup> <sup>+ �εpl.</sup> (20) The increments in a ‘macroscopic’ equivalent von Mises plastic strain are computed as �ε¯0 <sup>pl</sup> <sup>=</sup> ~~�~~ <u>23</u> <sup>�εpl�εpl</sup> (21) and its accumulated value ε¯0 <sup>pl</sup> and its accumulated value ε¯0 <sup>pl is computed as a function of time. In this model we prefer to use εel, εpl in lieu of σ,</sup> ε, as inputs for the NNs; the macroscopic response of the VE is expected to be elastic–plastic with a hardening response not necessarily isotropic, as prescribed at a local level. For this reason, we prefer to feed to the NNs the explicit knowledge of the plastic strains ε <sup>pl</sup> . The classification is performed by a neural network NNclas <sup>II</sup> <sup>having as inputs εel, εpl, �ε and ε¯</sup> 0 <sup>pl for each incre-</sup> ment, and providing a single scalar output NNclas <sup>II</sup> ε <sup>el</sup>, ε <sup>pl</sup>,ε¯0 <sup>pl,�ε</sup> ∈ [0, 1], used to determine if an increment is - clas <sup>II</sup> <sup>having as inputs εel, εpl, �ε and ε¯</sup> 0 <sup>pl</sup> The classification is performed by a neural network NNclas <sup>II</sup> ment, and providing a single scalar output NNclas <sup>II</sup> ε <sup>el</sup>, ε <sup>pl</sup>,ε¯0 <sup>pl,�ε</sup> ∈ [0, 1], used to determine if an increment is - elastic NNclas <sup>II</sup> <sup>< 0.5</sup> or elastic–plastic NNclas <sup>II</sup> <sup>≥</sup> <sup>0.5</sup> . The loss function for the classification exercise is identical ε <sup>el</sup>, ε <sup>pl</sup>,ε¯0 <sup>pl</sup> elastic NNclas <sup>II</sup> <sup>< 0.5</sup> or elastic–plastic NNclas <sup>II</sup> <sup>≥</sup> <sup>0.5</sup> . The loss function for the classification exercise is identical to that for � _Model I_ . <u>�</u> <u>�</u> <u>�</u> <u>�NNclas</u> <sup>II</sup> clas clas <sup>II</sup> <sup>< 0.5</sup> <u>� or elastic–plastic</u> <u>�NNclas</u> <sup>II</sup> clas <sup>II</sup> <sup>≥</sup> <sup>0.5</sup> Figure 3. Comparison of the time histories of the density of plastically dissipated energy during selected random multiaxial loading cases, as calculated analytically from Eq. (23) (label _ANL_ ) or obtained from the FE simulations (label _FE_ ). The comparison is made for a homogeneous volume element (( a ), κ = 0 ) and for a heterogeneous material with spatially varying Young’s modulus (κ = 2) and uniform plastic properties ( b ). The regression is performed by a separate NN using the same inputs as NNclas <sup>II</sup> <sup>and providing as an output �εpl</sup> ε <sup>el</sup>, ε <sup>pl</sup>,ε¯0 <sup>pl</sup> 0 <sup>pl,�ε</sup> . �ε <sup>pl</sup> = NNreg <sup>II</sup> ε <sup>el</sup>, ε <sup>pl</sup>,ε¯0 <sup>pl,�ε</sup> . (22) - The corresponding increment in stress can readily be obtained from Eq. (20), �σ = C 0 . We note here that decomposing the macroscopic strains into an elastic and plastic component is not, strictly, ��ε − �ε <sup>pl�</sup> physically consistent. For example, one cannot use knowledge of macroscopic stress and macroscopic plastic strain to compute the density of plastically dissipated energy in the volume element, i.e. σ�ε <sup>pl</sup> ≥ �Wpl <sup>FE</sup> (23) where �Wpl <sup>FE</sup> where �Wpl <sup>FE is the density in plastically dissipated energy computed by the FE simulations; this is because the</sup> left-hand side of the inequality, σ�ε <sup>pl</sup>, in the case of heterogeneous solids, includes the plastic-free energy, which is the elastic strain energy stored in the elastic regions of a plastically deforming heterogeneous volume ­element <sup>24</sup> . The inequality (23) violates the Hill-Mendel ­condition <sup>3</sup> unless the equal sign applies. This is illustrated in Fig. 3, where we compare the plastically dissipated energy calculated from the knowledge of the macroscopic plastic strains (as Wpl = 0 <sup>σ</sup> dε <sup>pl</sup> /dt dt ) to that determined by the FE simulations. The plastically dissipated energy - t 0 <sup>σ</sup> dε <sup>pl</sup> /dt - t 3 as W pl �EV0 �dt ) to that determined by the FE simulations. The plastically dissipated energy Wpl/ EV0, and evaluated in the case of a homogeneous volume element (for is normalised in Fig. 3 as W pl = Wpl/ -, and evaluated in the case of a homogeneous volume element (for <sup>κ</sup> <sup>= 2, for which σ�εpl</sup> <sup>≥</sup> <sup>�W</sup> pl <sup>FE (Fig. 3b).</sup> pl <sup>FE (Fig. 3b).</sup> pl <sup>FE, Fig. 3a) and for a composite of heterogeneity κ</sup> <sup>= 2, for which σ�εpl</sup> <sup>≥</sup> <sup>�W</sup> pl <sup>FE</sup> which σ�ε <sup>pl</sup> = �Wpl <sup>FE</sup> Model III. To avoid the physical inconsistency of _Model II_, we derive an alternative model which does not make use of the accumulated macroscopic equivalent von Mises plastic strain ε¯0 <sup>pl</sup> strain components �ε <sup>pl</sup> . In _Model III_ we replace ε¯0 <sup>pl</sup> 0 <sup>pl or of the macroscopic plastic</sup> strain components �ε <sup>pl</sup> . In _Model III_ we replace ε¯0 <sup>pl by W</sup> pl <sup>as an input of the NNs and we perform an additional</sup> regression to predict �Wpl at every increment. A classification to distinguish elastic from elastic–plastic increments if performed by a neural network NNclas <sup>III</sup> ε, σ/E,W pl,�ε ∈ [0, 1], where W pl = Wpl/ EV0 ; the two regressions described above use NNs with i NNclas <sup>III</sup> ε, σ/E,W pl,�ε ∈ [0, 1], where W pl = Wpl/ EV0 ; the two regressions described above use NNs with the same inputs as � NN�clas <sup>III</sup> <sup>, namely</sup> - clas i ε, σ/E,W pl,�ε the same inputs as � NN i ∈ [0, 1], where W pl = Wpl/ �clas <sup>III</sup> <sup>, namely</sup> �clas <sup>III</sup> <sup>, namely</sup> i �EV0 �σ/E = NNreg <sup>III</sup> σ ε, σ/E,W pl,�ε, (24) - �ε, σ/E,W pl,�ε �ε, σ/E,W pl,�ε �, �. �W pl = NNreg <sup>III</sup> W ε, σ/E,W pl,�ε . (25) - As for the previous models, the chosen loss functions are _BCE_ for the classification and _MAE_ for the two regressions. Using the NNs to predict stress versus strain histories. Once successfully trained, the NNs are used as surrogate models to predict the homogenised constitutive response of the VEs subject to previously unseen, pseudo-random, multiaxial macroscopic strain histories. To assess the accuracy of each surrogate model we generate 20 additional unseen loading cases, in the form of pseudo-random walks in true principal strain space, as described in “Generation of the training datasets”. These loading cases are applied to the same realisation of the VE used to produce the training data, and the corresponding simulations are conducted in Abaqus Standard as in “Finite element simulations”. The macroscopic stress versus strain histories are extracted from the simulations and used as a benchmark for the surrogate models. The predictions by the surrogate model are obtained as follows. First, macroscopic strains and stresses are initialised and set to zero. Then, we consider the first increment of the simulations, corresponding to time and strain increments �t1 <sup>FE, �εFE</sup> 1 <sup>; the NNs described in the previous section are used to predict the stress and strain</sup> strain increments �t1 <sup>FE, �εFE</sup> 1 <sup>; the NNs described in the previous section are used to predict the stress and strain</sup> vectors at the end of the first increment, using �t1 <sup>FE, �εFE</sup> 1 <sup>as inputs. Such updated stress and strain vectors are</sup> vectors at the end of the first increment, using �t1 <sup>FE, �εFE</sup> 1 <sup>as inputs. Such updated stress and strain vectors are</sup> used as inputs of the NNs for the following increment; such NNs always use time and strain increments identical to those in the FE solution, �t = �t <sup>FE</sup>, �ε = �ε <sup>FE</sup> . Repeating this procedure iteratively, we construct predictions of the stress versus strain curves using the surrogate models. Generating a prediction of the stress versus strain history for an average random loading case takes approximately less than one second of CPU time. We note that obtaining the corresponding predictions via FE simulations requires approximately 350 s, therefore the surrogate models offer a computational saving of at least two orders of magnitudes. In this study, the VE was meshed by only ­10 <sup>3</sup> elements, but this number was kept low in the interest of speed. For very detailed VE of materials with complex architecture, such a number can easily exceed ­10 <sup>8</sup>, corresponding to a great increase in the CPU time required to perform the FE simulations; however, the time required by the surrogate models to produce the same predictions would remain below 1 s. Also, in this study we use NNs with 100 neurons per layer; the number of neurons can be reduced substantially without a corresponding reduction in accuracy, as it was found in a preliminary study not reported here for brevity. Quantification of the accuracy of the surrogate models. To assess the accuracy of the regressions reg <sup>I</sup> <sup>,</sup> <sup>NN</sup> reg <sup>II</sup> reg <sup>III</sup> σ <sup>,NN</sup> reg <sup>III</sup> reg <sup>III</sup> W <sup>, in addition to the final value of the loss function</sup> <sup>_MAE_</sup> <sup>, we</sup> performed by the NNs NN <sup>I</sup> reg <sup>II</sup> <sup>,</sup> <sup>NN</sup> reg <sup>III</sup> introduce an additional metric, to which we refer as _path-wise stress error_, Eσ ; this metric aims at capturing the effectiveness of a surrogate model in predicting macroscopic stress versus strain histories of a VE. This is computed as follows. A pseudo-random loading case is generated as described in “Generation of the training datasets” and the corresponding FE simulation (comprising Ninc increments) is conducted. The macroscopic stress predicted by the detailed FE simulation, referred to as σFE here, is compared to the corresponding prediction by a NN (at the same strain ε ), indicated as σNN, at the end of every increment, and Eσ is defined as <u>2</u> <u>���σ NNj</u> - σ FEj <u>���</u> 2 <u>���σ FEj</u> <u>���</u> 2   Ninc �j=2 Eσ = <u>1</u>  <u>2</u>  (26) Ninc �j=2 <u>���σ NNj</u> - σ FEj <u>���</u>   j=2   where _j_ is used to sum over different increments and �∗�2 denotes the norm 2 of *. To compare the accuracy of <u>different models, Eσ is evaluated over 20 different pseudo-random loading cases and the corresponding average</u> Eσ is computed. When assessing the effectiveness of the classification exercises performed in this study by NNclas <sup>I</sup> <sup>,</sup> <sup>NN</sup> clas <sup>II</sup> <sup>,</sup> NNclas <sup>III</sup> <sup>, we define a</sup> <sup>_path-wise accuracy_</sup> <sup>A as</sup> <u>1</u> A = Ccorrect (27) Ninc where Ccorrect is the total number of correct classification instances over a certain random loading case. Similarly to the case of the regressions, this is computed for a population of 20 different loading cases and the average A is evaluated. Results and discussion We proceed to present the predictions of the surrogate models for each constitutive description of the n-phase composites analysed. We note here that the predictions shown below, obtained with accurately trained NNs, were found to be thermodynamically consistent, with no exception, in the sense that in all cases, and in all increments of the simulations conducted in this study, the energy was conserved and the dissipated energy was non-negative. This can be explained by the fact that our training data is thermodynamically consistent and that the NN have an excellent agreement with this data at the end of the training. During the training/optimisation of the NNs, it can occur that thermodynamically inconsistent predictions are made, especially at the early stages of the optimisation. In this study, however, this problem was not detected after the training, such that it was not necessary to include explicit constraints in the optimisation problem. We also checked, by appropriate permutations of the indices of inputs and outputs along the three Cartesian directions, that the predictions of the surrogate models were approximately isotropic as expected. When assessing the effectiveness of the classification exercises performed in this study by NN <sup>I</sup> clas <sup>III</sup> <sup>, we define a</sup> <sup>_path-wise accuracy_</sup> <sup>A as</sup> clas <sup>I</sup> <sup>,</sup> <sup>NN</sup> clas <sup>II</sup> <u>1</u> A = Ccorrect (27) Ninc Results and discussion We proceed to present the predictions of the surrogate models for each constitutive description of the n-phase composites analysed. We note here that the predictions shown below, obtained with accurately trained NNs, were found to be thermodynamically consistent, with no exception, in the sense that in all cases, and in all increments of the simulations conducted in this study, the energy was conserved and the dissipated energy was non-negative. This can be explained by the fact that our training data is thermodynamically consistent and that the NN have an excellent agreement with this data at the end of the training. During the training/optimisation of the NNs, it can occur that thermodynamically inconsistent predictions are made, especially at the early stages of the optimisation. In this study, however, this problem was not detected after the training, such that it was not necessary to include explicit constraints in the optimisation problem. Hyperelastic n‑phase composite. We recall that these composites comprise an array of 10 × 10 × 10 cubic cells (each meshed by a single FE of type C3D8 in ­Abaqus <sup>18</sup> ) with dissimilar Young’s moduli and uniform Poisson’s ratio as detailed in “Computational framework”. Figure 4 presents, for a selected pseudo-random loading case, a comparison of the predictions of the FE simulations and of the surrogate model. These are found in excellent agreement and correspond to a path-wise stress error Eσ = 1.7% . φ = 4000 datapoints were used to train the surrogate model. Figure 4. Example of strain versus time ( a ) and stress versus strain ( b - d ) histories for a hyperelastic composite with κ = 2.0. FE predictions are compared to predictions by a surrogate model. Eσ = 1.7% for the load case shown, which used φ = 4000 training data points. Figure 5. Average path-wise stress error Eσ (calculated over 20 different pseudo-random loading paths) as a function of the heterogeneity κ and the number of training datapoints φ. Figure 6. Example of strain versus time ( a ) and stress versus strain ( b - d ) histories for a viscoelastic composite with κ = 2.0 and stiffness relaxation dictated by a single-term Prony series. FE predictions are compared to predictions by a surrogate model. Eσ = 6.2% for the load case shown, which used φ = 5000 training data points. Considering the small strains imposed on the composite, we expect the NN (12) to predict comfortably the correspondence between stress and strain, which is very close to a linear elastic relation. Figure 5 shows that this is indeed the case. Only 2000 training data points are required to ensure Eσ < 5% ; the surrogate model shows accuracy approximately independent of the degree of heterogeneity κ. We note that choosing a NN with a structure like in (12), rather than looking for an elastic potential as pursued by other authors (e.g. <sup>25</sup> ), has the advantage of being suitable in cases where such elastic potential does not exist. Viscoelastic n‑phase composite. We proceed to assess the accuracy of the surrogate model of a viscoelastic composite. Figure 6 compares the FE predictions to those by the surrogate model for a composite with relaxation characteristic given by a single-term Prony series, while Fig. 7 presents the same information for the case of a relaxation function comprising a three-term Prony series. We note that for both cases ηmin = − 3, ηmax = 0, such that the strain rates in each increment are logarithmically spread over three orders of magnitude and comprised between 10 <sup>−3</sup> and 10 <sup>0</sup> s <sup>−1</sup> . We found in a preliminary study that logarithmic spacing of the training data points was more effective than linear spacing. The data in Figs. 6 and 7 correspond to κ = 2 and φ = 5000 . For this choice, the surrogate model performs an excellent regression for a composite with a single-term Prony series, achieving a path-wise stress error Eσ = 6.2% . In the case of a relaxation function comprising a three-term Prony series, the accuracy of the surrogate model is lower but still acceptable (Eσ = 19.4%), especially in consideration of the very complex loading case imposed on the composite. The accuracy of the regressions could be improved by increasing the number of training datapoints, but this is not investigated here. Figure 8 provides average values of Eσ, calculated over 20 different pseudo-random loading cases, for the two composites examined. Clearly, the accuracy of the model is relatively insensitive to the degree of heterogeneity for the case of a single-term Prony series (Fig. 8a); for a three-term Prony series (Fig. 8b), the surrogate models give lower Eσ at low heterogeneity κ, but the error becomes less and less sensitive to κ with an increasing number of training data points φ. The trends in Fig. 8a suggest that the error can be lowered by increasing the number of training data points. Figure 7. Example of strain versus time ( a ) and stress versus strain ( b - d ) histories for a viscoelastic composite with κ = 2.0 and stiffness relaxation dictated by a three-term Prony series. FE predictions are compared to predictions by a surrogate model. Eσ = 19.4% for the load case shown, which used φ = 5000 training data points. Figure 8. Average path-wise stress error Eσ (calculated over 20 different pseudo-random loading paths) as a function of the heterogeneity κ and the number of training data points φ . Data are shown for a viscoelastic model using a single-term Prony series ( a ) or a three-term Prony series ( b ). Figure 9. Example of strain versus time ( a ) and stress versus strain ( b - d ) histories for an elastic–plastic composite with κ = 2.0 . FE predictions are compared to predictions by a surrogate model. Eσ = 2.7% for the load case shown, which used φ = 5000 training data points. We conclude that our proposed regression (15) is effective in capturing the response of volume elements with a general linear viscoelastic response, loaded over wide ranges of strains and strain rates. The proposed method directly provides macroscopic stresses and strains without the need for defining a “macroscopic relaxation function” as pursued in other ­studies <sup>26</sup> . Elastic–plastic n‑phase composite. We now examine the accuracy of the surrogate models proposed for the elastic–plastic composites; in this section, we only focus on composites with heterogeneous Young’s modulus and uniform yield stress, while the case of uniform modulus and spatially varying yield stress is presented in Appendix B (supplementary material) for the sake of brevity. The predictions of Model II are compared to the results of FE simulations in Figs. 9 and 10, in terms of stress versus strain histories, for the highest possible heterogeneity, κ = 2. We choose to plot the predictions of Model II because this model outperforms the other two, as it will be shown below. Figures 9 and 10 correspond to selected pseudo-random loading paths, with Fig. 9 referring to a relatively simple path and Fig. 10 present the case of a much more complicated path. In both cases, Model II achieves excellent accuracy, however, as expected, this accuracy is higher for the simpler loading path (Eσ = 2.7%) than for the more complicated one (Eσ = 17.8%). Figure 11 compares the accuracy of Models I, II and III (in terms of the average path-wise stress error Eσ ) and the sensitivity of such accuracy to the degree of heterogeneity κ and to the size of the training dataset φ. For φ = 5000, Model II outperforms Model I, which in turn is more accurate than Model III; this trend is also observed at lower values of φ . The accuracy of Model II is scarcely sensitive to the value of φ, suggesting that φ = 2000 is a sufficiently large dataset for the problem at hand. The general trend observed is that the accuracy of all models decreases as κ increases. The effectiveness of the classifications and regressions performed by Models I, II and III, are assessed independently in Figs. 12 and 13, respectively. Figure 12 presents the accuracy of the classification NNs used for the three models. Such accuracies are comparable for the three models, with Model III outperforming slightly the other two. Perhaps counter-intuitively, for κ - 0, the accuracy of the classification exercise is higher for a higher degree of heterogeneity. This is due to the fact that for very heterogeneous materials, the vast majority of the input space corresponds to plastic increments. We recall that the training dataset for these classifications contains Figure 10. Example of strain versus time ( a ) and stress versus strain ( b - d ) histories for an elastic–plastic composite with κ = 2.0 . FE predictions are compared to predictions by a surrogate model. Eσ = 17.8% for the load case shown, which used φ = 5000 training data points. equal numbers of data points in the plastic and elastic regimes, such that at high heterogeneity, data points that correspond to elastic increments tend to cluster in input space, and this makes the classification process easier for the NNs. Similarly, in the case κ = 0 a vast majority of increments are elastic, resulting in an easier classification. In Fig. 13 we compare the values of _MAE_ calculated for the validation dataset, for different values of κ and φ . We note that this quantity is independent of the length and complexity of the loading path and of the classification process, and only quantifies the effectiveness of the models in predicting the evolution of state variables over a single (elastic–plastic) increment. Model II always outperforms the other two irrespective of κ and φ ; in absolute terms, the performance of Model II is nearly independent of φ, again suggesting that φ = 2000 is a sufficiently large dataset. At low φ, Model III outperforms Model I, but the opposite is observed at high values of φ. In summary, Model III is the best of the three in the classification exercise, while Model II outperforms the other two models in the regression exercise (with models I and III approximately equivalent in regression performance). Overall, Model II is the best performing model in terms of Eσ and requires a smaller size of the training dataset to achieve a given accuracy. As larger and larger training datasets are employed, the performances of the three models, however (in terms of Eσ ) tend to become very similar. For the n-phase composites considered in this study, φ ≥ 3000 guarantees Eσ < 10% for all models and irrespective of κ, which results in sufficiently accurate predictions in all cases of practical interest. It is expected that composites with heterogeneous Young’s modulus and uniform yield stress (whose performance is discussed here and shown in Figs. 9, 10, 11, 12, and 13) display a macroscopic plastic response which is substantially pressure-sensitive; in contrast, composites with uniform Young’s modulus and spatially varying yield stress are expected to have an approximately pressure-insensitive macroscopic behaviour. Consequently, capturing the material response is expected to be easier in the second case. We found that indeed this is the case. Results for composites with uniform Young’s modulus and varying yield stress are presented in detail in Appendix B (supplementary material) for the benefit of the interested reader. Some unexpected non-monotonic trends are observed in Figs. 11, 12 and 13; the reasons for these trends were not investigated further in this study, but these could be due to different distributions of training datapoints across the input space, for different values κ . Similarly, the relative performance of models II and III was also unexpected, in consideration of the slight physical inconsistency of Model II. While for the n-phase composites Figure 11. Average path-wise stress error Eσ (calculated over 20 different pseudo-random loading paths) as a function of the heterogeneity κ and the number of training data points φ . Data are shown for models I, II and III. Figure 12. Average path-wise accuracy A (calculated over 20 different pseudo-random loading paths) as a function of the heterogeneity κ . The performance of the classifications in models I, II and III are compared. Figure 13. _MAE_ for the validation dataset at convergence, for the NNs (19), (22) and (24), as a function of the heterogeneity κ and the number of training data points φ . Data are shown for models I, II and III. investigated here Model II outperforms (however slightly) Model III, this might not be the case for other types of heterogeneous materials containing plastically deforming phases. A detailed analysis of the relative performance of these two models and possible improvements to both is left as a topic for future studies. Concluding remarks We proposed and assessed a computational framework to derive data-driven surrogate models for the response of non-linear n-phase composites to arbitrary mechanical loading. We considered composites with different non-linear local material responses, including non-linear elastic, time-dependent linear viscoelastic, and historydependent elastic–plastic; in each case, we determine the macroscopic mechanical response via FE simulations and computational homogenisation and use data from the simulations to train appropriate neural networks to reproduce the homogenised response accurately. For each local constitutive description, we propose a computational procedure to produce training data and appropriate inputs and outputs for the surrogate models. We examine systematically the accuracy of the proposed surrogate models and we explore the sensitivity of their accuracy to the degree of heterogeneity of the composites and to the size of the training dataset. The main conclusions of the study are as follows: - The strategy proposed to produce the training dataset, consisting of imposing pseudo-random histories of macroscopic deformation to the volume elements, results in training data representative of realistic scenarios for all three constitutive descriptions analysed in this study. The datasets produced appropriately sample the input space of the surrogate models, facilitating the application of machine learning techniques. - For the type of loading examined in this study, restricted to small strains and negligible localisation of the stress, strain and strain rate fields, the proposed surrogate models proved very effective in capturing the nonlinear multi-axial material response over wide ranges of applied strain rates and strain triaxiality, including non-monotonic and non-proportional loading. - For elastic–plastic n-phase composites, absent any substantial strain localisation, the history-dependence of the material can be quantified adequately by knowledge of the current macroscopic stresses and strains; on the other hand, including appropriate history-dependent internal variables improves the accuracy of the surrogate models and decreases the size of the training dataset needed to achieve a prescribed accuracy. The findings of this study may serve as a guide to researchers developing multi-scale computational models or data-driven models informed directly from measured data. Several improvements could be introduced to the proposed computational framework, such as: refining the features of the surrogate models, by including additional internal variables to aid capturing of the time- and history-dependence; relaxing the hypothesis of small strains and approximately isotropic response; extending the analysis to solids displaying a cohesive response and the consequent macroscopic softening and strain localisation. These improvements will be the subject of our future studies. Received: 30 March 2021; Accepted: 12 July 2021 References 1. Matouš, K., Geers, M. G. D., Kouznetsova, V. G. & Gillman, A. A review of predictive nonlinear theories for multiscale modeling of heterogeneous materials. _J. Comput. Phys._ 330 [, 192–220. https://​doi.​org/​10.​1016/j.​jcp.​2016.​10.​070 (2017).](https://doi.org/10.1016/j.jcp.2016.10.070) 2. Liu, Z., Bessa, M. A. & Liu, W. K. Self-consistent clustering analysis: An efficient multi-scale scheme for inelastic heterogeneous materials. _Comput. Methods Appl. Mech. Eng._ 306 [, 319–341. https://​doi.​org/​10.​1016/j.​cma.​2016.​04.​004 (2016).](https://doi.org/10.1016/j.cma.2016.04.004) 3. Geers, M. G. D., Kouznetsova, V. G., Matouš, K., Yvonnet, J. _Homogenization Methods and Multiscale Modeling: Nonlinear Problems_ . (2017). 4. Feyel, F. A multilevel finite element method (FE2) to describe the response of highly non-linear structures using generalized continua. _Comput. Methods Appl. Mech. Eng._ 192 [(28–30), 3233–3244. https://​doi.​org/​10.​1016/​S0045-​7825(03)​00348-7 (2003).](https://doi.org/10.1016/S0045-7825%0x2803%0x2900348-7) 5. Yvonnet, J. & He, Q. C. The reduced model multiscale method (R3M) for the non-linear homogenization of hyperelastic media at finite strains. _J. Comput. Phys._ 223 [(1), 341–368. https://​doi.​org/​10.​1016/j.​jcp.​2006.​09.​019 (2007).](https://doi.org/10.1016/j.jcp.2006.09.019) 6. Moulinec, H. & Suquet, P. A numerical method for computing the overall response of nonlinear composites with complex micro structure. _Comput. Methods Appl. Mech. Eng._ 157 [(1–2), 69–94. https://​doi.​org/​10.​1016/​S0045-​7825(97)​00218-1 (1998).](https://doi.org/10.1016/S0045-7825%0x2897%0x2900218-1) 7. Fritzen, F. & Böhlke, T. Nonuniform transformation field analysis of materials with morphological anisotropy. _Compos. Sci. Technol._ 71 [(4), 433–442. https://​doi.​org/​10.​1016/j.​comps​citech.​2010.​12.​013 (2011).](https://doi.org/10.1016/j.compscitech.2010.12.013) 8. Dvorak, G. J., Wafa, A. M. & Bahei-El-Din, Y. A. Implementation of the transformation field analysis for inelastic composite materials. _Comput. Mech._ 14 [(3), 201–228. https://​doi.​org/​10.​1007/​BF003​70073 (1994).](https://doi.org/10.1007/BF00370073) 9. Tang, S., Zhang, L. & Liu, W. K. From virtual clustering analysis to self-consistent clustering analysis: A mathematical study. _Comput. Mech._ 62 [(6), 1443–1460. https://​doi.​org/​10.​1007/​s00466-​018-​1573-x (2018).](https://doi.org/10.1007/s00466-018-1573-x) 10. Latypov, M. I., Toth, L. S. & Kalidindi, S. R. Materials knowledge system for nonlinear composites. _Comput. Methods Appl. Mech._ _Eng._ 346 [, 180–196. https://​doi.​org/​10.​1016/j.​cma.​2018.​11.​034 (2019).](https://doi.org/10.1016/j.cma.2018.11.034) 11. Zopf, C. & Kaliske, M. Numerical characterisation of uncured elastomers by a neural network based approach. _Comput. Struct._ 182 [, 504–525. https://​doi.​org/​10.​1016/j.​comps​truc.​2016.​12.​012 (2017).](https://doi.org/10.1016/j.compstruc.2016.12.012) 12. Bessa, M. A. _et al._ A framework for data-driven analysis of materials under uncertainty: Countering the curse of dimensionality. _Comput. Methods Appl. Mech. Eng._ 320 [, 633–667. https://​doi.​org/​10.​1016/j.​cma.​2017.​03.​037 (2017).](https://doi.org/10.1016/j.cma.2017.03.037) 13. Mozaffar, M. _et al._ Deep learning predicts path-dependent plasticity. _Proc. Natl. Acad. Sci. USA._ 116 [(52), 26414–26420. https://​](https://doi.org/10.1073/pnas.1911815116) [doi.​org/​10.​1073/​pnas.​19118​15116 (2019).](https://doi.org/10.1073/pnas.1911815116) 14. Bhattacharjee, S. & Matouš, K. A nonlinear manifold-based reduced order model for multiscale analysis of heterogeneous hyper elastic materials. _J. Comput. Phys._ 313 [, 635–653. https://​doi.​org/​10.​1016/j.​jcp.​2016.​01.​040 (2016).](https://doi.org/10.1016/j.jcp.2016.01.040) 15. Wang, K. & Sun, W. C. A multiscale multi-permeability poroplasticity model linked by recursive homogenizations and deep learn ing. _Comput. Methods Appl. Mech. Eng._ 334 [, 337–380. https://​doi.​org/​10.​1016/j.​cma.​2018.​01.​036 (2018).](https://doi.org/10.1016/j.cma.2018.01.036) 16. Kirchdoerfer, T. & Ortiz, M. Data-driven computational mechanics. _Comput. Methods Appl. Mech. Eng._ 304 [, 81–101. https://​doi.​](https://doi.org/10.1016/j.cma.2016.02.001) [org/​10.​1016/j.​cma.​2016.​02.​001 (2016).](https://doi.org/10.1016/j.cma.2016.02.001) 17. Ibañez, R. _et al._ Archives of computational methods in engineering a manifold learning approach to data-driven computational elasticity and inelasticity. _Arch. Comput. Methods Eng._ 25 [(1), 47–57. https://​doi.​org/​10.​1007/​s11831-​016-​9197-9 (2018).](https://doi.org/10.1007/s11831-016-9197-9) 18. Duval, A. _et al._ _Abaqus/CAE 6.14 user’s manual_ (Dassault Systémes Inc., 2014). 19. Garoz, D., Gilabert, F. A., Sevenois, R. D. B., Spronk, S. W. F. & Van Paepegem, W. Consistent application of periodic boundary conditions in implicit and explicit finite element simulations of damage in composites. _Composites B_ 168 [, 254–266. https://​doi.​](https://doi.org/10.1016/j.compositesb.2018.12.023) [org/​10.​1016/j.​compo​sitesb.​2018.​12.​023 (2019).](https://doi.org/10.1016/j.compositesb.2018.12.023) 20. Soussou, J. E., Moavenzadeh, F. & Gradowczyk, M. H. Application of prony series to linear viscoelasticity. _Trans. Soc. Rheol._ 14 (4), [573–584. https://​doi.​org/​10.​1122/1.​549179 (1970).](https://doi.org/10.1122/1.549179) 21. Lecun, Y., Bengio, Y. & Hinton, G. Deep learning. _Nature_ 521 [(7553), 436–444. https://​doi.​org/​10.​1038/​natur​e14539 (2015).](https://doi.org/10.1038/nature14539) 22. Kingma, D. P. & Ba, J. L. Adam: A method for stochastic optimization. in _3rd Int. Conf. Learn. Represent. ICLR 2015 Conf. Track_ _Proc._, 1–15 (2015). 23. Hashin, Z. Viscoelastic behavior of heterogeneous media. _J. Appl. Mech. Trans. ASME_ 32 [(3), 630–636. https://​doi.​org/​10.​1115/1.​](https://doi.org/10.1115/1.3627270) [36272​70 (1964).](https://doi.org/10.1115/1.3627270) 24. Yang, H., Sinha, S. K., Feng, Y., McCallen, D. B. & Jeremić, B. Energy dissipation analysis of elastic–plastic materials. _Comput._ _Methods Appl. Mech. Eng._ 331 [, 309–326. https://​doi.​org/​10.​1016/j.​cma.​2017.​11.​009 (2018).](https://doi.org/10.1016/j.cma.2017.11.009) 25. Yang, H., Guo, X., Tang, S. & Liu, W. K. Derivation of heterogeneous material laws via data-driven principal component expan sions. _Comput. Mech._ 64 [(2), 365–379. https://​doi.​org/​10.​1007/​s00466-​019-​01728-w (2019).](https://doi.org/10.1007/s00466-019-01728-w) 26. Tran, A. B., Yvonnet, J., He, Q. C., Toulemonde, C. & Sanahuja, J. A simple computational homogenization method for structures made of linear heterogeneous viscoelastic materials. _Comput. Methods Appl. Mech. Eng._ 200 [(45–46), 2956–2970. https://​doi.​org/​](https://doi.org/10.1016/j.cma.2011.06.012) [10.​1016/j.​cma.​2011.​06.​012 (2011).](https://doi.org/10.1016/j.cma.2011.06.012) Author contributions W.G. planned and executed the research and wrote a draft paper; V.L.T. conceived and planned the research, supervised W.G. and wrote the final version of the paper. Competing interests The authors declare no competing interests. Additional information Supplementary Information [The online version contains supplementary material available at https://​doi.​org/​](https://doi.org/10.1038/s41598-021-94957-0) [10.​1038/​s41598-​021-​94957-0.](https://doi.org/10.1038/s41598-021-94957-0) Correspondence and requests for materials should be addressed to V.L.T. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2021

섹션 본문 52문단 · 47,611자

(제목 없음)

1We propose and implement a computational procedure to establish data-driven surrogate constitutive models for heterogeneous materials. We study the multiaxial response of non-linear n-phase composites via Finite Element (FE) simulations and computational homogenisation. Pseudo-random, multiaxial, non-proportional histories of macroscopic strain are imposed on volume elements of n-phase composites, subject to periodic boundary conditions, and the corresponding histories of macroscopic stresses and plastically dissipated energy are recorded. The recorded data is used to train surrogate, phenomenological constitutive models based on neural networks (NNs), and the accuracy of these models is assessed and discussed. We analyse heterogeneous composites with hyperelastic, viscoelastic or elastic-plastic local constitutive descriptions. In each of these three cases, we propose and assess optimal choices of inputs and outputs for the surrogate models and strategies for their training. We find that the proposed computational procedure can capture accurately and effectively the response of non-linear n-phase composites subject to arbitrary mechanical loading.All solids display a heterogeneous microstructure and their mechanical response depends on complex mechanisms spanning multiple length-and time-scales. For this reason, recent research has focused on multi-scale computational modelling of different types of materials 1,2 . This is typically conducted via computational homogenization, commonly of the 1st order 3 , across multiple scales 1,3,4 . Such multiscale calculations often have prohibitive computational cost, such that several researchers have been working at reduced-order modelling (ROM) and surrogate modelling, which is the subject of the current investigation.In ROM, the original problem is mapped to a lower-dimensional problem space, saving computational cost but reducing the fidelity of the physical description of the material. This mapping occurs by a data-driven method and can be applied to the system equations (as in the R3M method 5 ), to the spatial fields of quantities that are being sought 2,6-9 , or to the information describing the microstructure 10 . Reduced-order models typically have neglected microstructure evolution, which limits their predictive capabilities in some nonlinear problems.In surrogate modelling the predictions of detailed and computationally demanding physically-based models are used to perform regressions, using for example Neural Networks (NNs) 11 and Gaussian processes 12 , also in the case of history-dependent responses 13 . Some of these models capture low-dimensional representations of the field of variables of interest through data compression 14 ; others use physical governing laws to achieve higher accuracy and to accelerate the training process 15 . Some authors have suggested developing 'data-driven mechanics' 16,17 informed exclusively by detailed measurements.In the current paper, we focus on using NNs to develop surrogate constitutive models for heterogeneous solids. This is of interest for two reasons: first, because it enables computational savings of multiple order of magnitudes when performing multiscale simulations; secondly, it poses the theoretical basis for the development of surrogate models obtained directly from measured data. The existing literature has not explored quantitatively how the heterogeneity of the solid under investigation affects the predictions of a surrogate model, and for this reason, we focus on the response of a general n-phase composite with tuneable heterogeneity. While many of the existing approaches rely on assuming, to some extent, the mathematical structure of the surrogate model OPEN (for example the existence of a yield surface, or the existence of an associated flow rule), we aim at constructing surrogate models that are purely data-driven. Most studies have focused on the response of solids to monotonic proportional loading, while here we aim at achieving generality of the loading, such as to obtain surrogate models that can be employed effectively in cases where the loading is far from proportional, for example in impact applications.We study separately the cases of nonlinear elastic, time-dependent and history-dependent local constitutive response (hyperelastic, viscoelastic or elastoplastic, respectively), and we identify optimal modelling strategies, including the optimal features of the NNs, for each case, and accompanying procedures for the training of the models. The computational framework is presented in "Computational framework" while results are shown and discussed in "Results and discussion".

Computational framework

2In this study we analyse volume elements (VEs) of n-phase composites. We simulate their mechanical response using FE calculations and computational homogenisation, and we employ the results of such calculations to assemble a training dataset used to teach the macroscopic material behaviour to neural networks. The choice of using neural networks over other machine learning techniques is driven by the ready availability of computational tools, but many of the conclusions of the present study can be extended to other machine learning methods. In this section, we describe the steps of the process.

3Definition of the VEs. In this study we simulate the response of model heterogeneous materials; these consist of a cubic domain of unit volume discretised into 10 × 10 × 10 cubic cells, each possessing different mechanical properties, as sketched in Fig. 1. Each of such cells is meshed by one single eight-noded finite element of type C3D8 in Abaqus 18 . The choice of the density of the discretisation was made to ensure that the VEs displayed a reasonably complex and approximately isotropic macroscopic mechanical response while keeping the computational cost low. This model material is not intended to quantitatively represent any real solid, but rather to represent n n-phase composite of easily tuneable heterogeneity; the spatial distribution P(x i ) of a mechanical property P of the composite under investigation is assumed to follow where r i ∈ [0, 1] represents random numbers of uniform probability density generated at the position of each cell, x i , i = 1, 2, . . . 1000 . We quantify the randomness of each mechanical property P by its relative variance, defined as where κ = 0 corresponds to no spatial variation of P and κ = 2 corresponds to the maximum variation, obtained in the case P min = 0 (in which it is also P max = 2P , where P is the average value of P). The choice of an uncorrelated, uniform probability density for the mechanical properties of each phase of the composite was based on the ease of implementation. In the course of this study, we will analyse the performance of only one realization of the VEs for each of the three types of constitutive models analysed.

4(1) P(x i ) = P min + r i (P max − P min )

5(2) κ = 2(P max − P min )/(P max + P min ) ∈ [0, 2] 18 and were fully automated via Python scripts. Periodic boundary conditions were prescribed on the three pairs of opposite faces of the VEs, as prescribed in 19 . The macroscopic true strains on the VE were controlled by prescribing appropriate displacements on a set of auxiliary nodes; such displacements controlled the distance between opposite faces of the cuboidal domains and also allowed to calculate the current area of all the faces of the VE. The corresponding reaction forces at these auxiliary nodes, representing the components of the total forces acting on the faces of the VE, were recorded during the simulations and used, together with the current area of the faces, to calculate the histories of macroscopic true stress components, as described in detail in 3,19 .

6In this study, we analyse VEs that are initially approximately isotropic and are subject to small strains, such that strain-induced anisotropy is negligible. Driven by the need to keep the computational cost low, we assume that the material response can be evaluated in principal strain space, which coincides with principal stress space for our isotropic material. In the FE simulations, we prescribe time histories of only the normal macroscopic strains ε xx , ε yy , ε zz , while the macroscopic shear strains are set to zero, ε xy , ε xz , ε yz = 0 (xyz is a reference system aligned with the edges of the cubic VE). In other words, the applied strains ε xx , ε yy , ε zz are interpreted as principal strains ε I , ε II , ε III . We check that the macroscopic shear tractions are negligibly small in the simulations, τ xy , τ xz , τ yz ≈ 0 , confirming that the global reference system xyz is a principal system also for the macroscopic stress tensor. We analyse separately three local constitutive behaviours, using models readily available in Abaqus. We summarise these models briefly here.

7Neohookean hyperelastic. A hyperelastic composite was studied as a reference case. For this conservative material, a one-to-one correspondence exists between stress and strain tensors, and we expect a NN to comfortably capture such correspondence. Due to the small deformation imposed, the response of such hyperelastic model practically coincides with that of a linear elastic model of equal initial elastic constants. Therefore, the effects of elastic nonlinearity in the structural response are not examined in this study. We model an array of isotropic, hyperelastic cubic cells, each having an initial Poisson's ratio of 0.45 and an initial Young's modulus randomly assigned as in Eq. (1) and having a spatial average of 3 GPa. A time-independent neohookean local strain energy density is assumed.

8Linear viscoelastic. We also consider a model where the local response is taken as linear isotropic viscoelastic. Such response is defined in Abaqus in terms of instantaneous Young's modulus and Poisson's ratio and of the time-decay of the shear and bulk moduli, expressed by the Prony series 20 . In this study the Poisson's ratio is taken as constant in time and space and equal to 0.45, while the instantaneous Young's modulus is randomly assigned according to Eq. (1) and has an average value of 3 GPa. The time decay law is taken as spatially uniform across the VE and two different laws are considered: one consisting of a single-term Prony series, and one consisting of three terms of such series, each associated with time decay constants of different orders of magnitude. A summary of the relevant properties for the viscoelastic composites is provided in Table 1.

9Elastic-plastic. Elastic-plastic model composites were assembled by assigning to each cell a linear elastic response and J2 incompressible, rate-independent plasticity with isotropic hardening. We assume that the material has substantial strain hardening, with a constant true hardening modulus of 1 GPa, such that the local material response is defined by two elastic constants, a yield stress and this hardening modulus, which is assumed to be uniform. The Poisson's ratio is also assumed to be spatially uniform and equal to 0.45, while spatial variations of Young's modulus and the yield stress are considered separately and prescribed according to Eq. (1), using average values of 3 GPa for the elastic modulus and 50 MPa for the yield stress.

10The FE analyses were conducted via Abaqus Standard using adaptive time stepping. A 'general step' was used for the hyperelastic and elastic-plastic models, while a 'visco step' was used for the viscoelastic model. In all simulations, we accounted for geometric non-linearity.

Generation of the training datasets.

11To generate the training datasets we consider, for each type of constitutive model, a single realisation of the VE described in "Definition of the VEs" and "Finite element simulations". Note that since we analyse only one realisation of the VE, this does not need to be sufficiently large to be "representative"; the only requirement is that such domain is sufficiently large to be approximately isotropic, since we will work in principal stress/strain space. A preliminary RVE size convergence analysis showed that the VEs analysed had an intrinsic scatter of approximately 5%, and that a further increase in the number of statisti- Displacement boundary conditions are applied to the auxiliary nodes of the VE to prescribe appropriate histories of strain and strain rate. The VEs are taken for pseudo-random walks in true principal strain space ε xx , ε yy , ε zz . The random walks comprise a number of consecutive steps of random amplitude and duration; each random walk is terminated upon meeting the condition ε 2 xx + ε 2 yy + ε 2 zz ≥ ε max = 0.05 , to limit the magnitude of the applied strains, as illustrated in Fig. 2. Each step in the random walks corresponds to relative strain amplitudes (final strain minus initial strain) taken, in the case of the hyperelastic and elastic-plastic models, as where �ε min = 0.01 and �ε max = 0.015 are the minimum and maximum amplitude of the strain step in each Cartesian direction, r α i and r β i are uniform random variables between 0 and 1, and θ = 0.5 defines the probability that the amplitude of each strain step is negative (equal probability of positive and negative steps is assumed in this study).

12For rate-independent materials (hyperelastic and elastic-plastic constitutive models), each step in the random walks has a time duration T = 1. For the rate-dependent viscoelastic material, a different approach is taken: for each step of the pseudo-random walks, three strain rates are randomly generated for each of the Cartesian directions, such that where r γ is a uniform random number between 0 and 1 and ε min ,ε max are the smallest and largest possible strain rates. This ensures that the logarithms of such strain rates are uniformly distributed. Then, the step size �ε is generated according to Eq. (3) and the time step duration is determined as �T = �ε/ max ε x ,ε y ,ε z , where ε x ,ε y ,ε z are the three randomly generated strain rates for each current step.

13The FE simulations are then conducted for as many random walks as needed (100 in this study); their solutions are incremental, due to the non-linearity of the problems, and the solution time increments t are determined adaptively by the solver. We post-process the results to extract the histories of macroscopic true strain and true stress as well as of the plastically dissipated energy W pl . We then create a database in which each row represents a general increment of the solution, and the columns report: the time increment t ; the initial strains ε i xx , ε i yy , ε i zz ; the initial stresses σ i xx , σ i yy , σ i zz ; strain increments

14where the superscripts i and f denote values at the beginning (initial) and the end (final) of each increment, respectively. Additional quantities, such as strain rates, macroscopic elastic and plastic strains, equivalent plastic strain are calculated from this data as will be detailed below. All quantities with dimensions of stress are divided by the average Young's modulus (3 GPa), while the plastically dissipated energy is divided www.nature.com/scientificreports/ by the average Young's modulus and by the volume of the VE (equal to 1 in all cases), to obtain a dataset with non-dimensional entries. Each row of such a database represents a data point used to train the surrogate models. The method proposed to generate the training dataset was the result of a preliminary study in which we assessed the distribution of the generated data over the input space of the surrogate models; it was found that the choices in Eqs. (3)-(5) correspond to an adequate spread of such data, as shown in detail in Appendix A (Supplementary Material). By adjusting the parameters ε max ,θ , �ε max , �ε min , η max , η min , the distribution of the training data over the input space can be modified to optimise it for different physical situations. A study of the sensitivity of the results to the above parameters is not pursued here, but rather we employ the parameters described above for all types of models investigated in this study.

15A workstation with 2 processors (Intel Xeon e5-2650 v4, 2.20 GHz) and 256 GB of RAM was used in all computations. Approximately 10 h of CPU time were necessary to produce the training dataset.

16Training of the neural networks. We first randomly choose a number φ of data points from the database described above. A number φ = 0.9φ of these data points are used to train the NNs, while the remaining 0.1φ points are used for validation. All the coordinates of the training data points are normalised by subtracting their average value and dividing by their variances (averages and variances are calculated over the set of φ training data points). In this study we use multi-layer feed-forward neural networks 21 , with two hidden layers of 100 neurons in all cases; the choice of using the same NN architecture in all cases allows a fair comparison between the performances of the different models produced in this study. Such networks establish a non-linear function relating the desired inputs and outputs. If x and y are column vectors containing the inputs and outputs, respectively, such non-linear function reads where f is a non-linear activation function, taken in this study as the Rectified Linear (ReLu) function, defined as W 0 , W 1 , W 2 are weight matrices and b 0 , b 1 , b 2 are column vectors of biases. Training of the neural network is a stochastic optimisation process aimed at minimising a chosen objective (or 'loss') function. When NNs are used to perform regressions, in this study we choose the loss function to be the mean absolute error (MAE), defined as where y (j) k = NN x (j) is the output of the NN [Eq. (6)] corresponding to the input vector x (j) , ȳ (j) k is the corresponding output taken from the training database, j = 1, 2..φ is used to sum over each of the training data points and d is the length of the vector y. Minimisation of the loss function is achieved by back-propagation, using the Adam algorithm ( 22 , with β 1 = 0.9 , β 2 = 0.999 , ε = 0 ) with no regularisation, a maximum of 3000 epochs, a batch size of 50 and learning rate of 0.001. The choice of these parameters was made based on the result of a preliminary study aimed at maximising accuracy while maintaining a reasonable computational cost.

17We will discuss below that for the elastic-plastic models, separate neural networks will be used to perform regressions and classifications, and a different loss function will be used in the case of classification, as described in detail in "Response of an elastic-plastic VE". Training of a single NN took an average CPU time of 20 min.

Structure of the neural networks.

18For each of the three constitutive descriptions investigated (hyperelastic, linear viscoelastic, elastic-plastic), we use NNs as a surrogate model to predict the homogenised constitutive response of the VEs. In each case, the input and output vectors x and y in Eq. (6) contain different quantities; in this section, we present and motivate in detail the choice of inputs and outputs for each surrogate model.

Response of a hyperelastic VE.

19For the case of the hyperelastic analyses, each cell (or finite element) of the VE is assigned a local response chosen as neohookean. In such constitutive description, which does not include energy dissipation, the local stresses [σ ] are obtained by differentiating a scalar elastic potential function as where F is deformation gradient, 1 , 2 , 3 are principal stretches, and W is the neohookean elastic potential, defined as where µ and K are the local shear and bulk moduli, respectively, and they are related to the local Young's modulus E and Poisson's ratio ν by the usual relations www.nature.com/scientificreports/ The hyperelastic VEs are n-phase composites in which each phase has a different Young's modulus and a Poisson's ratio ν = 0.45 ; their macroscopic response is conservative. An elastic potential could be introduced to describe such macroscopic response, however, this would take a form different, in general, from the local potential in Eq. (10). Such potential would establish a non-linear one-to-one mapping of the macroscopic true stress and true strain tensors. In our surrogate models, the neural network (6) will establish such correspondence, such that where E is the average Young's modulus of the VE. The choice of having true principal strains ε as input and principal stresses σ as an output, rather than vice-versa, is convenient since our simulations are conducted in strain control.

20Response of a linear viscoelastic VE. In this case, the VEs are assigned linear viscoelastic local constitutive response, as where µ 0 and K 0 are the instantaneous shear and bulk moduli, respectively. The principal stress vector σ is decomposed into its deviatoric and hydrostatic parts as in Eq. (13) (note I = 1 1 1 T ), and the shear and bulk moduli µ R (t) and K R (t) are assumed to relax according to identical Prony series 20 , having N terms. The macroscopic response of the composite VE can be proven to be also linear viscoelastic 23 . It can also be shown that the change in principal stresses σ over a generic time increment t can be approximated by where E 0 is the instantaneous stiffness matrix, γ k is relative relaxation tensor, • indicates the Hadamard product, N is the number of terms in the Prony series which approximates the macroscopic relaxation response, and t k is the time relaxation constant of the k-th term of such Prony series.

21Inspired by the structure of Eq. (14), in our machine learning exercise we use where E 0 is the average instantaneous Young's modulus of the VE, σ is a column vector of the increments in principal stresses over a time increment t , corresponding to an increment in principal strains �ε =ε �t , t max is the largest of the time decay constants used in the local Prony series described in Eq. (13). The proposed regression neglects the effect of history-dependent viscous strains on the behaviour of the composite, assuming that the history dependence of the response can be quantified by knowledge of the macroscopic stresses and strains.

22Response of an elastic-plastic VE. For the case of elastic-plastic VEs, the material is assigned a local elasticplastic response consisting of isotropic linear elasticity and incompressible, rate-independent J2 plasticity with isotropic hardening and strain hardening given by ε pl =σ/H , where are the von Mises equivalent stress and accumulated equivalent plastic strain, respectively, such that σ ijεij =σε pl (Einstein's summation convention applies), S is the local deviatoric stress tensor, ε pl loc is the local plastic strain tensor, and H is a constant hardening modulus.

23In this study, we will compare the performance of three different surrogate models based on multiple NNs with different features. The formulation of each of these three surrogate models comprises three steps, as follows.

24(i) A linear perturbation analysis of the unloaded VE is conducted in Abaqus to determine the initial macroscopic elastic stiffness matrix of the VE. This is achieved by imposing a small macroscopic normal strain on the VE (in turn, along each of the three Cartesian directions) while constraining the normal macroscopic strains in the other two Cartesian directions to vanish, and extracting the corresponding macroscopic stresses in all directions, such to assemble the 3 by 3 stiffness matrix, written in principal www.nature.com/scientificreports/ stress/strain space. As the study is limited to small strains and isotropic VEs, we assume that such stiffness matrix does not change with the applied macroscopic strain. (ii) A NN is used to perform a classification exercise, to distinguish between elastic increments (in which no plastic dissipation occurs, W pl = 0 ) from elastic-plastic increments (in which some energy is plastically dissipated, �W pl > 0). (iii) Then, if an increment is classified as elastic, the change in the macroscopic stress state of the VE is obtained from the equations of linear elasticity, using the stiffness matrix calculated in step (i). Conversely, if an increment is classified as elastic-plastic, a second NN is used to perform a regression exercise to predict the change in the macroscopic stress state of the VE over that increment.

25In the following, due to the isotropy of the VEs and the small strains imposed, we will assume (as observed from the simulations) that no substantial strain localisation and softening occur during deformation of the VEs, such that the macroscopic principal stress σ and principal strain ε are, in first approximation, sufficient to describe the state of the solid at any given point in time, and that history effects can be quantified by appropriate auxiliary variables depending on the histories of σ and ε . This justifies the use of simple feed-forward NNs as opposed to more complex, computationally demanding, and hard to train recurrent NNs 13 .

26We also note that the presence of the classification step can be in principle avoided, however in our preliminary studies we found that including the preliminary classification step increases the accuracy by approximately 20%.

27We now proceed to describe the three different models proposed in this study.

28Model I. The classification is performed by a neural network NN I clas having as inputs σ , ε and ε for each increment, and providing a single scalar output NN I clas (σ , ε,�ε) ∈ [0, 1] , such that an increment is considered elastic if NN I clas has an output less than 0.5 and elastic-plastic otherwise. To train such NN we proceed broadly as described in "Training of the neural networks". Our results database is pre-processed to include, for each increment, a column y label that is set to 0 if no plastic dissipation occurs over that increment, and to 1 otherwise (note that �W pl < 0 does not occur in our thermodynamically consistent training dataset).The desired number of training data points φ is selected from the database such that φ/2 such points have y label = 0 and φ/2 have y label = 1, to avoid any bias. A number φ = 0.9φ of these data points is randomly selected for training and the remaining 0.1φ is used for validation. The loss function used to train NN I clas is chosen as the binary cross-entropy BCE, defined as with j = 1, 2..φ used to sum over each of the training data points.

29The regression to predict the change in the macroscopic stress state is performed by a separate NN using the same inputs as NN I clas and providing as output σ , as This is the simplest possible choice to capture a path-dependent, rate-independent response, and it assumes that path-dependence is completely quantified by knowledge of the initial σ and ε.

30Model II. In this model we include as an input for the classification and regression a macroscopic measure of the accumulated equivalent von Mises plastic strain; this is obtained by assuming that the total macroscopic strains can be decomposed as the sum of elastic and plastic parts

31The increments in a 'macroscopic' equivalent von Mises plastic strain are computed as and its accumulated value ε pl 0 is computed as a function of time. In this model we prefer to use ε el , ε pl in lieu of σ , ε , as inputs for the NNs; the macroscopic response of the VE is expected to be elastic-plastic with a hardening response not necessarily isotropic, as prescribed at a local level. For this reason, we prefer to feed to the NNs the explicit knowledge of the plastic strains ε pl .

32The classification is performed by a neural network NN II clas having as inputs ε el , ε pl , ε and ε pl 0 for each increment, and providing a single scalar output NN II clas ε el , ε pl ,ε pl 0 ,�ε ∈ [0, 1] , used to determine if an increment is elastic NN II clas < 0.5 or elastic-plastic NN II clas ≥ 0.5 . The loss function for the classification exercise is identical to that for Model I. The corresponding increment in stress can readily be obtained from Eq. (20), �σ = C 0 �ε − �ε pl . We note here that decomposing the macroscopic strains into an elastic and plastic component is not, strictly, physically consistent. For example, one cannot use knowledge of macroscopic stress and macroscopic plastic strain to compute the density of plastically dissipated energy in the volume element, i.e.

33where W FE pl is the density in plastically dissipated energy computed by the FE simulations; this is because the left-hand side of the inequality, σ ε pl , in the case of heterogeneous solids, includes the plastic-free energy, which is the elastic strain energy stored in the elastic regions of a plastically deforming heterogeneous volume element 24 . The inequality (23) violates the Hill-Mendel condition 3 unless the equal sign applies. This is illustrated in Fig. 3, where we compare the plastically dissipated energy calculated from the knowledge of the macroscopic plastic strains (as W pl = t 0 σ dε pl /dt dt ) to that determined by the FE simulations. The plastically dissipated energy is normalised in Fig. 3 as W pl = W pl / EV 0 , and evaluated in the case of a homogeneous volume element (for which σ ε pl = W FE pl , Fig. 3a) and for a composite of heterogeneity κ = 2 , for which σ ε pl ≥ W FE pl (Fig. 3b).

34Model III. To avoid the physical inconsistency of Model II, we derive an alternative model which does not make use of the accumulated macroscopic equivalent von Mises plastic strain ε pl 0 or of the macroscopic plastic strain components ε pl . In Model III we replace ε pl 0 by W pl as an input of the NNs and we perform an additional regression to predict W pl at every increment.

35A classification to distinguish elastic from elastic-plastic increments if performed by a neural network NN III clas ε, σ/E,W pl ,�ε ∈ [0, 1] , where W pl = W pl / EV 0 ; the two regressions described above use NNs with the same inputs as NN III clas , namely

36As for the previous models, the chosen loss functions are BCE for the classification and MAE for the two regressions.

37Using the NNs to predict stress versus strain histories. Once successfully trained, the NNs are used as surrogate models to predict the homogenised constitutive response of the VEs subject to previously unseen, www.nature.com/scientificreports/ pseudo-random, multiaxial macroscopic strain histories. To assess the accuracy of each surrogate model we generate 20 additional unseen loading cases, in the form of pseudo-random walks in true principal strain space, as described in "Generation of the training datasets". These loading cases are applied to the same realisation of the VE used to produce the training data, and the corresponding simulations are conducted in Abaqus Standard as in "Finite element simulations". The macroscopic stress versus strain histories are extracted from the simulations and used as a benchmark for the surrogate models. The predictions by the surrogate model are obtained as follows. First, macroscopic strains and stresses are initialised and set to zero. Then, we consider the first increment of the simulations, corresponding to time and strain increments t FE 1 , ε FE 1 ; the NNs described in the previous section are used to predict the stress and strain vectors at the end of the first increment, using t FE 1 , ε FE 1 as inputs. Such updated stress and strain vectors are used as inputs of the NNs for the following increment; such NNs always use time and strain increments identical to those in the FE solution, t = t FE , ε = ε FE . Repeating this procedure iteratively, we construct predictions of the stress versus strain curves using the surrogate models.

38Generating a prediction of the stress versus strain history for an average random loading case takes approximately less than one second of CPU time. We note that obtaining the corresponding predictions via FE simulations requires approximately 350 s, therefore the surrogate models offer a computational saving of at least two orders of magnitudes. In this study, the VE was meshed by only 10 3 elements, but this number was kept low in the interest of speed. For very detailed VE of materials with complex architecture, such a number can easily exceed 10 8 , corresponding to a great increase in the CPU time required to perform the FE simulations; however, the time required by the surrogate models to produce the same predictions would remain below 1 s. Also, in this study we use NNs with 100 neurons per layer; the number of neurons can be reduced substantially without a corresponding reduction in accuracy, as it was found in a preliminary study not reported here for brevity.

Quantification of the accuracy of the surrogate models.

39To assess the accuracy of the regressions performed by the NNs NN I reg , NN II reg , NN III reg σ ,NN III reg W , in addition to the final value of the loss function MAE, we introduce an additional metric, to which we refer as path-wise stress error, E σ ; this metric aims at capturing the effectiveness of a surrogate model in predicting macroscopic stress versus strain histories of a VE. This is computed as follows. A pseudo-random loading case is generated as described in "Generation of the training datasets" and the corresponding FE simulation (comprising N inc increments) is conducted. The macroscopic stress predicted by the detailed FE simulation, referred to as σ FE here, is compared to the corresponding prediction by a NN (at the same strain ε ), indicated as σ NN , at the end of every increment, and E σ is defined as where j is used to sum over different increments and � * � 2 denotes the norm 2 of *. To compare the accuracy of different models, E σ is evaluated over 20 different pseudo-random loading cases and the corresponding average E σ is computed.

40When assessing the effectiveness of the classification exercises performed in this study by NN I clas , NN II clas , NN III clas , we define a path-wise accuracy A as where C correct is the total number of correct classification instances over a certain random loading case. Similarly to the case of the regressions, this is computed for a population of 20 different loading cases and the average A is evaluated.

Results and discussion

41We proceed to present the predictions of the surrogate models for each constitutive description of the n-phase composites analysed. We note here that the predictions shown below, obtained with accurately trained NNs, were found to be thermodynamically consistent, with no exception, in the sense that in all cases, and in all increments of the simulations conducted in this study, the energy was conserved and the dissipated energy was non-negative. This can be explained by the fact that our training data is thermodynamically consistent and that the NN have an excellent agreement with this data at the end of the training. During the training/optimisation of the NNs, it can occur that thermodynamically inconsistent predictions are made, especially at the early stages of the optimisation. In this study, however, this problem was not detected after the training, such that it was not necessary to include explicit constraints in the optimisation problem. We also checked, by appropriate permutations of the indices of inputs and outputs along the three Cartesian directions, that the predictions of the surrogate models were approximately isotropic as expected.

42Hyperelastic n-phase composite. We recall that these composites comprise an array of 10 × 10 × 10 cubic cells (each meshed by a single FE of type C3D8 in Abaqus 18 ) with dissimilar Young's moduli and uniform Poisson's ratio as detailed in "Computational framework". Figure 4 presents, for a selected pseudo-random loading case, a comparison of the predictions of the FE simulations and of the surrogate model. These are found in excellent agreement and correspond to a path-wise stress error E σ = 1.7% . φ = 4000 datapoints were used to train the surrogate model. www.nature.com/scientificreports/ Considering the small strains imposed on the composite, we expect the NN (12) to predict comfortably the correspondence between stress and strain, which is very close to a linear elastic relation. Figure 5 shows that this is indeed the case. Only 2000 training data points are required to ensure E σ < 5% ; the surrogate model shows accuracy approximately independent of the degree of heterogeneity κ.

43We note that choosing a NN with a structure like in (12), rather than looking for an elastic potential as pursued by other authors (e.g. 25 ), has the advantage of being suitable in cases where such elastic potential does not exist.

44Viscoelastic n-phase composite. We proceed to assess the accuracy of the surrogate model of a viscoelastic composite. Figure 6 compares the FE predictions to those by the surrogate model for a composite with relaxation characteristic given by a single-term Prony series, while Fig. 7 presents the same information for the case of a relaxation function comprising a three-term Prony series. We note that for both cases η min = − 3, η max = 0, such that the strain rates in each increment are logarithmically spread over three orders of magnitude and comprised between 10 −3 and 10 0 s −1 . We found in a preliminary study that logarithmic spacing of the training data points was more effective than linear spacing.

45The data in Figs. 6 and 7 correspond to κ = 2 and φ = 5000 . For this choice, the surrogate model performs an excellent regression for a composite with a single-term Prony series, achieving a path-wise stress error E σ = 6.2% . In the case of a relaxation function comprising a three-term Prony series, the accuracy of the surrogate model is lower but still acceptable (E σ = 19.4%) , especially in consideration of the very complex loading case imposed on the composite. The accuracy of the regressions could be improved by increasing the number of training datapoints, but this is not investigated here. Figure 8 provides average values of E σ , calculated over 20 different pseudo-random loading cases, for the two composites examined. Clearly, the accuracy of the model is relatively insensitive to the degree of heterogeneity for the case of a single-term Prony series (Fig. 8a); for a three-term Prony series (Fig. 8b), the surrogate models give lower E σ at low heterogeneity κ , but the error becomes less and less sensitive to κ with an increasing number of training data points φ. The trends in Fig. 8a suggest that the error can be lowered by increasing the number of training data points. www.nature.com/scientificreports/ We conclude that our proposed regression (15) is effective in capturing the response of volume elements with a general linear viscoelastic response, loaded over wide ranges of strains and strain rates. The proposed method directly provides macroscopic stresses and strains without the need for defining a "macroscopic relaxation function" as pursued in other studies 26 . Elastic-plastic n-phase composite. We now examine the accuracy of the surrogate models proposed for the elastic-plastic composites; in this section, we only focus on composites with heterogeneous Young's modulus and uniform yield stress, while the case of uniform modulus and spatially varying yield stress is presented in Appendix B (supplementary material) for the sake of brevity. The predictions of Model II are compared to the results of FE simulations in Figs. 9 and 10, in terms of stress versus strain histories, for the highest possible heterogeneity, κ = 2. We choose to plot the predictions of Model II because this model outperforms the other two, as it will be shown below. Figures 9 and 10 correspond to selected pseudo-random loading paths, with Fig. 9 referring to a relatively simple path and Fig. 10 present the case of a much more complicated path. In both cases, Model II achieves excellent accuracy, however, as expected, this accuracy is higher for the simpler loading path (E σ = 2.7%) than for the more complicated one (E σ = 17.8%). Figure 11 compares the accuracy of Models I, II and III (in terms of the average path-wise stress error E σ ) and the sensitivity of such accuracy to the degree of heterogeneity κ and to the size of the training dataset φ. For φ = 5000 , Model II outperforms Model I, which in turn is more accurate than Model III; this trend is also observed at lower values of φ . The accuracy of Model II is scarcely sensitive to the value of φ , suggesting that φ = 2000 is a sufficiently large dataset for the problem at hand. The general trend observed is that the accuracy of all models decreases as κ increases.

46The effectiveness of the classifications and regressions performed by Models I, II and III, are assessed independently in Figs. 12 and 13, respectively. Figure 12 presents the accuracy of the classification NNs used for the three models. Such accuracies are comparable for the three models, with Model III outperforming slightly the other two. Perhaps counter-intuitively, for κ > 0 , the accuracy of the classification exercise is higher for a higher degree of heterogeneity. This is due to the fact that for very heterogeneous materials, the vast majority of the input space corresponds to plastic increments. We recall that the training dataset for these classifications contains www.nature.com/scientificreports/ equal numbers of data points in the plastic and elastic regimes, such that at high heterogeneity, data points that correspond to elastic increments tend to cluster in input space, and this makes the classification process easier for the NNs. Similarly, in the case κ = 0 a vast majority of increments are elastic, resulting in an easier classification. In Fig. 13 we compare the values of MAE calculated for the validation dataset, for different values of κ and φ . We note that this quantity is independent of the length and complexity of the loading path and of the classification process, and only quantifies the effectiveness of the models in predicting the evolution of state variables over a single (elastic-plastic) increment. Model II always outperforms the other two irrespective of κ and φ ; in absolute terms, the performance of Model II is nearly independent of φ , again suggesting that φ = 2000 is a sufficiently large dataset. At low φ , Model III outperforms Model I, but the opposite is observed at high values of φ.

47In summary, Model III is the best of the three in the classification exercise, while Model II outperforms the other two models in the regression exercise (with models I and III approximately equivalent in regression performance). Overall, Model II is the best performing model in terms of E σ and requires a smaller size of the training dataset to achieve a given accuracy. As larger and larger training datasets are employed, the performances of the three models, however (in terms of E σ ) tend to become very similar. For the n-phase composites considered in this study, φ ≥ 3000 guarantees E σ < 10% for all models and irrespective of κ , which results in sufficiently accurate predictions in all cases of practical interest.

48It is expected that composites with heterogeneous Young's modulus and uniform yield stress (whose performance is discussed here and shown in Figs. 9, 10, 11, 12, and 13) display a macroscopic plastic response which is substantially pressure-sensitive; in contrast, composites with uniform Young's modulus and spatially varying yield stress are expected to have an approximately pressure-insensitive macroscopic behaviour. Consequently, capturing the material response is expected to be easier in the second case. We found that indeed this is the case. Results for composites with uniform Young's modulus and varying yield stress are presented in detail in Appendix B (supplementary material) for the benefit of the interested reader.

49Some unexpected non-monotonic trends are observed in Figs. 11, 12 and 13; the reasons for these trends were not investigated further in this study, but these could be due to different distributions of training datapoints across the input space, for different values κ . Similarly, the relative performance of models II and III was also unexpected, in consideration of the slight physical inconsistency of Model II. While for the n-phase composites www.nature.com/scientificreports/ investigated here Model II outperforms (however slightly) Model III, this might not be the case for other types of heterogeneous materials containing plastically deforming phases. A detailed analysis of the relative performance of these two models and possible improvements to both is left as a topic for future studies.

Concluding remarks

50We proposed and assessed a computational framework to derive data-driven surrogate models for the response of non-linear n-phase composites to arbitrary mechanical loading. We considered composites with different non-linear local material responses, including non-linear elastic, time-dependent linear viscoelastic, and historydependent elastic-plastic; in each case, we determine the macroscopic mechanical response via FE simulations and computational homogenisation and use data from the simulations to train appropriate neural networks to reproduce the homogenised response accurately. For each local constitutive description, we propose a computational procedure to produce training data and appropriate inputs and outputs for the surrogate models. We examine systematically the accuracy of the proposed surrogate models and we explore the sensitivity of their accuracy to the degree of heterogeneity of the composites and to the size of the training dataset. The main conclusions of the study are as follows:

51• The strategy proposed to produce the training dataset, consisting of imposing pseudo-random histories of macroscopic deformation to the volume elements, results in training data representative of realistic scenarios for all three constitutive descriptions analysed in this study. The datasets produced appropriately sample the input space of the surrogate models, facilitating the application of machine learning techniques. • For the type of loading examined in this study, restricted to small strains and negligible localisation of the stress, strain and strain rate fields, the proposed surrogate models proved very effective in capturing the nonlinear multi-axial material response over wide ranges of applied strain rates and strain triaxiality, including non-monotonic and non-proportional loading. • For elastic-plastic n-phase composites, absent any substantial strain localisation, the history-dependence of the material can be quantified adequately by knowledge of the current macroscopic stresses and strains; on the other hand, including appropriate history-dependent internal variables improves the accuracy of the surrogate models and decreases the size of the training dataset needed to achieve a prescribed accuracy. Figure 13. MAE for the validation dataset at convergence, for the NNs (19), (22) and (24), as a function of the heterogeneity κ and the number of training data points φ . Data are shown for models I, II and III. www.nature.com/scientificreports/ The findings of this study may serve as a guide to researchers developing multi-scale computational models or data-driven models informed directly from measured data. Several improvements could be introduced to the proposed computational framework, such as: refining the features of the surrogate models, by including additional internal variables to aid capturing of the time-and history-dependence; relaxing the hypothesis of small strains and approximately isotropic response; extending the analysis to solids displaying a cohesive response and the consequent macroscopic softening and strain localisation. These improvements will be the subject of our future studies.

52Received: 30 March 2021; Accepted: 12 July 2021

참고문헌 27건

  1. Nonuniform transformation field analysis of materials with morphological anisotropy Composites Science and Technology · Elsevier BV · 2010 10.1016/j.compscitech.2010.12.013
  2. A numerical method for computing the overall response of nonlinear composites with complex microstructure Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1998 10.1016/s0045-7825(97)00218-1
  3. Viscoelastic Behavior of Heterogeneous Media Journal of Applied Mechanics · ASM International · 1965 10.1115/1.3627270
  4. A simple computational homogenization method for structures made of linear heterogeneous viscoelastic materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2011 10.1016/j.cma.2011.06.012
  5. Implementation of the transformation field analysis for inelastic composite materials Computational Mechanics · Springer Science+Business Media · 1994 10.1007/bf00370073
  6. Application of Prony Series to Linear Viscoelasticity Transactions of the Society of Rheology · American Institute of Physics · 1970 10.1122/1.549179
  7. The reduced model multiscale method (R3M) for the non-linear homogenization of hyperelastic media at finite strains Journal of Computational Physics · Elsevier BV · 2006 10.1016/j.jcp.2006.09.019
  8. A multilevel finite element method (FE2) to describe the response of highly non-linear structures using generalized continua Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2003 10.1016/s0045-7825(03)00348-7
  9. Data-driven computational mechanics Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.02.001
  10. A nonlinear manifold-based reduced order model for multiscale analysis of heterogeneous hyperelastic materials Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.01.040
  11. Self-consistent clustering analysis: An efficient multi-scale scheme for inelastic heterogeneous materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.04.004
  12. A Manifold Learning Approach to Data-Driven Computational Elasticity and Inelasticity Archives of Computational Methods in Engineering · Springer Science+Business Media · 2016 10.1007/s11831-016-9197-9
  13. A review of predictive nonlinear theories for multiscale modeling of heterogeneous materials Journal of Computational Physics · Elsevier BV · 2016 10.1016/j.jcp.2016.10.070
  14. Numerical characterisation of uncured elastomers by a neural network based approach Computers & Structures · Elsevier BV · 2017 10.1016/j.compstruc.2016.12.012
  15. Homogenization Methods and Multiscale Modeling: Nonlinear Problems 2017 10.1002/9781119176817.ecm2107
  16. A framework for data-driven analysis of materials under uncertainty: Countering the curse of dimensionality Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2017 10.1016/j.cma.2017.03.037
  17. Energy dissipation analysis of elastic–plastic materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2017 10.1016/j.cma.2017.11.009
  18. A multiscale multi-permeability poroplasticity model linked by recursive homogenizations and deep learning Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.01.036
  19. From virtual clustering analysis to self-consistent clustering analysis: a mathematical study Computational Mechanics · Springer Science+Business Media · 2018 10.1007/s00466-018-1573-x
  20. Materials knowledge system for nonlinear composites Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.11.034
  21. Consistent application of periodic boundary conditions in implicit and explicit finite element simulations of damage in composites Composites Part B Engineering · Elsevier BV · 2018 10.1016/j.compositesb.2018.12.023
  22. Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
  23. Derivation of heterogeneous material laws via data-driven principal component expansions Computational Mechanics · Springer Science+Business Media · 2019 10.1007/s00466-019-01728-w
  24. (제목 없음) DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · Schloss Dagstuhl – Leibniz Center for Informatics · 2021 10.4230/lipics.cp.2021.42
  25. Deep learning predicts path-dependent plasticity Proceedings of the National Academy of Sciences · National Academy of Sciences · 2019 10.1073/pnas.1911815116
  26. A numerical method for computing the overall response of nonlinear composites with complex microstructure Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1998 10.1016/s0045-7825(97)00218-1
  27. Homogenization Methods and Multiscale Modeling: Nonlinear Problems 2017 10.1002/9781119176817.ecm107