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

Graph-enhanced deep material network: multiscale materials modeling with microstructural informatics

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

기본 정보

저자
  1. Jimmy Jean — Department of Civil Engineering, National Taiwan University, Taipei City, 10617, Taipei, Taiwan
  2. Tung-Huan Su — Computational and Multiscale Mechanics Group, ANSYS Inc., Livermore, CA, 94551, USA
  3. Szu-Jui Huang — Department of Civil Engineering, National Taiwan University, Taipei City, 10617, Taipei, Taiwan
  4. C.T. Wu — Computational and Multiscale Mechanics Group, ANSYS Inc., Livermore, CA, 94551, USA
  5. Chuin‐Shan Chen — Department of Civil Engineering, National Taiwan University, Taipei City, 10617, Taipei, Taiwan
DOI
10.1007/s00466-024-02493-1
저널
Computational Mechanics
발행년도
2024
발행기관
Springer Science+Business Media
피인용수
7
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s00466-024-02493-1
토픽
Composite Material Mechanics
OpenAlex ID
W4397039576

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(9) 타이어코드, (10) 아라미드
R&D 측면
분석·모델링
확신도
0.80
근거 용어
multiscale modeling, microstructural informatics, carbon fiber reinforced polymer (CFRP), composite microstructures, graph neural networks
판단 근거
이 논문은 미세구조 정보를 활용하여 복합재료의 비선형 거동을 예측하는 멀티스케일 모델링(GNN-DMN) 기법을 다룹니다. 이는 코오롱인더스트리의 핵심 사업인 탄소섬유 강화 복합재(CFRP)나 타이어코드, 아라미드 등 섬유 보강 복합소재의 물성 설계 및 해석 효율화에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
복합소재(CFRP, 아라미드 등)의 미세구조 설계 시, 실험 없이도 AI 모델을 통해 기계적 물성(강성, 비선형성)을 빠르게 예측하여 R&D 기간을 단축하고 최적의 배합/구조를 설계하는 데 활용 가능합니다.
평가 입력
섹션 본문 66,518자 중 30,032자 발췌

초록

Abstract This study addresses the fundamental challenge of extending the deep material network (DMN) to accommodate multiple microstructures. DMN has gained significant attention due to its ability to be used for fast and accurate nonlinear multiscale modeling while being only trained on linear elastic data. Due to its limitation to a single microstructure, various works sought to generalize it based on the macroscopic description of microstructures. In this work, we utilize a mechanistic machine learning approach grounded instead in microstructural informatics, which can potentially be used for any family of microstructures. This is achieved by learning from the graph representation of microstructures through graph neural networks. Such an approach is a first in works related to DMN. We propose a mixed graph neural network (GNN)-DMN model that can single-handedly treat multiple microstructures and derive their DMN representations. Two examples are designed to demonstrate the validity and reliability of the approach, even when it comes to the prediction of nonlinear responses for microstructures unseen during training. Furthermore, the model trained on microstructures with complex topology accurately makes inferences on microstructures created under different and simpler assumptions. Our work opens the door for the possibility of unifying the multiscale modeling of many families of microstructures under a single model, as well as new possibilities in material design.

본문 68,135자

본문 펼치기
This study addresses the fundamental challenge of extending the deep material network (DMN) to accommodate multiple microstructures.DMN has gained significant attention due to its ability to be used for fast and accurate nonlinear multiscale modeling while being only trained on linear elastic data.Due to its limitation to a single microstructure, various works sought to generalize it based on the macroscopic description of microstructures.In this work, we utilize a mechanistic machine learning approach grounded instead in microstructural informatics, which can potentially be used for any family of microstructures.This is achieved by learning from the graph representation of microstructures through graph neural networks.Such an approach is a first in works related to DMN.We propose a mixed graph neural network (GNN)-DMN model that can single-handedly treat multiple microstructures and derive their DMN representations.Two examples are designed to demonstrate the validity and reliability of the approach, even when it comes to the prediction of nonlinear responses for microstructures unseen during training.Furthermore, the model trained on microstructures with complex topology accurately makes inferences on microstructures created under different and simpler assumptions.Our work opens the door for the possibility of unifying the multiscale modeling of many families of microstructures under a single model, as well as new possibilities in material design. Introduction During the past decades, the desire to design complex materials and the necessity to understand their behavior have given rise to extensive research in multiscale modeling [1].Traditionally, multiscale modeling has been performed using the finite element method (FEM) or the fast Fourier transform (FFT).Well-established software applications in the industry that allow to run multiscale simulations, such as LS-DYNA ® [2], are based on these methods.However, FEM and FFT-based multiscale modeling can be daunting due to their high computational cost.To overcome this challenge, researchers explored several possibilities.Data-driven techniques [3][4][5] were proposed to bypass material modeling at the microscopic scale.Another novel and notable effort was to use neural networks to create FE-like shape functions, which results in a lot more accuracy than FEM with the same number of degrees of freedom [6][7][8].Interest also grew in accelerating modeling at the microscale through machine learning (ML), thus making ML-based multiscale modeling [9] notably gain in popularity.Various types of ML models were used over the years for this purpose, from which we may mention: feedforward neural networks [10,11], recurrent neural networks [12][13][14], convolutional neural networks [15][16][17], graph neural networks [18][19][20].Besides these conventional neural network models, a deep material network (DMN) was recently introduced by Liu et al. [21] to model 2D homogenization problems and was later extended to 3D [22].DMN sets itself apart from other neural network models in several aspects.First, it is designed at its core for multiscale modeling; this contrasts with conventional neural networks designed to be as general and applicable to different fields as possible.In DMN, the analytical solution to the problem of determining the homogenized properties of a two-phase laminate is used as its building block.This custom design allows DMN to capture the behavior of materials with only a few parameters that hold physical meanings.Second, because of its physics-based design, it can be used to predict material nonlinearity (e.g., elastoplasticity, damage, hyperelasticity), although solely trained on linear elastic data.This is because the homogenization behavior considered in DMN is independent of material nonlinearity.Due to its unique characteristics and capacity for fast and reliable predictions, DMN even found its way into legacy software in the industry [23,24]. Introduction A non-negligible amount of research has been carried out on DMN.Liu et al. [21] showed its capacity to implicitly learn the volume fractions of various 2D representative volume elements (RVE) types, including matrix-inclusion, amorphous, and anisotropic.Liu and Wu [22] explored the applicability of DMN to 3D problems for RVEs, such as a particle-reinforced microstructure and a carbon fiber reinforced polymer (CFRP) composite.Gajek et al. [25] set to establish the basic mechanical principles of DMN.These works and others [1,26,27] all support the ability of the network to learn the physics of microstructures.However, this particularity of DMN entails that it can only be confidently used to represent the specific microstructure it is fitted for.Representing new microstructures implies training new DMNs. Introduction Many took notice of this limitation and sought to generalize DMN by taking advantage of the macroscopic description of microstructures.Liu et al. [28] proposed a transfer learning approach based on fiber volume fraction.At an initial stage, a DMN was trained for a particle-reinforced 2D RVE with a low fiber volume fraction.After fitting, they used a simplistic function to extrapolate the parameters of the learned DMN for another RVE with higher fiber content.The obtained parameters were then used as initialization for training the latter RVE.Huang et al. [29] built on the concept presented by Liu et al. [28] and proposed the so-called microstructureguided DMN (MgDMN), based on a parameter space defined by orientation state and volume fraction.The previous two methods are a posteriori interpolation strategies in the sense that new DMNs are obtained through post-processing.In contrast, Gajek et al. [30] proposed an a priori interpolation strategy.They modified the formulation of DMN such that orientation angles in the network are themselves functions of the fiber orientation tensor [31] of short-fiber reinforced composites.They trained this modified DMN for selected cases in the fiber orientation space and then used it to interpolate properties for other microstructures within that space.These approaches [28][29][30] have contributed significantly to facilitating the application of DMN to multiple microstructures. Introduction Apart from DMN, other research works have established the feasibility of directly learning from microstructure data.We may list works utilizing convolutional neural networks (CNNs) [15][16][17]32].Yang et al. [15] combined CNN and principal component analysis (PCA) to predict the nonlinear behavior of composite microstructures from their image representation.Eidel [17] used a 3D CNN architecture to predict the homogenized elastic properties of two-phase microstructures under different types of boundary conditions.Besides convolutional neural networks, graph neural networks (GNNs) [18][19][20] have recently gained in popularity in the sphere of material modeling.For instance, Vlassis et al. [18] used GNNs to predict the hyperelastic energy functionals of polycrystals.To do so, they designed a hybrid network architecture.GNNs [33] performed unsupervised classification, transforming the graph representation of polycrystals into feature vectors.A multi-layer perceptron performed the regression task of predicting energy, making predictions about energy functionals based on the feature vector and the polycrystals' second-order right Cauchy-Green deformation tensor.Vlassis and Sun [19] used a graph auto-encoder neural network architecture to compress so-called plasticity graphs into vectors of internal variables.Nonetheless, these models lack the key benefit of DMN.They cannot be used to simulate material nonlinearity if trained on linear elastic data. Introduction Despite this wealth of progress, research leveraging ML to learn from microstructure data in order to generalize DMN is currently non-existent in the literature.Hence, we pioneer in this work the use of ML-based microstructure informatics [34] to fill this gap in the research on DMN.In this regard, we can either start from the image representation of microstructures (hence using CNNs) or their graph representation (hence using GNNs).Given the straightforwardness of converting meshes from our mesh-based RVE tool into graphs, we select the latter.Learning from the graph data of microstructures frees us from the constraint of being restrained to a specific material system.This is because graphs can store features representing microstructural properties within their nodes, such as material phase at a given location.Switching from one material system (e.g., composites) to another (e.g., polycrystals) suffices to alter the features stored in graph nodes.We term our model a hybrid graph neural network-deep material network (GNN-DMN) model.It learns to derive DMNs based on the graph representation of microstructures.Each derived DMN is a stand-alone model.In other words, during inference, the GNN-based part of the hybrid model is used only once to set parameters for the derived DMNs.Afterward, each derived DMN can be used independently for linear or nonlinear predictions, such that their prediction speed remains the same as for conventional DMNs. Introduction We subsequently introduce our framework and the rationale behind it in Sect. 2. Section 3.1 introduces our approach to viewing microstructures as graphs.In Sect.3.2, we present the architecture of our hybrid GNN-DMN model through which we first transform graphs into geometric feature vec- Framework The framework used in this work is depicted in Fig. 1.Microstructures are modeled as graphs, encoding relevant microscopic details.As such, these graphs serve as approximate representations of the microstructures.Subsequently, we use machine learning, mainly GNNs, to learn to extract relevant features from these graphs.These extracted features are transformed into parameters characterizing equivalent DMNs for the microstructures under consideration.The GNN-DMN model derived from this process is fine-tuned based on the microstructures encountered during the training phase.Once the GNN-DMN model has been calibrated, it can effortlessly generate new DMN parameters for any input microstructure (graph) provided to it.Such DMNs are inference-ready and can be used independently for linear or nonlinear predictions.The rationale underlying this approach is subsequently detailed in the rest of this section. Framework Based on the original formulation by Liu et al. [21], a DMN tree of N layers is defined by two sets of parameters: rotation angles θ k h=0,1,...,N at every node, and weights w k N (derived from so-called activations z k N ) at nodes in the bottom layer N .Here, the subscripts denote the layer of the tree, while the superscripts refer to the position of a node at a specific layer.For simplicity, we utilize a flattened representation p = concat(z k N , θ k h ) by concatenating the activations and rotation angles of DMN.DMN aims to predict the homogenized compliance matrix D of a RVE.This process can be expressed by the following function F such that Framework where D 1 and D 2 respectively refer to the compliance matrices of phase 1 and phase 2 in a two-phase RVE.F, which is a function of the input D 1 and D 2 , is parameterized by p. Liu et al. [21] demonstrated that the weights in a trained DMN network reflect the material volume fractions of its corresponding RVE.Subsequent studies [22,25,27,29] corroborated this fact.Huang et al. [29] later showed the ability of DMN to predict, via its learned orientation angles, the orientation tensors of short-fiber reinforced polymer (SFRP) composites.Several papers [21,22,25,28,30] have substantiated the link between the parameters learned by DMN and the geometry of microstructures.For these reasons, we postulate that the parameters p in any trained DMN model can be expressed as functions of the physical domain of the microstructure it represents.Based on this postulate, we may write Framework such that p is dependent on the physical domain .Hence, the homogenization function F in Eq. ( 1) can be re-written to obtain a more general function M as Framework where M is parameterized by p( ).While Eq. ( 1) was restrictive, such that the trainable parameters could only be optimized for a single microstructure, Eq. ( 3) is more comprehensive.It allows the parameters to be explicit functions of the physical domains they aim at capturing.This provides increased flexibility whereby multiple microstructures can be simultaneously trained.The function M takes into account all the key elements affecting the computation of average properties in a homogenization process, namely the physical domain of the microstructure and the properties of its constituent materials (i.e., D 1 , D 2 ).Naturally, the form of Eq. ( 3) begs the question of how to derive parameters p from arbitrary domains .We will demonstrate the feasibility of this idea by viewing discretized meshes of microstructures as graphs. Framework 3 Hybrid graph neural network-deep material network model From meshes to graphs Our end goal is to compute the average properties of RVEs.The solution to this micro-scale problem traditionally involves approximating the continuous domain of the RVE with a finite set of discrete mesh elements through the process known as discretization.The discretization of a domain can be mathematically represented as follows From meshes to graphs where is the continuous domain of a RVE.M is the discretized mesh approximating this domain; it is a triple constituted by a set N M of mesh nodes, a set F M of mesh elements and a set E M of element edges.In 2D, each element edge in E M links two nodes in N M , such that E M ⊆ N M ×N M is a set of ordered pairs from N M .As to the mesh elements in F M , each is uniquely defined by an ordered list of nodes in N M .For instance, if the mesh is linear triangular, then From meshes to graphs Inspired by previous works [18][19][20], we view the meshes M as graphs.In the context of graph theory, a graph From meshes to graphs n graph nodes (or vertices) and a set E G of edges (or links) that capture the relationships among the graph nodes.E G is a set of ordered pairs from From meshes to graphs Using the following correspondence, we transform meshes M into graphs G. Given the discretized mesh M, each mesh element f M i within it is regarded as a graph vertex v G i in a graph G.In other words, we resort to the mapping φ, φ : From meshes to graphs where φ is a bijection as there is a one-to-one correspondence between F M and V G .Each vertex in the graph is paired with exactly one element in the mesh.Conversely, each element in the mesh corresponds to a graph vertex.If any two mesh elements respectively f M i and f M j share at least a mesh node (i.e., f M i ∩ f M j = ∅), an edge is deemed to exist between their corresponding vertices in the graph.This correspondence yields a mapping ψ ψ : From meshes to graphs where unlike φ, ψ is a surjection.For each edge e G i in the graph G, there exists at least a mesh node n M j in the mesh M corresponding to it.This is because two mesh elements may have more than one node in common.Transforming meshes into graphs via the introduced mappings φ and ψ yield a data structure encoding information about the relationships among mesh elements.However, an additional link remains for the graphs to fully represent microstructures, namely geometric features at the microscopic level. Encoding microstructural details in graphs We consider the physics of microstructures through node features (Fig. 2).Each node v G i in the graph G is associated with a node feature vector h i .Important information characterizing the microstructures may be stored in these feature vectors.The nature of such information may vary depending on the problem at hand (e.g., polycrystalline, composite materials).In this work, we are first tackling the modeling of composite microstructures.Hence, we consider four features relevant to this task and list them in Table 1. Encoding microstructural details in graphs The vector h i represents the feature vector for a given graph node.We then refer to the set of all node feature vectors Encoding microstructural details in graphs where it is constituted by a set V G of graph nodes, a set E G of node edges, and a set H of node feature vectors.We must notice that the graph G holds virtually all information about the domain of microstructures.Hence, we may regard G as a reliable estimation of .Recalling the expression for estimating the parameters of DMN in Eq. (2), we may then write an approximation of this function as p = p( ) ≈ p(G) (8) which conveys that the parameters p are approximately functions of graphs G. Estimating p can then be narrowed down to processing graph data through appropriate functions.For this purpose, we turn to graph neural networks and fullyconnected neural networks. Model architecture We propose a hybrid graph neural network-deep material network (GNN-DMN) model (Fig. 3) that seeks to predict the homogenized tangents D of microstructures from their graph representation G and material properties: D 1 and D 2 .The model consists of two segments.The first segment, termed as graph-based feature extraction, aims to compress the input graphs G into fixed-size vectors.The purpose here is to extract relevant features from the complex graph data.Such vectors would theoretically contain a reduced form of the geometry encoded in the initial graphs.Hence, we hereafter refer to these vectors as geometric feature vectors. Model architecture The second segment, referred to as microstructure-informed transformation, utilizes the geometric feature vectors to generate DMNs tailored for each input graph.We subsequently elaborate on the internal mechanisms of these two segments. Graph-based feature extraction As mentioned previously, the objective in this segment is to compress large graph data into fixed-size vectors.The initial features encoded at the graph nodes are a choice dependent on the task in the target.For our purpose of the graphs representing the microstructures as faithfully as possible, we encoded four features at the graph nodes (Table 1).With each graph node corresponding to a mesh element, we considered the area of each mesh element, the xy coordinates of its centroid, whether that element is in the matrix or inclusion phase, and finally, whether the element is on the boundary of the microstructure.The total dimension of the starting graph node features amounts hence to 7 (Table 1).We start by performing message passing (MP) on the initial graphs.Message passing is the terminology used to describe the procedure by which a node in a graph neural network aggregates information from its neighborhood and updates its own state.Many message-passing formulations have been proposed in various graph neural network variants.We may mention GCN [33], GraphSAGE [35], GAT [36], GATv2 [37], etc.We carry out message passing through GATv2, which we selected for its expressive dynamic attention and superior performance [37] over other popular counterparts.These characteristics of GATv2 would facilitate the model to pay attention to the details distinguishing different microstructures.Optimally, the features should be projected into higher dimensions to facilitate the acquisition of complex and useful insights.For that, we selected a dimension of d = 64, with which our model has yielded good results.Nevertheless, a different size could also be cho- sen.Message passing, however, restricts information sharing to the vicinity of the graph nodes.Given that our goal is to extract global features, we juxtapose the MP layers with fully connected layers.Simply put, these fully-connected layers change the graph node data without taking into account their connectivity.This trick facilitates the transmission of information farther than the immediate neighborhood of the nodes.This entire process, which is depicted by the left part of the box in Fig. 4, is also listed in Table 2.The superscripts (•) in Table 2 are used to differentiate between input and output data, as well as between the different network layers or parameters.The message passing process MP for GATv2 has been described in Appendix A. Weights W (l) and biases b (l) have also been defined for fully-connected layers in Appendix A. Graph-based feature extraction At the current stage, each microstructure is still represented by a graph, with the main change being that the content and dimension of the node features have been modified.In the context of graph neural networks, the number of nodes among graph samples does not need to be the same.However, we want to collapse each graph into a single vector.In other words, we wish to infer global graph features from local node features.For that purpose, one can resort to an array of choices for graph pooling [38] operations such as average pooling, TopKPooling, DiffPool, etc.We selected average pooling, which bears similarities with the task of homogenization, as follows Graph-based feature extraction Here, y (0) denotes the graph-level feature vector obtained by averaging over the node feature vectors in H (4) (Table 2).Following the obtention of graph-level features through pooling, two fully connected layers map the pooled y (0) to the final output X f eats containing learned relevant information about the input graph.This stage is illustrated in the right part of the box in Fig. 4 and also listed in Table 3.We used a softmax function in the last layer to express the output in terms of probabilities.Nevertheless, other activation functions could also be experimented with.At this final layer, we reduced the dimension of the vector to d = 32.For a discussion on the influence of the size of d, please see the comments in Sect.6. Graph-based feature extraction In summary, the sequence of operations in this segment may be succinctly expressed through the following function H Message Passing H (1) = MP (1) (H ( 0) ) (7, 64) Graph-based feature extraction Fully-connected H (2) = ReLU W (1) • H (1) + b (1) (64, 64) Graph-based feature extraction Message Passing H (3) = MP (2) (H (2) ) (64, 64) Graph-based feature extraction Fully-connected H (4) = ReLU W (2) • H (3) + b (2) (64, 64) Layer type Formulation Input-Output dimensions Fully-connected y (1) = tanh W (3) • y (0) + b (3) (64, 64) Layer type Formulation Input-Output dimensions Fully-connected X f eats = softmax W (4) • y (1) + b (4) (64, 32) Layer type Formulation Input-Output dimensions in which X f eats denotes the learned geometric feature vector. Layer type Formulation Input-Output dimensions H represents the chain of operations described above.It takes graphs G as input and is parameterized by H which refers to the fitting parameters of the neural networks in use. Microstructure-informed transformation In the second segment (Fig. 5), we exploit the global feature vector X f eats given by Eq. (10).Since it is already embedded with essential information about the input graphs, we could use it alone to infer the parameters p of the target DMNs.However, we employ an alternative strategy that appears more easily trainable.Alongside X f eats , we utilize the parameters p of a universal DMN to infer the targets p.This DMN is universal in the sense that it is used to infer p for all the input microstructures.Moreover, its parameters p are learnable, entailing that they are optimized based on the sample microstructures encountered during training.The depth of DMN trees is to be chosen in proportion to the complexity of the problem at hand.Previous works [21,28] have shown that a DMN of N = 5 layers should be appropriate for the category of 2D matrix-inclusion composites, which we will be considering.Hence, we set the depth of the universal DMN to N = 5.Likewise, we consider the target trees to have the same number of layers.This setup leads the total number of parameters in p and p to be equal to Microstructure-informed transformation We utilize three layers of fully connected networks (Table 4) to obtain p from a series of nonlinear transformations applied to the compressed feature vector X f eats and the flattened representation of the parameters p of the universal DMN model.The input to the first layer is simply the concatenation concat(X f eats , p), having a dimension d = 32 + 95 = 127.We used Softplus as the activation function in the final layer to guarantee the positiveness of the output values.This is necessary as no weights can be negative in the DMN parameters [21].The transformation sequence listed in Table 4 may be expressed as the function T such that Microstructure-informed transformation where T is parameterized by T , which represents the fitting parameters of the fully-connected networks. Microstructure-informed transformation Unlike the original formulation of DMN in which the parameters for a given microstructure are found by optimizing Eq. (1), they are here obtained through a combination of the functions H and T , respectively given in Eqs.(10) and (11).We may merge these two equations as Microstructure-informed transformation Fig. 5 The second segment of the model where the information from learned feature vectors is leveraged to derive new DMNs By further simplifying Eq. ( 12), we may write Microstructure-informed transformation which simply means that the derived parameters p are a function of the input graphs G.This function is parameterized by the parameters H and T of the neural networks in the graph-based feature extraction and microstructure-informed transformation steps, as well p of the universal DMN. Offline training Before revealing the performance of the model, we pause to explain the data flow in it during offline training and online prediction (Fig. 6).First, we start with offline training.A DMN defined by the parameters p obtained via Eq.( 13) can take any ( D 1 , D 2 ) pair and predict the homogenized tangent D for the microstructure represented by the corresponding graph G.By reference to Eq. ( 3), we may write the predictions of this DMN as Offline training We may substitute Eq. ( 13) into Eq.( 14) such that Offline training By separating the input data from the free parameters in Eq. ( 15), we may write the function M for the entire model as Offline training The inputs to the model are the graph representation G of microstructures and the tangents D 1 , D 2 of their constituent materials.Its fitting parameters are H , T , and p, which have already been defined.The final outputs of the model M are homogenized tangents D. For details regarding the prediction of homogenized tangents through DMN, we refer interested readers to consult previous works [1,21].By comparing Eq. ( 16) with Eq. ( 1), we notice why this new formulation enables us to handle multiple microstructures.For Eq. ( 1), a single microstructure and its material properties are selected.From there, the network is fitted for this microstructure alone.In contrast, Eq. ( 16) additionally considers the graph representation G of a given microstructure.As such, the homogenized D is dependent, not only on D 1 and D 2 , but also on G.As a result, it suffices to change the input graph to the network to simulate the response of other microstructures.Using the same input material properties but different graphs would result in different homogenized D. During fitting, multiple microstructures are simultaneously trained.The parameters of the model to be optimized are H , T , and p.To penalize the departures of predictions from target values, the following cost function [21] is defined: Offline training Di and DDN S i respectively denote values predicted by the model and obtained via direct numerical simulation.N s is the number of samples being considered.• F denotes the Frobenius norm.The Frobenius norm A F of a matrix A is defined as Fully-connected y (2) = ReLU W (4) • concat(X f eats , p) + b (4) (127, 127) Offline training Fully-connected y (3) = ReLU W (5) • y (2) + b (5) (127, 127) Fully-connected p = Softplus W (6) • y (3) + b (6) (127, 95) Offline training Besides the initial cost in Eq. ( 17), we additionally subject the weights at the bottom layer of the universal DMN to the arbitrary constraint: Offline training α is a scalar that controls the magnitudes of its fitted weights. Offline training We choose to set it equal to 2 N −2 as in these works [21,22,28].The final cost function applied to the outputs of the model M is Offline training with the scalar λ being a hyperparameter to be selected, and L( wk N ) being equal to Offline training such that Offline training Equation ( 22) is the final cost function used throughout the training process.We implemented all the aspects of our model using the Pytorch [39] machine learning framework, taking advantage of its automatic differentiation system [40] to implement DMN.We used its built-in modules to define the fully connected networks and utilized the implementation by PyTorch Geometric [41] of GATv2.During training, learning rates of 10 −2 and 10 −4 were used to respectively tune the parameters of the universal DMN in the two examples that will be introduced in Sect. 5.As to the remaining parameters of the model, a learning rate of 10 −4 was used in both cases. Online prediction After training, the optimal parameters H , T , and p of the model are fully determined.From Eq. ( 13), we notice that a given derived DMN p is completely defined by these learned parameters.Thus, during inference, we use Eq. ( 13) as an initialization step to obtain p for any given microstructure.The thus-obtained parameters define a stand-alone DMN model (Fig. 6).This particularity allows us to take full advantage of all the benefits traditionally accompanying DMNs.We can use this derived DMN to predict linear elastic properties and employ a Newton-Raphson scheme to carry out nonlinear predictions, as shown in previous works [21,22].Results demonstrating this capability of the GNN-DMN model to yield stand-alone DMNs able to model nonlinearity will be presented in Sect. 5. Generation of microstructures We generate RVEs for training the model based on the random sequential adsorption (RSA) method [42].Before starting the process, we select the microstructural descriptors of the RVEs.For instance, we might wish to generate microstructures with circular, fixed-size inclusions embedded in the matrix material.In this case, the determinant microstructural descriptor would be the inclusion volume fractions.Then, based on the target descriptors, we determine the required quantity of inclusions to be dispersed in the matrix. Generation of microstructures At the initialization of the process, we start with an empty surface of the matrix.Then, we select a particle and randomly place it within that surface.Since this is the first particle placement, overlapping is not an issue.We then turn to the next particle and try to place it in a new location.Because of a pre-existing inclusion in the matrix, there exists a probability of overlap with it.If such is the case, a location is resampled until it satisfies our criterion of non-collision.This procedure is repeated until all inclusions have been placed onto the RVE matrix.Besides, we use special treatments for particles positioned on the RVE boundary to ensure its periodicity.The corresponding algorithm is provided in Appendix B. Generation of material properties To enable the network to develop the ability to produce proper DMNs for the RVEs generated as described above, we rely on their material properties.For training, conventional DMNs predict homogenized tangents D from the constituent tangents D 1 , D 2 of their corresponding RVEs.Thus, we prepare such material data for each microstructure.For the input properties D 1 and D 2 , we sample them for each phase in the RVEs.Concerning the homogenized tangents D, we compute them by carrying out different tests on the RVEs.The dimensionality of the RVE problem determines the number of tests required.Since our problem is a 2D one, we carry out three tests.Two of these tests are in the orthogonal directions 1 and 2, while the third is an in-plane shear test.These sets of tests, which we carried out using the RVE package [43] available in LS-DYNA ® , are as follows. Generation of material properties For the first test, we constrain the RVE with ˜ 11 = δ, where δ is a non-zero small number (e.g., δ = 10 −12 ).The other strain components are left unconstrained.After the completion of the finite-element simulation, we obtain the stress and strain response of the RVE as: Generation of material properties Given these, we compute three components of the fourthrank compliance tensor D i jkl : Generation of material properties For the second uniaxial test, we apply a macroscopic uniaxial loading ˜ 22 = δ, which allows us to obtain: Generation of material properties from which we compute Generation of material properties Finally, we apply a macroscopic shear loading ˜ 12 = δ, which allows us to obtain: Generation of material properties from which we compute Generation of material properties The homogenized compliance matrix D in Mandel notation is then computed using these nine values in the compliance tensor D i jkl . Examples In this section, we investigate the performance of our model.We consider two families of microstructures for that.The first example explores the application of the model to microstructures with fixed-size circular inclusions in their matrix.Such microstructures are usually described by the total volume fraction of the inclusions.However, this description is not deterministic, as there can be multiple realizations of microstructures having the same inclusion volume fraction. Examples We include these multiple realizations in our training data.Nevertheless, we recognize the simplicity of this class of microstructures.With this in mind, we design a second example with more complex microstructures whose inclusions vary in shape, size, and orientation.Hence, the collection of these microstructures constitutes a superset of those in Example 1.The results showed the ability of the GNN-DMN model to perform well on this more difficult task.Furthermore, the model fitted on microstructures in the second example was able to yield accurate predictions for microstructures in the first example, for which it has not been trained.This capability hints at the possibility of developing a generalized model for composites with our approach.It is worth mentioning that the basis of this work is that, given an RVE, the GNN-DMN model can learn to derive a DMN for it.Hence, we did not study the influence of RVE size on the homogenized properties.However, various other publications [44,45] have studied this aspect, which we refer the readers to consult. Dataset In this first example, we consider microstructures with circular inclusions.Each microstructure can be globally defined by the total volume fraction v f of its inclusions.Nevertheless, this descriptor, namely the inclusion volume fraction v f , is not fully representative.Generally speaking, there always exists a randomness in realizing an RVE based on global descriptors.This randomness is inherently due to the shape (i.e., size, inclination) of the inclusions and their locations.We are considering circles with a rotational symmetry of order ∞.Therefore, the placement of a circular inclusion is uniquely determined for a given location within the matrix.For instance, this would not be true if the inclusion were elliptical, as its orientation would have to be considered.Considering the aforementioned point, randomness can then possibly be induced by the size of the inclusions and their positions.However, we choose to set the radii of all inclusions constant.Eventually, we remain with a single source of randomness: the distributions of the circular inclusions in the RVE. Dataset To generate the microstructures needed for training, we uniformly sample v f , such that v f ∈ U [0.10, 0.40].We build three sets of microstructures from the volume fractions: the training (200 RVEs), validation (50 RVEs), and test (50 RVEs) set.These samplings within the prescribed volume fraction range give rise to many RVEs sharing the same global descriptors (e.g., v f ).This can readily be observed in Fig. 7, where two microstructures have the same number of inclusions.Each microstructure is then discretized into a mesh.A mixed triangular-quadrilateral elements discretization scheme has been used in all cases.The resolution of the meshes is rather fine, the number of elements varying from ∼ 7000 to ∼ 10,000.All of those meshes are transformed into graphs G following the procedure detailed in Sect.3.1, with the features encoded at the graph nodes being those listed in Table 2. Plots of the graph representations of sample microstructures can be seen in Fig. 7.The number of nodes in the graphs directly corresponds to the number of elements in the meshes; hence, the order of the graphs likewise ranges from ∼ 7000 to ∼ 10,000. Dataset Besides the graphs, elastic tangents are also required as inputs within our proposed framework.Consequently, we generate 300 triples ( D 1 , D 2 , D) for each microstructure via direct numerical simulations (DNS).Figure 8 shows the sampling space of the material properties used for obtaining D 1 and D 2 .The constituent phases of the RVEs are assumed to be linear isotropic.The elastic moduli E and Poisson's ratios v were sampled as follows.The Young's modulus E 1 of phase 1 was held equal to unity, i.e. log e (E 1 ) = 0.In contrast, E 2 was allowed to vary for phase 2 such that −5 ≤ log e (E 2 ) ≤ 5.In other words, its magnitude could be ∼ 150 times as high (or as low) as E 1 .The Poisson's ratio v for both phases was allowed to vary between 0 and 0.5.We assumed a state of plane strain such that the input compliance matrices in Mandel notation are given by Dataset where E p , v p denote the Young's modulus and Poisson's ratio for each phase.The homogenized tangents D were obtained according to the procedure described in Sect.4.2. Offline training The cost function detailed in Sect.3.3.1 is used to optimize the parameters of the model.To quantify the accuracy of predicted tangents during the training process, an error function is separately defined as Offline training Not only do we evaluate the tangents predicted by the different generated DMNs, but we also perform a sanity check on the physics of those DMNs.For that, we monitor the learned inclusion volume fractions [21] throughout the fitting process.As such, we define a volume fraction error Offline training in which N m represents the total number of microstructures. V f model i represents the volume fraction obtained from the parameters of created DMNs, and V f truth i represents the volume fraction which can be computed from information in the RVE mesh. V f model i Next, we proceed to train our GNN-DMN model.We do so for 200 epochs (Fig. 9).The computed errors for the training set decreased to 2.24% at the end of the fitting process.The model showed a comparable performance on the validation set, for which the error was evaluated at 2.32%.Not only did the model demonstrate its ability to predict the homogenized tangents accurately, but it also displayed its capacity to capture the topological information of the meshes taken as inputs.We notice errors of respectively 0.32% and 0.45% on the predicted volume fractions for microstructures in the training and validation sets. V f model i For illustration purposes, we show a visualization (Fig. 10) of the treemaps of DMNs generated for three different microstructures in the test set.A treemap is a space-filling method of visualizing tree structures [46].Using this method, one can represent each leaf node in a DMN as rectangles occupying areas proportional to the fraction of their weight to the sum of the weights of all leaf nodes.The DMN tree structure dictates the exact location of each of these rectangles.Moreover, given that each leaf node belongs either to the matrix or inclusion, a binary color code is assigned accordingly.These RVEs, respectively, have inclusion volume fractions of 15.95%, 33.13%, and 38.04% (Fig. 10a).The corresponding DMNs (Fig. 10b) exhibit volume fractions of 16.15%, 32.81%, and 37.41%, which are close to the targets.Thus, the model effectively learned to assign different parameters depending on the input microstructure. Online prediction: elastic properties The end goal of generating different DMNs is to use them as substitutes for traditional simulation tools in the evaluation of material properties.In light of this consideration, we select a set of material properties listed in Table 5.This set corresponds to a matrix (phase 1) being elasto-plastic and the inclusions (phase) being purely elastic.We carry out DNS based on this set of values for the 50 microstructures in the At first, we restrict ourselves to the elastic response of the RVEs and evaluate their homogenized elastic properties.The homogenized properties which we consider are the longitudinal Young's modulus Ē11 (Fig. 11a), the transverse Young's modulus Ē22 (Fig. 11b) and Poisson's ratio v12 (Fig. 11c).We recall that, for each volume fraction, several RVE realizations may exist.Thus, in Fig. 11, we notice multiple predictions for some volume fractions.By comparing the predictions of the model for the elastic moduli Ē11 and Ē22 , we notice that the results are comparable with those of DNS.As for the homogenized Poisson's ratio v12 , we notice a more significant variability of the reference values for a given volume fraction.The GNN-DMN model seems to underestimate this variability.Nonetheless, the influence of this underestimation would be minor as the differences mostly occur from the third decimal place of the target values.Hence, the model is dependable in its ability to estimate elastic properties. Online prediction: nonlinear responses Next, we turn to the performance of the model when it comes to the nonlinear response of the RVEs.We consider two microstructures from the test set.For each of them, we perform three loading-unloading-reloading tests using all the properties listed in Table 5.Two are uniaxial tests in the two orthogonal directions (i.e., 1 and 2), while the last is an inplane shear test.The results for both of them are reported in Fig. 12a and b.From inspection, we notice a close agreement between the responses predicted by the model and those determined via DNS.To be able to quantify the accuracy of the stress responses, we define the errors on the predicted stresses as [29]: mean-relative error Online prediction: nonlinear responses Based on the definitions given in Eqs. ( 29) and ( 30), the mean-relative errors for the three tests in Fig. 12a are 2.23%, 3.23%, 1.93%, while their max-relative errors are 5.86%, 7.93%, 5.39%.By comparison, the mean-relative errors for Fig. 12b are 2.06%, 1.26%, 0.33%, while the maxrelative errors are 4.54%, 2.78%, 2.05%.These scalar values give us an indication of what curves for particular error magnitudes might resemble. Online prediction: nonlinear responses Given that we have a visual representation of what the computed stress errors look like, we repeat the same tests for all the microstructures in the test set.Figure 12c displays histograms of the computed errors for the nonlinear response of those 50 microstructures.Considering the mean-relative error, the mean of the distributions for the three tests are respectively 1.89%, 1.84% and 1.29%.As to the max-relative error, the mean of the distributions are 6.65%, 5.54% and 4.48%.Comparing with the statistics of Fig. 12a-b, these are reliable results.The overall training results, as well as the linear and nonlinear predictions, thus prove the capability of our model to generalize on this family of RVE well. Example 2: microstructures with elliptic inclusions The previous example proved the capacity of our model to learn the micromechanics of the family of RVEs with circular inclusions.Here, we attack a more challenging case of microstructures with more complex topologies. Dataset We consider RVEs with inclusions of varying quantities, shapes, and sizes.Thus, we define a three-dimensional descriptor space specified by the number of particles N p in each RVE, the semi-axis aspect ratio A r of these ellipseshaped particles, as well as the volume fraction v f occupied by the particles.The actual sizes of the particles in the RVEs are deduced from N p and v f .As to the orientations of the particles during their placement in the RVEs, they are assigned randomly.Based on these descriptors, we generate 200 microstructures for the training set and 50 for the validation set.We also separately generate a test set with 80 microstructures.The corresponding space of descriptors sampled through Latin hypercube sampling [47] is shown in Fig. 13a, while Fig. 13b shows examples of RVEs obtained in the training set.We readily notice the diversity among them.The microstructures vary in the sizes, shapes, and distribution of their inclusions.As in the first example, we generate 300 ( D 1 , D 2 , D) for each microstructure.The material properties in this case are identical to those shown in Fig. 8. Offline training We then train the GNN-DMN model for 100 epochs (Fig. 14).At the end of the training, the model yielded an average error of 3.66% for RVEs in the training set and 3.93% for those in the validation set.As to the physics learned by the generated DMNs, they are also accurate.We observe volume fraction errors of 1.66% and 1.84% for the training and validation sets. Offline training For illustration purposes, we select three dissimilar RVEs from the test set (Fig. 15a).The first one, with a low volume fraction (20.44%), has inclusions with a high aspect ratio.The second one also has inclusions with a high aspect ratio but has a a lower volume fraction (17.70%).The last one has a volume fraction of 39.11% and inclusions with a low aspect ratio.Figure 15b shows treemaps drawn from the weights in the corresponding DMNs.The volume fractions predicted are respectively 21.57%, 18.61%, and 37.92%.Although the predictions look less accurate compared with those of Example 1, it is nonetheless surprising to notice the ability of the model to generate adequate DMNs when considering the diversity of microstructures in the dataset. Online prediction: elastic properties We then proceed to scrutinize the performance of this newly fitted model in predicting the homogenized properties of RVEs in the test set using the elastic constants listed in Table 5.We utilize 3D plots (Fig. 16) whose axes correspond to the space of RVE descriptors.The color of each point indicates the result for the RVE it represents.Figure 16a shows the predicted longitudinal Ē11 , transverse Ē22 Young's moduli, and Poisson's ratio v12 obtained via DNS. Figure 16b shows the same results as predicted by each DMN.A visual inspection indicates a good similarity between the two groups.But, to be more rigorous, we quantify the corresponding errors.The mean of the relative errors for Ē11 , Ē22 , and v12 are respectively 1.55%, 1.39% and 0.96%. Online prediction: nonlinear responses Last but not least, we evaluate the use of the model for nonlinear predictions.We choose to consider a complex loading case in which all the in-plane strain components (i.e., 11 , 22 and 12 ) are constrained.We generate the load curves shown in Fig. 17 through a Gaussian process with a radial basis function (RBF) kernel.The loading considered is applied in a total of 250 steps.We then subject each RVE in the test to such a loading via DNS to obtain their stress responses.GNN-DMN is also used for the same purpose.For illustration, we show, in Fig. 18a and Fig. 18b, results for two very different microstructures.We notice comparable stress values between the results of DNS and those of GNN-DMN.To be more explicit, the mean-relative errors (Eq.( 29)) are respectively 1.34% and 1.01%, while the max-relative errors (Eq.( 30)) are respectively 4.62% and 3.78%.We further assess these errors for all the microstructures in the test set. Online prediction: nonlinear responses The resulting histogram is displayed in Fig. 18c.Considering the mean-relative error, the average of the distribution is 1.24%, while its maximum is 1.81%.As to the max-relative error, the histogram values average 4.08% and do not exceed 6.16%.Such statistics are comparable with results reported by Huang et al. [29].Beyond the simple case in Example 1, our proposed model shows its capacity to learn the topology of more complex microstructures and derive appropriate DMNs that can be confidently used for complex nonlinear predictions. Generalization across datasets In designing Example 2, we increased the complexity of the space used to generate the microstructures.We transitioned from a single variable, namely volume fraction, to a trio of variables, including volume fraction, aspect ratio, and the count of particles.Hence, from a set theory standpoint, we can view the collection of microstructures in Example 2 as a superset encompassing the set of microstructures in Example 1.The microstructures in Example 2 exhibited significant dissimilarities compared to those in Example 1, with none of the latter datasets appearing in the former.Nevertheless, it would be intriguing if the model fitted in Example 2 could still yield accurate results for the microstructures in the first example.Practically, this bears important implications, suggesting that there might not be a necessity to train distinct models for simple classes of microstructures.Instead, a highly general model could be trained and applied to specific applications, directly or via minor fine-tuning.We explore this possibility next. Generalization across datasets We picked the 50 microstructures in the test set of Example 1, and then used the GNN-DMN model fitted in Example 2 to predict their nonlinear responses.The properties used for the constituent materials are identical to those use previously and outlined in Table 5.We report in Table 6 the statistics of the errors for these predictions and additionally provide in Fig. 19 instances of such predictions.Contrasting the values with those obtained in Sect.5.1.4,we realize that the results are comparable.This observation is very promising.It points to the idea that a graph-enhanced DMN model opens the possibility of incorporating diverse training data featured with multiple microstructural descriptors to derive a universal material network for families of microstructures. Observation on the geometric feature vectors In previous works [28][29][30], macroscopic descriptions of microstructures (e.g., volume fraction) were explicitly used to derive DMNs.In using the graph representation of For that purpose, we carry out a principal component analysis (PCA) [48] on the learned geometric feature vectors X f eats for microstructures in the test set of Example 2. PCA reinforcement particles on the right.We readily notice that a clear trend is captured for the volume fractions, with the magnitude increasing along the first principal axis.A similar argument, although to a lesser extent, can be made for the aspect ratio along the second principal component.Hence, one could theoretically study and infer the importance of specific macroscopic descriptors from the feature vectors.These trends revealed through PCA also provide a subtle indication of why the model trained in Example 2 could perform well on the microstructures in Example 1.The analysis here constitutes a preliminary look at this particularity.However, this is an aspect that deserves its own study. Hyper-parameter tuning The previous two examples established the validity of GNN-DMN.Here, we add a few additional comments.The first regards the performance of the model if we were to train it for longer and also change the dimension of the learned geometric feature vector X f eats (Eq.( 10)). Figure 21 shows results for various sizes of X f eats including d = 8, 16, 32 and 64.The model was additionally trained for close to a thousand epochs.Increasing the dimension of X f eats enables errors to decrease faster.As seen in the left and right plots of Fig. 21, the curves from d = 32 and d = 64 escape the initial "plateau" faster than when lower dimensions are used.Interestingly, the highest dimension d = 64 did not lead to the most accurate model.Whether we consider the average tangent or volume fraction errors, the model with d = 32 yielded the lowest values.As for the model's reliability in predicting homogenized tangents when trained for many more epochs, additional improvements remain to be made.The validation set yields comparable errors independently of the dimension of the geometric feature vector.In contrast, the training set is more sensitive to those changes.At lower dimensions d = 8 and d = 16, we notice a slight overfitting of the model.The overfitting tendency becomes more accentuated when d = 32 or d = 64, in which cases the gap between the training and validation errors widens faster.We have not tackled overfitting in this work, but we anticipate that it is an aspect worth investigating in the future. Computational cost The second aspect concerns the computational cost of GNN-DMN.The models reported in this study were trained on a Tesla ® V100 GPU with a memory of 32GB from NVIDIA ® .During the training of the examples, a batch size of 50 was utilized, which amounts to a total of 200 × 300 ÷ 50 = 1200 iterations per epoch.For instance, the model of Example 2, which was trained for 100 epochs, necessitated 23 h and 10 min to attain its reported performance.This time is equiv-alent to less than a day, which is very acceptable given the accuracy of the model in the results that have been reported. Computational cost We moreover compare the computational cost of the derived deep material network during online prediction against that of the RVE package in LS-DYNA ® .We draw the reader's attention to the fact that we follow other works [21,27,49] using a CPU instead of a GPU during inference.In our experience, using DMN on GPU is more time-consuming.This is arguably due to the structure and small size of DMN.Gregg et al. [50] showed that the use of GPU is not always beneficial as, depending on the nature of the task and size of the data, the transfer of data to/from the GPU can take longer than the operation performed by the GPU.During training, the large size of GNN dominates, such that it is more efficient to train the GNN-DMN model on GPU.During inference, however, after initialization of the derived DMN parameters using the trained GNN, only the derived DMNs are utilized for nonlinear prediction through Newton-Raphson iterations, hence the choice of CPU.The efficient use of DMN on GPU is a topic that has not yet been investigated in the literature.Future research drawing inspiration from this work [8], for instance, which attained up to four orders of magnitude improvement in computational efficiency with GPU, might pave the way for that.With these details being stated, the workstation used was equipped with a 13th generation Intel ® Core ™ i9-13900K processor.The RVE package spent approximately 130 s on the uniaxial tests shown in Example 1 and 90 s on the loading test shown in Example 2. In comparison, derived deep material networks spent around 25 and 22 s in both cases.This corresponds to speedups 5 and 4 times, respectively.However, it is worth mentioning that the DMN implementation used in this case is not optimized, hence resulting in the difference with speedup factors previously mentioned in the literature [21,24,27,49].For instance, Liu et al. [21] reported a 150X speedup on a small strain problem.A more recently proposed and more efficient DMN (micromechanics-based material network) [27] even reported up to 4 orders of gains in speedup.Given the gap being stated, a more efficient implementation of DMN has been underway, resulting in two to three orders of gains in speedup.However, its integration into GNN-DMN is being studied and will be reported in the near future.To sum up, this increase in time efficiency with GNN-DMN is especially appealing for applications to multiscale problems in which microstructure topology at the smaller scale varies by location.Multiple deep material networks can be instantly derived using GNN-DMN and readily incorporated into a multiscale framework for faster simulations. Microstructure representation Lastly, we focused on using the graph representation of microstructures.We selected this approach because of the straightforward correspondence between meshes used by LS-DYNA ® , which we used as an RVE tool, and graphs.However, we are aware that an alternative approach would be to start from the image representation of microstructures and employ convolutional neural networks to learn from them.This research route is equally feasible, and we might explore it in the future. Conclusions In this work, we have explored the implementation of a graph-based model aimed at unifying the multiscale modeling of microstructures under a single umbrella.Whereas the original formulation of DMN focused on reducing the representation of a single RVE, our model further takes the graph representations of RVEs as input, thus making it readily applicable to different microstructures.Besides, the model generates, as part of its pipeline, parameters p for DMNs representing the input microstructures, thus making it a tool for compressing RVEs into equivalent DMNs.Different examples showed the capability of the model to discrimi-nate among dissimilar microstructures.In Example 1, the model was successfully applied to various microstructures with fixed-size circular inclusions.These RVEs had a single microstructural descriptor, i.e., the inclusion volume fraction.The model learned to create corresponding DMNs with parameters reflecting this descriptor.The use of these DMNs to predict linear properties and nonlinear behavior was illustrated through several results.These capabilities were also demonstrated in Example 2, which considered microstructures with multidimensional descriptors whose inclusions varied in shape, size, and orientation.The key features of our GNN-DMN model can be summarized as follows: Conclusions 1. We directly incorporated microstructural-level graph representations and homogenized linear elastic data to train a GNN-DMN model as the unified representation of microstructures.2. The DMNs obtained through our approach are standalone models that can be used separately for online inference of the nonlinear behaviors of new microstructures, thus leveraging the advantages of using a model with few degrees of freedom. Conclusions 3. The GNN-DMN model obtained from complex microstructures can be used to infer the mechanical behaviors of more simple ones, indicating that our model can potentially handle families of microstructures. Conclusions Next, we envision 3D GNN-DMNs trained on various heterogeneous material systems.These would include particle-based, fiber-reinforced composites, polycrystalline materials, etc.Such an endeavor would help accelerate our understanding of materials.Moreover, this model is a perfect candidate for developing new materials through inverse material design.Given its graph input, the model enables the possibility of designing materials at their microstructural level for specific properties.However, for this goal to be attained, extensive research must be undertaken to enhance the expressivity of the model in extracting graph features.In the distant future, our approach will open the door to the possibility of developing a large-scale model (in analogy with large language models) whose purpose would be to generate twin DMNs for a diversity of microstructures. Appendix A: Neural network formulations Two types of ML models are involved in the treatment of the graph data: fully-connected neural networks and graph neural networks (specifically GATv2). A.0.1 Fully-connected neural network In a fully-connected neural network, an input layer, one (or many) hidden layer(s), and an output layer are sequentially stacked together with so-called activation functions to create a nonlinear mapping between inputs and outputs.Let h i−1 ∈ R F i−1 ×S be the input to the layer i in a fullyconnected network.F i−1 is the number of features for each sample at the previous layer i − 1, and S is the number of samples.The output h i of this layer is given by A.0.1 Fully-connected neural network with the weight matrix W i ∈ R F i−1 ×F i and bias b i ∈ R A.0.2 Message passing in GATv2 Graph neural networks are tailored to learn from graphstructured data.They do so by updating the features of each node based on the features of its neighboring nodes and edges.This process is otherwise known as message passing between the nodes.Several GNN models have been proposed over the years, and they mostly differ in the way the message passing is carried out.In this work, we made use of GATv2 [37] and detail below its message passing process. A.0.2 Message passing in GATv2 Let us consider a graph G = (V G , E G ).Each vertex v G i in the set V G is associated with a feature vector h i ∈ R F .R here denotes the set of all real numbers, while the subscript F refers to the dimension of the vector h i .The objective through message passing is to aggregate information from nodes in the neighborhood N i of v G i to obtain a new feature vector h i ∈ R F for it.Here, the neighborhood N i refers to nodes in G with which v G i is connected.Some graph neural networks such as GCN [33] consider the importance of information from nodes in the neighborhood based on preset coefficients.GATv2 instead learns attention coefficients α i j to determine the relative importance of different nodes.The scalar α i j denotes the attention coefficient between node v G i and another node v G j ∈ N i .To obtain α i j , a scoring mechanism e : R F × R F → R is first calculated as A.0.2 Message passing in GATv2 where concat(h i , h j ) simply means that we concatenate the two vectors.W ∈ R 2F ×2F is a learnable weight matrix.a ∈ R 2F is a weight vector whose optimal values have to be trained as well.The LeakyReLU activation function is given by LeakyReLU A.0.2 Message passing in GATv2 in which β is a scalar multiplier; β is usually set by default to 0.01.The values obtained through the scoring mechanism e are then normalized through the softmax function to obtain the actual attention coefficients α i j as A.0.2 Message passing in GATv2 With the relative importance α i j computed for all nodes in the neighborhood, the updated feature vector h i for node v G i is found as A.0.2 Message passing in GATv2 in which act(•) is an activation function.We have used ReLU as activation function in the message passing layers.Hence, in our model A.0.2 Message passing in GATv2 in which MP stands for the message passing process through which the feature vector for a node v G i is transformed.We refer to the set of all the node features in G as H = {h i } A.0.2 Message passing in GATv2 |V G | i=1 .Referring to Eq. (A6) and abusing notation, we may write their transformation as A.0.2 Message passing in GATv2 where H represents all updated node features.GATv2 further allows the flexibility of using multi-head attention [51].However, we have not made use of it in the present work. Fig. 1 Fig. 1 Illustration of the framework used in this work.Initially, microstructures are transformed into equivalent graph representations.During training, the graph data is used to obtain a GNN-DMN model through feature extraction and microstructure-informed transformation. Fig. 2 Fig.2Meshes are transformed into equivalent graphs as follows.Each element in a mesh is regarded as a node in a graph, with the connectivity of the graph nodes reflecting the connectivity of the mesh elements. Fig. 3 Fig. 3 Overall architecture of the proposed GNN-DMN model.The model first encodes the graph representations G of various microstructures into corresponding geometric feature vectors X f eats .It then derives separate DMNs from these feature vectors; the parameters of a Fig. 4 Table 2 Fig.4 The first segment of the model through which the graph representations of microstructures are compressed into feature vectors, retaining meaningful information about them Fig. 6 Fig. 6 Illustration of the data flow in the model.During training, the graph-based model learns to derive DMNs to predict homogenized tangents D. The model can produce new DMNs based on newly given Fig. 7 Fig. 8 Fig. 7 The first row shows examples of microstructures in the training set.The second row shows their corresponding graphs, constructed from meshes.The colors are used to distinguish between graph nodes belonging to the matrix and the reinforcement Fig. 9 Fig. 9 Evolution of the error on the predicted tangents and volume fractions during training of the model for 200 epochs Fig. 10 Fig. 10 Visualization of the DMN parameters (shown in generated by the model for three different microstructures (shown in (a)).The microstructures, respectively, have inclusion volume fractions of 15.95%, 33.13%, and 38.04%.In comparison, the generated DMNs predict 16.15%, 32.81%, and 37.41% | max i=1,...,n |σ DN S i | Fig. 12 aFig. 13 a Fig. 12 a, b Nonlinear prediction with derived DMNs for selected microstructures in the test set.The properties used are those listed in Table 5. c Distribution of the errors yielded by the created DMNs for the nonlinear prediction performed based on the same properties for all microstructures in the test set Fig. 14 Fig. 14 Evolution of the errors on the predicted tangents and volume fractions during training.The model was trained for a total of 100 epochs Fig. 16 Fig. 16 Predicted longitudinal Young's modulus Ē11 , transverse Young's modulus Ē22 and Poisson's ratio v12 for microstructures in the test set, a via direct numerical simulation and b by our GNN-DMN model Fig. 17 Fig. 17 Strain loading obtained through a Gaussian process with a radial basis function kernel.The load is applied in 250 steps Fig. 17 Figure 20 shows scatter plots resulting from PCA, in which each dot corresponds to a geometric feature vector.For simplicity, only the first two principal components are visualized.Each dot is color-coded based on the volume fraction of the underlying microstructure on the left and the aspect ratio of the Fig. 18 a Fig. 18 a, b Nonlinear prediction with interpolated DMN models for selected microstructures in the test set.The properties used are listed in the Table 5. c Distribution of the nonlinear prediction errors (for all the microstructures in the test set) yielded by the generated DMNs Fig. 20 Fig. 21 Fig.20 The results of PCA on the geometric feature vectors X f eats produced by GNN-DMN for the microstructures in the test set of Example 2. Each dot corresponds to the embedding of a feature vector.On the Fig. 20 Fig. 21 F i .The symbol • T represents transposition.During matrix manipulation, the bias term is broadcasted along the dimension of the S samples.act(•) is an activation function such as the Rectified Linear Unit (ReLU) or Softplus.In the case of the ReLU, we have ReLU(•) = max(0, •).If Softplus is used, then Softplus(•) = log(1 + exp(•)). Table 1 Features assigned to each graph node Table 3 Transformation of the pooled global graph features into X f eats Table 4 Sequence of transformations used to obtain the derived DMN parameters p Table 5 Selected material properties.Phase 1 is assumed to be elastoplastic, while phase 2 modeled to have a linear elastic behavior Table 5 Fig. 11 Predicted homogenized, a longitudinal Young's modulus Ē11 , b transverse Young's modulus Ē22 , and c Poisson's ratio v12 for microstructures in the test set in comparison with numerical simulations Table 6 Performance of the GNN-DMN model from

섹션 본문 134문단 · 64,993자

(제목 없음)

1This study addresses the fundamental challenge of extending the deep material network (DMN) to accommodate multiple microstructures.DMN has gained significant attention due to its ability to be used for fast and accurate nonlinear multiscale modeling while being only trained on linear elastic data.Due to its limitation to a single microstructure, various works sought to generalize it based on the macroscopic description of microstructures.In this work, we utilize a mechanistic machine learning approach grounded instead in microstructural informatics, which can potentially be used for any family of microstructures.This is achieved by learning from the graph representation of microstructures through graph neural networks.Such an approach is a first in works related to DMN.We propose a mixed graph neural network (GNN)-DMN model that can single-handedly treat multiple microstructures and derive their DMN representations.Two examples are designed to demonstrate the validity and reliability of the approach, even when it comes to the prediction of nonlinear responses for microstructures unseen during training.Furthermore, the model trained on microstructures with complex topology accurately makes inferences on microstructures created under different and simpler assumptions.Our work opens the door for the possibility of unifying the multiscale modeling of many families of microstructures under a single model, as well as new possibilities in material design.

Introduction

2During the past decades, the desire to design complex materials and the necessity to understand their behavior have given rise to extensive research in multiscale modeling [1].Traditionally, multiscale modeling has been performed using the finite element method (FEM) or the fast Fourier transform (FFT).Well-established software applications in the industry that allow to run multiscale simulations, such as LS-DYNA ® [2], are based on these methods.However, FEM and FFT-based multiscale modeling can be daunting due to their high computational cost.To overcome this challenge, researchers explored several possibilities.Data-driven techniques [3][4][5] were proposed to bypass material modeling at the microscopic scale.Another novel and notable effort was to use neural networks to create FE-like shape functions, which results in a lot more accuracy than FEM with the same number of degrees of freedom [6][7][8].Interest also grew in accelerating modeling at the microscale through machine learning (ML), thus making ML-based multiscale modeling [9] notably gain in popularity.Various types of ML models were used over the years for this purpose, from which we may mention: feedforward neural networks [10,11], recurrent neural networks [12][13][14], convolutional neural networks [15][16][17], graph neural networks [18][19][20].Besides these conventional neural network models, a deep material network (DMN) was recently introduced by Liu et al. [21] to model 2D homogenization problems and was later extended to 3D [22].DMN sets itself apart from other neural network models in several aspects.First, it is designed at its core for multiscale modeling; this contrasts with conventional neural networks designed to be as general and applicable to different fields as possible.In DMN, the analytical solution to the problem of determining the homogenized properties of a two-phase laminate is used as its building block.This custom design allows DMN to capture the behavior of materials with only a few parameters that hold physical meanings.Second, because of its physics-based design, it can be used to predict material nonlinearity (e.g., elastoplasticity, damage, hyperelasticity), although solely trained on linear elastic data.This is because the homogenization behavior considered in DMN is independent of material nonlinearity.Due to its unique characteristics and capacity for fast and reliable predictions, DMN even found its way into legacy software in the industry [23,24].

3A non-negligible amount of research has been carried out on DMN.Liu et al. [21] showed its capacity to implicitly learn the volume fractions of various 2D representative volume elements (RVE) types, including matrix-inclusion, amorphous, and anisotropic.Liu and Wu [22] explored the applicability of DMN to 3D problems for RVEs, such as a particle-reinforced microstructure and a carbon fiber reinforced polymer (CFRP) composite.Gajek et al. [25] set to establish the basic mechanical principles of DMN.These works and others [1,26,27] all support the ability of the network to learn the physics of microstructures.However, this particularity of DMN entails that it can only be confidently used to represent the specific microstructure it is fitted for.Representing new microstructures implies training new DMNs.

4Many took notice of this limitation and sought to generalize DMN by taking advantage of the macroscopic description of microstructures.Liu et al. [28] proposed a transfer learning approach based on fiber volume fraction.At an initial stage, a DMN was trained for a particle-reinforced 2D RVE with a low fiber volume fraction.After fitting, they used a simplistic function to extrapolate the parameters of the learned DMN for another RVE with higher fiber content.The obtained parameters were then used as initialization for training the latter RVE.Huang et al. [29] built on the concept presented by Liu et al. [28] and proposed the so-called microstructureguided DMN (MgDMN), based on a parameter space defined by orientation state and volume fraction.The previous two methods are a posteriori interpolation strategies in the sense that new DMNs are obtained through post-processing.In contrast, Gajek et al. [30] proposed an a priori interpolation strategy.They modified the formulation of DMN such that orientation angles in the network are themselves functions of the fiber orientation tensor [31] of short-fiber reinforced composites.They trained this modified DMN for selected cases in the fiber orientation space and then used it to interpolate properties for other microstructures within that space.These approaches [28][29][30] have contributed significantly to facilitating the application of DMN to multiple microstructures.

5Apart from DMN, other research works have established the feasibility of directly learning from microstructure data.We may list works utilizing convolutional neural networks (CNNs) [15][16][17]32].Yang et al. [15] combined CNN and principal component analysis (PCA) to predict the nonlinear behavior of composite microstructures from their image representation.Eidel [17] used a 3D CNN architecture to predict the homogenized elastic properties of two-phase microstructures under different types of boundary conditions.Besides convolutional neural networks, graph neural networks (GNNs) [18][19][20] have recently gained in popularity in the sphere of material modeling.For instance, Vlassis et al. [18] used GNNs to predict the hyperelastic energy functionals of polycrystals.To do so, they designed a hybrid network architecture.GNNs [33] performed unsupervised classification, transforming the graph representation of polycrystals into feature vectors.A multi-layer perceptron performed the regression task of predicting energy, making predictions about energy functionals based on the feature vector and the polycrystals' second-order right Cauchy-Green deformation tensor.Vlassis and Sun [19] used a graph auto-encoder neural network architecture to compress so-called plasticity graphs into vectors of internal variables.Nonetheless, these models lack the key benefit of DMN.They cannot be used to simulate material nonlinearity if trained on linear elastic data.

6Despite this wealth of progress, research leveraging ML to learn from microstructure data in order to generalize DMN is currently non-existent in the literature.Hence, we pioneer in this work the use of ML-based microstructure informatics [34] to fill this gap in the research on DMN.In this regard, we can either start from the image representation of microstructures (hence using CNNs) or their graph representation (hence using GNNs).Given the straightforwardness of converting meshes from our mesh-based RVE tool into graphs, we select the latter.Learning from the graph data of microstructures frees us from the constraint of being restrained to a specific material system.This is because graphs can store features representing microstructural properties within their nodes, such as material phase at a given location.Switching from one material system (e.g., composites) to another (e.g., polycrystals) suffices to alter the features stored in graph nodes.We term our model a hybrid graph neural network-deep material network (GNN-DMN) model.It learns to derive DMNs based on the graph representation of microstructures.Each derived DMN is a stand-alone model.In other words, during inference, the GNN-based part of the hybrid model is used only once to set parameters for the derived DMNs.Afterward, each derived DMN can be used independently for linear or nonlinear predictions, such that their prediction speed remains the same as for conventional DMNs.

7We subsequently introduce our framework and the rationale behind it in Sect. 2. Section 3.1 introduces our approach to viewing microstructures as graphs.In Sect.3.2, we present the architecture of our hybrid GNN-DMN model through which we first transform graphs into geometric feature vec-

Framework

8The framework used in this work is depicted in Fig. 1.Microstructures are modeled as graphs, encoding relevant microscopic details.As such, these graphs serve as approximate representations of the microstructures.Subsequently, we use machine learning, mainly GNNs, to learn to extract relevant features from these graphs.These extracted features are transformed into parameters characterizing equivalent DMNs for the microstructures under consideration.The GNN-DMN model derived from this process is fine-tuned based on the microstructures encountered during the training phase.Once the GNN-DMN model has been calibrated, it can effortlessly generate new DMN parameters for any input microstructure (graph) provided to it.Such DMNs are inference-ready and can be used independently for linear or nonlinear predictions.The rationale underlying this approach is subsequently detailed in the rest of this section.

9Based on the original formulation by Liu et al. [21], a DMN tree of N layers is defined by two sets of parameters: rotation angles θ k h=0,1,...,N at every node, and weights w k N (derived from so-called activations z k N ) at nodes in the bottom layer N .Here, the subscripts denote the layer of the tree, while the superscripts refer to the position of a node at a specific layer.For simplicity, we utilize a flattened representation p = concat(z k N , θ k h ) by concatenating the activations and rotation angles of DMN.DMN aims to predict the homogenized compliance matrix D of a RVE.This process can be expressed by the following function F such that

10where D 1 and D 2 respectively refer to the compliance matrices of phase 1 and phase 2 in a two-phase RVE.F, which is a function of the input D 1 and D 2 , is parameterized by p. Liu et al. [21] demonstrated that the weights in a trained DMN network reflect the material volume fractions of its corresponding RVE.Subsequent studies [22,25,27,29] corroborated this fact.Huang et al. [29] later showed the ability of DMN to predict, via its learned orientation angles, the orientation tensors of short-fiber reinforced polymer (SFRP) composites.Several papers [21,22,25,28,30] have substantiated the link between the parameters learned by DMN and the geometry of microstructures.For these reasons, we postulate that the parameters p in any trained DMN model can be expressed as functions of the physical domain of the microstructure it represents.Based on this postulate, we may write

11such that p is dependent on the physical domain .Hence, the homogenization function F in Eq. ( 1) can be re-written to obtain a more general function M as

12where M is parameterized by p( ).While Eq. ( 1) was restrictive, such that the trainable parameters could only be optimized for a single microstructure, Eq. ( 3) is more comprehensive.It allows the parameters to be explicit functions of the physical domains they aim at capturing.This provides increased flexibility whereby multiple microstructures can be simultaneously trained.The function M takes into account all the key elements affecting the computation of average properties in a homogenization process, namely the physical domain of the microstructure and the properties of its constituent materials (i.e., D 1 , D 2 ).Naturally, the form of Eq. ( 3) begs the question of how to derive parameters p from arbitrary domains .We will demonstrate the feasibility of this idea by viewing discretized meshes of microstructures as graphs.

133 Hybrid graph neural network-deep material network model

From meshes to graphs

14Our end goal is to compute the average properties of RVEs.The solution to this micro-scale problem traditionally involves approximating the continuous domain of the RVE with a finite set of discrete mesh elements through the process known as discretization.The discretization of a domain can be mathematically represented as follows

15where is the continuous domain of a RVE.M is the discretized mesh approximating this domain; it is a triple constituted by a set N M of mesh nodes, a set F M of mesh elements and a set E M of element edges.In 2D, each element edge in E M links two nodes in N M , such that E M ⊆ N M ×N M is a set of ordered pairs from N M .As to the mesh elements in F M , each is uniquely defined by an ordered list of nodes in N M .For instance, if the mesh is linear triangular, then

16Inspired by previous works [18][19][20], we view the meshes M as graphs.In the context of graph theory, a graph

17n graph nodes (or vertices) and a set E G of edges (or links) that capture the relationships among the graph nodes.E G is a set of ordered pairs from

18Using the following correspondence, we transform meshes M into graphs G. Given the discretized mesh M, each mesh element f M i within it is regarded as a graph vertex v G i in a graph G.In other words, we resort to the mapping φ, φ :

19where φ is a bijection as there is a one-to-one correspondence between F M and V G .Each vertex in the graph is paired with exactly one element in the mesh.Conversely, each element in the mesh corresponds to a graph vertex.If any two mesh elements respectively f M i and f M j share at least a mesh node (i.e., f M i ∩ f M j = ∅), an edge is deemed to exist between their corresponding vertices in the graph.This correspondence yields a mapping ψ ψ :

20where unlike φ, ψ is a surjection.For each edge e G i in the graph G, there exists at least a mesh node n M j in the mesh M corresponding to it.This is because two mesh elements may have more than one node in common.Transforming meshes into graphs via the introduced mappings φ and ψ yield a data structure encoding information about the relationships among mesh elements.However, an additional link remains for the graphs to fully represent microstructures, namely geometric features at the microscopic level.

Encoding microstructural details in graphs

21We consider the physics of microstructures through node features (Fig. 2).Each node v G i in the graph G is associated with a node feature vector h i .Important information characterizing the microstructures may be stored in these feature vectors.The nature of such information may vary depending on the problem at hand (e.g., polycrystalline, composite materials).In this work, we are first tackling the modeling of composite microstructures.Hence, we consider four features relevant to this task and list them in Table 1.

22The vector h i represents the feature vector for a given graph node.We then refer to the set of all node feature vectors

23where it is constituted by a set V G of graph nodes, a set E G of node edges, and a set H of node feature vectors.We must notice that the graph G holds virtually all information about the domain of microstructures.Hence, we may regard G as a reliable estimation of .Recalling the expression for estimating the parameters of DMN in Eq. (2), we may then write an approximation of this function as p = p( ) ≈ p(G) (8) which conveys that the parameters p are approximately functions of graphs G. Estimating p can then be narrowed down to processing graph data through appropriate functions.For this purpose, we turn to graph neural networks and fullyconnected neural networks.

Model architecture

24We propose a hybrid graph neural network-deep material network (GNN-DMN) model (Fig. 3) that seeks to predict the homogenized tangents D of microstructures from their graph representation G and material properties: D 1 and D 2 .The model consists of two segments.The first segment, termed as graph-based feature extraction, aims to compress the input graphs G into fixed-size vectors.The purpose here is to extract relevant features from the complex graph data.Such vectors would theoretically contain a reduced form of the geometry encoded in the initial graphs.Hence, we hereafter refer to these vectors as geometric feature vectors.

25The second segment, referred to as microstructure-informed transformation, utilizes the geometric feature vectors to generate DMNs tailored for each input graph.We subsequently elaborate on the internal mechanisms of these two segments.

Graph-based feature extraction

26As mentioned previously, the objective in this segment is to compress large graph data into fixed-size vectors.The initial features encoded at the graph nodes are a choice dependent on the task in the target.For our purpose of the graphs representing the microstructures as faithfully as possible, we encoded four features at the graph nodes (Table 1).With each graph node corresponding to a mesh element, we considered the area of each mesh element, the xy coordinates of its centroid, whether that element is in the matrix or inclusion phase, and finally, whether the element is on the boundary of the microstructure.The total dimension of the starting graph node features amounts hence to 7 (Table 1).We start by performing message passing (MP) on the initial graphs.Message passing is the terminology used to describe the procedure by which a node in a graph neural network aggregates information from its neighborhood and updates its own state.Many message-passing formulations have been proposed in various graph neural network variants.We may mention GCN [33], GraphSAGE [35], GAT [36], GATv2 [37], etc.We carry out message passing through GATv2, which we selected for its expressive dynamic attention and superior performance [37] over other popular counterparts.These characteristics of GATv2 would facilitate the model to pay attention to the details distinguishing different microstructures.Optimally, the features should be projected into higher dimensions to facilitate the acquisition of complex and useful insights.For that, we selected a dimension of d = 64, with which our model has yielded good results.Nevertheless, a different size could also be cho- sen.Message passing, however, restricts information sharing to the vicinity of the graph nodes.Given that our goal is to extract global features, we juxtapose the MP layers with fully connected layers.Simply put, these fully-connected layers change the graph node data without taking into account their connectivity.This trick facilitates the transmission of information farther than the immediate neighborhood of the nodes.This entire process, which is depicted by the left part of the box in Fig. 4, is also listed in Table 2.The superscripts (•) in Table 2 are used to differentiate between input and output data, as well as between the different network layers or parameters.The message passing process MP for GATv2 has been described in Appendix A. Weights W (l) and biases b (l) have also been defined for fully-connected layers in Appendix A.

27At the current stage, each microstructure is still represented by a graph, with the main change being that the content and dimension of the node features have been modified.In the context of graph neural networks, the number of nodes among graph samples does not need to be the same.However, we want to collapse each graph into a single vector.In other words, we wish to infer global graph features from local node features.For that purpose, one can resort to an array of choices for graph pooling [38] operations such as average pooling, TopKPooling, DiffPool, etc.We selected average pooling, which bears similarities with the task of homogenization, as follows

28Here, y (0) denotes the graph-level feature vector obtained by averaging over the node feature vectors in H (4) (Table 2).Following the obtention of graph-level features through pooling, two fully connected layers map the pooled y (0) to the final output X f eats containing learned relevant information about the input graph.This stage is illustrated in the right part of the box in Fig. 4 and also listed in Table 3.We used a softmax function in the last layer to express the output in terms of probabilities.Nevertheless, other activation functions could also be experimented with.At this final layer, we reduced the dimension of the vector to d = 32.For a discussion on the influence of the size of d, please see the comments in Sect.6.

29In summary, the sequence of operations in this segment may be succinctly expressed through the following function H Message Passing H (1) = MP (1) (H ( 0) ) (7, 64)

30Fully-connected H (2) = ReLU W (1) • H (1) + b (1) (64, 64)

31Message Passing H (3) = MP (2) (H (2) ) (64, 64)

32Fully-connected H (4) = ReLU W (2) • H (3) + b (2) (64, 64)

Layer type Formulation Input-Output dimensions

33Fully-connected y (1) = tanh W (3) • y (0) + b (3) (64, 64)

34Fully-connected X f eats = softmax W (4) • y (1) + b (4) (64, 32)

35in which X f eats denotes the learned geometric feature vector.

36H represents the chain of operations described above.It takes graphs G as input and is parameterized by H which refers to the fitting parameters of the neural networks in use.

Microstructure-informed transformation

37In the second segment (Fig. 5), we exploit the global feature vector X f eats given by Eq. (10).Since it is already embedded with essential information about the input graphs, we could use it alone to infer the parameters p of the target DMNs.However, we employ an alternative strategy that appears more easily trainable.Alongside X f eats , we utilize the parameters p of a universal DMN to infer the targets p.This DMN is universal in the sense that it is used to infer p for all the input microstructures.Moreover, its parameters p are learnable, entailing that they are optimized based on the sample microstructures encountered during training.The depth of DMN trees is to be chosen in proportion to the complexity of the problem at hand.Previous works [21,28] have shown that a DMN of N = 5 layers should be appropriate for the category of 2D matrix-inclusion composites, which we will be considering.Hence, we set the depth of the universal DMN to N = 5.Likewise, we consider the target trees to have the same number of layers.This setup leads the total number of parameters in p and p to be equal to

38We utilize three layers of fully connected networks (Table 4) to obtain p from a series of nonlinear transformations applied to the compressed feature vector X f eats and the flattened representation of the parameters p of the universal DMN model.The input to the first layer is simply the concatenation concat(X f eats , p), having a dimension d = 32 + 95 = 127.We used Softplus as the activation function in the final layer to guarantee the positiveness of the output values.This is necessary as no weights can be negative in the DMN parameters [21].The transformation sequence listed in Table 4 may be expressed as the function T such that

39where T is parameterized by T , which represents the fitting parameters of the fully-connected networks.

40Unlike the original formulation of DMN in which the parameters for a given microstructure are found by optimizing Eq. (1), they are here obtained through a combination of the functions H and T , respectively given in Eqs.(10) and (11).We may merge these two equations as

41Fig. 5 The second segment of the model where the information from learned feature vectors is leveraged to derive new DMNs By further simplifying Eq. ( 12), we may write

42which simply means that the derived parameters p are a function of the input graphs G.This function is parameterized by the parameters H and T of the neural networks in the graph-based feature extraction and microstructure-informed transformation steps, as well p of the universal DMN.

Offline training

43Before revealing the performance of the model, we pause to explain the data flow in it during offline training and online prediction (Fig. 6).First, we start with offline training.A DMN defined by the parameters p obtained via Eq.( 13) can take any ( D 1 , D 2 ) pair and predict the homogenized tangent D for the microstructure represented by the corresponding graph G.By reference to Eq. ( 3), we may write the predictions of this DMN as

44We may substitute Eq. ( 13) into Eq.( 14) such that

45By separating the input data from the free parameters in Eq. ( 15), we may write the function M for the entire model as

46The inputs to the model are the graph representation G of microstructures and the tangents D 1 , D 2 of their constituent materials.Its fitting parameters are H , T , and p, which have already been defined.The final outputs of the model M are homogenized tangents D. For details regarding the prediction of homogenized tangents through DMN, we refer interested readers to consult previous works [1,21].By comparing Eq. ( 16) with Eq. ( 1), we notice why this new formulation enables us to handle multiple microstructures.For Eq. ( 1), a single microstructure and its material properties are selected.From there, the network is fitted for this microstructure alone.In contrast, Eq. ( 16) additionally considers the graph representation G of a given microstructure.As such, the homogenized D is dependent, not only on D 1 and D 2 , but also on G.As a result, it suffices to change the input graph to the network to simulate the response of other microstructures.Using the same input material properties but different graphs would result in different homogenized D. During fitting, multiple microstructures are simultaneously trained.The parameters of the model to be optimized are H , T , and p.To penalize the departures of predictions from target values, the following cost function [21] is defined:

47Di and DDN S i respectively denote values predicted by the model and obtained via direct numerical simulation.N s is the number of samples being considered.• F denotes the Frobenius norm.The Frobenius norm A F of a matrix A is defined as Fully-connected y (2) = ReLU W (4) • concat(X f eats , p) + b (4) (127, 127)

48Fully-connected y (3) = ReLU W (5) • y (2) + b (5) (127, 127) Fully-connected p = Softplus W (6) • y (3) + b (6) (127, 95)

49Besides the initial cost in Eq. ( 17), we additionally subject the weights at the bottom layer of the universal DMN to the arbitrary constraint:

50α is a scalar that controls the magnitudes of its fitted weights.

51We choose to set it equal to 2 N −2 as in these works [21,22,28].The final cost function applied to the outputs of the model M is

52with the scalar λ being a hyperparameter to be selected, and L( wk N ) being equal to

53such that

54Equation ( 22) is the final cost function used throughout the training process.We implemented all the aspects of our model using the Pytorch [39] machine learning framework, taking advantage of its automatic differentiation system [40] to implement DMN.We used its built-in modules to define the fully connected networks and utilized the implementation by PyTorch Geometric [41] of GATv2.During training, learning rates of 10 −2 and 10 −4 were used to respectively tune the parameters of the universal DMN in the two examples that will be introduced in Sect. 5.As to the remaining parameters of the model, a learning rate of 10 −4 was used in both cases.

Online prediction

55After training, the optimal parameters H , T , and p of the model are fully determined.From Eq. ( 13), we notice that a given derived DMN p is completely defined by these learned parameters.Thus, during inference, we use Eq. ( 13) as an initialization step to obtain p for any given microstructure.The thus-obtained parameters define a stand-alone DMN model (Fig. 6).This particularity allows us to take full advantage of all the benefits traditionally accompanying DMNs.We can use this derived DMN to predict linear elastic properties and employ a Newton-Raphson scheme to carry out nonlinear predictions, as shown in previous works [21,22].Results demonstrating this capability of the GNN-DMN model to yield stand-alone DMNs able to model nonlinearity will be presented in Sect. 5.

Generation of microstructures

56We generate RVEs for training the model based on the random sequential adsorption (RSA) method [42].Before starting the process, we select the microstructural descriptors of the RVEs.For instance, we might wish to generate microstructures with circular, fixed-size inclusions embedded in the matrix material.In this case, the determinant microstructural descriptor would be the inclusion volume fractions.Then, based on the target descriptors, we determine the required quantity of inclusions to be dispersed in the matrix.

57At the initialization of the process, we start with an empty surface of the matrix.Then, we select a particle and randomly place it within that surface.Since this is the first particle placement, overlapping is not an issue.We then turn to the next particle and try to place it in a new location.Because of a pre-existing inclusion in the matrix, there exists a probability of overlap with it.If such is the case, a location is resampled until it satisfies our criterion of non-collision.This procedure is repeated until all inclusions have been placed onto the RVE matrix.Besides, we use special treatments for particles positioned on the RVE boundary to ensure its periodicity.The corresponding algorithm is provided in Appendix B.

Generation of material properties

58To enable the network to develop the ability to produce proper DMNs for the RVEs generated as described above, we rely on their material properties.For training, conventional DMNs predict homogenized tangents D from the constituent tangents D 1 , D 2 of their corresponding RVEs.Thus, we prepare such material data for each microstructure.For the input properties D 1 and D 2 , we sample them for each phase in the RVEs.Concerning the homogenized tangents D, we compute them by carrying out different tests on the RVEs.The dimensionality of the RVE problem determines the number of tests required.Since our problem is a 2D one, we carry out three tests.Two of these tests are in the orthogonal directions 1 and 2, while the third is an in-plane shear test.These sets of tests, which we carried out using the RVE package [43] available in LS-DYNA ® , are as follows.

59For the first test, we constrain the RVE with ˜ 11 = δ, where δ is a non-zero small number (e.g., δ = 10 −12 ).The other strain components are left unconstrained.After the completion of the finite-element simulation, we obtain the stress and strain response of the RVE as:

60Given these, we compute three components of the fourthrank compliance tensor D i jkl :

61For the second uniaxial test, we apply a macroscopic uniaxial loading ˜ 22 = δ, which allows us to obtain:

62from which we compute

63Finally, we apply a macroscopic shear loading ˜ 12 = δ, which allows us to obtain:

64from which we compute

65The homogenized compliance matrix D in Mandel notation is then computed using these nine values in the compliance tensor D i jkl .

Examples

66In this section, we investigate the performance of our model.We consider two families of microstructures for that.The first example explores the application of the model to microstructures with fixed-size circular inclusions in their matrix.Such microstructures are usually described by the total volume fraction of the inclusions.However, this description is not deterministic, as there can be multiple realizations of microstructures having the same inclusion volume fraction.

67We include these multiple realizations in our training data.Nevertheless, we recognize the simplicity of this class of microstructures.With this in mind, we design a second example with more complex microstructures whose inclusions vary in shape, size, and orientation.Hence, the collection of these microstructures constitutes a superset of those in Example 1.The results showed the ability of the GNN-DMN model to perform well on this more difficult task.Furthermore, the model fitted on microstructures in the second example was able to yield accurate predictions for microstructures in the first example, for which it has not been trained.This capability hints at the possibility of developing a generalized model for composites with our approach.It is worth mentioning that the basis of this work is that, given an RVE, the GNN-DMN model can learn to derive a DMN for it.Hence, we did not study the influence of RVE size on the homogenized properties.However, various other publications [44,45] have studied this aspect, which we refer the readers to consult.

Dataset

68In this first example, we consider microstructures with circular inclusions.Each microstructure can be globally defined by the total volume fraction v f of its inclusions.Nevertheless, this descriptor, namely the inclusion volume fraction v f , is not fully representative.Generally speaking, there always exists a randomness in realizing an RVE based on global descriptors.This randomness is inherently due to the shape (i.e., size, inclination) of the inclusions and their locations.We are considering circles with a rotational symmetry of order ∞.Therefore, the placement of a circular inclusion is uniquely determined for a given location within the matrix.For instance, this would not be true if the inclusion were elliptical, as its orientation would have to be considered.Considering the aforementioned point, randomness can then possibly be induced by the size of the inclusions and their positions.However, we choose to set the radii of all inclusions constant.Eventually, we remain with a single source of randomness: the distributions of the circular inclusions in the RVE.

69To generate the microstructures needed for training, we uniformly sample v f , such that v f ∈ U [0.10, 0.40].We build three sets of microstructures from the volume fractions: the training (200 RVEs), validation (50 RVEs), and test (50 RVEs) set.These samplings within the prescribed volume fraction range give rise to many RVEs sharing the same global descriptors (e.g., v f ).This can readily be observed in Fig. 7, where two microstructures have the same number of inclusions.Each microstructure is then discretized into a mesh.A mixed triangular-quadrilateral elements discretization scheme has been used in all cases.The resolution of the meshes is rather fine, the number of elements varying from ∼ 7000 to ∼ 10,000.All of those meshes are transformed into graphs G following the procedure detailed in Sect.3.1, with the features encoded at the graph nodes being those listed in Table 2. Plots of the graph representations of sample microstructures can be seen in Fig. 7.The number of nodes in the graphs directly corresponds to the number of elements in the meshes; hence, the order of the graphs likewise ranges from ∼ 7000 to ∼ 10,000.

70Besides the graphs, elastic tangents are also required as inputs within our proposed framework.Consequently, we generate 300 triples ( D 1 , D 2 , D) for each microstructure via direct numerical simulations (DNS).Figure 8 shows the sampling space of the material properties used for obtaining D 1 and D 2 .The constituent phases of the RVEs are assumed to be linear isotropic.The elastic moduli E and Poisson's ratios v were sampled as follows.The Young's modulus E 1 of phase 1 was held equal to unity, i.e. log e (E 1 ) = 0.In contrast, E 2 was allowed to vary for phase 2 such that −5 ≤ log e (E 2 ) ≤ 5.In other words, its magnitude could be ∼ 150 times as high (or as low) as E 1 .The Poisson's ratio v for both phases was allowed to vary between 0 and 0.5.We assumed a state of plane strain such that the input compliance matrices in Mandel notation are given by

71where E p , v p denote the Young's modulus and Poisson's ratio for each phase.The homogenized tangents D were obtained according to the procedure described in Sect.4.2.

Offline training

72The cost function detailed in Sect.3.3.1 is used to optimize the parameters of the model.To quantify the accuracy of predicted tangents during the training process, an error function is separately defined as

73Not only do we evaluate the tangents predicted by the different generated DMNs, but we also perform a sanity check on the physics of those DMNs.For that, we monitor the learned inclusion volume fractions [21] throughout the fitting process.As such, we define a volume fraction error

74in which N m represents the total number of microstructures.

V f model i

75represents the volume fraction obtained from the parameters of created DMNs, and V f truth i represents the volume fraction which can be computed from information in the RVE mesh.

76Next, we proceed to train our GNN-DMN model.We do so for 200 epochs (Fig. 9).The computed errors for the training set decreased to 2.24% at the end of the fitting process.The model showed a comparable performance on the validation set, for which the error was evaluated at 2.32%.Not only did the model demonstrate its ability to predict the homogenized tangents accurately, but it also displayed its capacity to capture the topological information of the meshes taken as inputs.We notice errors of respectively 0.32% and 0.45% on the predicted volume fractions for microstructures in the training and validation sets.

77For illustration purposes, we show a visualization (Fig. 10) of the treemaps of DMNs generated for three different microstructures in the test set.A treemap is a space-filling method of visualizing tree structures [46].Using this method, one can represent each leaf node in a DMN as rectangles occupying areas proportional to the fraction of their weight to the sum of the weights of all leaf nodes.The DMN tree structure dictates the exact location of each of these rectangles.Moreover, given that each leaf node belongs either to the matrix or inclusion, a binary color code is assigned accordingly.These RVEs, respectively, have inclusion volume fractions of 15.95%, 33.13%, and 38.04% (Fig. 10a).The corresponding DMNs (Fig. 10b) exhibit volume fractions of 16.15%, 32.81%, and 37.41%, which are close to the targets.Thus, the model effectively learned to assign different parameters depending on the input microstructure.

Online prediction: elastic properties

78The end goal of generating different DMNs is to use them as substitutes for traditional simulation tools in the evaluation of material properties.In light of this consideration, we select a set of material properties listed in Table 5.This set corresponds to a matrix (phase 1) being elasto-plastic and the inclusions (phase) being purely elastic.We carry out DNS based on this set of values for the 50 microstructures in the At first, we restrict ourselves to the elastic response of the RVEs and evaluate their homogenized elastic properties.The homogenized properties which we consider are the longitudinal Young's modulus Ē11 (Fig. 11a), the transverse Young's modulus Ē22 (Fig. 11b) and Poisson's ratio v12 (Fig. 11c).We recall that, for each volume fraction, several RVE realizations may exist.Thus, in Fig. 11, we notice multiple predictions for some volume fractions.By comparing the predictions of the model for the elastic moduli Ē11 and Ē22 , we notice that the results are comparable with those of DNS.As for the homogenized Poisson's ratio v12 , we notice a more significant variability of the reference values for a given volume fraction.The GNN-DMN model seems to underestimate this variability.Nonetheless, the influence of this underestimation would be minor as the differences mostly occur from the third decimal place of the target values.Hence, the model is dependable in its ability to estimate elastic properties.

Online prediction: nonlinear responses

79Next, we turn to the performance of the model when it comes to the nonlinear response of the RVEs.We consider two microstructures from the test set.For each of them, we perform three loading-unloading-reloading tests using all the properties listed in Table 5.Two are uniaxial tests in the two orthogonal directions (i.e., 1 and 2), while the last is an inplane shear test.The results for both of them are reported in Fig. 12a and b.From inspection, we notice a close agreement between the responses predicted by the model and those determined via DNS.To be able to quantify the accuracy of the stress responses, we define the errors on the predicted stresses as [29]: mean-relative error

80Based on the definitions given in Eqs. ( 29) and ( 30), the mean-relative errors for the three tests in Fig. 12a are 2.23%, 3.23%, 1.93%, while their max-relative errors are 5.86%, 7.93%, 5.39%.By comparison, the mean-relative errors for Fig. 12b are 2.06%, 1.26%, 0.33%, while the maxrelative errors are 4.54%, 2.78%, 2.05%.These scalar values give us an indication of what curves for particular error magnitudes might resemble.

81Given that we have a visual representation of what the computed stress errors look like, we repeat the same tests for all the microstructures in the test set.Figure 12c displays histograms of the computed errors for the nonlinear response of those 50 microstructures.Considering the mean-relative error, the mean of the distributions for the three tests are respectively 1.89%, 1.84% and 1.29%.As to the max-relative error, the mean of the distributions are 6.65%, 5.54% and 4.48%.Comparing with the statistics of Fig. 12a-b, these are reliable results.The overall training results, as well as the linear and nonlinear predictions, thus prove the capability of our model to generalize on this family of RVE well.

Example 2: microstructures with elliptic inclusions

82The previous example proved the capacity of our model to learn the micromechanics of the family of RVEs with circular inclusions.Here, we attack a more challenging case of microstructures with more complex topologies.

Dataset

83We consider RVEs with inclusions of varying quantities, shapes, and sizes.Thus, we define a three-dimensional descriptor space specified by the number of particles N p in each RVE, the semi-axis aspect ratio A r of these ellipseshaped particles, as well as the volume fraction v f occupied by the particles.The actual sizes of the particles in the RVEs are deduced from N p and v f .As to the orientations of the particles during their placement in the RVEs, they are assigned randomly.Based on these descriptors, we generate 200 microstructures for the training set and 50 for the validation set.We also separately generate a test set with 80 microstructures.The corresponding space of descriptors sampled through Latin hypercube sampling [47] is shown in Fig. 13a, while Fig. 13b shows examples of RVEs obtained in the training set.We readily notice the diversity among them.The microstructures vary in the sizes, shapes, and distribution of their inclusions.As in the first example, we generate 300 ( D 1 , D 2 , D) for each microstructure.The material properties in this case are identical to those shown in Fig. 8.

Offline training

84We then train the GNN-DMN model for 100 epochs (Fig. 14).At the end of the training, the model yielded an average error of 3.66% for RVEs in the training set and 3.93% for those in the validation set.As to the physics learned by the generated DMNs, they are also accurate.We observe volume fraction errors of 1.66% and 1.84% for the training and validation sets.

85For illustration purposes, we select three dissimilar RVEs from the test set (Fig. 15a).The first one, with a low volume fraction (20.44%), has inclusions with a high aspect ratio.The second one also has inclusions with a high aspect ratio but has a a lower volume fraction (17.70%).The last one has a volume fraction of 39.11% and inclusions with a low aspect ratio.Figure 15b shows treemaps drawn from the weights in the corresponding DMNs.The volume fractions predicted are respectively 21.57%, 18.61%, and 37.92%.Although the predictions look less accurate compared with those of Example 1, it is nonetheless surprising to notice the ability of the model to generate adequate DMNs when considering the diversity of microstructures in the dataset.

Online prediction: elastic properties

86We then proceed to scrutinize the performance of this newly fitted model in predicting the homogenized properties of RVEs in the test set using the elastic constants listed in Table 5.We utilize 3D plots (Fig. 16) whose axes correspond to the space of RVE descriptors.The color of each point indicates the result for the RVE it represents.Figure 16a shows the predicted longitudinal Ē11 , transverse Ē22 Young's moduli, and Poisson's ratio v12 obtained via DNS. Figure 16b shows the same results as predicted by each DMN.A visual inspection indicates a good similarity between the two groups.But, to be more rigorous, we quantify the corresponding errors.The mean of the relative errors for Ē11 , Ē22 , and v12 are respectively 1.55%, 1.39% and 0.96%.

Online prediction: nonlinear responses

87Last but not least, we evaluate the use of the model for nonlinear predictions.We choose to consider a complex loading case in which all the in-plane strain components (i.e., 11 , 22 and 12 ) are constrained.We generate the load curves shown in Fig. 17 through a Gaussian process with a radial basis function (RBF) kernel.The loading considered is applied in a total of 250 steps.We then subject each RVE in the test to such a loading via DNS to obtain their stress responses.GNN-DMN is also used for the same purpose.For illustration, we show, in Fig. 18a and Fig. 18b, results for two very different microstructures.We notice comparable stress values between the results of DNS and those of GNN-DMN.To be more explicit, the mean-relative errors (Eq.( 29)) are respectively 1.34% and 1.01%, while the max-relative errors (Eq.( 30)) are respectively 4.62% and 3.78%.We further assess these errors for all the microstructures in the test set.

88The resulting histogram is displayed in Fig. 18c.Considering the mean-relative error, the average of the distribution is 1.24%, while its maximum is 1.81%.As to the max-relative error, the histogram values average 4.08% and do not exceed 6.16%.Such statistics are comparable with results reported by Huang et al. [29].Beyond the simple case in Example 1, our proposed model shows its capacity to learn the topology of more complex microstructures and derive appropriate DMNs that can be confidently used for complex nonlinear predictions.

Generalization across datasets

89In designing Example 2, we increased the complexity of the space used to generate the microstructures.We transitioned from a single variable, namely volume fraction, to a trio of variables, including volume fraction, aspect ratio, and the count of particles.Hence, from a set theory standpoint, we can view the collection of microstructures in Example 2 as a superset encompassing the set of microstructures in Example 1.The microstructures in Example 2 exhibited significant dissimilarities compared to those in Example 1, with none of the latter datasets appearing in the former.Nevertheless, it would be intriguing if the model fitted in Example 2 could still yield accurate results for the microstructures in the first example.Practically, this bears important implications, suggesting that there might not be a necessity to train distinct models for simple classes of microstructures.Instead, a highly general model could be trained and applied to specific applications, directly or via minor fine-tuning.We explore this possibility next.

90We picked the 50 microstructures in the test set of Example 1, and then used the GNN-DMN model fitted in Example 2 to predict their nonlinear responses.The properties used for the constituent materials are identical to those use previously and outlined in Table 5.We report in Table 6 the statistics of the errors for these predictions and additionally provide in Fig. 19 instances of such predictions.Contrasting the values with those obtained in Sect.5.1.4,we realize that the results are comparable.This observation is very promising.It points to the idea that a graph-enhanced DMN model opens the possibility of incorporating diverse training data featured with multiple microstructural descriptors to derive a universal material network for families of microstructures.

Observation on the geometric feature vectors

91In previous works [28][29][30], macroscopic descriptions of microstructures (e.g., volume fraction) were explicitly used to derive DMNs.In using the graph representation of For that purpose, we carry out a principal component analysis (PCA) [48] on the learned geometric feature vectors X f eats for microstructures in the test set of Example 2. PCA reinforcement particles on the right.We readily notice that a clear trend is captured for the volume fractions, with the magnitude increasing along the first principal axis.A similar argument, although to a lesser extent, can be made for the aspect ratio along the second principal component.Hence, one could theoretically study and infer the importance of specific macroscopic descriptors from the feature vectors.These trends revealed through PCA also provide a subtle indication of why the model trained in Example 2 could perform well on the microstructures in Example 1.The analysis here constitutes a preliminary look at this particularity.However, this is an aspect that deserves its own study.

Hyper-parameter tuning

92The previous two examples established the validity of GNN-DMN.Here, we add a few additional comments.The first regards the performance of the model if we were to train it for longer and also change the dimension of the learned geometric feature vector X f eats (Eq.( 10)). Figure 21 shows results for various sizes of X f eats including d = 8, 16, 32 and 64.The model was additionally trained for close to a thousand epochs.Increasing the dimension of X f eats enables errors to decrease faster.As seen in the left and right plots of Fig. 21, the curves from d = 32 and d = 64 escape the initial "plateau" faster than when lower dimensions are used.Interestingly, the highest dimension d = 64 did not lead to the most accurate model.Whether we consider the average tangent or volume fraction errors, the model with d = 32 yielded the lowest values.As for the model's reliability in predicting homogenized tangents when trained for many more epochs, additional improvements remain to be made.The validation set yields comparable errors independently of the dimension of the geometric feature vector.In contrast, the training set is more sensitive to those changes.At lower dimensions d = 8 and d = 16, we notice a slight overfitting of the model.The overfitting tendency becomes more accentuated when d = 32 or d = 64, in which cases the gap between the training and validation errors widens faster.We have not tackled overfitting in this work, but we anticipate that it is an aspect worth investigating in the future.

Computational cost

93The second aspect concerns the computational cost of GNN-DMN.The models reported in this study were trained on a Tesla ® V100 GPU with a memory of 32GB from NVIDIA ® .During the training of the examples, a batch size of 50 was utilized, which amounts to a total of 200 × 300 ÷ 50 = 1200 iterations per epoch.For instance, the model of Example 2, which was trained for 100 epochs, necessitated 23 h and 10 min to attain its reported performance.This time is equiv-alent to less than a day, which is very acceptable given the accuracy of the model in the results that have been reported.

94We moreover compare the computational cost of the derived deep material network during online prediction against that of the RVE package in LS-DYNA ® .We draw the reader's attention to the fact that we follow other works [21,27,49] using a CPU instead of a GPU during inference.In our experience, using DMN on GPU is more time-consuming.This is arguably due to the structure and small size of DMN.Gregg et al. [50] showed that the use of GPU is not always beneficial as, depending on the nature of the task and size of the data, the transfer of data to/from the GPU can take longer than the operation performed by the GPU.During training, the large size of GNN dominates, such that it is more efficient to train the GNN-DMN model on GPU.During inference, however, after initialization of the derived DMN parameters using the trained GNN, only the derived DMNs are utilized for nonlinear prediction through Newton-Raphson iterations, hence the choice of CPU.The efficient use of DMN on GPU is a topic that has not yet been investigated in the literature.Future research drawing inspiration from this work [8], for instance, which attained up to four orders of magnitude improvement in computational efficiency with GPU, might pave the way for that.With these details being stated, the workstation used was equipped with a 13th generation Intel ® Core ™ i9-13900K processor.The RVE package spent approximately 130 s on the uniaxial tests shown in Example 1 and 90 s on the loading test shown in Example 2. In comparison, derived deep material networks spent around 25 and 22 s in both cases.This corresponds to speedups 5 and 4 times, respectively.However, it is worth mentioning that the DMN implementation used in this case is not optimized, hence resulting in the difference with speedup factors previously mentioned in the literature [21,24,27,49].For instance, Liu et al. [21] reported a 150X speedup on a small strain problem.A more recently proposed and more efficient DMN (micromechanics-based material network) [27] even reported up to 4 orders of gains in speedup.Given the gap being stated, a more efficient implementation of DMN has been underway, resulting in two to three orders of gains in speedup.However, its integration into GNN-DMN is being studied and will be reported in the near future.To sum up, this increase in time efficiency with GNN-DMN is especially appealing for applications to multiscale problems in which microstructure topology at the smaller scale varies by location.Multiple deep material networks can be instantly derived using GNN-DMN and readily incorporated into a multiscale framework for faster simulations.

Microstructure representation

95Lastly, we focused on using the graph representation of microstructures.We selected this approach because of the straightforward correspondence between meshes used by LS-DYNA ® , which we used as an RVE tool, and graphs.However, we are aware that an alternative approach would be to start from the image representation of microstructures and employ convolutional neural networks to learn from them.This research route is equally feasible, and we might explore it in the future.

Conclusions

96In this work, we have explored the implementation of a graph-based model aimed at unifying the multiscale modeling of microstructures under a single umbrella.Whereas the original formulation of DMN focused on reducing the representation of a single RVE, our model further takes the graph representations of RVEs as input, thus making it readily applicable to different microstructures.Besides, the model generates, as part of its pipeline, parameters p for DMNs representing the input microstructures, thus making it a tool for compressing RVEs into equivalent DMNs.Different examples showed the capability of the model to discrimi-nate among dissimilar microstructures.In Example 1, the model was successfully applied to various microstructures with fixed-size circular inclusions.These RVEs had a single microstructural descriptor, i.e., the inclusion volume fraction.The model learned to create corresponding DMNs with parameters reflecting this descriptor.The use of these DMNs to predict linear properties and nonlinear behavior was illustrated through several results.These capabilities were also demonstrated in Example 2, which considered microstructures with multidimensional descriptors whose inclusions varied in shape, size, and orientation.The key features of our GNN-DMN model can be summarized as follows:

971. We directly incorporated microstructural-level graph representations and homogenized linear elastic data to train a GNN-DMN model as the unified representation of microstructures.2. The DMNs obtained through our approach are standalone models that can be used separately for online inference of the nonlinear behaviors of new microstructures, thus leveraging the advantages of using a model with few degrees of freedom.

983. The GNN-DMN model obtained from complex microstructures can be used to infer the mechanical behaviors of more simple ones, indicating that our model can potentially handle families of microstructures.

99Next, we envision 3D GNN-DMNs trained on various heterogeneous material systems.These would include particle-based, fiber-reinforced composites, polycrystalline materials, etc.Such an endeavor would help accelerate our understanding of materials.Moreover, this model is a perfect candidate for developing new materials through inverse material design.Given its graph input, the model enables the possibility of designing materials at their microstructural level for specific properties.However, for this goal to be attained, extensive research must be undertaken to enhance the expressivity of the model in extracting graph features.In the distant future, our approach will open the door to the possibility of developing a large-scale model (in analogy with large language models) whose purpose would be to generate twin DMNs for a diversity of microstructures.

Appendix A: Neural network formulations

100Two types of ML models are involved in the treatment of the graph data: fully-connected neural networks and graph neural networks (specifically GATv2).

A.0.1 Fully-connected neural network

101In a fully-connected neural network, an input layer, one (or many) hidden layer(s), and an output layer are sequentially stacked together with so-called activation functions to create a nonlinear mapping between inputs and outputs.Let h i−1 ∈ R F i−1 ×S be the input to the layer i in a fullyconnected network.F i−1 is the number of features for each sample at the previous layer i − 1, and S is the number of samples.The output h i of this layer is given by

102with the weight matrix W i ∈ R F i−1 ×F i and bias b i ∈ R

A.0.2 Message passing in GATv2

103Graph neural networks are tailored to learn from graphstructured data.They do so by updating the features of each node based on the features of its neighboring nodes and edges.This process is otherwise known as message passing between the nodes.Several GNN models have been proposed over the years, and they mostly differ in the way the message passing is carried out.In this work, we made use of GATv2 [37] and detail below its message passing process.

104Let us consider a graph G = (V G , E G ).Each vertex v G i in the set V G is associated with a feature vector h i ∈ R F .R here denotes the set of all real numbers, while the subscript F refers to the dimension of the vector h i .The objective through message passing is to aggregate information from nodes in the neighborhood N i of v G i to obtain a new feature vector h i ∈ R F for it.Here, the neighborhood N i refers to nodes in G with which v G i is connected.Some graph neural networks such as GCN [33] consider the importance of information from nodes in the neighborhood based on preset coefficients.GATv2 instead learns attention coefficients α i j to determine the relative importance of different nodes.The scalar α i j denotes the attention coefficient between node v G i and another node v G j ∈ N i .To obtain α i j , a scoring mechanism e : R F × R F → R is first calculated as

105where concat(h i , h j ) simply means that we concatenate the two vectors.W ∈ R 2F ×2F is a learnable weight matrix.a ∈ R 2F is a weight vector whose optimal values have to be trained as well.The LeakyReLU activation function is given by LeakyReLU

106in which β is a scalar multiplier; β is usually set by default to 0.01.The values obtained through the scoring mechanism e are then normalized through the softmax function to obtain the actual attention coefficients α i j as

107With the relative importance α i j computed for all nodes in the neighborhood, the updated feature vector h i for node v G i is found as

108in which act(•) is an activation function.We have used ReLU as activation function in the message passing layers.Hence, in our model

109in which MP stands for the message passing process through which the feature vector for a node v G i is transformed.We refer to the set of all the node features in G as H = {h i }

110|V G | i=1 .Referring to Eq. (A6) and abusing notation, we may write their transformation as

111where H represents all updated node features.GATv2 further allows the flexibility of using multi-head attention [51].However, we have not made use of it in the present work.

Fig. 1

112Fig. 1 Illustration of the framework used in this work.Initially, microstructures are transformed into equivalent graph representations.During training, the graph data is used to obtain a GNN-DMN model through feature extraction and microstructure-informed transformation.

Fig. 2

113Fig.2Meshes are transformed into equivalent graphs as follows.Each element in a mesh is regarded as a node in a graph, with the connectivity of the graph nodes reflecting the connectivity of the mesh elements.

Fig. 3

114Fig. 3 Overall architecture of the proposed GNN-DMN model.The model first encodes the graph representations G of various microstructures into corresponding geometric feature vectors X f eats .It then derives separate DMNs from these feature vectors; the parameters of a

Fig. 4 Table 2

115Fig.4 The first segment of the model through which the graph representations of microstructures are compressed into feature vectors, retaining meaningful information about them

Fig. 6

116Fig. 6 Illustration of the data flow in the model.During training, the graph-based model learns to derive DMNs to predict homogenized tangents D. The model can produce new DMNs based on newly given

Fig. 7 Fig. 8

117Fig. 7 The first row shows examples of microstructures in the training set.The second row shows their corresponding graphs, constructed from meshes.The colors are used to distinguish between graph nodes belonging to the matrix and the reinforcement

Fig. 9

118Fig. 9 Evolution of the error on the predicted tangents and volume fractions during training of the model for 200 epochs

Fig. 10

119Fig. 10 Visualization of the DMN parameters (shown in generated by the model for three different microstructures (shown in (a)).The microstructures, respectively, have inclusion volume fractions of 15.95%, 33.13%, and 38.04%.In comparison, the generated DMNs predict 16.15%, 32.81%, and 37.41%

|

120max i=1,...,n |σ DN S i |

Fig. 12 aFig. 13 a

121Fig. 12 a, b Nonlinear prediction with derived DMNs for selected microstructures in the test set.The properties used are those listed in Table 5. c Distribution of the errors yielded by the created DMNs for the nonlinear prediction performed based on the same properties for all microstructures in the test set

Fig. 14

122Fig. 14 Evolution of the errors on the predicted tangents and volume fractions during training.The model was trained for a total of 100 epochs

Fig. 16

123Fig. 16 Predicted longitudinal Young's modulus Ē11 , transverse Young's modulus Ē22 and Poisson's ratio v12 for microstructures in the test set, a via direct numerical simulation and b by our GNN-DMN model

Fig. 17

124Fig. 17 Strain loading obtained through a Gaussian process with a radial basis function kernel.The load is applied in 250 steps

125Figure 20 shows scatter plots resulting from PCA, in which each dot corresponds to a geometric feature vector.For simplicity, only the first two principal components are visualized.Each dot is color-coded based on the volume fraction of the underlying microstructure on the left and the aspect ratio of the

Fig. 18 a

126Fig. 18 a, b Nonlinear prediction with interpolated DMN models for selected microstructures in the test set.The properties used are listed in the Table 5. c Distribution of the nonlinear prediction errors (for all the microstructures in the test set) yielded by the generated DMNs

Fig. 20 Fig. 21

127Fig.20 The results of PCA on the geometric feature vectors X f eats produced by GNN-DMN for the microstructures in the test set of Example 2. Each dot corresponds to the embedding of a feature vector.On the

128F i .The symbol • T represents transposition.During matrix manipulation, the bias term is broadcasted along the dimension of the S samples.act(•) is an activation function such as the Rectified Linear Unit (ReLU) or Softplus.In the case of the ReLU, we have ReLU(•) = max(0, •).If Softplus is used, then Softplus(•) = log(1 + exp(•)).

Table 1

129Features assigned to each graph node

Table 3

130Transformation of the pooled global graph features into X f eats

Table 4

131Sequence of transformations used to obtain the derived DMN parameters p

Table 5

132Selected material properties.Phase 1 is assumed to be elastoplastic, while phase 2 modeled to have a linear elastic behavior

133Fig. 11 Predicted homogenized, a longitudinal Young's modulus Ē11 , b transverse Young's modulus Ē22 , and c Poisson's ratio v12 for microstructures in the test set in comparison with numerical simulations

Table 6

134Performance of the GNN-DMN model from

참고문헌 41건

  1. The Use of Tensors to Describe and Predict Fiber Orientation in Short Fiber Composites Journal of Rheology · American Institute of Physics · 1987 10.1122/1.549945
  2. The influence of the representative volume element (RVE) size on the homogenized response of cured fiber composites Modelling and Simulation in Materials Science and Engineering · IOP Publishing · 2012 10.1088/0965-0393/20/7/075007
  3. Random sequential adsorption Journal of Theoretical Biology · Elsevier BV · 1980 10.1016/0022-5193(80)90358-6
  4. Artificial Neural Networks in numerical modelling of composites Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2009 10.1016/j.cma.2008.12.036
  5. Where is the data? Why you cannot debate CPU vs. GPU performance without the answer 2011 10.1109/ispass.2011.5762730
  6. Tree visualization with tree-maps ACM Transactions on Graphics · Association for Computing Machinery · 1992 10.1145/102377.115768
  7. Determination of the size of the representative volume element for random composites: statistical and numerical approach International Journal of Solids and Structures · Elsevier BV · 2003 10.1016/s0020-7683(03)00143-4
  8. Principal component analysis Wiley Interdisciplinary Reviews Computational Statistics · Wiley · 2010 10.1002/wics.101
  9. The need for microstructure informatics in process–structure–property relations MRS Bulletin · Springer Nature · 2016 10.1557/mrs.2016.163
  10. A deep material network for multiscale topology learning and accelerated nonlinear modeling of heterogeneous materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.09.020
  11. Exploring the 3D architectures of deep material network in data-driven multiscale mechanics Journal of the Mechanics and Physics of Solids · Elsevier BV · 2019 10.1016/j.jmps.2019.03.004
  12. Transfer learning of deep material network for seamless structure–property predictions Computational Mechanics · Springer Science+Business Media · 2019 10.1007/s00466-019-01704-4
  13. Accelerating multiscale finite element simulations of history-dependent materials using a recurrent neural network Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2019 10.1016/j.cma.2019.112594
  14. Deep learning predicts path-dependent plasticity Proceedings of the National Academy of Sciences · National Academy of Sciences · 2019 10.1073/pnas.1911815116
  15. Geometric deep learning for computational mechanics Part I: anisotropic hyperelasticity Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113299
  16. Prediction of composite microstructure stress-strain curves using convolutional neural networks Materials & Design · Elsevier BV · 2020 10.1016/j.matdes.2020.108509
  17. Data-driven multiscale finite element method: From concurrence to separation Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.112893
  18. Multiscale Modeling Meets Machine Learning: What Can We Learn? Archives of Computational Methods in Engineering · Springer Science+Business Media · 2020 10.1007/s11831-020-09405-5
  19. On the micromechanics of deep material networks Journal of the Mechanics and Physics of Solids · Elsevier BV · 2020 10.1016/j.jmps.2020.103984
  20. Exploring Elastoplastic Constitutive Law of Microstructured Materials Through Artificial Neural Network—A Mechanistic-Based Data-Driven Approach Journal of Applied Mechanics · ASM International · 2020 10.1115/1.4047208
  21. A multiscale data-driven approach for bone tissue biomechanics Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113136
  22. Three-dimensional convolutional neural network (3D-CNN) for heterogeneous material homogenization Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.109850
  23. A recurrent neural network-accelerated multi-scale model for elasto-plastic heterogeneous materials subjected to random cyclic and non-proportional loading paths Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113234
  24. Hierarchical deep-learning neural networks: finite elements and beyond Computational Mechanics · Springer Science+Business Media · 2020 10.1007/s00466-020-01928-9
  25. An FE–DMN method for the multiscale analysis of short fiber reinforced plastic components Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2021 10.1016/j.cma.2021.113952
  26. On the diversity of multi-head attention Neurocomputing · Elsevier BV · 2021 10.1016/j.neucom.2021.04.038
  27. Micro-mechanics and data-driven based reduced order models for multi-scale analyses of woven composites Composite Structures · Elsevier BV · 2021 10.1016/j.compstruct.2021.114058
  28. Micromechanics-based material networks revisited from the interaction viewpoint; robust and efficient implementation for multi-phase composites European Journal of Mechanics - A/Solids · Elsevier BV · 2021 10.1016/j.euromechsol.2021.104384
  29. Interaction-based material network: A general framework for (porous) microstructured materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2021 10.1016/j.cma.2021.114300
  30. A Comparison of Three Methods for Selecting Values of Input Variables in the Analysis of Output From a Computer Code Technometrics · Taylor & Francis · 2000 10.1080/00401706.2000.10485979
  31. Microstructure-guided deep material network for rapid nonlinear material modeling and uncertainty quantification Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115197
  32. Deep CNNs as universal predictors of elasticity tensors in homogenization Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115741
  33. Geometric learning for computational mechanics Part II: Graph embedding for interpretable multiscale plasticity Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115768
  34. Multiscale computational solid mechanics: data and machine learning Journal of Mechanics · Cambridge University Press · 2022 10.1093/jom/ufac037
  35. Model-free data-driven identification algorithm enhanced by local manifold learning Computational Mechanics · Springer Science+Business Media · 2022 10.1007/s00466-022-02255-x
  36. LS-DYNA Machine Learning–Based Multiscale Method for Nonlinear Modeling of Short Fiber–Reinforced Composites Journal of Engineering Mechanics · American Society of Civil Engineers · 2023 10.1061/jenmdt.emeng-6945
  37. Deep learning and multi-level featurization of graph representations of microstructural data Computational Mechanics · Springer Science+Business Media · 2023 10.1007/s00466-023-02300-3
  38. Efficient multiscale modeling of heterogeneous materials using deep neural networks Computational Mechanics · Springer Science+Business Media · 2023 10.1007/s00466-023-02324-9
  39. Convolution Hierarchical Deep-learning Neural Networks (C-HiDeNN): finite elements, isogeometric analysis, tensor decomposition, and beyond Computational Mechanics · Springer Science+Business Media · 2023 10.1007/s00466-023-02336-5
  40. Convolution hierarchical deep-learning neural network (C-HiDeNN) with graphics processing unit (GPU) acceleration Computational Mechanics · Springer Science+Business Media · 2023 10.1007/s00466-023-02329-4
  41. Graph Pooling for Graph Neural Networks: Progress, Challenges, and Opportunities 2023 10.24963/ijcai.2023/752