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

DeepBND: A machine learning approach to enhance multiscale solid mechanics

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

기본 정보

저자
  1. Felipe Rocha — Nantes Université, Ecole Centrale de Nantes, CNRS, GeM (UMR 6183), 1 Rue de la Noë, 44300, Nantes, France|||École polytechnique fédérale de Lausanne - SB MATH MNS MA, Station 8, CH-1015 Lausanne, Switzerland
  2. Simone Deparis — École polytechnique fédérale de Lausanne - SB MATH MNS MA, Station 8, CH-1015 Lausanne, Switzerland
  3. Pablo Antolín — École polytechnique fédérale de Lausanne - SB MATH MNS MA, Station 8, CH-1015 Lausanne, Switzerland
  4. Annalisa Buffa — École polytechnique fédérale de Lausanne - SB MATH MNS MA, Station 8, CH-1015 Lausanne, Switzerland
DOI
10.1016/j.jcp.2023.111996
저널
Journal of Computational Physics
발행년도
2023
발행기관
Elsevier BV
피인용수
7
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.jcp.2023.111996
토픽
Composite Material Mechanics
OpenAlex ID
W3206488393

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(9) 타이어코드, (10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.80
근거 용어
multiscale solid mechanics, computational homogenisation, composite material, Deep Neural Networks, Reduced-Order Models
판단 근거
이 논문은 복합재료(composite materials)와 같은 불균질한 고체 역학 문제를 해결하기 위해 머신러닝을 이용한 멀티스케일 해석 및 균질화(homogenisation) 기법을 다룹니다.
R&D 활용 포인트
코오롱인더스트리의 타이어코드, 아라미드, 엔지니어링 플라스틱 등 복합 소재의 미세 구조에 따른 거시적 물성(강도, 탄성 등)을 예측하고 설계하는 시뮬레이션 모델링 효율화에 활용 가능합니다.
평가 입력
본문 149,099자 중 30,032자 발췌

초록

Effective properties of materials with random heterogeneous structures are typically determined by homogenising the mechanical quantity of interest in a window of observation. The entire problem setting encompasses the solution of a local PDE and some averaging formula for the quantity of interest in such domain. There are relatively standard methods in the literature to completely determine the formulation except for two choices: i) the local domain itself and the ii) boundary conditions. Hence, the modelling errors are governed by the quality of these two choices. The choice i) relates to the degree of representativeness of a microscale sample, i.e., it is essentially a statistical characteristic. Naturally, its reliability is higher as the size of the observation window becomes larger and/or the number of samples increases. On the other hand, excepting few special cases there is no automatic guideline to handle ii). Although it is known that the overall effect of boundary condition becomes less important with the size of the microscale domain, the computational cost to simulate such large problem several times might be prohibitive even for relatively small accuracy requirements. Here we introduce a machine learning procedure to select most suitable boundary conditions for multiscale problems, particularly those arising in solid mechanics. We propose the combination Reduced-Order Models and Deep Neural Networks in an offline phase, whilst the online phase consists in the very same homogenisation procedure plus one (cheap) evaluation of the trained model for boundary conditions. Hence, the method allows an implementation with minimal changes in existing codes and the use of relatively small domains without losing accuracy, which reduces the computational cost by several orders of magnitude. A few test cases accounting for random circular and elliptical inclusions are reported aiming at proving the potentials of the DeepBND method.

본문 149,099자

본문 펼치기
## DEEPBND: A MACHINE LEARNING APPROACH TO ENHANCE MULTISCALE SOLID MECHANICS A PREPRINT Felipe Rocha <sup>_∗_</sup> ``` felipe.figueredorocha@epfl.ch ``` Simone Deparis Pablo Antolin Annalisa Buffa _Ecole polytechnique fédérale de Lausanne - SB MATH MNS MA Station 8 CH-1015 Lausanne,_ _Switzerland_ October 22, 2021 ABSTRACT Effective properties of materials with random heterogeneous structures are typically determined by homogenising the mechanical quantity of interest in a window of observation. The entire problem setting encompasses the solution of a local PDE and some averaging formula for the quantity of interest in such domain. There are relatively standard methods in the literature to completely determine the formulation except for two choices: i) the local domain itself and the ii) boundary conditions. Hence, the modelling errors are governed by the quality of these two choices. The choice i) relates to the degree of representativeness of a microscale sample, i.e., it is essentially a statistical characteristic. Naturally, its reliability is higher as the size of the observation window becomes larger and/or the number of samples increases. On the other hand, excepting few special cases there is no automatic guideline to handle ii). Although it is known that the overall effect of boundary condition becomes less important with the size of the microscale domain, the computational cost to simulate such large problem several times might be prohibitive even for relatively small accuracy requirements. Here we introduce a machine learning procedure to select most suitable boundary conditions for multiscale problems, particularly those arising in solid mechanics. We propose the combination Reduced-Order Models and Deep Neural Networks in an offline phase, whilst the online phase consists in the very same homogenisation procedure plus one (cheap) evaluation of the trained model for boundary conditions. Hence, the method allows an implementation with minimal changes in existing codes and the use of relatively small domains without losing accuracy, which reduces the computational cost by several orders of magnitude. _K_ eywords Computational Homogenisation _·_ Deep Neural Networks _·_ Reduced Basis Method _·_ Boundary Conditions 1 Introduction Multiscale methods can be regarded as theories that link the macroscopic behaviour of continua to phenomena occurring at smaller spatial scales, a situation found in a large range of applications such as porous media or composites, to name a few. Early developments in solid mechanics date back at least from the mid-twentieth century, with the estimation of macroscopic properties of heterogeneous materials, using the self-consistent approach [15, 19, 21], and methods based on the asymptotic analysis of partial differential equations with periodic coefficients [6, 33]. Despite methodological differences, common across the range of different approaches is the fact that macroscopic continuum quantities, so-called homogenised, are invariably linked to their microscale counterpart fields upon a solution of an auxiliary local problem defined at microscale domain followed by some kind of averaging process. _∗_ Corresponding author. A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 As for of the local problem, also known as microscale or corrector problem, besides very specific situations, the choice of the boundary conditions (BCs) cannot be exactly determined. Depending on the BCs assumed, homogenised quantities can be under or overestimated, yielding to the so-called Reuss’ and Voigt’s estimates, the lower and upper bounds, respectively [32]. In problems involving strain localisation in solids, such choice can be even more critical, affecting the directions of nucleation bands [31]. The most commonly known approach to mitigate the sensibility with the BCs choice is by artificially assuming periodic BCs (even for non-periodic cells) and/or by increasing the microscopic domain size [37]. However, such an approach also entails larger computational costs in the context of numerical approximations. Recently, some improvement attempts have been proposed in this regard, as for example by adding specific parabolic and source terms to the original correct problem [3], and by a generalisation of periodic BCs of stochastic media [25]. In situations of limited physical guidance, as such case of choosing the most suitable BC, data-driven and machine learning (ML) approaches are known to be useful in providing insights. Among several ML techniques, Deep Neural Networks (DNN) is known to be a universal approximator for several activation functions [14, 24], also established in the context of parametrised PDEs [20]. In this contribution, we present an attempt to design a ML strategy to accurately predict BCs for the local problems in multiscale modelling. In particular our approach relies on coupling the predictor ability of a deep neural network to Reduced-Order Modelling (ROM) using the Reduced Basis Method (RB-ROM) approach [26, 17]. Indeed RB-ROM is used to reduce the output size of the DNN and to guide the choice of the loss function. The combination of RB-ROM and DNN has already been proved effective in the context of physically-based ML techniques for PDEs [16, 28, 34]. The manuscript is organised as follows: in Section 2 we introduce necessary concepts for the sake of completeness purposes, in particular the basic background on multiscale solid mechanics and reduced-basis for parametrised PDEs are provided in Section 2.1 and 2.2, respectively; Section 3 deals with the formulation of the proposed method, where special attention is devoted to cast the problem of Multiscale Solid Mechanics into the Parametrised PDE format in Section 3.1 that, among other steps, presents the key idea of the method of finding the reduced-order description of boundary (Section 3.1.3). The section ends with an useful overview of the method is Section 3.2. In Section 4 we propose a novel physically inspired DNN architecture tailored to exploit particular physical symmetries in the reduced-basis generation (Section 4.2). Finally, Section 5 and Section 6 are dedicated to the numerical implementation of the proposed methodology, concerning dataset construction, DNN model training, and relevant numerical examples in coupled micro-macro simulations, respectively. 2 Preliminaries As already commented, one of the main goals of this section is to set the general context of the computational homogenisation for random media, here specialised for multiscale solid mechanics (Section 2.1), which is instrumental to the presentation of our method (Section 3). Moreover, the second goal is to review the reduced-basis setting for parametrised PDEs (Section 2.2), which can skipped by an expert reader. 2.1 Multiscale Solid Mechanics In this section, we review the basic equations of computational homogenisation in multiscale solid mechanics. The literature in this realm is vast and dates back to the ’70s with the postulation of the cornerstone Hill-Mandel Macro-homogeneity Principle [19, 21]. More recently, emerging from the applied mathematical community, the so-called Heterogeneous Multiscale Method (HMM) [2] has brought significant new insights into the field. Although these two methods have independent points of departure at the first sight, it has been shown that the resulting models are coincident [9, 11]. Hence our method can be applied to both methodologies. Our presentation follows closely [8, 7], that provides a natural mathematical framework for the formulation of our method. Additional details that are not necessary to follow the manuscript are included in Appendix A, for the sake of completeness. Before digging into the formulation itself, let us consider the following conventions. As usual, the unit vectors _{_ e _i}_ <sup>_d_</sup> _i_ =1 <sup>refer to the canonical basis for R</sup> <sup>_d_</sup> <sup>.</sup> <sup>We also use the font convention</sup> <sup>a</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d_</sup> <sup>,</sup> <sup>A</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d,d_</sup> <sup>, A</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d,d,d,d_</sup> <sup>to discern</sup> between vectors, second- and fourth-order tensors, respectively. Regular type face fonts are always used to denote _{_ e _i}_ <sup>_d_</sup> _i_ =1 <sup>refer to the canonical basis for R</sup> <sup>_d_</sup> <sup>.</sup> <sup>We also use the font convention</sup> <sup>a</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d_</sup> <sup>,</sup> <sup>A</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d,d_</sup> <sup>, A</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d,d,d,d_</sup> <sup>to discern</sup> between vectors, second- and fourth-order tensors, respectively. Regular type face fonts are always used to denote components (or scalars) in cartesian coordinates, e.g. a = _ai_ e _i_, A = _Aij_ e _i ⊗_ e _j_ and so-forth (Einstein’s summation convention applied). Space R _sym_ <sup>d</sup> <sup>_,_</sup> <sup>d</sup> <sup>denotes symmetric real-valued second-order tensors.</sup> <sup>Finally, we also consider the</sup> _sym_ <sup>d</sup> <sup>_,_</sup> <sup>d</sup> <sup>denotes symmetric real-valued second-order tensors.</sup> <sup>Finally, we also consider the</sup> 2 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 following operations: a _·_ b := _aibi,_ (1a) A _·_ B := _AijBij,_ (1b) A B := _AijklBkl_ e _i ⊗_ e _j,_ (1c) a _⊗_ <sup>_s_</sup> b := 2 <sup><u>1</u></sup> 2 <sup><u>1</u></sup> <sup>(</sup> <sup>a</sup> <sup>_⊗_</sup> <sup>b</sup> <sup>+</sup> <sup>b</sup> <sup>_⊗_</sup> <sup>a</sup> <sup>)</sup> <sup>_._</sup> (1d) In the following, we present the multiscale solid mechanics computational homogenisation framework, starting with the macroscale followed by the microscale model. 2.1.1 Setting of the homogenisation problem Let us consider Ω _⊂_ R <sup>d</sup>, d = 2 or 3, the domain in which the physical problem of interest is defined as shown in the left-hand side of Figure 1. Thereafter, we refer to it as the _macroscale_ _domain_, whose characteristic size is _L_, as opposed the to _microscale domains_, displayed on the remaining columns of Figure 1, whose size _Lµ_ is in the same other of the magnitude of the length-scale of material properties heterogeneities. For the sake of simplicity, the example depicted is a composite material with two phases, the matrix (in light grey) and circular inclusions (in dark grey), although more general structures for the heterogeneity are also allowed. It is important to remark that the length of heterogeneities can be arbitrary small, posing computational difficulties if one is interested in solving such problem up to that scale. Notwithstanding, it is well established in the literature that in the scale separation limit, i.e.so-called homogenised problem [ <sup>_<u>L</u>_</sup> 6 _L_ ]. <sup>_<u>µ</u>_</sup> Indeed, the homogenised problem have the very same mathematical nature as the <sup>_≪_</sup> <sup>1, the original problem with (fast-)varying parameters can be replaced by the</sup> original at hand, but with effective, so-called homogenised, coefficients. The very process of finding such coefficients is called _homogenisation_, which encompasses the solution of an auxiliary problem, known as _corrector problem_ or simply microscale problem, solved in the microscale domain, and a posterior averaging scheme using its solution, both established in Section 2.1.2 for our problem. In the specific setting of this work, we consider as macroscale (or homogenised) problem a standard solid continuum mechanics model in the infinitesimal strain regime. We are interested in solving a quasi-static mechanical equilibrium problem, in which the displacement vector field u : Ω _→_ R <sup>_d_</sup> is obtained as the solution to the equilibrium problem once suitable BCs and constitutive equations are provided. Associated with the field u, the symmetric gradient tensor field _ε_ := _∇_ <sup>_s_</sup> u : Ω _→_ R _sym_ <sup>d</sup> <sup>_,_</sup> <sup>d</sup> <sup>is the strain measure of choice.</sup> <sup>We adopt the linear elasticity constitutive model, hence the</sup> _ε_ := _∇_ <sup>_s_</sup> u : Ω _→_ R _sym_ <sup>d</sup> <sup>_,_</sup> <sup>d</sup> <sup>is the strain measure of choice.</sup> <sup>We adopt the linear elasticity constitutive model, hence the</sup> Cauchy stress tensor _σ_ _∈_ R <sup>_d,d_</sup> _sym_ <sup>is given through the Hookean law</sup> <sup>_σ_</sup> <sup>= C</sup> <sup>_ε_</sup> <sup>, where C</sup> <sup>_∈_</sup> <sup>_L_</sup> <sup>2(Ω)</sup> <sup>_d,d,d,d_</sup> <sup>is a fourth-order</sup> positive-definite elastic tensor, with symmetries _Cijkl_ = _Cjikl_ = _Cijlk_ = _Cklij_ . In the context of this work, we aim at Cauchy stress tensor _σ_ _∈_ R <sup>_d,d_</sup> _sym_ <sup>is given through the Hookean law</sup> <sup>_σ_</sup> <sup>= C</sup> <sup>_ε_</sup> <sup>, where C</sup> <sup>_∈_</sup> <sup>_L_</sup> <sup>2(Ω)</sup> <sup>_d,d,d,d_</sup> <sup>is a fourth-order</sup> positive-definite elastic tensor, with symmetries _Cijkl_ = _Cjikl_ = _Cijlk_ = _Cklij_ . In the context of this work, we aim at obtaining C via the homogenisation procedure. Using the notation of the left part of Figure 1, the macroscale problem is read as below <sup>2</sup> div _σ_ = 0 in Ω _σ_ = C _ε_ in u = u ¯ _D_ on _∂_ Ω <sup>_D_</sup> _σ_ n = <sup>¯</sup> t on _∂_ Ω <sup>_N_</sup>   _,_ (2)  where _∂_ Ω <sup>_D_</sup> and _∂_ Ω <sup>_N_</sup> are the Dirichlet and Neumann boundaries, respectively, forming partition of _∂_ Ω, with the associated prescribed displacement u ¯ _D_ and traction <sup>¯</sup> t . It is worth noticing that the computational implementation via FEM of the above problem follows standard procedures, apart from the evaluation of the _σ_ (or C) at the integration point level. For each integration point, there is an associated microstructure which should be coupled kinematically and energetically with the macroscale quantities at that point. This defines the corrector problem, which however lacks boundary condition information that needs to be chosen properly. This choice lies behind the very idea of the proposed method, to be explored in Section 3. 2.1.2 Micro-macro coupling For each macroscale (integration) point x _∈_ Ω we associate a microscale domain (MD) Ω _µ_ _⊂_ R <sup>_d_</sup> <sup>3</sup> . It is considered that _Lµ/L ≪_ 1, being _L_ and _Lµ_ the characteristic lengths related to the macroscale and microscale, respectively. The 2For the sake of simplicity, but without loss of generality, we are disregarding body forces (see [8]). 3We decided to use the acronym MD, instead of Representative Volume Element (RVE), to avoid discussions of statistical nature that go beyond the scope of this work. Notwithstanding, for most practical considerations MD and RVE can be understood as synonyms. Other possible nomenclature, preferred by some authors to avoid this confusion, is SVE (Statistical Volume Element) [23]. 3 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Possible reduced microscale domains Proposed approach Macroscale domain Microscale domains DNN-based boundary condition Influence of the outer domain Classical choices of boundary conditions Figure 1: Homogenisation in random media and motivation of the proposed approach. characteristic size _Lµ_ is chosen such that Ω _µ_ should have meaningful numbers and type of material heterogeneities but also keeping the compromise in terms of computational cost. Thereafter, for the sake of simplicity, we use the notation u = u ( x ), _ε_ = _ε_ ( x ) and _σ_ = _σ_ ( x ), to represent point-valued vectors or tensors at a point x _∈_ Ω, rather than vector or tensor fields in Ω. On the other hand, objects associated with Ω _µ_ are denoted by the subindex _µ_ . <u>1</u> - <u>1</u> _|_ Ω _µ|_ _|_ Ω _µ|_ We also consider the notation _⟨·⟩_ Ω _µ_ = Ω _µ_ <sup>(</sup> <sup>_·_</sup> <sup>) dΩ</sup> <sup>_µ_</sup> <sup>,</sup> <sup>_⟨·⟩_</sup> _∂_ Ω _µ_ <sup>=</sup> _∂_ Ω _µ_ <sup>(</sup> <sup>_·_</sup> <sup>) d</sup> <sup>_∂_</sup> <sup>Ω</sup> <sup>_µ_</sup> <sup>to denote microscale domain</sup> and boundary averages respectively.� Also, we consider a local coordinate system at Ω _µ_, with points denoted y _∈_ Ω _µ_ and such that Ω _µ_ <sup>y</sup> <sup>dΩ</sup> <sup>_µ_</sup> <sup>=</sup> <sup>0</sup> <sup>(centred at the centroid).</sup> <sup>Accordingly, the symmetric gradient operator in the microscale</sup> coordinates becomes _ε_ _µ_ ( _·_ ) := _∇_ <sup>_s_</sup> y <sup>(</sup> <sup>_·_</sup> <sup>).</sup> The basic idea of the multiscale mechanics approach is to be able to describe the microscopic displacement u and _µ_ : _ε_ Ωdictate _µ_ _→_ Raffine <sup>_d_</sup> which is related to the macroscale kinematics but not entirely determined by it.deformations at the microscale while the so-called microscale displacementWe assume thatfluctuations field u u ˜ _µ_ : Ω _µ_ _→_ R <sup>_d_</sup> (supposedly u ˜ _µ_ _∈_ [ _H_ <sup>1</sup> (Ω _µ_ )] <sup>_d_</sup> ) is responsible for higher-order terms. This yields to the decomposition <u>1</u> _|_ Ω _µ|_ We also consider the notation _⟨·⟩_ Ω _µ_ = <u>1</u> _|_ Ω _µ|_ Ω _µ_ <sup>(</sup> <sup>_·_</sup> <sup>) dΩ</sup> <sup>_µ_</sup> <sup>,</sup> <sup>_⟨·⟩_</sup> _∂_ Ω _µ_ <sup>=</sup> <sup>_s_</sup> y <sup>(</sup> <sup>_·_</sup> <sup>).</sup> u _µ_ ( y ) = u + _ε_ y + ˜ u _µ_ ( y ) _,_ _∀_ y _∈_ Ω _µ._ (3) Following some natural physical constraints (see Appendix A for the interested reader), fluctuations u ˜ _µ_ should live in _Vµ_ <sup>_M_</sup> := - _,_ (4) _η_ _∈_ [ _H_ <sup>1</sup> (Ω _µ_ )] <sup>_d_</sup> ; _⟨_ _η_ _⟩_ Ω _µ_ = 0 ; _⟨_ _η_ _⊗_ <sup>_s_</sup> n _⟩∂_ Ω _µ_ = 0 the so-called Minimally Constrained Space for fluctuations, also known as uniform traction model. Variations of this model are possible considering subspaces of _Vµ_ <sup>_M_</sup> <sup>.</sup> <sup>Remarkably, popular models (subspaces) in the literature are</sup> _Vµ_ <sup>_T_</sup> _Vµ_ <sup>_L_</sup> _Vµ_ <sup>_P_</sup> _µ_ <sup>_M_</sup> <sup>;</sup> <sup>_η_</sup> <sup>(</sup> <sup>y</sup> <sup>+) =</sup> <sup>_η_</sup> <sup>(</sup> <sup>y</sup> <sup>_−_</sup> <sup>)</sup> <sup>_∀_</sup> <sup>y</sup> <sup>_±_</sup> <sup>_∈_</sup> <sup>_∂_</sup> <sup>Ω</sup> <sup>_±_</sup> _µ_ _µ_ <sup>_T_</sup> <sup>=</sup> <sup>_{_</sup> <sup>0</sup> <sup>_}_</sup> (Taylor Model) _,_ (5a) _µ_ <sup>_L_</sup> <sup>=</sup> <sup>_{_</sup> <sup>_η_</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> _µ_ <sup>_P_</sup> <sup>=</sup> <sup>_{_</sup> <sup>_η_</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> (Periodic Model) _,_ (5c) <sup>_±_</sup> _µ_ <sup>_}_</sup> _µ_ <sup>_M_</sup> <sup>;</sup> <sup>_η_</sup> <sup>_|∂_</sup> <sup>Ω</sup> _µ_ <sup>=</sup> <sup>0</sup> <sup>_}_</sup> (Linear Boundary Model) _,_ (5b) where the notation ( _·_ ) <sup>_±_</sup> denotes opposite boundary/points, e.g., left(-)/right(+) or bottom(-)/top(+) in a unit square Ω _µ_ . Figure 2 depicts the kinematical effect of the different classical models, where _Vµ_ <sup>_T_</sup> <sup>constrain</sup> <sup>the</sup> <sup>admissible</sup> displacements to affine transformations, whilst in _Vµ_ <sup>_L_</sup> <sup>just the boundary deforms affinely and models</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> and _Vµ_ <sup>_P_</sup> <sup>allow</sup> non-affine displacements on _∂_ Ω _µ_ . Excepting the space _Vµ_ <sup>_T_</sup> <sup>, the other three classical spaces will be useful for different</sup> reasons in the proposed method.upper and lower bounds in terms of homogenised stress respectively [It is worth noticing that _Vµ_ <sup>_L_</sup> <sup>_⊂_</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> <sup>_⊂_</sup> 37 <sup>_V_</sup> ]. _µ_ <sup>_M_</sup> In turn, in the absence of physical guidance, <sup>, where</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> <sup>and</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> are known to deliver _Vµ_ <sup>_P_</sup> <sup>is the standard choice even if the microstructure is not periodic since it delivers a more balanced response.</sup> <sup>In</sup> this work, we seek an affine subspace _Vµ_ _⊂_ _Vµ_ <sup>_M_</sup> that outperforms _Vµ_ <sup>_P_</sup> <sup>, by exploiting</sup> <sup>_a priori_</sup> <sup>knowledge provided by</sup> _µ_ <sup>_L_</sup> <sup>just the boundary deforms affinely and models</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> and _Vµ_ <sup>_P_</sup> _µ_ <sup>_L_</sup> <sup>_⊂_</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> _µ_ <sup>_P_</sup> <sup>_⊂_</sup> 37 <sup>_V_</sup> ]. _µ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> <sup>, where</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> _µ_ <sup>_L_</sup> <sup>and</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> that outperforms _Vµ_ <sup>_P_</sup> _µ_ <sup>_P_</sup> <sup>, by exploiting</sup> <sup>_a priori_</sup> <sup>knowledge provided by</sup> 4 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Figure 2: Comparison of classical multiscale models of kinematical constraints. RB-ROM and ML techniques. For convenience, thereafter we denote simply as _Vµ_ _⊂_ _Vµ_ <sup>_M_</sup> <sup>, the choice of one of these</sup> subspaces. The notation _Vµ_ (Ω _µ_ ) may be used to avoid ambiguity in the domain of definition. It is also helpful for the subsequent sections to introduce an auxiliary space _Vµ_ <sup>_ZA_</sup> (from zero-average) as _Vµ_ <sup>_ZA_</sup> := - _η_ _∈_ [ _H_ <sup>1</sup> (Ω _µ_ )] <sup>_d_</sup> ; _⟨_ _η_ _⟩_ Ω _µ_ = 0 _,_ (6) which differs from _Vµ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> only by relaxing the restriction on the boundary. From the definition _Vµ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> _µ_ . _⊂_ _V_ <sup>_ZA_</sup> _µ_ . <sup>_ZA_</sup> In terms of material constitutive behaviour at microscale, we also consider a Hookean material characterised by the fourth-order micro-elasticity tensor C _µ_ _∈_ _L_ <sup>2</sup> (Ω _µ_ ) <sup>_d,d,d,d_</sup> positive-definite and with the symmetries ( _Cµ_ ) _ijkl_ = ( _Cµ_ ) _jikl_ = ( _Cµ_ ) _ijlk_ = ( _Cµ_ ) _klij_, which defines the microscopic stress state as _σ_ _µ_ = C _µ_ _ε_ _µ_ ( u _µ_ ). As result of balance of virtual powers in macro- and microscale (see details in Appendix A), the corrector (or microscale equilibrium) problem and the homogenisation read as follows. Problem 1 (Microscale) _Given_ _ε_ _∈_ R _sym_ <sup>_d,d_</sup> <sup>_, solve:_</sup> _C(I)_ _Corrector (or microscale equilibrium) :_ _find_ u ˜ _µ_ _∈_ _Vµ such that_ _⟨_ C _µ_ _ε_ _µ_ (˜ u _µ_ ) _·_ _ε_ _µ_ (˜ v _µ_ ) _⟩_ Ω _µ_ = _−⟨_ C _µ_ _ε_ _·_ _ε_ _µ_ (˜ v _µ_ ) _⟩_ Ω _µ_ _∀_ v ˜ _µ_ _∈_ _Vµ._ (7) _C(II)_ _Stress homogenisation:_ _let_ u ˜ _µ_ _∈_ _Vµ be the solution of_ (7) _, then_ _σ_ = _⟨_ C _µ_ ( _ε_ + _ε_ _µ_ (˜ u _µ_ )) _⟩_ Ω _µ ._ (8) Instead of computing the stress homogenisation through (8), it is convenient to obtain the homogenised elasticity tensor C and then evaluate _σ_ = C _ε_ . This can be easily performed by solving Problem 1 replacing _ε_ by the unitary strains E _kl_ = e _k ⊗_ <sup>_s_</sup> e _l_, with _k, l_ = 1 _, . . ., d_, and then averaging as follows C = �C _µ_ ( E _kl_ + _ε_ _µ_ (˜ u _µ_ <sup>E</sup> <sup>_kl_</sup> )) Ω _µ_ <sup>_⊗_</sup> <sup>E</sup> <sup>_kl,_</sup> (9) where and u ˜ _µ_ <sup>E</sup> <sup>_kl_</sup> denotes the solution of (7) for a given _ε_ = E _kl_ . Remark 1 _As already commented, the theory developed so far is consistent for any choice of Vµ_ _⊂_ _Vµ_ <sup>_M_</sup> <sup>_._</sup> <sup>_Moreover,_</sup> _variationally, we are also allowed to choose different subsets of Vµ_ <sup>_M_</sup> _to work as trial set or test spaces._ _This property is_ _explored in Section 3.1 to reduce the MD size of problem._ Remark 2 _As already commented, the choice of BCs is not readily defined in the case of random media._ _The only case_ _in which this choice is straightforward if for periodic cells, i.e._ _periodic BCs._ _Particularly, the material is periodic if we_ _can identify a microscale domain which is repeated throughout (unique up to a translation)._ _If microstructures are not_ _periodic, the corrector problem, although valid and useful, is inexact for several reasons as discussed next._ 5 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Remark 3 _It is worth noticing that Problem 1 does not depend on the macroscale displacement_ u _itself, but rather_ _on its gradient, already taken into account with_ _ε_ _._ _As consequence, in terms of macroscale kinematical dependence,_ _σ_ _is invariant to_ u _and only depends on_ _ε_ _._ _In other words, the zero-average constraint in_ (4) _has merely the role of_ _eliminating rigid-body movements and can be replaced by any other equivalent strategy._ _We use this property in Section_ _3.1._ _The dependence with_ u _is important in dynamics problems and for non-uniform body forces at the macroscale [8]._ Remark 4 _Instead of adopting displacement fluctuations_ u ˜ _µ_ _as primal variables, some authors prefer adopting the full_ _microscale displacement_ u _µ [32], which is an equivalent framework._ _Nevertheless, the formulation in terms of_ u ˜ _µ is_ _convenient since the kinematical constraints become homogeneous._ 2.2 Reduced Basis Method for Parametrised PDEs In this section, we aim at providing fundamental concepts of the RB-ROM technique for parametrised PDEs. The presentation focuses on a generic problem to set a suitable notation before linking it to the specific PDE concerned, which is the focus of Section 3.1. For a deeper understanding of the method, we refer to [17, 26]. Consider a vector space _W_, where the solutions of a parametrised PDE live (in our case a multiscale solid mechanics boundary value problem described in Section 2.1), equipped with the inner product ( _·, ·_ ) _W_ with the induced norm _∥· ∥W_ . Let _P_ _⊂_ R <sup>_Np_</sup> be a manifold of admissible parameters and let _L_ : _P_ _→W_ be the mapping from parameters onto the solutions of the parametrised PDE at hand. Let P = _{_ p <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ; _i_ = 1 _, . . ., Ns_ _∈P}_ be a set containing _Ns_ samples of _P_, so-called _sampling_ set, and the associated images upon _L_, so-called _snapshots_, collected in the set S := _L_ (P) = _{_ w ( p <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) = _L_ ( p <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) _∈W_ ; p <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∈_ P _, i_ = 1 _, . . ., Ns}_ . Note that span S is an approximation of _L_ ( _P_ ), which becomes better accordingly to how well P samples _P_ and depends upon the complexity of the mapping _L_ . We are interested in finding the orthonormal basis _BNrb_ := _{_ _ξ_ _i_ _∈_ span S _}i_ <sup>_N_</sup> =1 <sup>_rb_</sup> <sup>, with</sup> <sup>_Nrb_</sup> <sup>_<< Ns_</sup> <sup>, so-called Reduced Basis (RB), which is optimal in the sense that among all possible</sup> <u>1</u> - _Ns_ span S _}i_ <sup>_N_</sup> =1 <sup>_rb_</sup> <sup>, with</sup> <sup>_Nrb_</sup> <sup>_<< Ns_</sup> <sup>, so-called Reduced Basis (RB), which is optimal in the sense that among all possible</sup> <u>1</u> - _Ns_ _Ns_ basis choices, _BNrb_ is chosen such that _i_ =1 <sup>_∥_</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Π</sup> <sup>_N_</sup> _rb_ <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_∥_</sup> _W_ <sup>2</sup> <sup>is minimised, where Π</sup> <sup>_N_</sup> _rb_ <sup>(</sup> <sup>_·_</sup> <sup>) = �</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <sup>(</sup> <sup>_ξ_</sup> _i_ <sup>_, ·_</sup> <sup>)</sup> <sup>_ξ_</sup> _i_ - _Ni_ =1 _s_ <sup>_∥_</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Π</sup> <sup>_N_</sup> _rb_ <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>2</sup> _W_ <sup>2</sup> <sup>is minimised, where Π</sup> <sup>_N_</sup> _rb_ <sup>(</sup> <sup>_·_</sup> <sup>) = �</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <u>1</u> - _Ns_ _Ns_ is the orthogonal projection of a function on the space spanned by the RB.basis choices, _BNrb_ is chosen such that _i_ =1 <sup>_∥_</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Π</sup> <sup>_N_</sup> _rb_ <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_∥_</sup> _W_ <sup>2</sup> <sup>is minimised, where Π</sup> <sup>_N_</sup> _rb_ <sup>(</sup> <sup>_·_</sup> <sup>) = �</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <sup>(</sup> <sup>_ξ_</sup> _i_ <sup>_, ·_</sup> <sup>)</sup> <sup>_ξ_</sup> _i_ This task can be performed by the Proper Orthogonal Decomposition (POD) procedure detailed in Algorithm 1, yielding the POD-error _P OD_ <sup>(</sup> <sup>_Nrb_</sup> <sup>) =</sup> <sup><u>1</u></sup> <sup>2</sup> _Ns_ _j_ = _Nrb_ +1 _E_ <sup>2</sup> _Ns_ _Ns_ _i_ =1 _W_ <sup>=</sup> _∥_ w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _−_ Π _Nrb_ w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∥_ <sup>2</sup> _λj,_ (10) which is related the ordered eigenvalues _λj_, for _j_ = 1 _, · · ·_ _, Ns_, of the correlation matrix defined in (11). The size _Nrb_ is selected to attain a given tolerance `tolPOD` _∈_ (0 _,_ 1) in terms of relative POD-errors. In the remaining of the manuscript, we target an RB representation of the traces of solutions on an internal boundary Γ (properly specified later). Therefore we always set _W_ = [ _L_ <sup>2</sup> (Γ)] <sup>_d_</sup> with the [ _L_ <sup>2</sup> (Γ)] <sup>_d_</sup> -inner product as our ambient Hilbert space. Remark 5 _Note that POD procedure format in Algorithm 1 is independent of discretisation._ _As result, the RB can_ _be obtained even using snapshots with heterogeneous discretisation._ _Just for computational purposes, e.g., speed-up_ _calculations, we use coincident meshes on ∂_ Ω <sup>_R_</sup> _µ_ <sup>_(see Section 5)._</sup> 6 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Given S, `tolPOD` _∈_ (0 _,_ 1), do: 1. Correlation matrix: 2. Eigenvalues analysis: C = <sup><u>1</u></sup> _Ns_ _Ns_ _i,j_ =1 ( w ( p <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) _,_ w ( p <sup>(</sup> <sup>_j_</sup> <sup>)</sup> )) _W_ e _i ⊗_ e _j_ (11) Cv <sup>_i_</sup> = _λi_ v <sup>_i_</sup> (12) _∀i_ = 1 _,_ 2 _, . . ., Ns,_ where the order _λ_ 1 _≥_ _λ_ 2 _≥· · · ≥_ _λNs_ is assumed. 3. Basis determination: The _i_ -th basis vector is constructed as _ξ_ <sup>_i_</sup> = <u>1</u> _~~√~~_ _λiNs_ _Ns_ _j_ =1 v _j_ <sup>_i_</sup> <sup>w</sup> <sup>(</sup> <sup>p</sup> <sup>(</sup> <sup>_j_</sup> <sup>))</sup> _∀i_ = 1 _,_ 2 _, . . ., Ns._ (13) v _j_ <sup>_i_</sup> <u>�</u> _Ni_ <u>=1</u> _rb_ <sup>_<u>λi</u>_</sup> 4. RB construction: choose the first _Nrb_ _<< Ns_ such that 1 _−_ <u>�</u> _Ns_ _i_ =1 <sup>_λi_</sup> _<_ `tolPOD` and define _BNrb_ = - _ξ_ <sup>_i_</sup> <sup>�</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <sup>_._</sup> (14) <u>.</u> Algorithm 1: Proper Orthogonal Decomposition procedure to obtain the Reduced Basis with a given error tolerance. 3 Formulation of the method Before formulating the method itself, it is worth remembering that in order to have a computable microscopic cell problem, we need to truncate a problem posed essentially in an infinite domain, intrinsically connected to the choices below: 1. Boundary condition: As already commented, there is no inherently correct boundary condition to the corrector problem apart from periodic geometries. Notwithstanding, the error arising from the artificial imposition of BCs fades according to the MD size [37]. 2. Microscale domain size: regarding the window of observation as a realisation of an underlying random variable that dictates the microstructure, the larger is such window, the better the heterogeneities are sampled. As result, as the microscale domain gets larger, the homogenised coefficients tend to the infinite infinite cell values. Concerning the microscale domain size decision, we have to leverage two competing characteristics, namely the computational cost and the accuracy in the two senses above. The remaining option to increase the accuracy without interfering the computational cost is improving the BCs choice. Therefore, the main contribution of this work is to bring errors due to BCs choices in small MDs down to the same levels of larger domains. The very central rationale behind the method is the reduction of the computational domain in the local problem, as depicted on the rightmost column of Figure 1. First, according to the final accuracy desired and the computational effort we can afford, two given sizes of microscale domains should be chosen (see Figure 3). The larger cell is denoted Ω <sup>_H_</sup> _µ_ <sup>and is used for the computation of reference solutions, so-called High-Fidelity (HF) solutions, by using a chosen</sup> classical BC. On the other hand, Ω <sup>_R_</sup> _µ_ <sup>is</sup> <sup>the</sup> <sup>smaller</sup> <sup>MD</sup> <sup>(reduced)</sup> <sup>where</sup> <sup>the</sup> <sup>corrector</sup> <sup>problem</sup> <sup>is</sup> <sup>solved</sup> <sup>with</sup> <sup>an</sup> enriched, non-classical, BC. Instrumental for formulation of the admissible space that encodes such novel BC is the parametrised PDE setting, introduced in the following section. Such a structure is an essential step towards the use RB-ROM framework, which justification is also provided along this section. 3.1 Reformulation of the multiscale problem in terms of parametrised PDE In this section, we aim at providing a parametrised PDE structure to the corrector problem for solid mechanics. It is worth mentioning that the conversion of the general problem into its parametrised format encompasses necessarily a simplification. The practical effect is a new problem with a finite number of parameters that spans a controlled 7 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 ... ... ... ... ... ... Figure 3: Larger and smaller microscale domains and boundary where the enhanced boundary condition is imposed. scenario of randomness, representative of the problem at hand. However, the general idea of the method remains true independently of the particular parametrisation chosen. We are interested in approximating the fluctuation u ˜ _µ_ <sup>_H_</sup> <sup>, solution of Problem 1 in an enlarged domain Ω</sup> <sup>_H_</sup> _µ_ <sup>, which</sup> depends on some parameters p _∈P_ _⊂_ R <sup>_Np_</sup>, with _Np_ the number of parameters. Noticing that the triple ( _ε_ _,_ C _µ, Vµ_ ) fully defines the latter problem, the role of p is to parametrise each of these objects, as respectively detailed in the following subsections. Importantly, we reserve the word _parameter_, and notation p, to designate non-fixed properties, i.e., those that should be sampled. For other numbers helping to define the problem, but that are fixed, we omit their explicit dependence. Importantly, the space _Vµ_ stands for different spaces depending if the problem is formulated on Ω <sup>_H_</sup> _µ_ <sup>or Ω</sup> <sup>_R_</sup> _µ_ <sup>.</sup> <sup>For Ω</sup> <sup>_H_</sup> _µ_ <sup>, due to lack of previous information, we fix</sup> <sup>_Vµ_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ <sup>) =</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ <sup>), leading to Problem 1 rewritten</sup> as follows. We are interested in approximating the fluctuation u ˜ _µ_ <sup>_H_</sup> _µ_ <sup>_H_</sup> <sup>, solution of Problem 1 in an enlarged domain Ω</sup> <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>or Ω</sup> <sup>_R_</sup> _µ_ <sup>_R_</sup> _µ_ <sup>.</sup> <sup>For Ω</sup> <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>, due to lack of previous information, we fix</sup> <sup>_Vµ_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>) =</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> _µ_ <sup>_P_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ Problem 2 (High-fidelity parametrised corrector PDE) _Given_ p _∈P, find_ u ˜ _µ_ <sup>_H_</sup> _µ_ <sup>_P_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>)</sup> <sup>_such that_</sup> u _µ_ <sup>_H_</sup> <sup>_,_</sup> <sup>v</sup> <sup>) =</sup> <sup>_bH_</sup> <sup>(</sup> <sup>p</sup> <sup>;</sup> <sup>v</sup> <sup>)</sup> _∀_ v _∈_ _Vµ_ <sup>_P_</sup> _µ_ <sup>_H_</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> _a_ <sup>_H_</sup> ( p ; ˜ u _µ_ <sup>_H_</sup> _µ_ <sup>_P_</sup> <sup>(Ω</sup> _µ_ <sup>_H_</sup> _µ_ <sup>_H_</sup> <sup>)</sup> <sup>_,_</sup> (15) _where_ _µ_ <sup>_H_</sup> <sup>_,_</sup> <sup>v</sup> <sup>) = (C</sup> <sup>_µ_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∇s_</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_H_</sup> _a_ <sup>_H_</sup> ( p ; ˜ u _µ_ <sup>_H_</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_H_</sup> <sup>_, ∇s_</sup> <sup>v</sup> <sup>)</sup> _L_ <sup>2</sup> (Ω _µ_ <sup>_H_</sup> <sup>)</sup> <sup>_,_</sup> (16a) _b_ <sup>_H_</sup> ( p ; v ) = _−_ (C _µ_ ( p ) _ε_ ( p ) _, ∇_ <sup>_s_</sup> v ) _L_ 2(Ω _µH_ <sup>)</sup> <sup>_._</sup> (16b) To reduce the problem into Ω <sup>_R_</sup> _µ_ <sup>_R_</sup> _µ_ <sup>, we choose</sup> <sup>v</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> _µ_ <sup>_P_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>) such that</sup> <sup>v</sup> <sup>_|_</sup> Ω <sup>_R_</sup> _µ_ <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> _µ_ <sup>_L_</sup> <sup>(Ω</sup> <sup>_R_</sup> _µ_ the following trial set for the fluctuationsTo reduce the problem into Ω <sup>_R_</sup> _µ_ <sup>, we choose</sup> <sup>v</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_P_</sup> <sup>(Ω</sup> <sup>_H_</sup> _µ_ <sup>) such that</sup> <sup>v</sup> <sup>_|_</sup> Ω <sup>_R_</sup> _µ_ <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> <sup>(Ω</sup> <sup>_R_</sup> _µ_ <sup>) and</sup> <sup>v</sup> <sup>_|_</sup> Ω _µ_ <sup>_H_</sup> <sup>_\_</sup> <sup>Ω</sup> <sup>_R_</sup> _µ_ <sup>=</sup> <sup>0</sup> <sup>, inducing</sup> _,_ (17) Ω <sup>_R_</sup> _µ_ <sup>;</sup> <sup>_T∂_</sup> <sup>Ω</sup> _µ_ <sup>_R_</sup> <sup>_η_</sup> <sup>=</sup> <sup>_T∂_</sup> <sup>Ω</sup> <sup>_R_</sup> _µ_ <sup>u</sup> <sup>˜</sup> _µ_ <sup>_H_</sup> <sup>_R_</sup> _µ_ <sup>) =</sup> <sup>_Vµ_</sup> <sup>(</sup> <sup>p</sup> <sup>)(Ω</sup> _µ_ <sup>_R_</sup> _Vµ_ (Ω <sup>_R_</sup> _µ_ _µ_ <sup>_R_</sup> <sup>) :=</sup> _η_ _∈_ [ _H_ <sup>1</sup> (Ω _µ_ <sup>_R_</sup> <sup>)]</sup> <sup>_d_</sup> <sup>;</sup> <sup>_⟨_</sup> <sup>_η_</sup> <sup>_⟩_</sup> Ω _µ_ <sup>_R_</sup> <sup>=</sup> - u ˜ _µH_ <sup>(</sup> <sup>p</sup> <sup>)</sup> - u ˜ _µH_ <sup>(</sup> <sup>p</sup> <sup>)</sup> _µ_ <sup>_H_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_H_</sup> _µ_ <sup>)]</sup> <sup>_d_</sup> <sup>_→_</sup> <sup>[</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_∂_</sup> <sup>Ω</sup> _µ_ <sup>_R_</sup> where the dependence on p is made explicitly and _T∂_ Ω _Rµ_ <sup>: [</sup> <sup>_H_</sup> <sup>1(Ω</sup> <sup>_H_</sup> _µ_ <sup>)]</sup> <sup>_d_</sup> <sup>_→_</sup> <sup>[</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_∂_</sup> <sup>Ω</sup> _µ_ <sup>_R_</sup> <sup>)]</sup> <sup>_d_</sup> <sup>is a trace operator.</sup> <sup>Using the</sup> previously defined spaces, the constrained version of Problem 2 on Ω <sup>_R_</sup> _µ_ <sup>read as:</sup> where the dependence on p is made explicitly and _T∂_ Ω _Rµ_ <sup>: [</sup> <sup>_H_</sup> <sup>1(Ω</sup> <sup>_H_</sup> _µ_ <sup>_R_</sup> _µ_ <sup>read as:</sup> Problem 3 (Reduced parametrised corrector PDE) _Given_ p _∈P, find_ u ˜ _µ_ <sup>_R_</sup> _µ_ <sup>_R_</sup> <sup>)(</sup> <sup>p</sup> <sup>)</sup> <sup>_such that_</sup> _a_ <sup>_R_</sup> ( p ; ˜ u _µ_ <sup>_R_</sup> u _µ_ <sup>_R,_</sup> <sup>v</sup> <sup>) =</sup> <sup>_bR_</sup> <sup>(</sup> <sup>p</sup> <sup>;</sup> <sup>v</sup> <sup>)</sup> _∀_ v _∈_ _Vµ_ <sup>_L_</sup> _µ_ <sup>_L_</sup> <sup>(Ω</sup> <sup>_R_</sup> _µ_ _µ_ <sup>_R_</sup> <sup>_∈_</sup> <sup>_Vµ_</sup> <sup>(Ω</sup> _µ_ <sup>_R_</sup> <sup>_R_</sup> _µ_ <sup>)</sup> <sup>_,_</sup> (18) _where_ u _µ_ <sup>_R,_</sup> <sup>v</sup> <sup>) = (C</sup> <sup>_µ_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∇s_</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_R_</sup> _a_ <sup>_R_</sup> ( p ; ˜ u _µ_ <sup>_R_</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_R, ∇s_</sup> <sup>v</sup> <sup>)</sup> _L_ <sup>2</sup> (Ω _µ_ <sup>_R_</sup> <sup>)</sup> <sup>_,_</sup> (19a) _b_ <sup>_R_</sup> ( p ; v ) = _−_ (C _µ_ ( p ) _ε_ ( p ) _, ∇_ <sup>_s_</sup> v ) _L_ 2(Ω _µR_ _µR_ <sup>)</sup> <sup>_._</sup> (19b) Importantly, we should notice that u ˜ _µ_ <sup>_H_</sup> _µ_ <sup>_R_</sup> <sup>=</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_R_</sup> _µ_ <sup>_H_</sup> <sup>_|_</sup> Ω _µ_ <sup>_R_</sup> homogenised stress is invariant upon translations.Importantly, we should notice that u ˜ _µ_ <sup>_H_</sup> <sup>_|_</sup> Ω _µ_ <sup>_R_</sup> <sup>=</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_R_</sup> Therefore, it is convenient to define <sup>holds by construction and, as already commented in Remark 3, the</sup> _Vµ_ <sup>_∗_</sup> <sup>_R_</sup> _µ_ <sup>) =</sup> <sup>_V_</sup> _µ_ <sup>_∗_</sup> <sup>_R_</sup> _µ_ <sup>) :=</sup> _µ_ <sup>_∗_</sup> <sup>(Ω</sup> <sup>_R_</sup> _µ_ _µ_ <sup>_∗_</sup> <sup>(</sup> <sup>p</sup> <sup>)(Ω</sup> <sup>_R_</sup> _µ_ <sup>_R_</sup> _µ_ <sup>_η_</sup> <sup>=</sup> <sup>w</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> _µ_ _η_ _∈_ _V_ <sup>_ZA_</sup> _µ_ <sup>_ZA_</sup> (Ω <sup>_R_</sup> _µ_ <sup>_R_</sup> _µ_ <sup>);</sup> <sup>_T_</sup> _∂_ Ω <sup>_R_</sup> _µ_ _,_ (20) where w ( p ) _∈_ _L_ <sup>2</sup> ( _∂_ Ω _µ_ <sup>_R_</sup> <sup>) denotes</sup> w ( p ) = _T∂_ Ω _Rµ_ <sup>u</sup> <sup>˜</sup> _µ_ <sup>_H_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_−_</sup> 8 - u ˜ _µH_ <sup>(</sup> <sup>p</sup> <sup>)</sup> (21) Ω <sup>_R_</sup> _µ_ <sup>_._</sup> A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 <sup>_R_</sup> _µ_ <sup>) by</sup> <sup>_V_</sup> _µ_ <sup>_∗_</sup> Notice that Problem 3 can be rephrased replacing _Vµ_ ( p )(Ω <sup>_R_</sup> _µ_ _µ_ <sup>_∗_</sup> <sup>(</sup> <sup>p</sup> <sup>)(Ω</sup> _µ_ <sup>_R_</sup> Notice that Problem 3 can be rephrased replacing _Vµ_ ( p )(Ω <sup>_R_</sup> _µ_ <sup>) by</sup> <sup>_V_</sup> _µ_ <sup>_∗_</sup> <sup>(</sup> <sup>p</sup> <sup>)(Ω</sup> _µ_ <sup>_R_</sup> <sup>).</sup> <sup>As commented, the new solution is</sup> mechanically equivalent (leads to the same homogenised stress). As a result, the only information needed coming from the solution of Problem 2 is its trace to the internal boundary _∂_ Ω <sup>_R_</sup> _µ_ <sup>and</sup> <sup>the</sup> <sup>necessary</sup> <sup>translation</sup> <sup>to</sup> <sup>obtain</sup> <sup>a</sup> zero-averaged fluctuation field in Ω <sup>_R_</sup> _µ_ <sup>.</sup> <sup>For convenience, we rearranged this operation in the goal solution</sup> <sup>w</sup> <sup>, as above.</sup> The key idea of proposed method is the following: Instead of solving the larger Problem 2 to obtain w, we aim at obtaining an approximation w <sup>_N_</sup> by a method that combines RB-ROM and DNN. This approximation yields to the definition of the novel set _Vµ_ <sup>_N_</sup> <sup>(Ω</sup> _µ_ <sup>_R_</sup> <sup>)(</sup> <sup>p</sup> <sup>)</sup> <sup>(or</sup> <sup>just</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> <sup>).</sup> <sup>Our</sup> <sup>final</sup> <sup>goal</sup> <sup>is</sup> <sup>to</sup> <sup>show</sup> <sup>that</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> outperforms the classical choices of BCs. Finally, before proceeding with the parametrisation of C _µ_ and _ε_ in Sections 3.1.1 and 3.1.2, respectively, it is useful to assume the split p = ( p _c,_ p _ε_ ), where C _µ_ ( p ) = C _µ_ ( p _c_ ) and _ε_ ( p ) = _ε_ ( p _ε_ ). The explicitly definition of _Vµ_ <sup>_N_</sup> <sup>(Ω</sup> _µ_ <sup>_R_</sup> <sup>)(</sup> <sup>p</sup> <sup>)</sup> <sup>_R_</sup> _µ_ <sup>.</sup> <sup>For convenience, we rearranged this operation in the goal solution</sup> <sup>w</sup> <sup>, as above.</sup> _µ_ <sup>_R_</sup> <sup>)(</sup> <sup>p</sup> <sup>)</sup> <sup>(or</sup> <sup>just</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>(Ω</sup> _µ_ <sup>_R_</sup> _µ_ <sup>_N_</sup> <sup>).</sup> <sup>Our</sup> <sup>final</sup> <sup>goal</sup> <sup>is</sup> <sup>to</sup> <sup>show</sup> <sup>that</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>(Ω</sup> _µ_ <sup>_R_</sup> to assume the split p = ( p _c,_ p _ε_ ), where C _µ_ ( p ) = C _µ_ ( p _c_ ) and _ε_ ( p ) = _ε_ ( p _ε_ ). The explicitly definition of _Vµ_ <sup>_N_</sup> <sup>(Ω</sup> _µ_ <sup>_R_</sup> <sup>)(</sup> <sup>p</sup> <sup>)</sup> is postponed to Section 3.1.3 3.1.1 Parametrisation of C _µ_ In our context, parametrising the constitutive law is intrinsically linked with the parametrisation of microstructural geometrical features of material constituents. In this work, since the number of parameters have a direct impact on the quality of sampling, if we want to keep the number of samples limited, we aim at keeping the geometry and number of materials simple. We admit a partition of two materials on Ω <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>where those properties are constant by parts.</sup> <sup>Let be Ω</sup> _µ_ <sup>_H,_</sup> <sup>1</sup> _µ_ <sup>_H,_</sup> <sup>1</sup>, Ω <sup>_H,_</sup> _µ_ <sup>2</sup> <sup>_H,_</sup> _µ_ <sup>2</sup> be _~~H~~_ _µ_ <sup>and Ω</sup> _µ_ <sup>_H,_</sup> <sup>1</sup> _µ_ <sup>_H,_</sup> <sup>1</sup> _∩_ Ω _µ_ <sup>_H,_</sup> <sup>2</sup> _µ_ <sup>_H,_</sup> <sup>2</sup> = _∅_, i.e., a partition of Ω _µ_ <sup>_H_</sup> such that Ω _~~H~~_ _,_ 1 _µ_ _∪_ Ω _~~H~~_ _,_ 2 _µ_ = Ω such that Ω _µ_ _∪_ Ω _µ_ = Ω _µ_ <sup>and Ω</sup> _µ_ <sup>_H,_</sup> <sup>1</sup> _∩_ Ω _µ_ <sup>_H,_</sup> <sup>2</sup> = _∅_, i.e., a partition of Ω _µ_ <sup>_H_</sup> <sup>(see Figure 3).</sup> <sup>Each of these materials are</sup> linear isotropic and thus modelled by the Hookean law characterised by the two spatially varying Lamé coefficients _λµ_ and _Gµ_, or conversely the pair Young modulus and Poisson ratio. It reads C _µ_ ( y ) = _λµ_ ( y ) I _⊗_ I + 2 _Gµ_ ( y )I <sup>_s_</sup> _, ∀_ y _∈_ Ω _µ_ <sup>_H_</sup> <sup>_._</sup> (22) followsLet us assume _λµ_ and _Gµ_ are linked with Ω <sup>_H,_</sup> _µ_ <sup>1</sup> and Ω <sup>_H,_</sup> _µ_ <sup>2</sup> via a constant _γ_ _>_ 0. It useful to define _χγ_ : Ω <sup>_H_</sup> _µ_ <sup>_→_</sup> <sup>R as</sup> Let us assume _λµ_ and _Gµ_ are linked with Ω <sup>_H,_</sup> _µ_ <sup>1</sup> <sup>_H,_</sup> _µ_ <sup>1</sup> and Ω <sup>_H,_</sup> _µ_ <sup>2</sup> <sup>_H,_</sup> _µ_ <sup>2</sup> via a constant _γ_ _>_ 0. It useful to define _χγ_ : Ω <sup>_H_</sup> _µ_ _χγ_ ( y ) = - _γ,_ if y _∈_ Ω _µ_ <sup>_H,_</sup> <sup>2</sup> _,_ (23) 1 _,_ otherwise so _λµ_ ( y ) := _χγ_ ( y ) _λ_ <sup>1</sup> _µ_ <sup>1</sup> _µ_ <sup>,</sup> <sup>_Gµ_</sup> <sup>(</sup> <sup>y</sup> <sup>) =</sup> <sup>_χγ_</sup> <sup>(</sup> <sup>y</sup> <sup>)</sup> <sup>_G_</sup> <sup>1</sup> _µ_ <sup>1</sup> _µ_ <sup>, i.e., C</sup> <sup>_µ_</sup> <sup>(</sup> <sup>y</sup> <sup>) =</sup> <sup>_χγ_</sup> <sup>(</sup> <sup>y</sup> <sup>)C</sup> _µ_ <sup>1</sup> _µ_ <sup>1</sup> <sup>.</sup> <sup>_H_</sup> _µ_ <sup>=</sup> <sup>(0</sup> <sup>_,_</sup> <sup>1)2</sup> <sup>and</sup> <sup>Ω</sup> _µ_ <sup>_H,_</sup> <sup>2</sup> For the sake of simplicity, let us consider the two-dimensional setting with Ω <sup>_H_</sup> _µ_ For the sake of simplicity, let us consider the two-dimensional setting with Ω <sup>_H_</sup> _µ_ <sup>=</sup> <sup>(0</sup> <sup>_,_</sup> <sup>1)2</sup> <sup>and</sup> <sup>Ω</sup> _µ_ <sup>_H,_</sup> <sup>2</sup> composed by union of disjoint balls, distributed on a lattice. Let _Nb_ the number of balls, y _i_ <sup>_c_</sup> <sup>and</sup> <sup>_ri_</sup> <sup>,</sup> <sup>_i_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, . . ., Nb_</sup> <sup>the centre</sup> by union of disjoint balls, distributed on a lattice. Let _Nb_ the number of balls, y _i_ <sup>_c_</sup> <sup>and</sup> <sup>_ri_</sup> <sup>,</sup> <sup>_i_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_, . . ., Nb_</sup> <sup>the centre</sup> positions and radii, respectively. Hence Ω <sup>_H,_</sup> _µ_ <sup>2</sup> = <sup>�</sup> _i_ <sup>_N_</sup> =1 <sup>_b_</sup> <sup>_B_</sup> <sup>(</sup> <sup>y</sup> _i_ <sup>_c, ri_</sup> <sup>), where</sup> <sup>_B_</sup> <sup>(</sup> <sup>y</sup> <sup>0</sup> <sup>_, r_</sup> <sup>) :=</sup> <sup>_<u>{</u>_</sup> <sup>y</sup> <sup>_∈_</sup> <sup><u>R</u></sup> <sup>_d_</sup> <sup>;</sup> <sup>_<u>∥</u>_</sup> <sup>y</sup> <sup>_−_</sup> <sup>y</sup> <sup>0</sup> <sup>_∥_</sup> <sup>_< r}_</sup> <sup>denotes</sup> <sup>_H,_</sup> _µ_ <sup>2</sup> = <sup>�</sup> _i_ <sup>_N_</sup> =1 <sup>_b_</sup> positions and radii, respectively. Hence Ω <sup>_H,_</sup> _µ_ <sup>2</sup> = <sup>�</sup> _i_ <sup>_N_</sup> =1 <sup>_b_</sup> <sup>_B_</sup> <sup>(</sup> <sup>y</sup> _i_ <sup>_c, ri_</sup> <sup>), where</sup> <sup>_B_</sup> <sup>(</sup> <sup>y</sup> <sup>0</sup> <sup>_, r_</sup> <sup>) :=</sup> <sup>_<u>{</u>_</sup> <sup>y</sup> <sup>_∈_</sup> <sup><u>R</u></sup> <sup>_d_</sup> <sup>;</sup> <sup>_<u>∥</u>_</sup> <sup>y</sup> <sup>_−_</sup> <sup>y</sup> <sup>0</sup> <sup>_∥_</sup> <sup>_< r}_</sup> <sup>denotes</sup> the ball centred insquare number, with positions as follows y 0 with radius _r_ . Furthermore, we assume a regular grid of <sup>_√_</sup> _Nb ×_ <sup>_√_</sup> _Nb_ balls, for _Nb_ a perfect _i_ <sup>_N_</sup> =1 <sup>_b_</sup> <sup>_B_</sup> <sup>(</sup> <sup>y</sup> _i_ <sup>_c_</sup> <u>2</u> y ( <sup>_c_</sup> _i−_ 1) <sup>_~~√~~_</sup> _Nb_ + _j_ +1 <sup>=</sup> _~~√~~_ _Nb_ <u>2</u> ( <sup>_c_</sup> _i−_ 1) <sup>_~~√~~_</sup> _Nb_ + _j_ +1 <sup>=</sup> _~~√~~_ _Nb_ (2 _j −_ 1 _,_ 2 _i −_ 1) _,_ _i, j_ = 1 _,_ 2 _, . . .,_ - _Nb._ (24) Regarding other properties used in the model, for the sake of simplicity, let us take _λ_ <sup>1</sup> _µ_ <sup>1</sup> _µ_ <sup>,</sup> <sup>_G_</sup> <sup>1</sup> _µ_ Regarding other properties used in the model, for the sake of simplicity, let us take _λ_ <sup>1</sup> _µ_ <sup>,</sup> <sup>_G_</sup> <sup>1</sup> _µ_ <sup>, and</sup> <sup>_γ_</sup> <sup>fixed.</sup> <sup>Notice that</sup> each element of ( _λ_ <sup>1</sup> _µ_ <sup>_, G_</sup> <sup>1</sup> _µ_ <sup>_, γ,_</sup> <sup>y</sup> 1 <sup>_c, . . .,_</sup> <sup>y</sup> 1 <sup>_Nb_</sup> <sup>) has fixed value and is not considered as a parameter of the problem .</sup> <sup>In turn,</sup> each element of ( _λ_ <sup>1</sup> _µ_ <sup>_, G_</sup> <sup>1</sup> _µ_ <sup>_, γ,_</sup> <sup>y</sup> 1 <sup>_c, . . .,_</sup> <sup>y</sup> 1 <sup>_Nb_</sup> <sup>) has fixed value and is not considered as a parameter of the problem .</sup> <sup>In turn,</sup> the _de facto_ parameters ruling C _µ_ are p _c_ = ( _r_ 1 _, r_ 2 _, . . ., rNb_ ). <sup>1</sup> _µ_ <sup>_, G_</sup> <sup>1</sup> _µ_ <sup>1</sup> _µ_ <sup>_, γ,_</sup> <sup>y</sup> 1 <sup>_c_</sup> 3.1.2 Parametrisation of _ε_ Differently as in the last section, the parametrisation of macroscale strain is straightforward and we do not need to assume any simplification, besides the symmetry of _ε_ . Focusing on _d_ = 2, we introduce p _ε_ = ( _p_ _ε_ _,_ 1 _, p_ _ε_ _,_ 2 _, p_ _ε_ _,_ 3) and the mapping p _ε_ _�→_ _ε_ ( p _ε_ ) = - _p_ _ε_ _,_ 1 <u>12</u> <sup>_p_</sup> <sup>_ε_</sup> <sup>_,_</sup> <sup>3</sup> <u>12</u> <sup>_p_</sup> <sup>_ε_</sup> <sup>_,_</sup> <sup>3</sup> _p_ _ε_ _,_ 2 . This choice of parametrisation is not unique, but it turns out that in this specific choice each component of p _ε_ is physically meaningful: i) _p_ _ε_ _,_ 1 _,_ 2 is the axial strain along the 1 _,_ 2 directions and ii) _p_ _ε_ _,_ 3 is the shear strain. Indeed, p _ε_ corresponds to the so-called Voigt’s notation of _ε_, here represented by the mapping Voigt : R <sup>2</sup> sym <sup>_,_</sup> <sup>2</sup> <sup>_→_</sup> <sup>R3, such that</sup> <sup>_ε_</sup> <sup>_�→_</sup> <sup>p</sup> <sup>_ε_</sup> <sup>= Voigt(</sup> <sup>_ε_</sup> <sup>) = (</sup> <sup>_ε_</sup> <sup>11</sup> <sup>_, ε_</sup> <sup>22</sup> <sup>_, ε_</sup> <sup>12</sup> <sup>+</sup> <sup>_ε_</sup> <sup>21).</sup> <sup>Finally, the extension for</sup> <sup>_d_</sup> <sup>= 3</sup> mappingis immediate, but will not be used in this manuscript. Voigt : R <sup>2</sup> sym <sup>_,_</sup> <sup>2</sup> <sup>_→_</sup> <sup>R3, such that</sup> <sup>_ε_</sup> <sup>_�→_</sup> <sup>p</sup> <sup>_ε_</sup> <sup>= Voigt(</sup> <sup>_ε_</sup> <sup>) = (</sup> <sup>_ε_</sup> <sup>11</sup> <sup>_, ε_</sup> <sup>22</sup> <sup>_, ε_</sup> <sup>12</sup> <sup>+</sup> <sup>_ε_</sup> <sup>21).</sup> <sup>Finally, the extension for</sup> <sup>_d_</sup> <sup>= 3</sup> 9 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Taking advantage of the problem structure in the right-hand side of (15), we can exploit its linearity with respect to p _ε_ by writing _b_ <sup>_H_</sup> ( p ; v ) = 3 _p_ _ε_ _,ib_ <sup>_H_</sup> (( p _c,_ e _i_ ); v ) _._ (25) _i_ =1 Accordingly, it is easy to see that linearity is also valid for w as follows w ( p ) = 3 _i_ =1 _p_ _ε_ _,i_ w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ( p _c_ ) _,_ (26) where w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ( p _c_ ) := _T∂_ Ω _µ_ ˜ u _µ_ <sup>_H_</sup> <sup>((</sup> <sup>p</sup> <sup>_c,_</sup> <sup>e</sup> <sup>_i_</sup> <sup>))</sup> <sup>_,_</sup> <sup>for</sup> <sup>_i_</sup> <sup>=</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3.</sup> <sup>We exploit this decomposition in Section 4.2 to reduce the</sup> number of RB constructions. 3.1.3 Parametrisation of _Vµ_ <sup>_N_</sup> By defining a learning-based set _Vµ_ <sup>_N_</sup> By defining a learning-based set _Vµ_ <sup>_N_</sup> <sup>,</sup> <sup>the</sup> <sup>goal</sup> <sup>is</sup> <sup>to</sup> <sup>characterise</sup> <sup>the</sup> <sup>set</sup> <sup>where</sup> <sup>fluctuations</sup> <sup>live</sup> <sup>as</sup> <sup>accurate</sup> <sup>as</sup> possible (not necessarily as large as possible) based on the prior knowledge decoded in the RB-ROM and DNN model. Indeed, we must recall that _Vµ_ <sup>_N_</sup> aims to approximate _Vµ_ (Ω <sup>_R_</sup> _µ_ <sup>) in Problem 3.</sup> <sup>To this end, let us assume we dispose of an</sup> _Nrb_ -dimensional RB _BNrb_ = _{_ _ξ_ _i_ ; _ξ_ _i_ _∈_ _L_ <sup>2</sup> ( _∂_ Ω _µ_ <sup>_R_</sup> <sup>)</sup> <sup>_, i_</sup> <sup>= 1</sup> <sup>_, · · ·_</sup> <sup>_, Nrb}_</sup> <sup>and the mapping</sup> <sup>_N_</sup> <sup>: R</sup> <sup>_Np_</sup> <sup>_→_</sup> <sup>R</sup> <sup>_Nrb_</sup> <sup>.</sup> <sup>We postulate</sup> _µ_ <sup>_N_</sup> aims to approximate _Vµ_ (Ω <sup>_R_</sup> _µ_ _µ_ <sup>_R_</sup> <sup>)</sup> <sup>_, i_</sup> <sup>= 1</sup> <sup>_, · · ·_</sup> <sup>_, Nrb}_</sup> <sup>and the mapping</sup> <sup>_N_</sup> <sup>: R</sup> <sup>_Np_</sup> <sup>_→_</sup> <sup>R</sup> <sup>_Nrb_</sup> <sup>.</sup> <sup>We postulate</sup> _Nrb_ _i_ =1 _Vµ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>) =</sup> _η_ _∈_ _Vµ_ <sup>_ZA_</sup> ; _T∂_ Ω _Rµ_ <sup>_η_</sup> <sup>=</sup> [ _N_ ( p )] _i_ _ξ_ _i_ _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_,_</sup> (27) = _Vµ_ <sup>_L_</sup> _µ_ <sup>_L_</sup> <sup>+ ˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> where u ˜ _µ_ <sup>_N_</sup> _µ_ <sup>_ZA_</sup> is a continuous extension of <sup>�</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <sup>_N_</sup> _µ_ _µ_ <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> <sup>_ZA_</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <sup>[</sup> <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)]</sup> <sup>_i_</sup> <sup>_ξ_</sup> _i_ <sup>_∈_</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_∂_</sup> <sup>Ω</sup> _µ_ <sup>_R_</sup> _µ_ <sup>_R_</sup> <sup>) to Ω</sup> _µ_ <sup>_R_</sup> wherenext. u ˜ _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_ZA_</sup> is a continuous extension of <sup>�</sup> <sup>_N_</sup> _i_ =1 <sup>_rb_</sup> <sup>[</sup> <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)]</sup> <sup>_i_</sup> <sup>_ξ_</sup> _i_ <sup>_∈_</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_∂_</sup> <sup>Ω</sup> _µ_ <sup>_R_</sup> <sup>) to Ω</sup> _µ_ <sup>_R_</sup> <sup>, whose construction is detailed</sup> Solving Problem 3 with solutions in _Vµ_ ( p ) involves finding u ˜ _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> <sup>and the explicit form of</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> <sup>,</sup> such that u ˜ _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>+</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_Vµ_</sup> <sup>(</sup> <sup>p</sup> <sup>).</sup> <sup>Hence,</sup> <sup>Problem</sup> <sup>3</sup> <sup>encompasses</sup> <sup>the</sup> <sup>solution</sup> <sup>of</sup> <sup>two</sup> <sup>sub-problems:</sup> <sup>i)</sup> <sup>find</sup> Solving Problem 3 with solutions in _Vµ_ ( p ) involves finding u ˜ _µ_ <sup>0</sup> _µ_ <sup>_L_</sup> <sup>and the explicit form of</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> <sup>,</sup> _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>+</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_N_</sup> _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> such that u ˜ _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>+</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_Vµ_</sup> <sup>(</sup> <sup>p</sup> <sup>).</sup> <sup>Hence,</sup> <sup>Problem</sup> <sup>3</sup> <sup>encompasses</sup> <sup>the</sup> <sup>solution</sup> <sup>of</sup> <sup>two</sup> <sup>sub-problems:</sup> <sup>i)</sup> <sup>find</sup> u ˜ _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> <sup>such that</sup> _µ_ <sup>0(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>such that</sup> _µ_ <sup>0</sup> <sup>_,_</sup> <sup>v</sup> <sup>) =</sup> <sup>_bR_</sup> <sup>(</sup> <sup>p</sup> <sup>;</sup> <sup>v</sup> <sup>)</sup> _∀_ v _∈_ _Vµ_ <sup>_L,_</sup> _a_ <sup>_R_</sup> ( p ; ˜ u _µ_ <sup>0</sup> _µ_ <sup>_L,_</sup> (28) and ii) find u ˜ _µ_ <sup>_N_</sup> _µ_ <sup>_L_</sup> <sup>such that</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_∈_</sup> <sup>_V_</sup> _µ_ <sup>_L_</sup> _a_ <sup>_R_</sup> ( p ; ˜ u _µ_ <sup>_N_</sup> _µ_ <sup>_L._</sup> (29) _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_,_</sup> <sup>v</sup> <sup>) = 0</sup> _∀_ v _∈_ _Vµ_ <sup>_L._</sup> This decoupling is possible thanks to the linearity of the problem. Remark 6 _It is worth mentioning that in general Vµ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> _is not a subset of Vµ_ <sup>_M_</sup> <sup>_._</sup> Remark 6 _It is worth mentioning that in general Vµ_ <sup>_N_</sup> _is not a subset of Vµ_ <sup>_M_</sup> <sup>_._</sup> <sup>_In Appendix B we prove this does not_</sup> _impose any limitation to the method and that, in fact, we can equivalently rewrite the original problem using a set_ ( _Vµ_ <sup>_N_</sup> <sup>)</sup> <sup>_∗_</sup> <sup>_⊂_</sup> <sup>(</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> <sup>)</sup> <sup>_just by incorporating a new term on the right-hand side of the variational formulation in Problem 3._</sup> _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_∗_</sup> <sup>_⊂_</sup> <sup>(</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> <sup>)</sup> <sup>_just by incorporating a new term on the right-hand side of the variational formulation in Problem 3._</sup> Remark 7 _In practice, it is more convenient to solve Problem 3 (using Vµ_ <sup>_N_</sup> Remark 7 _In practice, it is more convenient to solve Problem 3 (using Vµ_ <sup>_N_</sup> <sup>_) at once rather_</sup> <sup>(28)</sup> <sup>_and_</sup> <sup>(29)</sup> <sup>_separately._</sup> _However, this split motivates and justifies the structure Vµ_ <sup>_N_</sup> <sup>_postulated in_</sup> <sup>(27)</sup> <sup>_._</sup> _µ_ <sup>_N_</sup> <sup>_postulated in_</sup> <sup>(27)</sup> <sup>_._</sup> 3.2 Overview of the method Before digging into methodological details of (Deep) Neural Networks (Section 4), it is useful to start a short overview of the method we propose. For easiness of notation, thereafter we denote our method as DeepBND, which stands for Deep Boundary, as reference of a deep learning methodology to enrich multiscale problems with more accurate BCs. It is worth highlighting that the basic requirements behind the development of DeepBND and the strategies adopted to address each of them are the following: 1. Computational efficiency: coupled multiscale simulations are computationally demanding by their very nature. Since the local-problem solving is embarrassingly parallel, this step is the most critical regarding the optimisation of the method. Therefore, such speed-up is mandatory and our main strategy is to reduce the microscale domain. 10 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 2. Accuracy: To keep the same accuracy of more computationally demanding larger microscale domains, our strategy focuses on the choice of a more precise BCs for smaller microscale domains. 3. Exploitation of _a priori_ knowledge: To be able to enrich the corrector problem with more suitable BCs, we exploit previous knowledge from pre-computed accurate solutions, also called high-fidelity (HF) solutions, which are necessarily more computationally demanding. This is performed by fully exploiting the potential of Reduced Order Modelling using Reduced Basis Method (RB-ROM) in combination with (Deep) Neural Networks (DNN). The use of RB-ROM allows for a more compact representation of the BC, reducing the size of the needed DNN, by automatically ranking the basis in a meaningful order of importance, which will be also exploited to suitably calibrate the training process of the DNN in next section. 4. Easiness of implementation: The very mathematical structure of the local problem is unchanged, only the BCs are touched. Our method leads to non-homogeneous Dirichlet BCs, not leading to any additional difficulties in terms of implementation. As usual in RB-ROM strategies, DeepBND can be structured into _offline_ and _online_ phases. Having chosen some meaningful microstructural parametrisation for the HF problem at hand, the main goal of the _offline phase_ is to find a mapping that translates parameters from the high-fidelity problem into an accurate BC of the problem solved in the _online phase_ . It consists in the following pipeline: i) the dataset acquisition by simulating those models for some representative sampling of the parameter space, ii) the RB construction using the previous dataset, iii) extraction of relevant features of the dataset through the orthogonal projections onto this RB and, iv) the training of a DNN model aiming to predict these projections. Mathematically, this procedure results in a) _BNrb_ = _{_ _ξ_ _i_ _∈_ [ _L_ <sup>2</sup> ( _∂_ Ω _µ_ )] <sup>_d_</sup> _}i_ <sup>_N_</sup> =1 <sup>_rb_</sup> <sup>, a RB</sup> with _Nrb_ functions and b) the mapping _N_ : R <sup>_Np_</sup> _→_ R <sup>_Nrb_</sup>, where _Np_ is the number of parameters of the high-fidelity model. As for the _online_ phase, we can predict the Dirichlet-like BC encoding these two previous outputs into _Vµ_ <sup>_N_</sup> <sup>for a</sup> given parameter of the HF problem p _∈_ R <sup>_Np_</sup> . Finally, we proceed by solving the reduced corrector problem followed by some homogenisation post-processing. The general outline of the method is depicted in Algorithm 2. Offline phase: Online phase: 1. Dataset generation 1. Given a microstructure and a micro-strain: Prediction of BC using the DNN 2. Reduced Basis Construction 2. Solving the microscale problem (Problem 3) 3. Features extractions (Input-Output) using the BC of step 1. 4. DNN training 3. Homogenisation of the obtained solution Algorithm 2: General workflow of the DeepBND method detailing Offline and Online phases. It is worth mentioning that the RB-ROM and DNN concentrate most of the computational efforts in the _offline_ _phase_ rather than in the _online phase_ . To generate the dataset, some parametrisation of the microstructure should be chosen, together with the range of these parameters, their probability distributions, and sample strategy. This is a problem-dependent choice and we discuss in Section 5 the examples treated in the manuscript. In turn, the final cost added in comparison to a standard coupled multiscale simulation is the evaluation of a DNN model to determine the BC that feeds the corrector problem solver. The DNN evaluation step (prediction) is many orders of magnitude less computationally demanding than the corrector problem numerical solution, by using FEM for example. 4 Designing the Neural Network In this section, we introduce the DNN model to predict the BCs. As mentioned before, we aim at characterising the nonlinear mapping from the parameter space into RB coefficients _N_ : R <sup>_Np_</sup> _→_ R <sup>_Nrb_</sup> . In terms of DNN architecture, our model is based on two instances of the standard fully connected Multilayer Perceptron (MLP) model, which is revisited in Section 4.1, combined seamlessly to exploit: i) the splitting between macro-strain and microscale constitutive parameters and ii) the problem symmetries. We also explore such principles for dataset and RB generation (Section 4.2), which, in fact, naturally leads to a specific format for combining MLP submodels, as explained in Section 4.3. Regarding the loss function, we also adopt a non-standard setting motivated from the RB-ROM (see Section 4.4). 4.1 Basic notation for Deep Neural Networks Here we review some basic concepts and notation for supervised learning using DNN. For the interested reader, we refer to [18, 13] for a deeper presentation. 11 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Figure 4: Multilayer Perceptron Neural Network with _NL_ hidden layers. Let _D_ = _{_ ( _α_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _,_ _β_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) _∈_ R <sup>_m_</sup> _×_ R <sup>_n_</sup> ; _i_ = 1 _, . . ., Ns}_ be a _dataset_ with _Ns_ samples (or snapshots). We aim at finding the mapping _N_ ( _θ_ ; _·_ ) : R <sup>_m_</sup> _→_ R <sup>_n_</sup> such that it minimises the regularised empirical risk _Ns_ _i_ =1 min _θ_ <u>1</u> _Ns_ _L_ ( _N_ ( _θ_ ; _α_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) _,_ _β_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) + _λR_ ( _θ_ ) _,_ (30) where _L_ : R <sup>_m_</sup> _×_ R <sup>_m_</sup> _→_ R <sup>+</sup> is the so-called cost or loss function, and _R_ : R <sup>_p_</sup> _×_ R <sup>_m_</sup> _→_ R <sup>+</sup> is a regularising function controlled by a intensity factor _λ ∈_ R <sup>+</sup> . The vector _θ_ should be understood as a collection of parameters that defines the mapping _N_ ( _θ_ ; _·_ ), which is taken accordingly with the usual definition of the MLP architecture for DNN [13]. The size of _θ_, and thus the complexity of the DNN, depends on the pre-fixed number of hidden layers _NL_ and the quantity of neurons in each layer (see Figure 4 to help with the interpretation). Moreover, concerning the practical implementation of the training, i.e., the optimisation procedure to solve (30), we use the ADAM version of the stochastic gradient with mini-batches, and, as regularisation techniques, we make use of dropout [36], _l_ <sup>2</sup> regularisation, and early stop based on the validation error [13]. The exact numerical values used in our examples are specified in the appropriate section. 4.2 Dataset and RB construction strategies As seen in Section 3.1.2, the trace w of the fluctuations on _∂_ Ω <sup>_R_</sup> _µ_ <sup>, is the linear combination of auxiliary solutions</sup> obtained to each load direction ( w <sup>(</sup> <sup>_I_</sup> <sup>)</sup> ), for _I_ = 1 _,_ 2 _,_ 3. Obtaining them involve fewer parameters, since the loads are fixed in unitary directions, which lead to a reduced parameter space to sample. In other words, exploiting this property in the dataset generation means that for a fixed number of high-fidelity snapshots, we can sample better a smaller parameter set _Pr_ _⊂_ R <sup>_Nb_</sup> instead of _P_ _⊂_ R <sup>_Np_</sup>, where _Np_ = _Nb_ + 3 (in 2D). In this regard, it is also important to maximise the covering of _Pr_ by using a smart sampling strategy, for example one of the Quasi-Monte Carlo Family such as the Latin Hypercube Sampling (LHS) used in this work. Furthermore, in terms of mechanical load, solutions w <sup>(1)</sup> and w <sup>(2)</sup> as in (26) are equivalent in the sense one can be obtained by rotation of another, as depicted in Figure 5. Hence, choosing _Nrb_ <sup>_′_</sup> <sup>basis functions to satisfy some accuracy</sup> _rb_ <sup>_′_</sup> <sup>basis functions to satisfy some accuracy</sup> - _Nrb_ <sup>_′_</sup> _i_ =1 _rb_ <sup>associated to</sup> <sup>w</sup> <sup>(</sup> <sup>_I_</sup> <sup>)</sup> <sup>for</sup> <sup>_I_</sup> <sup>= 1</sup> <sup>_,_</sup> <sup>3, by applying the POD procedure of Algorithm 1.</sup> _N_ <sup>_′_</sup> criteria, we obtain _B_ <sup>(</sup> <sup>_I_</sup> _rb_ <sup>)</sup> _N_ <sup>_′_</sup> The missing basis _B_ <sup>(2)</sup> _rb_ <sup>_′_</sup> _rb_ <sup>)</sup> <sup>=</sup> - _ξ_ <sup>(</sup> _i_ <sup>_I_</sup> <sup>)</sup> _N_ <sup>_′_</sup> <sup>_′_</sup> _N_ <sup>_′_</sup> <sup>(2)</sup> _rb_ <sup>can be obtained by</sup> <sup>_B_</sup> <sup>(2)</sup> _rb_ _rb_ <sup>_′_</sup> <sup>, where the anti-clockwise rotation of</sup> <sup>_π/_</sup> <sup>2rad is applied</sup> _N_ <sup>_′_</sup> _N_ <sup>_′_</sup> <sup>_′_</sup> _rb_ <sup>=</sup> <sup>Q</sup> <sup>_<u>π</u>_</sup> 2 <sup>_<u>π</u>_</sup> 2 <sup>_B_</sup> _N_ <sup>(1)</sup> _rb_ <sup>_′_</sup> for each function in the basis by means of the orthonormal matrix Q <sup>_<u>π</u>_</sup> 2 <sup>.</sup> <sup>On the other hand, for a given</sup> <sup>p</sup> <sup>_c_</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_Nc_</sup> <sup>, the</sup> solution w <sup>(2)</sup> ( p _c_ ) transforms according to for each function in the basis by means of the orthonormal matrix Q <sup>_<u>π</u>_</sup> w <sup>(2)</sup> ( p _c_ ) = w (( p _c,_ e 2)) = Q <sup>_<u>π</u>_</sup> 2 <sup>w</sup> <sup>((</sup> <sup>_π_</sup> <sup>_−_</sup> _<u>π</u>_ 2 <sup>1(</sup> <sup>p</sup> <sup>_c_</sup> <sup>)</sup> <sup>_,_</sup> <sup>e</sup> <sup>1)) =</sup> <sup>Q</sup> <sup>_<u>π</u>_</sup> 2 <sup>w</sup> <sup>(1)(</sup> <sup>_π_</sup> <sup>_−_</sup> _<u>π</u>_ 2 <sup>1(</sup> <sup>p</sup> <sup>_c_</sup> <sup>))</sup> <sup>_,_</sup> (31) where _π_ <sup>_−_</sup> _<u>π</u>_ <sup>1</sup> denotes a permutation on the parameter vector entries to reflect a clockwise rotation of _π/_ 2 rad on the 2 microstructure pattern (see Figure 5). The actual format for the permutation is problem- and implementation-dependent. In the next section, we retake these ideas to construct the DNN model that predicts the BCs. 12 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 Figure 5: Symmetry in load-geometry relation. Here _π_ <sup>_−_</sup> _<u>π</u>_ 2 <sup>1((1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3</sup> <sup>_,_</sup> <sup>4)) =</sup> <sup>_π_</sup> <sup>_−_</sup> <sup>_<u>π</u>_</sup> 2 <sup>((1</sup> <sup>_,_</sup> <sup>2</sup> <sup>_,_</sup> <sup>3</sup> <sup>_,_</sup> <sup>4)) = (2</sup> <sup>_,_</sup> <sup>4</sup> <sup>_,_</sup> <sup>1</sup> <sup>_,_</sup> <sup>3)</sup> <sup>_._</sup> Figure 6: DeepBND-NN architecture: exploiting the physical structure of the problem using a combination of MLP submodels and RB functions. 4.3 DeepBND-NN model: definition and combination of the axial and shear DNN submodels As already commented, before defining the DNN model, we need to obtain a DNN submodel for the axial unitary macro-strain (without loss of generality, chosen here as the horizontal one) and another DNN submodel for shear _rb_, for the unitary macro-strain. Following the previous conventions, we denote them as _N_ <sup>(1)</sup> _, N_ <sup>(3)</sup> : R <sup>_Nb_</sup> _→_ R <sup>_N ′_</sup> axially horizontal and shear loading, respectively. In turn, for the axially vertical loading, we invoke (31) to define _rb_, for the unitary macro-strain. Following the previous conventions, we denote them as _N_ <sup>(1)</sup> _, N_ <sup>(3)</sup> : R <sup>_Nb_</sup> _→_ R <sup>_N ′_</sup> axially horizontal and shear loading, respectively. In turn, for the axially vertical loading, we invoke (31) to define _N_ <sup>(2)</sup> ( p ) = _N_ <sup>(1) �</sup> _π_ <sup>_−_</sup> _<u>π</u>_ 2 <sup>1</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> . <sup>_−_</sup> _<u>π</u>_ 2 <sup>1</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> . _π_ <sup>_−_</sup> _<u>π</u>_ 2 <sup>1</sup> Finally, the BC prediction for some p _∈_ R <sup>_Np_</sup> reads as  _N_ <sup>_′_</sup>   _∈_ _L_ <sup>2</sup> ( _∂_ Ω _µ_ <sup>_R_</sup> <sup>)</sup> <sup>_._</sup> (32) u ˜ _µ_ <sup>_N_</sup> _µ_ <sup>_R_</sup> <sup>=</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_|_</sup> _∂_ Ω _µ_ <sup>_R_</sup> _j_ =1 3 _I_ =1 _p_ _ε_ _,I_  _rb_ _j_ [ _N_ <sup>(</sup> <sup>_I_</sup> <sup>)</sup> ( pc )] _j_ _ξ_ <sup>(</sup> <sup>_I_</sup> <sup>)</sup> _j_ It is important to mention that by taking into account the physical structure of the problem into the DNN architecture (reviewed in Figure 6), we are able to: i) minimise the size of datasets needed since the size of parameter space (input) is smaller for each submodel; ii) use fewer number of neurons and layers (smaller complexity of the DNN architecture) since the prediction of directional load-wise solutions are also less complex; iii) profit from the full advantage of the RB representation due to their specialisation according to the load; iv) use fewer RB modes for the same accuracy; v) naturally take into account symmetries concerning horizontal and vertical loads and vi) training of 2 instead of 3 submodels. All points mentioned here are intrinsically related and overall render better accuracy and smaller computational burden in the dataset generation and training. 13 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 4.4 DNN-POD error analysis and Loss Function choice In this section, we precisely define the total error committed in the BC prediction, which accounts for the intrinsic truncation error when a RB is chosen (POD error) and also the error due to the DNN prediction. The latter naturally yields to the natural choice for the loss-function _L_ used in (30). All notation here should be understood for one specific load, axial or shear, with indices omitted for convenience. _µ_ First, let us consider some _BNrb_ and S given. For some _i_ = 1 _, . . ., Ns_ and target HF solution w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∈_ S _⊂_ _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> let us denote its projection upon span _BNrb_ as Π _Nrb_ w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> := <sup>�</sup> _j_ <sup>_N_</sup> =1 <sup>_rb_</sup> _i_ <sup>_N_</sup> =1 <sup>_rb_</sup> <sup>_β_</sup> <sup>ˆ</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ follows the _µ_ <sup>),</sup> <sup>_R_</sup> _j_ <sup>_N_</sup> =1 <sup>_rb_</sup> <sup>_β_</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_ξ_</sup> _j_ <sup>, where</sup> <sup>_β_</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> represents its projection along _ξ_ _j_ . Analogously, we denote the DNN prediction of w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> as w ˆ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> := <sup>�</sup> _i_ <sup>_N_</sup> =1 <sup>_rb_</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_ξ_</sup> _j_ <sup>_∈_</sup> <sup>span</sup> <sup>_BN_</sup> _rb_ <sup>, where</sup> <sup>_β_</sup> <sup>ˆ</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> same interpretation of _βj_ <sup>(</sup> <sup>_i_</sup> <sup>).</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>).</sup> A natural choice to measure the expected error is to consider the empirical averaged error over all elements of S namely _T_ <sup>(</sup> <sup>_Nrb_</sup> <sup>) =</sup> <sup><u>1</u></sup> <sup>2</sup> _N_ _T_ _E_ <sup>2</sup> _Ns_ _Ns_ _i_ =1 _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>)</sup> <sup>_,_</sup> (33) _∥_ w ˆ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _−_ w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∥_ <sup>2</sup> where the sub-index ( _·_ ) _T_ stands for total error, as opposed to the contributions to the POD and DNN errors defined next. To this aim, using the fact that w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _−_ Π _Nrb_ ( w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) _∈_ (span _BNrb_ ) <sup>_⊥_</sup> and that _BNrb_ is orthonormal, it yields _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _L_ <sup>2</sup> _µ_ <sup>)</sup> <sup>=</sup> <sup>_∥_</sup> <sup>w</sup> <sup>ˆ</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>) + Π</sup> <sup>_Nrb_</sup> <sup>(</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>))</sup> <sup>_−_</sup> <sup>Π</sup> <sup>_Nrb_</sup> <sup>(</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>))</sup> <sup>_∥_</sup> <sup>2</sup> _L_ _∥_ w ˆ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _−_ w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∥_ <sup>2</sup> _L_ = _∥_ w ˆ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _−_ Π _Nrb_ ( w <sup>(</sup> <sup>_i_</sup> <sup>)</sup> ) _∥_ <sup>2</sup> _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>)</sup> _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>)</sup> ( _i_ ) _−_ _β_ ( _i_ ) _∥_ 22 _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _L_ <sup>2</sup> _µ_ <sup>) +</sup> <sup>_∥_</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Π</sup> <sup>_Nrb_</sup> <sup>(</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>))</sup> <sup>_∥_</sup> <sup>2</sup> = _∥_ _β_ <sup>ˆ</sup> _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>)</sup> <sup>_,_</sup> for _i_ = 1 _, . . ., Ns._ (34) 22 <sup>+</sup> <sup>_∥_</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_−_</sup> <sup>Π</sup> <sup>_N_</sup> _rb_ <sup>(</sup> <sup>w</sup> <sup>(</sup> <sup>_i_</sup> <sup>))</sup> <sup>_∥_</sup> <sup>2</sup> The boldface notation for _β_ <sup>ˆ</sup> ( _i_ ) and _β_ ( _i_ ) simply mean the component-wise collection for their respective projections for a snapshot _i_ . Note that the second term of the above expression when averaged over the _Ns_ snapshots corresponds to the POD mean squared error ( _EP OD_ <sup>2</sup> <sup>) already defined in (10).</sup> <sup>On the other hand, the first term accounts for the DNN</sup> error, in which the mean squared version is defined below The boldface notation for _β_ <sup>ˆ</sup> the POD mean squared error ( _EP OD_ <sup>2</sup> <sup>) already defined in (10).</sup> <sup>On the other hand, the first term accounts for the DNN</sup> error, in which the mean squared version is defined below _DNN_ <sup>(</sup> <sup>_Nrb_</sup> <sup>) :=</sup> <sup><u>1</u></sup> <sup>2</sup> _E_ <sup>2</sup> _Ns_ _Ns_ - _∥_ _β_ <sup>ˆ</sup> _i_ =1 2 <sup>_._</sup> (35) ( _i_ ) _−_ _β_ ( _i_ ) _∥_ 2 The expression above provides a physically-based formula for the loss function to be considered in (30). More precisely, _Nrb_ _j_ =1 _j_ <sup>(</sup> <sup>_i_</sup> <sup>))2</sup> <sup>_,_</sup> (36) _L_ ( _β_ <sup>ˆ</sup> ( _i_ ) _,_ _β_ ( _i_ )) := <u>1</u> _Nrb_ _ωj_ ( _β_ <sup>ˆ¯</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>ˆ¯</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _−_ _β_ <sup>¯</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>_min_</sup> = min _i βj_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_, β_</sup> _j_ <sup>_max_</sup> where we have used the min-max scaling ( _·_ ) = ( _·_ ) _−βj_ <sup>_min_</sup> _<u>j</u>_ _βj_ <sup>_max_</sup> _−_ _j_ <sup>_min_</sup> (for _β_ <sup>ˆ</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>_max_</sup> _−βj_ <sup>_min_</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> and _βj_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)),</sup> <sup>_β_</sup> _j_ <sup>_min_</sup> _j_ <sup>_max_</sup> = max _i βj_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>_max_</sup> _−_ _βj_ <sup>_max_</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_, ωj_</sup> <sup>= (</sup> <sup>_β_</sup> _j_ <sup>_max_</sup> _j_ ) <sup>2</sup>, for _j_ = 1 _, . . ., Nrb_ . <sup>_max_</sup> Finally, we can rewrite (33) as _ET_ <sup>2</sup> _T_ <sup>2</sup> <sup>(</sup> <sup>_Nrb_</sup> <sup>) =</sup> <sup>_E_</sup> <sup>2</sup> _DNN_ <sup>2</sup> <sup>(</sup> <sup>_Nrb_</sup> <sup>) +</sup> <sup>_E_</sup> <sup>2</sup> _P OD_ <sup>2</sup> <sup>(</sup> <sup>_Nrb_</sup> <sup>)</sup> <sup>_,_</sup> (37) where we should notice that while _E_ <sup>2</sup> _P OD_ <sup>2</sup> <sup>has a monotonous decreasing (w.r.t.</sup> <sup>_Nrb_</sup> <sup>) estimation given by (10), the</sup> <sup>_E_</sup> <sup>2</sup> Therefore, to assess an optimal _Nrb_ _DNN_ where we should notice that while _EP OD_ <sup>2</sup> <sup>has a monotonous decreasing (w.r.t.</sup> <sup>_Nrb_</sup> <sup>) estimation given by (10), the</sup> <sup>_E_</sup> <sup>2</sup> depends on the DNN architecture, initialisation, optimisation algorithm, etc. Therefore, to assess an optimal _Nrb_ for a given DNN architecture we should study the trade-off between these two errors. This is explored in Section 5. It is worth highlighting that the RB-based strategy adopted also induces a specific choice of weighted mean-squared error, where weights are given by eigenvalues found in the POD procedure, which are ranked by magnitude. This choice also leads to a natural total estimator in the _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>)-norm, which is the intrinsic choice to measure the BC</sup> discrepancies, that links the loss function reached in the training and the error committed by POD truncation itself. Importantly, each submodel can be trained separately and be put together only for prediction purposes, which is interesting from the computational point of view. It is worth highlighting that the RB-based strategy adopted also induces a specific choice of weighted mean-squared error, where weights are given by eigenvalues found in the POD procedure, which are ranked by magnitude. This choice also leads to a natural total estimator in the _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>)-norm, which is the intrinsic choice to measure the BC</sup> 14 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 <u>Index</u> <u>Load</u> <u>Use</u> <u>Size (</u> _<u>Ns</u>_ <u>)</u> <u>Sample</u> <u>1</u> <u>Axial</u> <u>Training/RB</u> _<u>Ns</u>_ <sup>_trb_</sup> <u>= 51200</u> <u>P</u> <sup>(1)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_trb_</sup> <u>,</u> _<u>s</u>_ <sup>_trb_</sup> <u>= 51200</u> <u>P</u> <sup>(1)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_trb_</sup> _<u>s</u>_ <sup>_trb_</sup> <u>= 51200</u> <u>P</u> <sup>(1)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_trb_</sup> _<u>s</u>_ <sup>_val_</sup> <u>= 10240</u> <u>P</u> <sup>(2)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_val_</sup> _<u>s</u>_ <sup>_val_</sup> <u>= 10240</u> <u>P</u> <sup>(2)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_val_</sup> _<u>s</u>_ <sup>_tes_</sup> <u>= 5120</u> <u>P</u> <sup>(3)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_tes_</sup> _<u>s</u>_ <sup>_tes_</sup> <u>= 5120</u> <u>P</u> <sup>(3)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_tes_</sup> <u>1</u> <u>Axial</u> <u>Training/RB</u> _<u>Ns</u>_ <sup>_trb_</sup> <u>= 51200</u> <u>P</u> <sup>(1)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_trb_</sup> <u>,</u> <u>`seed`</u> <u>= 1))</u> <u>2</u> <u>Shear</u> <u>Training/RB</u> _<u>Ns</u>_ <sup>_trb_</sup> <u>= 51200</u> <u>P</u> <sup>(1)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_trb_</sup> <u>,</u> <u>`seed`</u> <u>= 1))</u> <u>3</u> <u>Axial</u> <u>Validation</u> _<u>Ns</u>_ <sup>_val_</sup> <u>= 10240</u> <u>P</u> <sup>(2)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_val_</sup> <u>,</u> <u>`seed`</u> <u>= 2))</u> <u>4</u> <u>Shear</u> <u>Validation</u> _<u>Ns</u>_ <sup>_val_</sup> <u>= 10240</u> <u>P</u> <sup>(2)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_val_</sup> <u>,</u> <u>`seed`</u> <u>= 2))</u> <u>5</u> <u>Axial</u> <u>Testing</u> _<u>Ns</u>_ <sup>_tes_</sup> <u>= 5120</u> <u>P</u> <sup>(3)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_tes_</sup> <u>,</u> <u>`seed`</u> <u>= 3))</u> <u>6</u> <u>Shear</u> <u>Testing</u> _<u>Ns</u>_ <sup>_tes_</sup> <u>= 5120</u> <u>P</u> <sup>(3)</sup> <u>(LHS(</u> _<u>Ns</u>_ <sup>_tes_</sup> <u>,</u> <u>`seed`</u> <u>= 3))</u> _<u>s</u>_ <sup>_tes_</sup> <u>,</u> <u>`seed`</u> <u>= 3))</u> Table 1: Summary datasets for the different combinations of ”Load/Use” scenarios. Each ”Use” is associated with one LHS run for a given `seed` and number of samples. 5 DNN model construction: datasets, RB, and training In this section, we specify the choice of numerical parameters adopted to assess our method. We choose to constrain the more general setting of Sections 3.1 and 4. As already discussed, the DNN model construction encompasses the RB extraction and the training of a DNN for a given dataset, denoted here as _training/RB_ dataset, with size _Ns_ <sup>_trb_</sup> = 51200. Moreover, from the point of view of DNN training, we also need to simulate auxiliary datasets for _validation_ and _testing_ reasons, in which the size is assumed to be respectively 20% ( _Ns_ <sup>_val_</sup> = 10240) and 10% ( _Ns_ <sup>_tes_</sup> = 5120) of the _training/RB_ dataset size. Importantly, each dataset is considered for the axial and shear loads separately, as summarised in Table 1. The fixed coefficients used in all simulations are presented in Table 2, while the random sampling of the inclusion sizes, which are the random parameters of the problem, are shown next. Concerning the inclusions, they are placed in a 6 _×_ 6 grid (see (24)), so _Nb_ = 36, with radii computed as follows _rj_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> = exp( _a_ + _θ_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _j_ _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> <sup>_b_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>[</sup> <sup>_rmin, rmax_</sup> <sup>]</sup> <sup>_,_</sup> _j_ = 1 _, . . ., Nb,_ _i_ = 1 _, . . ., Ns,_ (38) where _a_ = log( _rmaxrmin_ ), _b_ = log( <sup>_<u>r</u>_</sup> _r_ <sup>_<u>max</u>_</sup> _min_ <sup>),</sup> <sup>_rmax_</sup> <sup>= 0</sup> <sup>_._</sup> <sup>4</sup> _L_ _~~√~~_ <sup>_HF_</sup> _<u>µNb</u>_ = 151 <sup>and</sup> <sup>_rmin_</sup> <sup>= 0</sup> <sup>_._</sup> <sup>1</sup> _L_ _~~√~~_ <sup>_HF_</sup> _<u>µNb</u>_ = 601 <sup>, and</sup> <sup>_θ_</sup> _j_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> _∈_ [ _−_ 1 _,_ 1] is a random variable detailed next. The strategy (38) is used by [25] in a similar scenario and has the advantages of being empirically inspired and also a simple manner to constrain the value range for the radii. Regarding the sampling, we use the LHS with an underlying uniform distribution to sample _θj_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> for _j_ = 1 _, . . ., Nb,_ _i_ = 1 _, . . ., Ns_ . Notice that the where _a_ = log( _rmaxrmin_ ), _b_ = log( <sup>_<u>r</u>_</sup> _r_ <sup>_<u>max</u>_</sup> _min_ <sup>_<u>r</u>_</sup> _r_ <sup>_<u>max</u>_</sup> _min_ <sup>),</sup> <sup>_rmax_</sup> <sup>= 0</sup> <sup>_._</sup> <sup>4</sup> _L_ <sup>_HF_</sup> _<u>µ</u>_ _L_ _~~√~~_ <sup>_HF_</sup> _<u>µNb</u>_ = 151 <sup>and</sup> <sup>_rmin_</sup> <sup>= 0</sup> <sup>_._</sup> <sup>1</sup> _L_ _~~√~~_ <sup>_HF_</sup> _<u>µNb</u>_ use the LHS with an underlying uniform distribution to sample _θj_ <sup>(</sup> <sup>_i_</sup> <sup>)</sup> for _j_ = 1 _, . . ., Nb,_ _i_ = 1 _, . . ., Ns_ . Notice that the LHS requires _a priori_ knowledge of _Ns_ and _Nb_, since it aims at achieving an optimal coverage of the high-dimensional parameter while keeping the number of samples small. Indeed, each realisation is not independent from each other. We use the default LHS implementation provided `scikit-opt` library [4], with three different seeds for random generation and sample sizes according to Table 1, yielding the samples P <sup>(1)</sup>, P <sup>(2)</sup>, and P <sup>(3)</sup> . Examples of some realisations of microstructures are found in Figure 7. It is widely known in the multiscale solid mechanics literature that the volume fraction _φ_ = <u>�</u> _Nb_ _<u>i</u>_ <u>=1</u> <sup>_<u>πr</u>_</sup> _<u>i</u>_ <sup>2</sup> It is widely known in the multiscale solid mechanics literature that the volume fraction _φ_ = ( _L_ <sup>_HF_</sup> _µ_ ) <sup>2</sup> _<u>i</u>_ <sup>is a random</sup> variable that plays a crucial role in the final solution. Consequently it is worth looking at how this variable is indirectly sampled by the assumed random generation algorithm, which focuses only on individual radii. In Figure 8, checking the histograms of _φ_ for P <sup>(1)</sup>, P <sup>(2)</sup>, and P <sup>(3)</sup>, we can observe that, although not implicitly enforced, the resulting underlying probability distribution seems to be consistent along the several datasets. We can also perfectly use another sample strategy, provided that the resulting volume fractions remain close to the range that the model was designed for. For obtaining the HF solutions, we use the FEM with quadratic polynomials in triangular meshes. For the mesh generation using _gmsh_ [12], we have imposed 20 equally spaced divisions for each internal boundary segment (bottom, right, top and left of _∂_ Ω <sup>_R_</sup> _µ_ <sup>), making a total of 160 degrees of freedom on the boundary, for all snapshots.</sup> <sup>The overall</sup> unstructured mesh on Ω <sup>_H_</sup> _µ_ <sup>is then generated using the corresponding characteristic length size of the internal boundary.</sup> Accordingly, the number of functions in the RB will be at most the total number of degree of freedom on the boundary, and the associated POD-error should vanish close to this value. Indeed, the largest RB considered here is 140, which actually gives practically zero POD-error. Concerning the computational time, all simulations were performed in a cluster with 80 (160 threads) Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz cores and the results of solving each HF simulation are resumed in Table 3. The _Total Time_ displayed is an estimate based on the statistics computed over all snapshots, i.e., the number of snapshots times the mean time spent per snapshot. The Wall Time is computed supposing the use of 32 cores and such that the Total Time is split equally. These estimates make sense only in embarrassingly parallel scenarios, as it is the case of the problem at hand. Notwithstanding, the ultimate time expended depend on many other factors, which are out of the scope of our analysis, such as the implementation, number of cores/threads, memory available, etc. Furthermore, 15 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 _<u>λ</u>_ <sup><u>1</u></sup> _<u>µ</u>_ <sup><u>1</u></sup> _<u>µ</u>_ _<u>G</u>_ <sup><u>1</u></sup> _<u>µ</u>_ _<u>λ</u>_ <sup><u>1</u></sup> _<u>µ</u>_ _<u>G</u>_ <sup><u>1</u></sup> _<u>µ</u>_ _<u>γ</u>_ <u>0</u> _<u>.</u>_ <u>576923</u> <u>0</u> _<u>.</u>_ <u>384615</u> <u>10</u> Table 2: From left to right: the two Lamé coefficients ( _λ_ <sup>1</sup> _µ_ <sup>1</sup> _µ_ <sup>and</sup> <sup>_G_</sup> _µ_ <sup>1</sup> <sup>1</sup> _µ_ <sup>and</sup> <sup>_G_</sup> <sup>1</sup> _µ_ Table 2: From left to right: the two Lamé coefficients ( _λ_ <sup>1</sup> _µ_ <sup>and</sup> <sup>_G_</sup> _µ_ <sup>1</sup> <sup>)</sup> <sup>for</sup> <sup>the</sup> <sup>matrix</sup> <sup>and</sup> <sup>the</sup> <sup>multiplicative</sup> <sup>constant</sup> factor ( _γ_ ) in the inclusion applied for both previous coefficients. The values for _λ_ <sup>1</sup> _µ_ <sup>and</sup> <sup>_G_</sup> <sup>1</sup> _µ_ <sup>corresponds to</sup> <sup>_E_</sup> <sup>= 1</sup> <sup>_._</sup> <sup>0</sup> (units disregarded), the Young modulus, and _ν_ = 0 _._ 3, the Poisson ratio, using standard transformation expressions for Hookean isotropic media. (a) p <sup>(63)</sup> _c_ <sup>(63)</sup> _c_ _∈_ P <sup>(1)</sup> . (b) p <sup>(24567)</sup> _c_ <sup>(24567)</sup> _c_ _∈_ P <sup>(1)</sup> . (c) p <sup>(4231)</sup> _c_ <sup>(4231)</sup> _c_ _∈_ P <sup>(2)</sup> . Figure 7: Some realisations of microstructures for the high-fidelity model showing the different phases of Ω <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>:</sup> <sup>Ω</sup> _µ_ <sup>_H,_</sup> <sup>1</sup> Figure 7: Some realisations of microstructures for the high-fidelity model showing the different phases of Ω <sup>_H_</sup> _µ_ <sup>:</sup> <sup>Ω</sup> _µ_ <sup>_H,_</sup> <sup>1</sup> in blue and Ω <sup>_H,_</sup> _µ_ <sup>2</sup> in red. <sup>_H,_</sup> _µ_ <sup>2</sup> in red. 20 15 10 5 0 <u>Histogram</u> <u>for</u> <u>Datasets</u> <u>Training/RB</u> <u>(P</u> <sup>(1)</sup> <u>)</u> _N_ (0 _._ 271942 _,_ 0 _._ 017898) 0 _._ 20 0 _._ 22 0 _._ 24 0 _._ 26 0 _._ 28 0 _._ 30 0 _._ 32 0 _._ 34 Volume Fraction 20 15 10 5 0 <u>Histogram</u> <u>for</u> <u>Datasets</u> <u>Validation</u> <u>(P</u> <sup>(2)</sup> <u>)</u> _N_ (0 _._ 271942 _,_ 0 _._ 017933) 0 _._ 22 0 _._ 24 0 _._ 26 0 _._ 28 0 _._ 30 0 _._ 32 0 _._ 34 Volume Fraction 20 15 10 5 0 <u>Histogram</u> <u>for</u> <u>Datasets</u> <u>Test</u> <u>(P</u> <sup>(3)</sup> <u>)</u> _N_ (0 _._ 271942 _,_ 0 _._ 018055) 0 _._ 22 0 _._ 24 0 _._ 26 0 _._ 28 0 _._ 30 0 _._ 32 0 _._ 34 Volume Fraction Figure 8: Volume fraction histograms of three different types of datasets. The notation _N_ ( _·, ·_ ) represents the fitted Normal distribution (do not mix with a DNN). 16 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 <u>RB-POD</u> <u>Approximation</u> <u>Error</u> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>6</sup> 10 <sup>_−_</sup> <sup>8</sup> 10 <sup>_−_</sup> <sup>10</sup> 10 <sup>_−_</sup> <sup>12</sup> ~~Axial~~ Shear 0 25 50 75 100 125 150 _Nrb_ (Number of RB) Figure 9: Error committed in the RB-ROM approximation. the time expended in the RB-ROM steps and the mesh generation is negligible compared to the Wall Time for the _training/RB_ dataset, and for this reason, we do not report them. <u>Training/RB</u> <u>Validation</u> <u>Test</u> Time per snapshot(s) 43 _._ 16 _±_ 5 _._ 34 45 _._ 11 _±_ 10 _._ 60 47 _._ 91 _±_ 12 _._ 96 Total Time (h) 613 _._ 8 128 _._ 3 68 _._ 14 <u>Wall Time (h) (32 Cores)</u> <u>19</u> _<u>.</u>_ <u>18</u> <u>4</u> _<u>.</u>_ <u>009</u> <u>2</u> _<u>.</u>_ <u>129</u> Table 3: Computational cost of the dataset generation. Finally, by applying POD procedure of Algorithm 1 to the datasets 1 and 2, we can evaluate the committed error in the sense of (10), as shown in Figure 9. This error represents the best expected approximation of the BC in the sense of _L_ <sup>2</sup> ( _∂_ Ω <sup>_R_</sup> _µ_ <sup>), i.e., with no error due to the DNN approximation.</sup> <sup>We can verify these two errors are comparable, with a</sup> slight advantage to the shear over the axial model, for a given number of RB functions. As result, we have adopted the same DNN architecture and number of RB in both models, since they have comparable complexity. To define the models _N_ <sup>(1)</sup> and _N_ <sup>(3)</sup>, it is worth studying the sensibility of the total error _ET_ with the number of RB (see (33)). It is reasonable to expect that at some point the decreasing of _EP OD_ may not compensate the increasing of _E_ DNN architectures (one for each _DNN_ as _Nrb_ <sup>_′_</sup> <sup>gets larger.</sup> <sup>Therefore, we have considered</sup> _N_ <sup>_′_</sup> <sup>_N_</sup> _rb_ <sup>_′_</sup> <sup>_∈{_</sup> <sup>5</sup> <sup>_,_</sup> <sup>10</sup> <sup>_,_</sup> <sup>20</sup> <sup>_,_</sup> <sup>40</sup> <sup>_,_</sup> <sup>80</sup> <sup>_,_</sup> <sup>140</sup> <sup>_}_</sup> <sup>and have trained 6 different</sup> _rb_ <sup>_′_</sup> <sup>gets larger.</sup> <sup>Therefore, we have considered</sup> <sup>_N ′_</sup> _E_ DNN architectures (one for each _DNN_ as _Nrb_ <sup>_′_</sup> <sup>gets larger.</sup> <sup>Therefore, we have considered</sup> _Nrb_ <sup>_′_</sup> <sup>), which do not differ regarding the hidden layers, but only the number of entries</sup> <sup>_N_</sup> _rb_ <sup>_′_</sup> <sup>_∈{_</sup> <sup>5</sup> <sup>_,_</sup> <sup>10</sup> <sup>_,_</sup> <sup>20</sup> <sup>_,_</sup> <sup>40</sup> <sup>_,_</sup> <sup>80</sup> <sup>_,_</sup> <sup>140</sup> <sup>_}_</sup> <sup>and have trained 6 different</sup> on the output. Also, we have considered a DNN architecture of 3 hidden layers with 300 neurons each. As activation functions, we have used the Swish [27] in the hidden layers followed by a linear activation in the output layer. To regularise the model, we have used the dropout with probability of retention _p_ = 99 _,_ 5% in all hidden layers and _λ_ = 10 <sup>_−_</sup> <sup>8</sup> for _l_ <sup>2</sup> regularisation for all weights and biases. The DNN has been trained using the ADAM optimiser with default parameters and mini-batches of 32 samples. An adaptive learning rate has been employed, decreasing linearly from 5 _._ 0 _×_ 10 <sup>_−_</sup> <sup>4</sup> until 5 _._ 0 _×_ 10 <sup>_−_</sup> <sup>5</sup> in epoch 5000 (last). It is worth mentioning that we reached these values by systematically testing combinations of smaller architectures, regularisation values, and activation functions. Therefore, such values should be understood as guidance for problems with similar complexity and dataset sizes, although there might be still room for small tunings. Finally, we used `Tensorflow` [1] for the implementation, and the final model is assumed to be the one yielding to the least loss function value in the validation dataset. In Figures 10(a) and 10(b) we can see the loss function history ( _EDNN_ <sup>2</sup> <sup>) for the axial DNN model using</sup> <sup>_N_</sup> _rb_ <sup>_′_</sup> <sup>= 5</sup> and _Nrb_ <sup>_′_</sup> <sup>= 140, respectively.</sup> <sup>Loss function values are naturally larger for</sup> <sup>_N_</sup> _rb_ <sup>_′_</sup> <sup>= 140, since the output has more entries.</sup> The loss function evaluated on training and validation differ considerably as result of regularisation, which is not used in validation, the latter turning out to be smaller. For the last epochs, the validation reaches a plateau while the training error continues to decrease slightly. This indicates that the model reached its full capacity while avoiding overfitting. The very same comments apply to Figures 11(a) and 11(b), for the shear DNN model. For the results with different _Nrb_ <sup>_′_</sup> <sup>, check Appendix C.</sup> Lastly, the final trained DNN models are compared in terms of the DNN, POD, and total errors (in test datasets) in Figures 12(a) and 12(b) for the axial and shear cases, respectively. For the axial case we observe the least total error for 17 _DNN_ <sup>2</sup> <sup>) for the axial DNN model using</sup> <sup>_N ′_</sup> In Figures 10(a) and 10(b) we can see the loss function history ( _E_ <sup>2</sup> _Nrb_ <sup>_′_</sup> <sup>= 140, respectively.</sup> <sup>Loss function values are naturally larger for</sup> _rb_ <sup>_′_</sup> <sup>= 140, respectively.</sup> <sup>Loss function values are naturally larger for</sup> <sup>_N ′_</sup> _rb_ <sup>_′_</sup> <sup>, check Appendix C.</sup> A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 _<u>rb</u>_ <sup><u>= 5</u></sup> <u>Loss</u> <u>Minimisation</u> <u>-</u> <u>Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>2</sup> _<u>rb</u>_ <sup>_−_</sup> L <sup>2</sup> <u>oss</u> <u>Minimisation</u> <u>-</u> <u>Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> _<u>rb</u>_ <sup><u>= 140</u></sup> <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (a) For _Nrb_ <sup>_′_</sup> <sup>= 5.</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (b) For _Nrb_ <sup>_′_</sup> <sup>= 140.</sup> Figure 10: Historic for the loss function minimisation in Axial model _N_ <sup>(1)</sup> . Training loss evaluated with regularisation (dropout and _l_ <sup>2</sup> ), while validation loss in prediction mode (regularisation disabled). _<u>rb</u>_ <sup><u>= 5</u></sup> <u>Loss</u> <u>Minimisation</u> <u>-</u> <u>Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> _<u>rb</u>_ <sup><u>= 140</u></sup> Loss <u>Minimisation</u> <u>-</u> <u>Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss ~~Validation~~ ~~Loss~~ 0 1000 2000 3000 4000 5000 Epochs (a) For _Nrb_ <sup>_′_</sup> <sup>= 5.</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (b) For _Nrb_ <sup>_′_</sup> <sup>= 140.</sup> Figure 11: Historic for the loss function minimisation in Shear model _N_ <sup>(3)</sup> . Training loss evaluated with regularisation (dropout and _l_ <sup>2</sup> ), while validation loss in prediction mode (regularisation disabled). _N_ <sup>_′_</sup> _rb_ <sup>_′_</sup> <sup>= 80 and</sup> <sup>_N ′_</sup> _rb_ <sup>_′_</sup> <sup>= 140 while in the shear case both</sup> <sup>_N ′_</sup> _Nrb_ <sup>_′_</sup> <sup>= 140 while in the shear case both</sup> <sup>_N_</sup> _rb_ <sup>_′_</sup> <sup>= 80 and</sup> <sup>_N_</sup> _rb_ <sup>_′_</sup> <sup>= 80 give equivalent quantities.</sup> <sup>Therefore, we choose to</sup> keep _Nrb_ <sup>_′_</sup> <sup>= 140 to the numerical examples of next section.</sup> _rb_ <sup>_′_</sup> <sup>= 140 to the numerical examples of next section.</sup> 18 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> <u>Prediction</u> <u>error</u> <u>(Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> <u>Test</u> <u>Dataset</u> <u>5)</u> DNN Total POD 0 20 40 60 80 100 120 140 _Nrb_ (Number of RB) (a) Axial model ( _N_ <sup>(1)</sup> ) 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 10 <sup>_−_</sup> <sup>6</sup> <u>Prediction</u> <u>error</u> <u>(Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> <u>Test</u> <u>Dataset</u> <u>6)</u> DNN Total POD 0 20 40 60 80 100 120 140 _Nrb_ (Number of RB) (b) Shear model ( _N_ <sup>(3)</sup> ) Figure 12: Mean Squared Prediction error (test datasets) for the _L_ <sup>2</sup> ( _∂_ Ω _µ_ ): DNN and POD contributions yields to the Total error. 6 Numerical Examples In this section we aim at assessing the DeepBND method in practice, i.e., in coupled two-scale simulations, also known as FE <sup>2</sup> [10]. Two kinds of problems are considered (recall the notation of Figure 1): i) the first with a strong scale separation, i.e., the size of heterogeneities is several orders of magnitude smaller than the dimension of the body such thatcommented, the computational homogenisation approach is best suited for the i)-kind-problem, however due practical _Lµ_ _≪_ _L_ ; and ii) the second with _Lµ_ _< L_ with about one or two orders of magnitude of difference. As already reasons ii)-kind-problem is also interesting since only in this situation direct numerical simulations (DNS) are feasible. The two kinds of problems differ substantially in terms of how the microstructures are generated at integration points. We postpone the presentation of further details to Section 6.1 and Section 6.2. Before digging into the numerical results, it is worth mentioning that we aim at answering the following questions: 1. How does DeepBND compare in terms of accuracy with the periodic condition using the high-fidelity solution as reference? 2. How does DeepBND compare in terms of computational cost the high-fidelity model? 3. How does DeepBND compare in terms of accuracy with the periodic and high-fidelity approaches using the DNS as the reference solution? Here, it is worth recalling that the DeepBND and periodic models refer to local problems posed in Ω <sup>_R_</sup> _µ_ Here, it is worth recalling that the DeepBND and periodic models refer to local problems posed in Ω <sup>_R_</sup> _µ_ <sup>, thus with</sup> the BC imposed on _∂_ Ω <sup>_R_</sup> _µ_ <sup>, while high-fidelity stands for local problems Ω</sup> <sup>_H_</sup> _µ_ <sup>, with periodic conditions imposed on</sup> <sup>_∂_</sup> <sup>Ω</sup> <sup>_H_</sup> _µ_ <sup>.</sup> We decided to choose periodic BCs for comparisons, since it is widely accepted that this model usually leads to more accurate results in contrast with classical models for BCs. As a natural choice, we answer questions 1 and 2 above using a i)-kind-problem (Section 6.1), and question 3 using a ii)-kind-problem (Section 6.2). Concerning the computational framework, in all numerical examples we use the _micmacFenics_ library [29], an open-source Fenics-based library for the implementation classical BCs in the FE <sup>2</sup> setting, which can be alternatively found as part of _multiphenics_ [5]. 6.1 Cook Membrane In this example for i)-kind-problem we apply the DeepBND to the so-called Cook Membrane, a classical benchmark in solid mechanics normally used to test numerical methods for incompressible material [35], but also used in computational homogenisation [32] and to test ML-based surrogate models [22]. It consists in a solid structure with dimensions as in Figure 13(a) subjected to an homogeneous distributed vertical load t on the rightmost face. The magnitude of t and the material model itself varies among the literature considered. Therefore, for the sake of simplicity, we decided to consider the very same material as used in the dataset construction of Section 5 and t = (0 _,_ 0 _._ 05), which gives approximately the same vertical displacement of the tip _A_ found in [35]. We aim at comparing the results obtained using the boundary conditions i) DeepBND and ii) Periodic against our reference solution, obtained from high-fidelity microstructures. For the sake of simplicity, we choose the MDs randomly 19 <sup>_R_</sup> _µ_ <sup>, while high-fidelity stands for local problems Ω</sup> <sup>_H_</sup> _µ_ <sup>_H_</sup> _µ_ <sup>, with periodic conditions imposed on</sup> <sup>_∂_</sup> <sup>Ω</sup> <sup>_H_</sup> _µ_ <sup>.</sup> A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 (a) Schema showing dimensions and points of interest. (b) Coaser mesh considered, containing 5 elements on the vertical direction. 13 _._ 9 13 _._ 8 13 _._ 7 13 _._ 6 13 _._ 5 13 _._ 4 13 _._ 3 Figure 13: Cook membrane. <u>Vertical</u> <u>Tip</u> <u>Displacement</u> <u>(A)</u> High-Fidelity <u>DeepBND</u> Periodic 10 20 30 40 50 60 70 80 Number of vertical elements Figure 14: Convergence of the vertical displacement at the tip (A) in averaged values for 10 realisations of the MDs sorting. from the _validation_ and _test_ datasets from Section 5, already at hand. They are sorted among the elements without repetition, which is possible since there are fewer integration points in the finer mesh than the pre-simulated structures microstructures available. To obtain more reliable results, we always report results considering the average over 10 realisations, where each realisation should be understood as a different sorting of MDs along the integration points. Importantly, also notice that due the scale separation, the MDs choices keeps no neighbouring relation. As first study, we consider the convergence of the vertical displacement of the tip A (Figure 13(a)) with respect to the mesh divisions in the vertical direction. The coarser mesh looks like the one depicted in Figure 13(b), with 5 regular divisions along the vertical direction and a the horizontal number of divisions such as we keep the same characteristic length of the rightmost side. We then build the other finer meshes with 10 _,_ 20 _,_ 40 _,_ and 80 divisions. We can see the results in Figure 14, where a clear advantage of DeepBND against the periodic can be observed when compared with the high-fidelity results. In numerical terms, for the finest mesh we gain between one and two orders of magnitude in the relative error norm (see Table 4). As a second comparison, Figure 15 shows the von Mises equivalent stress field for the different models, where we can notice that the results for the periodic case (rightmost plot) are considerably noisier, which means worse, compared to the DeepBND simulation (central plot) that visually presents identical results to High-fidelity solution (leftmost plot). Such discrepancies become clearer by plotting errors of the Von Mises stresses, as depicted Figure 16, in which DeepBND performs about 3 orders of magnitude better than the periodic case. Similar conclusions for the stress are 20 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 <u>DeepBND</u> <u>Periodic</u> <u>Vertical Displacement A</u> <u>7</u> _<u>.</u>_ <u>923</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> _<u>±</u>_ <u>1</u> _<u>.</u>_ <u>091</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> <u>1</u> _<u>.</u>_ <u>417</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>3</u></sup> _<u>±</u>_ <u>5</u> _<u>.</u>_ <u>496</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> <u>Von Mises B</u> <u>2</u> _<u>.</u>_ <u>185</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> _<u>±</u>_ <u>1</u> _<u>.</u>_ <u>758</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> <u>3</u> _<u>.</u>_ <u>126</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>2</u></sup> _<u>±</u>_ <u>1</u> _<u>.</u>_ <u>722</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>2</u></sup> <u>Von Mises C</u> <u>2</u> _<u>.</u>_ <u>444</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> _<u>±</u>_ <u>1</u> _<u>.</u>_ <u>799</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> <u>1</u> _<u>.</u>_ <u>096</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>2</u></sup> _<u>±</u>_ <u>1</u> _<u>.</u>_ <u>060</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>2</u></sup> <u>Von Mises D</u> <u>1</u> _<u>.</u>_ <u>288</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>4</u></sup> _<u>±</u>_ <u>9</u> _<u>.</u>_ <u>262</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>5</u></sup> <u>6</u> _<u>.</u>_ <u>096</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>3</u></sup> _<u>±</u>_ <u>4</u> _<u>.</u>_ <u>362</u> _<u>×</u>_ <u>10</u> <sup>_<u>−</u>_</sup> <sup><u>3</u></sup> Table 4: Relative errors in the finest mesh. <u>DeepBND</u> <u>HF MD (Linear BC)</u> <u>Time per snapshot(s)</u> <u>0</u> _<u>.</u>_ <u>5148</u> _<u>±</u>_ <u>0</u> _<u>.</u>_ <u>09548</u> <u>30</u> _<u>.</u>_ <u>56</u> _<u>±</u>_ <u>7</u> _<u>.</u>_ <u>238</u> <u>Total Time Finer Mesh (h)</u> <u>1</u> _<u>.</u>_ <u>831</u> <u>108</u> _<u>.</u>_ <u>6</u> <u>Wall Time Finer Mesh (h) (32 Cores)</u> <u>0</u> _<u>.</u>_ <u>05722</u> <u>3</u> _<u>.</u>_ <u>394</u> <u>Speed-up (ratio time per snapshot)</u> <u>59</u> _<u>.</u>_ <u>36</u> _<u>×</u>_ <u>1</u> _<u>×</u>_ Table 5: Computational cost for the simulations using DeepBND and High-Fidelity cases. To a fairer comparison in terms of computational times, note that the values reported for the High-Fidelity corresponds to the case that is implemented via homogeneous Dirichlet BCs (Linear BC space), thus differing from those from Table 3, implemented with periodic BCs. also retrieved component-wise in Figure 17. Analysing Figure 15, 17, and 13(a), we can see that points B, C and D were placed where extreme values for stresses are retrieved. Comparing the Von Mises stress along all realisations, DeepBND gains between one and two orders of magnitude in accuracy with respect to the periodic case, depending on the point considered, as seen in Table 4. In terms of computational times, we can see in Table 5 that the computational speed-up reached by DeepBND with respect to HF with linear BCs was about 59 _×_ . This number refers only to the embarrassingly parallel part of the problem, which in this case is the assembly of FEM matrices for the macroscale problem, specifically the solution of the local problems. The remaining fixed time for solving the macroscale problem is the same, hence no reason of including it here. Also, the mesh generation is not taken into account, but if taken, the speed-up would be even higher. The DeepBND was not compared directly with periodic BCs times, since due to the more efficient native Fenics/Multiphenics implementation of enforcing Dirichlet BCs with DeepBND, instead of the periodicity which is imposed by Lagrange Multipliers with additional pure Python routines. (a) _σvm_ <sup>_HF_</sup> _vm_ <sup>_HF_</sup> <sup>.</sup> (b) _σvm_ <sup>_dnn_</sup> _vm_ <sup>_dnn_</sup> <sup>.</sup> (c) _σvm_ <sup>_per_</sup> <sup>.</sup> _vm_ <sup>_per_</sup> <sup>.</sup> Figure 15: Comparison for the Von Mises Stress ( _σvm_ ) in the Cook membrane. 21 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 (a) _|σvm_ <sup>_dnn_</sup> _vm_ <sup>_dnn_</sup> <sup>_−_</sup> <sup>_σ_</sup> _vm_ <sup>_ref_</sup> _vm_ <sup>_ref_</sup> <sup>_|_</sup> <sup>.</sup> (b) _|σvm_ <sup>_per_</sup> _vm_ <sup>_per_</sup> <sup>_−_</sup> <sup>_σ_</sup> _vm_ <sup>_ref_</sup> <sup>_|_</sup> _vm_ <sup>_ref_</sup> <sup>_|_</sup> <sup>.</sup> _<u>vm</u>_ <sup>_<u>|</u>_</sup> . _vm_ <sup>_ref_</sup> _σvm_ <sup>_ref_</sup> (c) _<u>|σvm</u>_ <sup>_dnn_</sup> _<u>vm</u>_ <sup>_dnn−σ_</sup> _<u>vm</u>_ <sup>_ref_</sup> _σvm_ <sup>_ref_</sup> _<u>vm</u>_ <sup>_<u>|</u>_</sup> . (d) _vm_ <sup>_ref_</sup> _<u>|σvm</u>_ <sup>_per_</sup> _<u>vm</u>_ <sup>_per_</sup> <sup>_<u>−σ</u>_</sup> _<u>vm</u>_ <sup>_ref_</sup> _<u>vm</u>_ <sup>_ref_</sup> <sup>_<u>|</u>_</sup> _<u>vm</u>_ <sup>_ref_</sup> <sup>_<u>|</u>_</sup> Figure 16: Comparing DeepBND and periodic simulations in terms of absolute and relative errors of the Von Mises Stress ( _σvm_ ) for the Cook membrane. 22 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 (a) _σ_ 11 <sup>_HF_</sup> 11 <sup>_HF_</sup> <sup>.</sup> (b) _σ_ 11 <sup>_dnn_</sup> 11 <sup>_dnn_</sup> <sup>.</sup> (c) _σ_ 11 <sup>_per_</sup> <sup>.</sup> 11 <sup>_per_</sup> <sup>.</sup> (d) _σ_ 22 <sup>_HF_</sup> 22 <sup>_HF_</sup> <sup>.</sup> (e) _σ_ 22 <sup>_dnn_</sup> 22 <sup>_dnn_</sup> <sup>.</sup> (f) _σ_ 22 <sup>_per_</sup> <sup>.</sup> 22 <sup>_per_</sup> <sup>.</sup> (g) _σ_ 12 <sup>_HF_</sup> 12 <sup>_HF_</sup> <sup>.</sup> (h) _σ_ 12 <sup>_dnn_</sup> 12 <sup>_dnn_</sup> <sup>.</sup> (i) _σ_ 12 <sup>_per_</sup> <sup>.</sup> 12 <sup>_per_</sup> <sup>.</sup> Figure 17: Comparison Cauchy stress components in the Cook membrane. 23 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 6.2 Clamped bar using DNS The last test of the new multiscale methodology aims at assessing its performance in terms of accuracy and computational cost with respect to other multiscale methods in comparison to direct numerical simulations (DNS). In this second numerical example, for easiness of microstructures constructions, we adopt a rectangular bar Ω= [0 _, Lx_ = 4] _×_ [0 _, Ly_ = 1] as macroscopic domain such that it is clamped on the left and loaded with a uniform _x_ _y_ grid of _H_ <sup>_DNS_</sup> = shear on the right t = (0 _, −_ 0 _._ 2), as in Figure 18. The material is organised by a _N_ <sup>_DNS_</sup> _× N_ <sup>_DNS_</sup> _x_ _y_ grid of _H_ <sup>_DNS_</sup> = shear on the right t = (0 _, −_ 0 _._ 2), as in Figure 18. The material is organised by a _N_ <sup>_DNS_</sup> _× N_ <sup>_DNS_</sup> _Lx/Nx_ <sup>_DNS_</sup> = _Ly/Ny_ <sup>_DNS_</sup> squared blocks in which each block contains a random sized circular inclusion. The mesh for the DNS simulations is generated with the characteristic length _h ≈_ _H_ <sup>_DNS_</sup> _/_ 15, which is similar to the one used in the dataset generation. We consider _Ny_ <sup>_DNS_</sup> _∈{_ 24 _,_ 72 _}_, to study two different approximations with respect to the _x_ <sup>_DNS_</sup> = _Ly/Ny_ <sup>_DNS_</sup> _x_ _y_ <sup>_DNS_</sup> _× N_ <sup>_DNS_</sup> in the dataset generation. We consider _Ny_ <sup>_DNS_</sup> _∈{_ 24 _,_ 72 _}_, to study two different approximations with respect to the DNS, which is expected to be more suitable for larger _Ny_ <sup>_DNS_</sup> . Just for visualisation purposes, we show in Figure 19 one realisation of a structure with _Ny_ <sup>_DNS_</sup> = 7. Moreover, it is worth remarking that the mesh generation for larger _Ny_ <sup>_DNS_</sup> becomes cumbersome and computationally costly. Finally, it is also worth mentioning that the bar geometric dimensions were inspired by [22], however as in that reference the results presented were merely visual, we decided to compare DeepBND against HF and periodic models only. Concerning the multiscale simulations, we use a regular triangular mesh with 100 divisions vertically and 400 horizontally. Notice that this mesh is several orders of magnitude coarser than the DNS, which makes the FE <sup>2</sup> simulations still appealing, despite its also elevated cost. As usual, one MD should be associated at each integration point. Differently from the previous case (Cook’s Membrane, Section 6.1), now the microstructures have to keep some relation with its neighbourhood. Given an integration point, we choose the associated MD as the 6x6 window having the closest centre point, and then we proceed as before by identifying the reduced 2x2 window and predicting the BCs. This strategy is depicted in Figure 18, where the dashed windows are associated with the respective centre (circles) of the same colour. Notice that in total the number of different MDs are ( _Nx_ <sup>_DNS_</sup> _y_ _−_ 5) _×_ ( _N_ <sup>_DNS_</sup> _−_ 5), which makes 1729 the same colour. Notice that in total the number of different MDs are ( _Nx_ <sup>_DNS_</sup> _y_ _−_ 5) _×_ ( _N_ <sup>_DNS_</sup> _−_ 5), which makes 1729 and 18961 for _Ny_ <sup>_DNS_</sup> = 24 and _Ny_ <sup>_DNS_</sup> = 72, respectively. Concerning the results, each structure has been solved using quadratic polynomial elements for the DNS mesh (DNS solution) and using the multiscale approach, with the MDs selected as aforementioned, for the DeepBND, periodic, and the HF cases. The latter cases have been compared with the DNS solution with respect to the _L_ <sup>2</sup> norm, and the Euclidean norm for displacements at points _A_ and _B_ (see Figure 18). We can see in Figure 20(c) that relative errors for the _Ny_ <sup>_DNS_</sup> = 24 case are of order 1%, with slight advantages for the HF and DeepBND contrasted with the periodic case. On the other hand, for the _Ny_ <sup>_DNS_</sup> = 72 case, DeepBND model reaches 0 _._ 05% in relative error for the _L_ <sup>2</sup> (Ω)-norm while the periodic model attains 0 _._ 2% in the same norm, i.e., a factor 4 of improvement. Similar gains were found for the point-wise displacement norms. Unexpectedly, comparing with the HF case, DeepBND performs _y_ <sup>_DNS_</sup> = 24 and _Ny_ <sup>_DNS_</sup> _y_ <sup>_DNS_</sup> = 72, respectively. _x_ <sup>_DNS_</sup> _y_ _−_ 5) _×_ ( _N_ <sup>_DNS_</sup> Figure 18: Clamped bar scheme showing geometric dimensions and loads. The integration point is represented by ( _×_ ) and underlying HF cell centres by circles. Colours indicate the correspondence between the centres and respective window. 24 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 _y_ <sup>_DNS_</sup> = 7 and _Nx_ <sup>_DNS_</sup> Figure 19: Realisation of bar with _Ny_ <sup>_DNS_</sup> _x_ <sup>_DNS_</sup> = 28. <u>Absolute</u> <u>Error</u> <u>against</u> <u>DNS</u> <u>solution</u> <u>(</u> _<u>Ny</u>_ <sup>_DNS_</sup> <u>= 72)</u> DeepBND Periodic High-fidelity _∥_ ( _·_ ) _∥L_ 2(Ω) _∥_ ( _·_ )( x _A_ ) _∥_ 2 _∥_ ( _·_ )( x _B_ ) _∥_ 2 Norms (b) <u>Relative</u> <u>Error</u> <u>against</u> <u>DNS</u> <u>solution</u> <u>(</u> _<u>Ny</u>_ <sup>_DNS_</sup> <u>= 72)</u> DeepBND Periodic High-fidelity _∥_ ( _·_ ) _∥L_ 2(Ω) _∥_ ( _·_ )( x _A_ ) _∥_ 2 _∥_ ( _·_ )( x _B_ ) _∥_ 2 Norms (d) 10 <sup>_−_</sup> <sup>2</sup> 6 _×_ 10 <sup>_−_</sup> <sup>3</sup> 4 _×_ 10 <sup>_−_</sup> <sup>3</sup> 1 _._ 2 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1 _._ 15 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1 _._ 1 _×_ 10 <sup>_−_</sup> <sup>2</sup> 1 _._ 05 _×_ 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>2</sup> 9 _._ 5 _×_ 10 <sup>_−_</sup> <sup>3</sup> 9 _×_ 10 <sup>_−_</sup> <sup>3</sup> <u>Absolute</u> <u>Error</u> <u>against</u> <u>DNS</u> <u>solution</u> <u>(</u> _<u>Ny</u>_ <sup>_DNS_</sup> <u>= 24)</u> <u>DeepBND</u> Periodic High-fidelity _∥_ ( _·_ ) _∥L_ 2(Ω) _∥_ ( _·_ )( x _A_ ) _∥_ 2 _∥_ ( _·_ )( x _B_ ) _∥_ 2 Norms (a) <u>Relative</u> <u>Error</u> <u>against</u> <u>DNS</u> <u>solution</u> <u>(</u> _<u>Ny</u>_ <sup>_DNS_</sup> <u>= 24)</u> DeepBND Periodic High-fidelity _∥_ ( _·_ ) _∥L_ 2(Ω) _∥_ ( _·_ )( x _A_ ) _∥_ 2 _∥_ ( _·_ )( x _B_ ) _∥_ 2 Norms (c) 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> Figure 20: Comparison errors for DNS solution as reference for the clamped bar problem. even better, which shows that our approach does not only interpolate the HF targets, in the sense of averaging results taking close inputs, but it is also capable of learning more general relations associated to the whole assemble of data. 7 Concluding Remarks In this work, we have introduced a novel ML-based technique, so-called DeepBND, to predict more suitable BCs for multiscale problems. Exploiting the combination between ROM-RB and DNN, our method delivers physically admissible BCs and can learn from previous HF simulations. As result, numerical examples have shown that DeepBND reaches improvements in accuracy up to two orders of magnitude, keeping the same computational cost, compared to classical methods. While the construction of the DeepBND model might be computationally expensive (offline phase), we reached speed-up gains of approximately 60 times in the real-use FE <sup>2</sup> case (online phase) when compared to HF simulations, which justifies the fixed additional effort. Indeed, as seen in Algorithm 2, DeepBND method only adds one new step to the online phase, namely the DNN model evaluation, which is negligible in terms of additional 25 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 computational complexity concerning the standard methodologies. Consequently, DeepBND can be straightforwardly implemented in already existing FE <sup>2</sup> codes [29]. It is worth mentioning that our method presents clear advantages concerning FE <sup>2</sup> approaches with classical BCs and also those in which surrogate models replace the constitutive law. Concerning the former approach, as already discussed, the main asset is the computational speed-up by keeping similar accuracy. As for those using surrogate models, our method is naturally more precise since we still solve the physical problem. Indeed, DeepBND can be understood as an hybrid methodology, in the sense that it lies between the standard computational homogenisation with relatively large MDs and its complete replacement by surrogate models. Up to the best of authors’ knowledge, our approach is unique in the literature. Finally, it is worth remarking that although we have particularly focused on problems arising in multiscale solid mechanics, our method is sufficiently generic and remains essentially the same for other boundary value problems at the microscale. Other possible example of applications are porous media with random porosity fields or fluid mechanics with random obstacles. DeepBND can also tackle MDs with different kinds of heterogeneities, e.g., elliptical inclusions not necessarily distributed in grid, continuous varying properties and so forth, with the only constraint that larger datasets are needed as the number of parameters increases. 8 Acknowledgements This work was supported in part by the Swiss National Science Foundation under projects FNS-200021_197021 and 200021E-168311. References [1] M. Abadi, P. Barham, J. Chen, Z. Chen, A. Davis, J. Dean, M. Devin, S. Ghemawat, G. Irving, M. Isard, M. Kudlur, J. Levenberg, R. Monga, S. Moore, D.G. Murray, B. Steiner, P. Tucker, V. Vasudevan, P. Warden, M. Wicke, Y. Yu, and X. Zheng. Tensorflow: A system for large-scale machine learning. In _OSDI_, pages 265–283, 2016. [2] A. Abdulle, B. Engquist, and E. Vanden-Eijnden. The heterogeneous multiscale method. _Acta Numerica_, 21:1–87, 2012. doi: 10.1017/S0962492912000025. URL `https://doi.org/10.1017/S0962492912000025` . [3] A. Abdulle, D. Arjmand, and E. Paganoni. Exponential decay of the resonance error in numerical homogenization via parabolic and elliptic cell problems. _Comptes Rendus Mathematique_, 357:545–551, 6 2019. ISSN 1631073X. doi: 10.1016/j.crma.2019.05.011. [4] The authors. scikit-optimize : Sequential model-based optimization in python. `https://scikit-optimize.` `github.io/stable/`, 2020. [5] The authors. multiphenics - easy prototyping of multiphysics problems in fenics. `https://mathlab.sissa.` `it/multiphenics`, 2021. [6] A. Bensoussan, J.-L. Lions, and G. Papanicolaou. _Asymptotic Analysis for Periodic Structures_ . North-Holland, Amsterdam, 1978. [7] P.J. Blanco, P.J. Sánchez, E.A. de Souza Neto, and R.A. Feijóo. Variational foundations and generalized unified the ory of RVE-based multiscale models. _Archives of Computational Methods in Engineering_, 23:191–253, 2016. ISSN 1134-3060. doi: 10.1007/s11831-014-9137-5. URL `http://dx.doi.org/10.1007/s11831-014-9137-5` . [8] E.A. de Souza Neto, P.J. Blanco, P.J. Sánchez, and R.A. Feijóo. An RVE-based mutiscale theory of solids with micro-scale inertia and body force effects. _Mechanics of Materials_, 80:136–144, 2015. ISSN 0167-6636. doi: http://dx.doi.org/10.1016/j.mechmat.2014.10.007. URL `http://www.sciencedirect.com/science/` `article/pii/S0167663614001872` . [9] B. Eidel and A. Fischer. The heterogeneous multiscale finite element method for the homogenization of linear elastic solids and a comparison with the fe2 method. _Computer Methods in Applied Mechanics and Engineering_, 329:332–368, 2018. ISSN 0045-7825. doi: https://doi.org/10.1016/j.cma.2017.10.001. URL `https://www.` `sciencedirect.com/science/article/pii/S0045782517301895` . [10] F. Feyel. A multilevel finite element method (fe2) to describe the response of highly non-linear structures using generalized continua. _Computer Methods in Applied Mechanics and Engineering_, 192:3233–3244, 7 2003. ISSN 0045-7825. doi: 10.1016/S0045-7825(03)00348-7. [11] A. Fischer and B. Eidel. Convergence and error analysis of fe-hmm/fe2 for energetically consistent micro-coupling conditions in linear elastic solids. _European Journal of Mechanics, A/Solids_, 77:103735, 9 2019. ISSN 09977538. doi: 10.1016/j.euromechsol.2019.02.001. 26 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 [12] J.F. Geuzaine and C. Remacle. Gmsh: a three-dimensional finite element mesh generator with built-in pre- and post-processing. _International Journal for Numerical Methods in Engineering_, 79, 2009. [13] I. Goodfellow, Y. Bengio, and A. Courville. _Deep Learning_ . MIT Press, 2016. `http://www.deeplearningbook.` `org` . [14] I. Gühring, G. Kutyniok, and P. Petersen. Error bounds for approximations with deep relu neural networks in _w_ <sup>_s,p_</sup> norms. _arXiv:1902.07896_, 2 2019. URL `http://arxiv.org/abs/1902.07896` . [15] Z. Hashin and S. Shtrikman. A variational approach to the theory of the elastic behaviour of multiphase materials. _Journal_ _of_ _the_ _Mechanics_ _and_ _Physics_ _of_ _Solids_, 11:127–140, 3 1963. ISSN 0022-5096. doi: 10.1016/0022-5096(63)90060-7. [16] J. S. Hesthaven and S. Ubbiali. Non-intrusive reduced order modeling of nonlinear problems using neural networks. _Journal of Computational Physics_, 363:55–78, 6 2018. ISSN 0021-9991. doi: 10.1016/J.JCP.2018.02.037. [17] J.S. Hesthaven, G. Rozza, and B. Stamm. _Certified Reduced Basis Methods for Parametrized Partial Differential_ _Equations_ . Springer Briefs in Mathematics. Springer International Publishing, 2015. ISBN 978-3-319-22469-5. [18] C.F. Higham and D.J. Higham. Deep learning: An introduction for applied mathematicians *. _SIAM Review_, 61: 860–891, 2019. doi: 10.1137/18M1165748. URL `https://doi.org/10.1137/18M1165748` . [19] R. Hill. A self-consistent mechanics of composite materials. _Journal of the Mechanics and Physics of Solids_, 13(4):213 – 222, 1965. ISSN 0022-5096. doi: http://dx.doi.org/10.1016/0022-5096(65)90010-4. URL `http:` `//www.sciencedirect.com/science/article/pii/0022509665900104` . [20] G. Kutyniok, P. Petersen, M. Raslan, and R. Schneider. A theoretical analysis of deep neural networks and parametric pdes. _arXiv:1904.00377_, 3 2019. URL `https://arxiv.org/abs/1904.00377` . [21] J. Mandel. _Plasticité classique et viscoplasticité_ . Springer-Verlag, 1972. [22] V.M. Nguyen-Thanh, L. Trong, K. Nguyen, T. Rabczuk, and X. Zhuang. A surrogate model for computational homogenization of elastostatics at finite strain using high-dimensional model representation-based neural network. _International Journal for Numerical Methods in Engineering_, 2020. doi: 10.1002/nme.6493. [23] M. Ostoja-Starzewski. Material spatial randomness: From statistical to representative volume element. _Proba-_ _bilistic Engineering Mechanics_, 21:112–132, 4 2006. ISSN 02668920. doi: 10.1016/j.probengmech.2005.07.007. [24] A. Pinkus. Approximation theory of the mlp model in neural networks. _Acta Numerica_, 8:143–195, 1999. ISSN 14740508. doi: 10.1017/S0962492900002919. [25] D. Pivovarov, R. Zabihyan, J. Mergheim, K. Willner, and P. Steinmann. On periodic boundary conditions and ergod icity in computational homogenization of heterogeneous materials with random microstructure. _Computer Methods_ _in Applied Mechanics and Engineering_, 357:112563, 2019. ISSN 0045-7825. doi: https://doi.org/10.1016/j.cma. 2019.07.032. URL `https://www.sciencedirect.com/science/article/pii/S0045782519304281` . [26] A. Quarteroni, A. Manzoni, and F. Negri. _Reduced_ _Basis_ _Methods_ _for_ _Partial_ _Differential_ _Equations:_ _An_ _Introduction_ . Springer, 2016. [27] P. Ramachandran, B. Zoph, and Q.V. Le. Swish: A self-gated activation function. _arXiv:1710.05941_, 2017. [28] F. Regazzoni, L. Dedè, and A. Quarteroni. Machine learning for fast and reliable solution of time-dependent differential equations. _Journal of Computational Physics_, 397:108852, 11 2019. ISSN 0021-9991. doi: 10.1016/J. JCP.2019.07.050. [29] F. Rocha. micmacsfenics : fe2 simulations using fenics and multiphenics. `https://github.com/felipefr/` `micmacsFenics`, 2021. [30] F. Rocha, P.J. Blanco, P.J. Sánchez, and R.A. Feijóo. Multi-scale modelling of arterial tissue: Linking networks of fibres to continua. _Computer Methods in Applied Mechanics and Engineering_, 341:740–787, 2018. ISSN 00457825. doi: 10.1016/j.cma.2018.06.031. [31] F. Rocha, P.J. Blanco, P.J. Sánchez, E.A. de Souza Neto, and R.A. Feijóo. Damage-driven strain localisation in networks of fibres: A computational homogenisation approach. _Computers & Structures_, 255:106635, 10 2021. ISSN 0045-7949. doi: 10.1016/J.COMPSTRUC.2021.106635. [32] S. Saeb, P. Steinmann, and A. Javili. Aspects of computational homogenization at finite deformations: A unifying review from reuss’ to voigt’s bound. _Applied_ _Mechanics_ _Reviews_, 68:050801, 2016. ISSN 0003-6900. doi: 10.1115/1.4034024. [33] E. Sanchez-Palencia. _Homogenization method for the study of composite media_ . Springer, 1983. 27 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 [34] N. Dal Santo, S. Deparis, and L. Pegolotti. Data driven approximation of parametrized pdes by reduced basis and neural networks. _Journal_ _of_ _Computational_ _Physics_, 416:109550, 9 2020. ISSN 0021-9991. doi: 10.1016/J.JCP.2020.109550. [35] J. Schröder, T. Wick, S. Reese, P. Wriggers, R. Müller, S. Kollmannsberger, M. Kästner, A. Schwarz, M. Igel büscher, N. Viebahn, H. R. Bayat, S. Wulfinghoff, K. Mang, E. Rank, T. Bog, D. D’Angella, M. Elhaddad, P. Hennig, A. Düster, W. Garhuom, S. Hubrich, M. Walloth, W. Wollner, C. Kuhn, and T. Heister. A selection of benchmark problems in solid mechanics and applied mathematics. _Archives of Computational Methods in_ _Engineering_, 28(2):713–751, 2021. [36] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov. Dropout: A simple way to prevent neural networks from overfitting. _Journal_ _of_ _Machine_ _Learning_ _Research_, 15(56):1929–1958, 2014. URL `http://jmlr.org/papers/v15/srivastava14a.html` . [37] X. Yue and W. E. The local microscale problem in the multiscale modeling of strongly heterogeneous media: Effects of boundary conditions and cell size. _Journal of Computational Physics_, 222:556–572, 3 2007. ISSN 10902716. doi: 10.1016/j.jcp.2006.07.034. A Multiscale modelling (additional details) Here, for convenience, we provide some additional details concerning of the multiscale model of Section 2.1.2. For the interested reader, our presentation follows closely the Principle of Multiscale Virtual Power (PMVP) introduced in [8, 7], which can be seen as a generalised version of the Hill-Mandel Principle [21]. To fully characterise kinematically admissible fluctuations, yielding to definition of the Minimally Constrained Space for fluctuations in (4), we need to consider two kinematical compatibility hypotheses below: i) Compatibility of microscale displacements: u = _⟨_ u _µ⟩_ Ω _µ ._ (39) The equivalent restriction on the fluctuation follows from (3) straightforwardly as which yields ii) Compatibility of microscale strains: _⟨_ u _µ⟩_ Ω _µ_ = _⟨_ u _⟩_ Ω _µ_ + _ε_ _⟨_ y _⟩_ Ω _µ_ + _⟨_ u ˜ _µ⟩_ Ω _µ_ = u + _⟨_ u ˜ _µ⟩_ Ω _µ,_ _⟨_ u ˜ _µ⟩_ Ω _µ_ = 0 _._ _ε_ = _⟨_ _ε_ _µ_ ( u _µ_ ) _⟩_ Ω _µ ._ (40) The equivalent restriction on the fluctuation follows from (3) and using standard vector calculus identities _⟨_ _ε_ _µ_ ( u _µ_ ) _⟩_ Ω _µ_ = _⟨_ _ε_ _⟩_ Ω _µ_ + _⟨_ _ε_ _µ_ (˜ u _µ_ ) _⟩_ Ω _µ_ = _ε_ + _⟨_ u ˜ _µ ⊗_ <sup>_s_</sup> n _⟩∂_ Ω _µ,_ which yields <sup>4</sup> where n is the outward unit vector along _∂_ Ω _µ_ . _⟨_ u ˜ _µ ⊗_ <sup>_s_</sup> n _⟩∂_ Ω _µ_ = 0 _,_ Finally, to derive Problem 1, we enunciate the PMVP which states the virtual power balance between scales, as follows. Problem 4 (PMVP) _For a given_ _ε_ _∈_ R <sup>_d,d_</sup> _sym_ <sup>_d,d_</sup> _sym_ <sup>_, the pair_</sup> <sup>(</sup> <sup>_σ_</sup> <sup>_,_</sup> <sup>˜</sup> <sup>u</sup> <sup>_µ_</sup> <sup>)</sup> <sup>_∈_</sup> <sup>R</sup> <sup>_d,d_</sup> _sym_ <sup>_d,d_</sup> _sym_ <sup>_× Vµ_</sup> <sup>_is such that_</sup> _σ_ _·_ ˆ _ε_ = _⟨_ _σ_ _µ ·_ ˆ _ε_ _µ⟩_ Ω _µ,_ _∀_ _ε_ ˆ _∈_ R <sup>_d_</sup> _sym_ <sup>_×d_</sup> <sup>_d_</sup> _sym_ <sup>_×d_</sup> <sup>_,_</sup> <sup>˜</sup> <sup>v</sup> <sup>_µ_</sup> <sup>_∈_</sup> <sup>_Vµ._</sup> (41) _where_ ˆ _ε_ _µ_ = _ε_ ˆ + _ε_ _µ_ (˜ v _µ_ ) _and_ _σ_ _µ_ = C _µ_ ( _ε_ + _ε_ _µ_ (˜ u _µ_ )) _._ _The tensors_ _ε_ _and_ _σ_ _denote the macroscale strain and stress_ _respectively._ 4This constraint is valid if and only if the MD has no voids crossing _∂_ Ω _µ_ . On the contrary, a generalisation for this condition only accounting for integrals on the solid part of the boundary is necessary [30]. 28 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 As a result of the principle above we have the following variational consequences that constitute the microscale problem 1. Corrector problem: Taking ˆ _ε_ = 0 in (41), it yields _⟨_ _σ_ _µ ·_ ˆ _ε_ _µ_ (˜ v _µ_ ) _⟩_ Ω _µ_ = 0 _,_ _∀_ v ˜ _µ_ _∈_ _Vµ,_ which corresponds to (7). 2. Stress homogenisation: Taking v ˜ _µ_ = 0 in (41), it yields _σ_ _·_ ˆ _ε_ = _⟨_ _σ_ _µ ·_ ˆ _ε_ _⟩_ Ω _µ_ = _⟨_ _σ_ _µ⟩_ Ω _µ_ _·_ ˆ _ε_ _,_ _∀_ _ε_ ˆ _∈_ R _sym_ <sup>_d×d_</sup> _sym_ <sup>_d×d_</sup> <sup>_,_</sup> _⇒_ _σ_ = _⟨_ _σ_ _µ⟩_ _,_ which corresponds to (8). B _µ_ Remark on the admissibility of _V_ <sup>_N_</sup> Let us retake the discussion initiated in Remark 6 . Note that the functions of a given RB are generally such that _⟨_ _ξ_ _i ⊗_ n _⟩∂_ Ω _Rµ̸_ <sup>=</sup> <sup>0</sup> <sup>, for all</sup> <sup>_i_</sup> <sup>= 1</sup> <sup>_, . . ., Nrb_</sup> <sup>.</sup> <sup>Recalling the definition</sup> <sup>_V_</sup> _µ_ <sup>_N_</sup> <sup>in (27), from the former observation we have</sup> that _V_ <sup>_N_</sup> _µ_ <sup>, which renders Problem 3, just in principle, not consistent with (7).</sup> <sup>However, Problem 3 is still valid,</sup> _̸_ _µ_ <sup>in (27), from the former observation we have</sup> that _Vµ_ <sup>_N_</sup> _̸_ _µ_ <sup>_N_</sup> _⊂_ _Vµ_ <sup>_M_</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>) into a subset of</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> _̸_ that _Vµ_ <sup>_N_</sup> _⊂_ _Vµ_ <sup>_M_</sup> <sup>, which renders Problem 3, just in principle, not consistent with (7).</sup> <sup>However, Problem 3 is still valid,</sup> since it derives from Problem 2 using well grounded variational arguments. To transform _Vµ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>) into a subset of</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> <sup>,</sup> we should consider rearranging u ˜ _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>) as follows</sup> ˜ _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>) as follows</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)(</sup> <sup>y</sup> <sup>) = (˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> _∂_ Ω <sup>_R_</sup> _µ_ <sup>y</sup> <sup>) +</sup> u ˜ _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)(</sup> <sup>y</sup> <sup>)</sup> <sup>_−_</sup> - u ˜ _µN_ <sup>_⊗_</sup> <sup>n</sup> - u ˜ _µN_ <sup>_⊗_</sup> <sup>n</sup> - u ˜ _µN_ <sup>_⊗_</sup> <sup>n</sup> _∂_ Ω <sup>_R_</sup> _µ_ <sup>_._</sup> (42) _µ_ <sup>_,_</sup> for y _∈_ Ω <sup>_R_</sup> _∂_ Ω <sup>_R_</sup> _µ_ _µ_ <sup>_,_</sup> for y _∈_ Ω <sup>_R_</sup> _∂_ Ω <sup>_R_</sup> _µ_ <sup>and</sup> <sup>(˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> _µ_ _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_′_</sup> <sup>_∈_</sup> <sup>_V_</sup> <sup>_M_</sup> _µ_ _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_′_</sup> <sup>_∈_</sup> <sup>_V_</sup> <sup>_ZA_</sup> _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_′_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>:=</sup> <sup>u</sup> <sup>˜</sup> _µ_ <sup>_N_</sup> _µ_ and Defining _ε_ ˜( p ) := - u ˜ _µN_ <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_⊗_</sup> <sup>n</sup> <sup>_′_</sup> _i_ <sup>:=</sup> <sup>_ξ_</sup> _i_ <sup>_−⟨_</sup> <sup>_ξ_</sup> _i_ <sup>_⊗_</sup> <sup>n</sup> <sup>_⟩_</sup> _∂_ Ω _µ_ <sup>_R_</sup> <sup>y</sup> <sup>_∈_</sup> <sup>_L_</sup> <sup>2(</sup> <sup>_∂_</sup> <sup>Ω</sup> <sup>_R_</sup> _µ_ _µ_ <sup>_N_</sup> <sup>(</sup> <sup>p</sup> <sup>)(</sup> <sup>y</sup> <sup>)</sup> <sup>_−_</sup> <sup>_ε_</sup> <sup>˜(</sup> <sup>p</sup> <sup>)</sup> <sup>y</sup> <sup>,</sup> <sup>we</sup> <sup>can</sup> <sup>see</sup> <sup>that</sup> <sup>(˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> _∂_ Ω <sup>_R_</sup> _N_ <sup>_′_</sup> _rb_ <sup>=</sup> <sup>_{_</sup> <sup>_ξ_</sup> <sup>_′_</sup> _i_ <sup>_R_</sup> _µ_ <sup>=</sup> <sup>0</sup> <sup>, so (˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> satisfies �(˜ u _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_′_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_⊗_</sup> <sup>n</sup> _µ_ by construction. Applying the very same idea to each of RB _ξ_ _i_, <sup>_M_</sup> <sup>_R_</sup> _µ_ <sup>)</sup> <sup>_}_</sup> <sup>, yielding to</sup> _i_ = 1 _, . . ., Nrb,_ we define the auxiliary basis _B_ <sup>_′_</sup> _Nrb_ _i_ =1 ( _Vµ_ <sup>_N_</sup> <sup>)</sup> <sup>_∗_</sup> <sup>(</sup> <sup>p</sup> <sup>) =</sup> _η_ _∈_ _Vµ_ <sup>_M_</sup> <sup>;</sup> <sup>_T_</sup> _∂_ Ω <sup>_R_</sup> _µ_ <sup>_η_</sup> <sup>=</sup> _i_ [ _N_ ( p )] _i_ _ξ_ <sup>_′_</sup> _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_′,_</sup> (43) _i_ = _Vµ_ <sup>_L_</sup> _µ_ <sup>_L_</sup> <sup>+ (˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> such that ( _Vµ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_∗_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_⊂_</sup> <sup>_V_</sup> _µ_ <sup>_M_</sup> _µ_ <sup>_M_</sup> <sup>.</sup> <sup>It is also useful to rewrite (3) as follows</sup> _µ_ <sup>0</sup> <sup>+ ˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> _µ_ <sup>0</sup> <sup>+ (˜</sup> <sup>u</sup> _µ_ <sup>_N_</sup> _µ_ <sup>_N_</sup> <sup>)</sup> <sup>_′,_</sup> (44) u _µ_ ( y ) = u + _ε_ y + ˜ u _µ_ <sup>0</sup> _µ_ <sup>_N_</sup> <sup>=</sup> <sup>u</sup> <sup>+ (</sup> <sup>_ε_</sup> <sup>+ ˜</sup> <sup>_ε_</sup> <sup>)</sup> <sup>y</sup> <sup>+ ˜</sup> <sup>u</sup> _µ_ <sup>0</sup> where the dependence on p has been omitted for the sake of simplicity. Note that the final product in the process of converting _V_ <sup>_N_</sup> _µ_ to ( _V_ <sup>_N_</sup> _µ_ is an additional term added into the homogenised macroscale strain. _µ_ <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_̸ ⊂_</sup> <sup>_V_</sup> <sup>_M_</sup> _µ_ <sup>(</sup> <sup>p</sup> <sup>))</sup> <sup>_∗_</sup> <sup>_⊂_</sup> <sup>_V_</sup> <sup>_M_</sup> The variational formulation of Problem 3 should be modified accordingly, resulting in the problem:such that find u ˜ _µ_ _∈_ ( _Vµ_ ( p )) <sup>_∗_</sup> _µ_ to ( _V_ <sup>_N_</sup> <sup>_M_</sup> _µ_ <sup>_N_</sup> _µ_ _µ_ <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_̸ ⊂_</sup> <sup>_V_</sup> <sup>_M_</sup> <sup>_N_</sup> _µ_ _µ_ <sup>(</sup> <sup>p</sup> <sup>))</sup> <sup>_∗_</sup> <sup>_⊂_</sup> <sup>_V_</sup> <sup>_M_</sup> _a_ <sup>_′_</sup> ( p ; ˜ u _µ,_ v ) = _b_ <sup>_′_</sup> ( p ; v ) _∀_ v _∈_ _Vµ_ <sup>_L,_</sup> (45) where _a_ <sup>_′_</sup> ( p ; ˜ u _µ,_ v ) = (C _µ_ ( p ) _∇_ <sup>_s_</sup> u ˜ _µ, ∇_ <sup>_s_</sup> v ) _L_ 2(Ω _µR_ <sup>)</sup> <sup>=</sup> <sup>_aR_</sup> <sup>(</sup> <sup>p</sup> <sup>; ˜</sup> <sup>u</sup> <sup>_µ,_</sup> <sup>v</sup> <sup>)</sup> <sup>_,_</sup> (46a) _b_ <sup>_′_</sup> ( p ; v ) = _−_ (C _µ_ ( p )( _ε_ + ˜ _ε_ )( p ) _, ∇_ <sup>_s_</sup> v ) _L_ 2(Ω _Rµ_ _Rµ_ <sup>)</sup> <sup>=</sup> <sup>_bR_</sup> <sup>(</sup> <sup>p</sup> <sup>;</sup> <sup>v</sup> <sup>)</sup> <sup>_−_</sup> <sup>(C</sup> <sup>_µ_</sup> <sup>(</sup> <sup>p</sup> <sup>)˜</sup> <sup>_ε_</sup> <sup>(</sup> <sup>p</sup> <sup>)</sup> <sup>_, ∇s_</sup> <sup>v</sup> <sup>)</sup> <sup>_L_</sup> <sup>2(Ω</sup> _µ_ <sup>_R_</sup> _µ_ <sup>_R_</sup> <sup>)</sup> <sup>_._</sup> (46b) In practical terms, Problem 3 can be still solved with no modifications. The homogenised stress also remains unchanged since the final microscale displacements in both formulations are the same by comparing both sides of (44). C Additional plots (training) Here we provide, for the sake of completeness, additional plots concerning the training of the different architectures of Section 5. 29 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 _<u>rb</u>_ <sup><u>= 10</u></sup> Loss <u>Minimisation</u> <u>-</u> <u>Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> Training Loss Validation Loss 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> 0 1000 2000 3000 4000 5000 Epochs (a) For _Nrb_ <sup>_′_</sup> <sup>= 10.</sup> <u>Loss</u> <sup>2</sup> <u>Minimisation</u> <u>-</u> <u>Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>2</sup> _<u>rb</u>_ <sup><u>= 20</u></sup> <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (b) For _Nrb_ <sup>_′_</sup> <sup>= 20.</sup> L <sup>2</sup> <u>oss</u> <u>Minimisation</u> <u>-</u> <u>Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>2</sup> L <sup>2</sup> <u>oss</u> <u>Minimisation</u> <u>-</u> <u>Axial</u> <u>Model</u> _<u>N</u>_ <sup>(1)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>2</sup> _<u>rb</u>_ <sup><u>= 40</u></sup> <sup>_<u>′</u>_</sup> _<u>rb</u>_ <sup><u>= 80</u></sup> <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (c) For _Nrb_ <sup>_′_</sup> <sup>= 40.</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (d) For _Nrb_ <sup>_′_</sup> <sup>= 80.</sup> Figure 21: Historic for the loss function minimisation in Axial model _N_ <sup>(1)</sup> . Training loss evaluated with regularisation (dropout and _l_ <sup>2</sup> ), while validation loss in prediction mode (regularisation disabled). 30 A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS - OCTOBER 22, 2021 _<u>rb</u>_ <sup><u>= 10</u></sup> Loss <u>Minimisation</u> <u>-</u> <u>Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> _<u>rb</u>_ <sup><u>= 20</u></sup> Loss <u>Minimisation</u> <u>-</u> <u>Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss <u>Validation</u> <u>Loss</u> 0 1000 2000 3000 4000 5000 Epochs 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss <u>Validation</u> <u>Loss</u> 0 1000 2000 3000 4000 5000 Epochs (a) For _Nrb_ <sup>_′_</sup> <sup>= 10.</sup> _<u>rb</u>_ <sup><u>= 40</u></sup> Loss <u>Minimisation</u> <u>-</u> <u>Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> (b) For _Nrb_ <sup>_′_</sup> <sup>= 20.</sup> _<u>rb</u>_ <sup><u>= 80</u></sup> Loss <u>Minimisation</u> <u>-</u> <u>Shear</u> <u>Model</u> _<u>N</u>_ <sup>(3)</sup> <u>-</u> _<u>N</u>_ <sup>_<u>′</u>_</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (c) For _Nrb_ <sup>_′_</sup> <sup>= 40.</sup> 10 <sup>_−_</sup> <sup>3</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>5</sup> Training Loss Validation Loss 0 1000 2000 3000 4000 5000 Epochs (d) For _Nrb_ <sup>_′_</sup> <sup>= 80.</sup> Figure 22: Historic for the loss function minimisation in Shear model _N_ <sup>(3)</sup> . Training loss evaluated with regularisation (dropout and _l_ <sup>2</sup> ), while validation loss in prediction mode (regularisation disabled). 31

섹션 본문 287문단 · 119,133자

(제목 없음)

1Effective properties of materials with random heterogeneous structures are typically determined by homogenising the mechanical quantity of interest in a window of observation. The entire problem setting encompasses the solution of a local PDE and some averaging formula for the quantity of interest in such domain. There are relatively standard methods in the literature to completely determine the formulation except for two choices: i) the local domain itself and the ii) boundary conditions. Hence, the modelling errors are governed by the quality of these two choices. The choice i) relates to the degree of representativeness of a microscale sample, i.e., it is essentially a statistical characteristic. Naturally, its reliability is higher as the size of the observation window becomes larger and/or the number of samples increases. On the other hand, excepting few special cases there is no automatic guideline to handle ii). Although it is known that the overall effect of boundary condition becomes less important with the size of the microscale domain, the computational cost to simulate such large problem several times might be prohibitive even for relatively small accuracy requirements. Here we introduce a machine learning procedure to select most suitable boundary conditions for multiscale problems, particularly those arising in solid mechanics. We propose the combination Reduced-Order Models and Deep Neural Networks in an offline phase, whilst the online phase consists in the very same homogenisation procedure plus one (cheap) evaluation of the trained model for boundary conditions. Hence, the method allows an implementation with minimal changes in existing codes and the use of relatively small domains without losing accuracy, which reduces the computational cost by several orders of magnitude.A PREPRINT SUBMITTED TO JOURNAL OF COMPUTATIONAL PHYSICS -OCTOBER 22, 2021As for of the local problem, also known as microscale or corrector problem, besides very specific situations, the choice of the boundary conditions (BCs) cannot be exactly determined. Depending on the BCs assumed, homogenised quantities can be under or overestimated, yielding to the so-called Reuss' and Voigt's estimates, the lower and upper bounds, respectively[32]. In problems involving strain localisation in solids, such choice can be even more critical, affecting the directions of nucleation bands[31]. The most commonly known approach to mitigate the sensibility with the BCs choice is by artificially assuming periodic BCs (even for non-periodic cells) and/or by increasing the microscopic domain size[37]. However, such an approach also entails larger computational costs in the context of numerical approximations. Recently, some improvement attempts have been proposed in this regard, as for example by adding specific parabolic and source terms to the original correct problem[3], and by a generalisation of periodic BCs of stochastic media[25].In situations of limited physical guidance, as such case of choosing the most suitable BC, data-driven and machine learning (ML) approaches are known to be useful in providing insights. Among several ML techniques, Deep Neural Networks (DNN) is known to be a universal approximator for several activation functions[14,24], also established in the context of parametrised PDEs[20]. In this contribution, we present an attempt to design a ML strategy to accurately predict BCs for the local problems in multiscale modelling. In particular our approach relies on coupling the predictor ability of a deep neural network to Reduced-Order Modelling (ROM) using the Reduced Basis Method (RB-ROM) approach[26,17]. Indeed RB-ROM is used to reduce the output size of the DNN and to guide the choice of the loss function. The combination of RB-ROM and DNN has already been proved effective in the context of physically-based ML techniques for PDEs[16,28,34].

Introduction

2Multiscale methods can be regarded as theories that link the macroscopic behaviour of continua to phenomena occurring at smaller spatial scales, a situation found in a large range of applications such as porous media or composites, to name a few. Early developments in solid mechanics date back at least from the mid-twentieth century, with the estimation of macroscopic properties of heterogeneous materials, using the self-consistent approach [15,19,21], and methods based on the asymptotic analysis of partial differential equations with periodic coefficients [6,33]. Despite methodological differences, common across the range of different approaches is the fact that macroscopic continuum quantities, so-called homogenised, are invariably linked to their microscale counterpart fields upon a solution of an auxiliary local problem defined at microscale domain followed by some kind of averaging process.

3The manuscript is organised as follows: in Section 2 we introduce necessary concepts for the sake of completeness purposes, in particular the basic background on multiscale solid mechanics and reduced-basis for parametrised PDEs are provided in Section 2.1 and 2.2, respectively; Section 3 deals with the formulation of the proposed method, where special attention is devoted to cast the problem of Multiscale Solid Mechanics into the Parametrised PDE format in Section 3.1 that, among other steps, presents the key idea of the method of finding the reduced-order description of boundary (Section 3.1.3). The section ends with an useful overview of the method is Section 3.2. In Section 4 we propose a novel physically inspired DNN architecture tailored to exploit particular physical symmetries in the reduced-basis generation (Section 4.2). Finally, Section 5 and Section 6 are dedicated to the numerical implementation of the proposed methodology, concerning dataset construction, DNN model training, and relevant numerical examples in coupled micro-macro simulations, respectively.

Preliminaries

4As already commented, one of the main goals of this section is to set the general context of the computational homogenisation for random media, here specialised for multiscale solid mechanics (Section 2.1), which is instrumental to the presentation of our method (Section 3). Moreover, the second goal is to review the reduced-basis setting for parametrised PDEs (Section 2.2), which can skipped by an expert reader.

Multiscale Solid Mechanics

5In this section, we review the basic equations of computational homogenisation in multiscale solid mechanics. The literature in this realm is vast and dates back to the '70s with the postulation of the cornerstone Hill-Mandel Macro-homogeneity Principle [19,21]. More recently, emerging from the applied mathematical community, the so-called Heterogeneous Multiscale Method (HMM) [2] has brought significant new insights into the field. Although these two methods have independent points of departure at the first sight, it has been shown that the resulting models are coincident [9,11]. Hence our method can be applied to both methodologies. Our presentation follows closely [8,7], that provides a natural mathematical framework for the formulation of our method. Additional details that are not necessary to follow the manuscript are included in Appendix A, for the sake of completeness.

6Before digging into the formulation itself, let us consider the following conventions. As usual, the unit vectors {e i } d i=1 refer to the canonical basis for R d . We also use the font convention a ∈ R d , A ∈ R d,d , A ∈ R d,d,d,d to discern between vectors, second-and fourth-order tensors, respectively. Regular type face fonts are always used to denote components (or scalars) in cartesian coordinates, e.g. a = a i e i , A = A ij e i ⊗ e j and so-forth (Einstein's summation convention applied). Space R d,d sym denotes symmetric real-valued second-order tensors. Finally, we also consider the following operations:

7a ⊗ s b :

8In the following, we present the multiscale solid mechanics computational homogenisation framework, starting with the macroscale followed by the microscale model.

Setting of the homogenisation problem

9Let us consider Ω ⊂ R d , d = 2 or 3, the domain in which the physical problem of interest is defined as shown in the left-hand side of Figure 1. Thereafter, we refer to it as the macroscale domain, whose characteristic size is L, as opposed the to microscale domains, displayed on the remaining columns of Figure 1, whose size L µ is in the same other of the magnitude of the length-scale of material properties heterogeneities. For the sake of simplicity, the example depicted is a composite material with two phases, the matrix (in light grey) and circular inclusions (in dark grey), although more general structures for the heterogeneity are also allowed.

10It is important to remark that the length of heterogeneities can be arbitrary small, posing computational difficulties if one is interested in solving such problem up to that scale. Notwithstanding, it is well established in the literature that in the scale separation limit, i.e.

11Lµ L 1, the original problem with (fast-)varying parameters can be replaced by the so-called homogenised problem [6]. Indeed, the homogenised problem have the very same mathematical nature as the original at hand, but with effective, so-called homogenised, coefficients. The very process of finding such coefficients is called homogenisation, which encompasses the solution of an auxiliary problem, known as corrector problem or simply microscale problem, solved in the microscale domain, and a posterior averaging scheme using its solution, both established in Section 2.1.2 for our problem.

12In the specific setting of this work, we consider as macroscale (or homogenised) problem a standard solid continuum mechanics model in the infinitesimal strain regime. We are interested in solving a quasi-static mechanical equilibrium problem, in which the displacement vector field u : Ω → R d is obtained as the solution to the equilibrium problem once suitable BCs and constitutive equations are provided. Associated with the field u, the symmetric gradient tensor field ε := ∇ s u : Ω → R d,d sym is the strain measure of choice. We adopt the linear elasticity constitutive model, hence the Cauchy stress tensor σ ∈ R d,d sym is given through the Hookean law σ = Cε, where C ∈ L 2 (Ω) d,d,d,d is a fourth-order positive-definite elastic tensor, with symmetries C ijkl = C jikl = C ijlk = C klij . In the context of this work, we aim at obtaining C via the homogenisation procedure. Using the notation of the left part of Figure 1, the macroscale problem is read as below 2

13where ∂Ω D and ∂Ω N are the Dirichlet and Neumann boundaries, respectively, forming partition of ∂Ω, with the associated prescribed displacementū D and tractiont . It is worth noticing that the computational implementation via FEM of the above problem follows standard procedures, apart from the evaluation of the σ (or C) at the integration point level. For each integration point, there is an associated microstructure which should be coupled kinematically and energetically with the macroscale quantities at that point. This defines the corrector problem, which however lacks boundary condition information that needs to be chosen properly. This choice lies behind the very idea of the proposed method, to be explored in Section 3.

Micro-macro coupling

14For each macroscale (integration) point x ∈ Ω we associate a microscale domain (MD) Ω µ ⊂ R d 3 . It is considered that L µ /L 1, being L and L µ the characteristic lengths related to the macroscale and microscale, respectively. The 2 For the sake of simplicity, but without loss of generality, we are disregarding body forces (see [8]). 3 We decided to use the acronym MD, instead of Representative Volume Element (RVE), to avoid discussions of statistical nature that go beyond the scope of this work. Notwithstanding, for most practical considerations MD and RVE can be understood as synonyms. Other possible nomenclature, preferred by some authors to avoid this confusion, is SVE (Statistical Volume Element) [23]. characteristic size L µ is chosen such that Ω µ should have meaningful numbers and type of material heterogeneities but also keeping the compromise in terms of computational cost. Thereafter, for the sake of simplicity, we use the notation u = u(x), ε = ε(x) and σ = σ(x), to represent point-valued vectors or tensors at a point x ∈ Ω, rather than vector or tensor fields in Ω. On the other hand, objects associated with Ω µ are denoted by the subindex µ.

15We also consider the notation · Ωµ = 1 |Ωµ| Ωµ (·) dΩ µ , · ∂Ωµ = 1 |Ωµ| ∂Ωµ (·) d∂Ω µ to denote microscale domain and boundary averages respectively. Also, we consider a local coordinate system at Ω µ , with points denoted y ∈ Ω µ and such that Ωµ ydΩ µ = 0 (centred at the centroid). Accordingly, the symmetric gradient operator in the microscale coordinates becomes ε µ (·) := ∇ s y (·). The basic idea of the multiscale mechanics approach is to be able to describe the microscopic displacement u µ : Ω µ → R d which is related to the macroscale kinematics but not entirely determined by it. We assume that u and ε dictate affine deformations at the microscale while the so-called microscale displacement fluctuations field u µ : Ω µ → R d (supposedlyũ µ ∈ [H 1 (Ω µ )] d ) is responsible for higher-order terms. This yields to the decomposition u µ (y) = u + εy +ũ µ (y), ∀y ∈ Ω µ .

16Following some natural physical constraints (see Appendix A for the interested reader), fluctuationsũ µ should live in

17the so-called Minimally Constrained Space for fluctuations, also known as uniform traction model. Variations of this model are possible considering subspaces of V M µ . Remarkably, popular models (subspaces) in the literature are

18where the notation (·) ± denotes opposite boundary/points, e.g., left(-)/right(+) or bottom(-)/top(+) in a unit square Ω µ . Figure 2 depicts the kinematical effect of the different classical models, where V T µ constrain the admissible displacements to affine transformations, whilst in V L µ just the boundary deforms affinely and models V M µ and V P µ allow non-affine displacements on ∂Ω µ . Excepting the space V T µ , the other three classical spaces will be useful for different reasons in the proposed method. It is worth noticing that V L µ ⊂ V P µ ⊂ V M µ , where V L µ and V M µ are known to deliver upper and lower bounds in terms of homogenised stress respectively [37]. In turn, in the absence of physical guidance, V P µ is the standard choice even if the microstructure is not periodic since it delivers a more balanced response. In this work, we seek an affine subspace V µ ⊂ V M µ that outperforms V P µ , by exploiting a priori knowledge provided by RB-ROM and ML techniques. For convenience, thereafter we denote simply as V µ ⊂ V M µ , the choice of one of these subspaces. The notation V µ (Ω µ ) may be used to avoid ambiguity in the domain of definition.

19It is also helpful for the subsequent sections to introduce an auxiliary space V ZA µ (from zero-average) as

20which differs from V M µ only by relaxing the restriction on the boundary. From the definition V M µ ⊂ V ZA µ . In terms of material constitutive behaviour at microscale, we also consider a Hookean material characterised by the fourth-order micro-elasticity tensor C µ ∈ L 2 (Ω µ ) d,d,d,d positive-definite and with the symmetries (C µ ) ijkl = (C µ ) jikl = (C µ ) ijlk = (C µ ) klij , which defines the microscopic stress state as σ µ = C µ ε µ (u µ ).

21As result of balance of virtual powers in macro-and microscale (see details in Appendix A), the corrector (or microscale equilibrium) problem and the homogenisation read as follows.

22Problem 1 (Microscale) Given ε ∈ R d,d sym , solve: C(I) Corrector (or microscale equilibrium) : findũ µ ∈ V µ such that

23C(II) Stress homogenisation: letũ µ ∈ V µ be the solution of (7), then

24Instead of computing the stress homogenisation through (8), it is convenient to obtain the homogenised elasticity tensor C and then evaluate σ = Cε. This can be easily performed by solving Problem 1 replacing ε by the unitary strains E kl = e k ⊗ s e l , with k, l = 1, . . . , d, and then averaging as follows

25where andũ E kl µ denotes the solution of (7) for a given ε = E kl .

26Remark 1 As already commented, the theory developed so far is consistent for any choice of V µ ⊂ V M µ . Moreover, variationally, we are also allowed to choose different subsets of V M µ to work as trial set or test spaces. This property is explored in Section 3.1 to reduce the MD size of problem.

27Remark 2 As already commented, the choice of BCs is not readily defined in the case of random media. The only case in which this choice is straightforward if for periodic cells, i.e. periodic BCs. Particularly, the material is periodic if we can identify a microscale domain which is repeated throughout (unique up to a translation). If microstructures are not periodic, the corrector problem, although valid and useful, is inexact for several reasons as discussed next.

Remark 3

28It is worth noticing that Problem 1 does not depend on the macroscale displacement u itself, but rather on its gradient, already taken into account with ε. As consequence, in terms of macroscale kinematical dependence, σ is invariant to u and only depends on ε. In other words, the zero-average constraint in (4) has merely the role of eliminating rigid-body movements and can be replaced by any other equivalent strategy. We use this property in Section 3.1. The dependence with u is important in dynamics problems and for non-uniform body forces at the macroscale [8].

29Remark 4 Instead of adopting displacement fluctuationsũ µ as primal variables, some authors prefer adopting the full microscale displacement u µ [32], which is an equivalent framework. Nevertheless, the formulation in terms ofũ µ is convenient since the kinematical constraints become homogeneous.

Reduced Basis Method for Parametrised PDEs

30In this section, we aim at providing fundamental concepts of the RB-ROM technique for parametrised PDEs. The presentation focuses on a generic problem to set a suitable notation before linking it to the specific PDE concerned, which is the focus of Section 3.1. For a deeper understanding of the method, we refer to [17,26].

31Consider a vector space W, where the solutions of a parametrised PDE live (in our case a multiscale solid mechanics boundary value problem described in Section 2.1), equipped with the inner product (·, ·) W with the induced norm · W . Let P ⊂ R Np be a manifold of admissible parameters and let L : P → W be the mapping from parameters onto the solutions of the parametrised PDE at hand. Let P = {p (i) ; i = 1, . . . , N s ∈ P} be a set containing N s samples of P, so-called sampling set, and the associated images upon L, so-called snapshots, collected in the set S := L(P) = {w(p (i) ) = L(p (i) ) ∈ W; p (i) ∈ P, i = 1, . . . , N s }.

32Note that span S is an approximation of L(P), which becomes better accordingly to how well P samples P and depends upon the complexity of the mapping L. We are interested in finding the orthonormal basis B N rb := {ξ i ∈ span S} N rb i=1 , with N rb << N s , so-called Reduced Basis (RB), which is optimal in the sense that among all possible basis choices, B N rb is chosen such that 1

33ξ i is the orthogonal projection of a function on the space spanned by the RB.

34This task can be performed by the Proper Orthogonal Decomposition (POD) procedure detailed in Algorithm 1, yielding the POD-error

35which is related the ordered eigenvalues λ j , for j = 1, · · · , N s , of the correlation matrix defined in (11). The size N rb is selected to attain a given tolerance tol POD ∈ (0, 1) in terms of relative POD-errors.

36In the remaining of the manuscript, we target an RB representation of the traces of solutions on an internal boundary Γ (properly specified later). Therefore we always set W = [L 2 (Γ)] d with the [L 2 (Γ)] d -inner product as our ambient Hilbert space.

37Remark 5 Note that POD procedure format in Algorithm 1 is independent of discretisation. As result, the RB can be obtained even using snapshots with heterogeneous discretisation. Just for computational purposes, e.g., speed-up calculations, we use coincident meshes on ∂Ω R µ (see Section 5).

38Given S, tol POD ∈ (0, 1), do: 1. Correlation matrix:

392. Eigenvalues analysis:

40where the order λ 1 ≥ λ 2 ≥ · · · ≥ λ Ns is assumed. 3. Basis determination: The i-th basis vector is constructed as

414. RB construction: choose the first N rb << N s such that 1 −

42.

43Algorithm 1: Proper Orthogonal Decomposition procedure to obtain the Reduced Basis with a given error tolerance.

Formulation of the method

44Before formulating the method itself, it is worth remembering that in order to have a computable microscopic cell problem, we need to truncate a problem posed essentially in an infinite domain, intrinsically connected to the choices below:

451. Boundary condition: As already commented, there is no inherently correct boundary condition to the corrector problem apart from periodic geometries. Notwithstanding, the error arising from the artificial imposition of BCs fades according to the MD size [37].

462. Microscale domain size: regarding the window of observation as a realisation of an underlying random variable that dictates the microstructure, the larger is such window, the better the heterogeneities are sampled. As result, as the microscale domain gets larger, the homogenised coefficients tend to the infinite infinite cell values.

47Concerning the microscale domain size decision, we have to leverage two competing characteristics, namely the computational cost and the accuracy in the two senses above. The remaining option to increase the accuracy without interfering the computational cost is improving the BCs choice. Therefore, the main contribution of this work is to bring errors due to BCs choices in small MDs down to the same levels of larger domains.

48The very central rationale behind the method is the reduction of the computational domain in the local problem, as depicted on the rightmost column of Figure 1. First, according to the final accuracy desired and the computational effort we can afford, two given sizes of microscale domains should be chosen (see Figure 3). The larger cell is denoted Ω H µ and is used for the computation of reference solutions, so-called High-Fidelity (HF) solutions, by using a chosen classical BC. On the other hand, Ω R µ is the smaller MD (reduced) where the corrector problem is solved with an enriched, non-classical, BC. Instrumental for formulation of the admissible space that encodes such novel BC is the parametrised PDE setting, introduced in the following section. Such a structure is an essential step towards the use RB-ROM framework, which justification is also provided along this section.

Reformulation of the multiscale problem in terms of parametrised PDE

49In this section, we aim at providing a parametrised PDE structure to the corrector problem for solid mechanics. It is worth mentioning that the conversion of the general problem into its parametrised format encompasses necessarily a simplification. The practical effect is a new problem with a finite number of parameters that spans a controlled scenario of randomness, representative of the problem at hand. However, the general idea of the method remains true independently of the particular parametrisation chosen.

50We are interested in approximating the fluctuationũ H µ , solution of Problem 1 in an enlarged domain Ω H µ , which depends on some parameters p ∈ P ⊂ R Np , with N p the number of parameters. Noticing that the triple (ε, C µ , V µ ) fully defines the latter problem, the role of p is to parametrise each of these objects, as respectively detailed in the following subsections. Importantly, we reserve the word parameter, and notation p, to designate non-fixed properties, i.e., those that should be sampled. For other numbers helping to define the problem, but that are fixed, we omit their explicit dependence. Importantly, the space V µ stands for different spaces depending if the problem is formulated on

51, leading to Problem 1 rewritten as follows.

52where

53v| Ω H µ \Ω R µ = 0, inducing the following trial set for the fluctuations

54where the dependence on p is made explicitly and

55Using the previously defined spaces, the constrained version of Problem 2 on Ω R µ read as:

56where

57Importantly, we should notice thatũ H µ | Ω R µ =ũ R µ holds by construction and, as already commented in Remark 3, the homogenised stress is invariant upon translations. Therefore, it is convenient to define

58where

59Notice that Problem 3 can be rephrased replacing V µ (p)(Ω R µ ) by V * µ (p)(Ω R µ ). As commented, the new solution is mechanically equivalent (leads to the same homogenised stress). As a result, the only information needed coming from the solution of Problem 2 is its trace to the internal boundary ∂Ω R µ and the necessary translation to obtain a zero-averaged fluctuation field in Ω R µ . For convenience, we rearranged this operation in the goal solution w, as above. The key idea of proposed method is the following: Instead of solving the larger Problem 2 to obtain w, we aim at obtaining an approximation w N by a method that combines RB-ROM and DNN. This approximation yields to the definition of the novel set V N µ (Ω R µ )(p) (or just V N µ ). Our final goal is to show that V N µ outperforms the classical choices of BCs.

60Finally, before proceeding with the parametrisation of C µ and ε in Sections 3.1.1 and 3.1.2, respectively, it is useful to assume the split

61In our context, parametrising the constitutive law is intrinsically linked with the parametrisation of microstructural geometrical features of material constituents. In this work, since the number of parameters have a direct impact on the quality of sampling, if we want to keep the number of samples limited, we aim at keeping the geometry and number of materials simple. ∩ Ω H,2 µ = ∅, i.e., a partition of Ω H µ (see Figure 3). Each of these materials are linear isotropic and thus modelled by the Hookean law characterised by the two spatially varying Lamé coefficients λ µ and G µ , or conversely the pair Young modulus and Poisson ratio. It reads

62Let us assume λ µ and G µ are linked with Ω H,1 µ

63and Ω H,2 µ via a constant γ > 0. It useful to define χ γ : Ω H µ → R as follows

64so λ µ (y) := χ γ (y)λ 1 µ , G µ (y) = χ γ (y)G 1 µ , i.e., C µ (y) = χ γ (y)C 1 µ . For the sake of simplicity, let us consider the two-dimensional setting with Ω H µ = (0, 1) 2 and Ω H,2 µ composed by union of disjoint balls, distributed on a lattice. Let N b the number of balls, y c i and r i , i = 1, 2, . . . , N b the centre positions and radii, respectively. Hence Ω H,2

65where B(y 0 , r) := {y ∈ R d ; y − y 0 < r} denotes the ball centred in y 0 with radius r. Furthermore, we assume a regular grid of √ N b × √ N b balls, for N b a perfect square number, with positions as follows

66Regarding other properties used in the model, for the sake of simplicity, let us take λ 1 µ , G 1 µ , and γ fixed. Notice that each element of (λ 1 µ , G 1 µ , γ, y c 1 , . . . , y N b 1 ) has fixed value and is not considered as a parameter of the problem . In turn, the de facto parameters ruling C µ are p c = (r 1 , r 2 , . . . , r N b ).

Parametrisation of ε

67Differently as in the last section, the parametrisation of macroscale strain is straightforward and we do not need to assume any simplification, besides the symmetry of ε. Focusing on d = 2, we introduce p ε = (p ε,1 , p ε,2 , p ε,3 ) and

68. This choice of parametrisation is not unique, but it turns out that in this specific choice each component of p ε is physically meaningful: i) p ε,1,2 is the axial strain along the 1, 2 directions and ii) p ε,3 is the shear strain. Indeed, p ε corresponds to the so-called Voigt's notation of ε, here represented by the mapping Voigt : R 2,2 sym → R 3 , such that ε → p ε = Voigt(ε) = (ε 11 , ε 22 , ε 12 + ε 21 ). Finally, the extension for d = 3 is immediate, but will not be used in this manuscript.

69Taking advantage of the problem structure in the right-hand side of (15), we can exploit its linearity with respect to p ε by writing

70Accordingly, it is easy to see that linearity is also valid for w as follows

71where

72We exploit this decomposition in Section 4.2 to reduce the number of RB constructions.

73By defining a learning-based set V N µ , the goal is to characterise the set where fluctuations live as accurate as possible (not necessarily as large as possible) based on the prior knowledge decoded in the RB-ROM and DNN model. Indeed, we must recall that V N µ aims to approximate V µ (Ω R µ ) in Problem 3. To this end, let us assume we dispose of an

74to Ω R µ , whose construction is detailed next.

Solving Problem 3 with solutions in

75This decoupling is possible thanks to the linearity of the problem.

Remark 6

76It is worth mentioning that in general V N µ is not a subset of V M µ . In Appendix B we prove this does not impose any limitation to the method and that, in fact, we can equivalently rewrite the original problem using a set

77just by incorporating a new term on the right-hand side of the variational formulation in Problem 3.

Remark 7

78In practice, it is more convenient to solve Problem 3 (using V N µ ) at once rather (28) and (29) separately. However, this split motivates and justifies the structure V N µ postulated in (27).

Overview of the method

79Before digging into methodological details of (Deep) Neural Networks (Section 4), it is useful to start a short overview of the method we propose. For easiness of notation, thereafter we denote our method as DeepBND , which stands for Deep Boundary, as reference of a deep learning methodology to enrich multiscale problems with more accurate BCs. It is worth highlighting that the basic requirements behind the development of DeepBND and the strategies adopted to address each of them are the following:

801. Computational efficiency: coupled multiscale simulations are computationally demanding by their very nature. Since the local-problem solving is embarrassingly parallel, this step is the most critical regarding the optimisation of the method. Therefore, such speed-up is mandatory and our main strategy is to reduce the microscale domain.

812. Accuracy: To keep the same accuracy of more computationally demanding larger microscale domains, our strategy focuses on the choice of a more precise BCs for smaller microscale domains.

823. Exploitation of a priori knowledge: To be able to enrich the corrector problem with more suitable BCs, we exploit previous knowledge from pre-computed accurate solutions, also called high-fidelity (HF) solutions, which are necessarily more computationally demanding. This is performed by fully exploiting the potential of Reduced Order Modelling using Reduced Basis Method (RB-ROM) in combination with (Deep) Neural Networks (DNN). The use of RB-ROM allows for a more compact representation of the BC, reducing the size of the needed DNN, by automatically ranking the basis in a meaningful order of importance, which will be also exploited to suitably calibrate the training process of the DNN in next section.

834. Easiness of implementation: The very mathematical structure of the local problem is unchanged, only the BCs are touched. Our method leads to non-homogeneous Dirichlet BCs, not leading to any additional difficulties in terms of implementation.

84As usual in RB-ROM strategies, DeepBND can be structured into offline and online phases. Having chosen some meaningful microstructural parametrisation for the HF problem at hand, the main goal of the offline phase is to find a mapping that translates parameters from the high-fidelity problem into an accurate BC of the problem solved in the online phase. It consists in the following pipeline: i) the dataset acquisition by simulating those models for some representative sampling of the parameter space, ii) the RB construction using the previous dataset, iii) extraction of relevant features of the dataset through the orthogonal projections onto this RB and, iv) the training of a DNN model aiming to predict these projections. Mathematically, this procedure results in a)

85, a RB with N rb functions and b) the mapping N : R Np → R N rb , where N p is the number of parameters of the high-fidelity model. As for the online phase, we can predict the Dirichlet-like BC encoding these two previous outputs into V N µ for a given parameter of the HF problem p ∈ R Np . Finally, we proceed by solving the reduced corrector problem followed by some homogenisation post-processing. The general outline of the method is depicted in Algorithm 2. It is worth mentioning that the RB-ROM and DNN concentrate most of the computational efforts in the offline phase rather than in the online phase. To generate the dataset, some parametrisation of the microstructure should be chosen, together with the range of these parameters, their probability distributions, and sample strategy. This is a problem-dependent choice and we discuss in Section 5 the examples treated in the manuscript. In turn, the final cost added in comparison to a standard coupled multiscale simulation is the evaluation of a DNN model to determine the BC that feeds the corrector problem solver. The DNN evaluation step (prediction) is many orders of magnitude less computationally demanding than the corrector problem numerical solution, by using FEM for example.

Designing the Neural Network

86In this section, we introduce the DNN model to predict the BCs. As mentioned before, we aim at characterising the nonlinear mapping from the parameter space into RB coefficients N : R Np → R N rb . In terms of DNN architecture, our model is based on two instances of the standard fully connected Multilayer Perceptron (MLP) model, which is revisited in Section 4.1, combined seamlessly to exploit: i) the splitting between macro-strain and microscale constitutive parameters and ii) the problem symmetries. We also explore such principles for dataset and RB generation (Section 4.2), which, in fact, naturally leads to a specific format for combining MLP submodels, as explained in Section 4.3. Regarding the loss function, we also adopt a non-standard setting motivated from the RB-ROM (see Section 4.4).

Basic notation for Deep Neural Networks

87Here we review some basic concepts and notation for supervised learning using DNN. For the interested reader, we refer to [18,13] for a deeper presentation.

88. . , N s } be a dataset with N s samples (or snapshots). We aim at finding the mapping N (θ; ·) : R m → R n such that it minimises the regularised empirical risk

89where L : R m × R m → R + is the so-called cost or loss function, and R : R p × R m → R + is a regularising function controlled by a intensity factor λ ∈ R + . The vector θ should be understood as a collection of parameters that defines the mapping N (θ; ·), which is taken accordingly with the usual definition of the MLP architecture for DNN [13]. The size of θ, and thus the complexity of the DNN, depends on the pre-fixed number of hidden layers N L and the quantity of neurons in each layer (see Figure 4 to help with the interpretation).

90Moreover, concerning the practical implementation of the training, i.e., the optimisation procedure to solve (30), we use the ADAM version of the stochastic gradient with mini-batches, and, as regularisation techniques, we make use of dropout [36], l 2 regularisation, and early stop based on the validation error [13]. The exact numerical values used in our examples are specified in the appropriate section.

Dataset and RB construction strategies

91As seen in Section 3.1.2, the trace w of the fluctuations on ∂Ω R µ , is the linear combination of auxiliary solutions obtained to each load direction (w (I) ), for I = 1, 2, 3. Obtaining them involve fewer parameters, since the loads are fixed in unitary directions, which lead to a reduced parameter space to sample. In other words, exploiting this property in the dataset generation means that for a fixed number of high-fidelity snapshots, we can sample better a smaller parameter set P r ⊂ R N b instead of P ⊂ R Np , where N p = N b + 3 (in 2D). In this regard, it is also important to maximise the covering of P r by using a smart sampling strategy, for example one of the Quasi-Monte Carlo Family such as the Latin Hypercube Sampling (LHS) used in this work.

92Furthermore, in terms of mechanical load, solutions w (1) and w (2) as in (26) are equivalent in the sense one can be obtained by rotation of another, as depicted in Figure 5. Hence, choosing N rb basis functions to satisfy some accuracy criteria, we obtain B

93associated to w (I) for I = 1, 3, by applying the POD procedure of Algorithm 1.

The missing basis B

94(2) N rb can be obtained by B

95, where the anti-clockwise rotation of π/2rad is applied for each function in the basis by means of the orthonormal matrix Q π 2 . On the other hand, for a given p c ∈ R Nc , the solution w (2) (p c ) transforms according to w (2) (p c ) = w((p c , e 2 )) = Q π 2 w((π −1 π 2 (p c ), e 1 )) = Q π 2 w (1) (π −1 π 2 (p c )),

96where π −1 π 2 denotes a permutation on the parameter vector entries to reflect a clockwise rotation of π/2 rad on the microstructure pattern (see Figure 5). The actual format for the permutation is problem-and implementation-dependent. In the next section, we retake these ideas to construct the DNN model that predicts the BCs.

DeepBND-NN model: definition and combination of the axial and shear DNN submodels

97As already commented, before defining the DNN model, we need to obtain a DNN submodel for the axial unitary macro-strain (without loss of generality, chosen here as the horizontal one) and another DNN submodel for shear unitary macro-strain. Following the previous conventions, we denote them as N (1) , N (3) : R N b → R N rb , for the axially horizontal and shear loading, respectively. In turn, for the axially vertical loading, we invoke (31)

98Finally, the BC prediction for some p ∈ R Np reads as

99It is important to mention that by taking into account the physical structure of the problem into the DNN architecture (reviewed in Figure 6), we are able to: i) minimise the size of datasets needed since the size of parameter space (input) is smaller for each submodel; ii) use fewer number of neurons and layers (smaller complexity of the DNN architecture) since the prediction of directional load-wise solutions are also less complex; iii) profit from the full advantage of the RB representation due to their specialisation according to the load; iv) use fewer RB modes for the same accuracy; v) naturally take into account symmetries concerning horizontal and vertical loads and vi) training of 2 instead of 3 submodels. All points mentioned here are intrinsically related and overall render better accuracy and smaller computational burden in the dataset generation and training.

DNN-POD error analysis and Loss Function choice

100In this section, we precisely define the total error committed in the BC prediction, which accounts for the intrinsic truncation error when a RB is chosen (POD error) and also the error due to the DNN prediction. The latter naturally yields to the natural choice for the loss-function L used in (30). All notation here should be understood for one specific load, axial or shear, with indices omitted for convenience.

101First, let us consider some B N rb and S given. For some i = 1, . . . , N s and target HF solution w (i) ∈ S ⊂ L 2 (∂Ω R µ ), let us denote its projection upon span B N rb as Π N rb w (i) :=

102j represents its projection along ξ j . Analogously, we denote the DNN prediction of w (i) asŵ (i) :=

103A natural choice to measure the expected error is to consider the empirical averaged error over all elements of S namely

104where the sub-index (·) T stands for total error, as opposed to the contributions to the POD and DNN errors defined next. To this aim, using the fact that w (i) − Π N rb (w (i) ) ∈ (span B N rb ) ⊥ and that B N rb is orthonormal, it yields

105The boldface notation forβ (i) and β (i) simply mean the component-wise collection for their respective projections for a snapshot i. Note that the second term of the above expression when averaged over the N s snapshots corresponds to the POD mean squared error (E 2 P OD ) already defined in (10). On the other hand, the first term accounts for the DNN error, in which the mean squared version is defined below

106The expression above provides a physically-based formula for the loss function to be considered in (30). More precisely,

107where we have used the min-max scaling (·) =

108Finally, we can rewrite (33) as

109where we should notice that while E 2 P OD has a monotonous decreasing (w.r.t. N rb ) estimation given by (10), the E 2 DN N depends on the DNN architecture, initialisation, optimisation algorithm, etc. Therefore, to assess an optimal N rb for a given DNN architecture we should study the trade-off between these two errors. This is explored in Section 5.

110It is worth highlighting that the RB-based strategy adopted also induces a specific choice of weighted mean-squared error, where weights are given by eigenvalues found in the POD procedure, which are ranked by magnitude. This choice also leads to a natural total estimator in the L 2 (∂Ω R µ )-norm, which is the intrinsic choice to measure the BC discrepancies, that links the loss function reached in the training and the error committed by POD truncation itself. Importantly, each submodel can be trained separately and be put together only for prediction purposes, which is interesting from the computational point of view.

Index Load

111Use Size (N s ) Sample 1

112Axial Training/RB N trb s = 51200 P (1) (LHS(N trb s , seed = 1)) 2

113Shear Training/RB N trb s = 51200 P (1) (LHS(N trb s , seed = 1)) 3

114Axial Validation N val s = 10240 P (2) (LHS(N val s , seed = 2)) 4

115Shear Validation N val s = 10240 P (2) (LHS(N val s , seed = 2)) 5

116Axial Testing N tes s = 5120 P (3) (LHS(N tes s , seed = 3)) 6

117Shear Testing N tes s = 5120 P (3) (LHS(N tes s , seed = 3)) Table 1: Summary datasets for the different combinations of "Load/Use" scenarios. Each "Use" is associated with one LHS run for a given seed and number of samples.

DNN model construction: datasets, RB, and training

118In this section, we specify the choice of numerical parameters adopted to assess our method. We choose to constrain the more general setting of Sections 3.1 and 4. As already discussed, the DNN model construction encompasses the RB extraction and the training of a DNN for a given dataset, denoted here as training/RB dataset, with size N trb s = 51200. Moreover, from the point of view of DNN training, we also need to simulate auxiliary datasets for validation and testing reasons, in which the size is assumed to be respectively 20% (N val s = 10240) and 10% (N tes s = 5120) of the training/RB dataset size. Importantly, each dataset is considered for the axial and shear loads separately, as summarised in Table 1. The fixed coefficients used in all simulations are presented in Table 2, while the random sampling of the inclusion sizes, which are the random parameters of the problem, are shown next.

119Concerning the inclusions, they are placed in a 6 × 6 grid (see (24)), so N b = 36, with radii computed as follows

120where a = log(r max r min ), b = log( rmax rmin ), r max = 0.4

121is a random variable detailed next. The strategy (38) is used by [25] in a similar scenario and has the advantages of being empirically inspired and also a simple manner to constrain the value range for the radii. Regarding the sampling, we use the LHS with an underlying uniform distribution to sample θ (i) j for j = 1, . . . , N b , i = 1, . . . , N s . Notice that the LHS requires a priori knowledge of N s and N b , since it aims at achieving an optimal coverage of the high-dimensional parameter while keeping the number of samples small. Indeed, each realisation is not independent from each other. We use the default LHS implementation provided scikit-opt library [4], with three different seeds for random generation and sample sizes according to Table 1, yielding the samples P (1) , P (2) , and P (3) . Examples of some realisations of microstructures are found in Figure 7.

122It is widely known in the multiscale solid mechanics literature that the volume fraction φ = N b i=1 πr 2 i (L HF µ ) 2 is a random variable that plays a crucial role in the final solution. Consequently it is worth looking at how this variable is indirectly sampled by the assumed random generation algorithm, which focuses only on individual radii. In Figure 8, checking the histograms of φ for P (1) , P (2) , and P (3) , we can observe that, although not implicitly enforced, the resulting underlying probability distribution seems to be consistent along the several datasets. We can also perfectly use another sample strategy, provided that the resulting volume fractions remain close to the range that the model was designed for.

123For obtaining the HF solutions, we use the FEM with quadratic polynomials in triangular meshes. For the mesh generation using gmsh [12], we have imposed 20 equally spaced divisions for each internal boundary segment (bottom, right, top and left of ∂Ω R µ ), making a total of 160 degrees of freedom on the boundary, for all snapshots. The overall unstructured mesh on Ω H µ is then generated using the corresponding characteristic length size of the internal boundary. Accordingly, the number of functions in the RB will be at most the total number of degree of freedom on the boundary, and the associated POD-error should vanish close to this value. Indeed, the largest RB considered here is 140, which actually gives practically zero POD-error.

124Concerning the computational time, all simulations were performed in a cluster with 80 (160 threads) Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz cores and the results of solving each HF simulation are resumed in Table 3. The Total Time displayed is an estimate based on the statistics computed over all snapshots, i.e., the number of snapshots times the mean time spent per snapshot. The Wall Time is computed supposing the use of 32 cores and such that the Total Time is split equally. These estimates make sense only in embarrassingly parallel scenarios, as it is the case of the problem at hand. Notwithstanding, the ultimate time expended depend on many other factors, which are out of the scope of our analysis, such as the implementation, number of cores/threads, memory available, etc. Furthermore, Table 2: From left to right: the two Lamé coefficients (λ 1 µ and G 1 µ ) for the matrix and the multiplicative constant factor (γ) in the inclusion applied for both previous coefficients. The values for λ 1 µ and G 1 µ corresponds to E = 1.0 (units disregarded), the Young modulus, and ν = 0.3, the Poisson ratio, using standard transformation expressions for Hookean isotropic media. Finally, by applying POD procedure of Algorithm 1 to the datasets 1 and 2, we can evaluate the committed error in the sense of (10), as shown in Figure 9. This error represents the best expected approximation of the BC in the sense of L 2 (∂Ω R µ ), i.e., with no error due to the DNN approximation. We can verify these two errors are comparable, with a slight advantage to the shear over the axial model, for a given number of RB functions. As result, we have adopted the same DNN architecture and number of RB in both models, since they have comparable complexity.

125To define the models N (1) and N (3) , it is worth studying the sensibility of the total error E T with the number of RB (see (33)). It is reasonable to expect that at some point the decreasing of E P OD may not compensate the increasing of E DN N as N rb gets larger. Therefore, we have considered N rb ∈ {5, 10, 20, 40, 80, 140} and have trained 6 different DNN architectures (one for each N rb ), which do not differ regarding the hidden layers, but only the number of entries on the output. Also, we have considered a DNN architecture of 3 hidden layers with 300 neurons each. As activation functions, we have used the Swish [27] in the hidden layers followed by a linear activation in the output layer. To regularise the model, we have used the dropout with probability of retention p = 99, 5% in all hidden layers and λ = 10 −8 for l 2 regularisation for all weights and biases. The DNN has been trained using the ADAM optimiser with default parameters and mini-batches of 32 samples. An adaptive learning rate has been employed, decreasing linearly from 5.0 × 10 −4 until 5.0 × 10 −5 in epoch 5000 (last). It is worth mentioning that we reached these values by systematically testing combinations of smaller architectures, regularisation values, and activation functions. Therefore, such values should be understood as guidance for problems with similar complexity and dataset sizes, although there might be still room for small tunings. Finally, we used Tensorflow [1] for the implementation, and the final model is assumed to be the one yielding to the least loss function value in the validation dataset.

126In Figures 10(a) and 10(b) we can see the loss function history (E 2 DN N ) for the axial DNN model using N rb = 5 and N rb = 140, respectively. Loss function values are naturally larger for N rb = 140, since the output has more entries. The loss function evaluated on training and validation differ considerably as result of regularisation, which is not used in validation, the latter turning out to be smaller. For the last epochs, the validation reaches a plateau while the training error continues to decrease slightly. This indicates that the model reached its full capacity while avoiding overfitting. The very same comments apply to Figures 11(a) and 11(b), for the shear DNN model. For the results with different N rb , check Appendix C.

127Lastly, the final trained DNN models are compared in terms of the DNN, POD, and total errors (in test datasets) in Figures 12(a) and 12(b) for the axial and shear cases, respectively. For the axial case we observe the least total error for

Numerical Examples

128In this section we aim at assessing the DeepBND method in practice, i.e., in coupled two-scale simulations, also known as FE 2 [10]. Two kinds of problems are considered (recall the notation of Figure 1): i) the first with a strong scale separation, i.e., the size of heterogeneities is several orders of magnitude smaller than the dimension of the body such that L µ L; and ii) the second with L µ < L with about one or two orders of magnitude of difference. As already commented, the computational homogenisation approach is best suited for the i)-kind-problem, however due practical reasons ii)-kind-problem is also interesting since only in this situation direct numerical simulations (DNS) are feasible. The two kinds of problems differ substantially in terms of how the microstructures are generated at integration points. We postpone the presentation of further details to Section 6.1 and Section 6.2.

129Before digging into the numerical results, it is worth mentioning that we aim at answering the following questions:

1301. How does DeepBND compare in terms of accuracy with the periodic condition using the high-fidelity solution as reference? 2. How does DeepBND compare in terms of computational cost the high-fidelity model? 3. How does DeepBND compare in terms of accuracy with the periodic and high-fidelity approaches using the DNS as the reference solution?

131Here, it is worth recalling that the DeepBND and periodic models refer to local problems posed in Ω R µ , thus with the BC imposed on ∂Ω R µ , while high-fidelity stands for local problems Ω H µ , with periodic conditions imposed on ∂Ω H µ . We decided to choose periodic BCs for comparisons, since it is widely accepted that this model usually leads to more accurate results in contrast with classical models for BCs. As a natural choice, we answer questions 1 and 2 above using a i)-kind-problem (Section 6.1), and question 3 using a ii)-kind-problem (Section 6.2).

132Concerning the computational framework, in all numerical examples we use the micmacFenics library [29], an open-source Fenics-based library for the implementation classical BCs in the FE 2 setting, which can be alternatively found as part of multiphenics [5].

Cook Membrane

133In this example for i)-kind-problem we apply the DeepBND to the so-called Cook Membrane, a classical benchmark in solid mechanics normally used to test numerical methods for incompressible material [35], but also used in computational homogenisation [32] and to test ML-based surrogate models [22]. It consists in a solid structure with dimensions as in Figure 13(a) subjected to an homogeneous distributed vertical load t on the rightmost face. The magnitude of t and the material model itself varies among the literature considered. Therefore, for the sake of simplicity, we decided to consider the very same material as used in the dataset construction of Section 5 and t = (0, 0.05), which gives approximately the same vertical displacement of the tip A found in [35].

134We aim at comparing the results obtained using the boundary conditions i) DeepBND and ii) Periodic against our reference solution, obtained from high-fidelity microstructures. For the sake of simplicity, we choose the MDs randomly from the validation and test datasets from Section 5, already at hand. They are sorted among the elements without repetition, which is possible since there are fewer integration points in the finer mesh than the pre-simulated structures microstructures available. To obtain more reliable results, we always report results considering the average over 10 realisations, where each realisation should be understood as a different sorting of MDs along the integration points. Importantly, also notice that due the scale separation, the MDs choices keeps no neighbouring relation.

135As first study, we consider the convergence of the vertical displacement of the tip A (Figure 13(a)) with respect to the mesh divisions in the vertical direction. The coarser mesh looks like the one depicted in Figure 13(b), with 5 regular divisions along the vertical direction and a the horizontal number of divisions such as we keep the same characteristic length of the rightmost side. We then build the other finer meshes with 10, 20, 40, and 80 divisions. We can see the results in Figure 14, where a clear advantage of DeepBND against the periodic can be observed when compared with the high-fidelity results. In numerical terms, for the finest mesh we gain between one and two orders of magnitude in the relative error norm (see Table 4).

136As a second comparison, Figure 15 shows the von Mises equivalent stress field for the different models, where we can notice that the results for the periodic case (rightmost plot) are considerably noisier, which means worse, compared to the DeepBND simulation (central plot) that visually presents identical results to High-fidelity solution (leftmost plot). Such discrepancies become clearer by plotting errors of the Von Mises stresses, as depicted Figure 16, in which DeepBND performs about 3 orders of magnitude better than the periodic case. Similar conclusions for the stress are also retrieved component-wise in Figure 17. Analysing Figure 15, 17, and 13(a), we can see that points B, C and D were placed where extreme values for stresses are retrieved. Comparing the Von Mises stress along all realisations, DeepBND gains between one and two orders of magnitude in accuracy with respect to the periodic case, depending on the point considered, as seen in Table 4.

137In terms of computational times, we can see in Table 5 that the computational speed-up reached by DeepBND with respect to HF with linear BCs was about 59×. This number refers only to the embarrassingly parallel part of the problem, which in this case is the assembly of FEM matrices for the macroscale problem, specifically the solution of the local problems. The remaining fixed time for solving the macroscale problem is the same, hence no reason of including it here. Also, the mesh generation is not taken into account, but if taken, the speed-up would be even higher. The DeepBND was not compared directly with periodic BCs times, since due to the more efficient native Fenics/Multiphenics implementation of enforcing Dirichlet BCs with DeepBND, instead of the periodicity which is imposed by Lagrange Multipliers with additional pure Python routines. (g) σ HF 12 .

138(h) σ dnn 12 .

139(i) σ per 12 . Figure 17: Comparison Cauchy stress components in the Cook membrane.

Clamped bar using DNS

140The last test of the new multiscale methodology aims at assessing its performance in terms of accuracy and computational cost with respect to other multiscale methods in comparison to direct numerical simulations (DNS). In this second numerical example, for easiness of microstructures constructions, we adopt a rectangular bar Ω = [0, L x = 4] × [0, L y = 1] as macroscopic domain such that it is clamped on the left and loaded with a uniform shear on the right t = (0, −0.2), as in Figure 18. The material is organised by a N DN S x × N DN S y grid of H DN S = L x /N DN S x = L y /N DN S y squared blocks in which each block contains a random sized circular inclusion. The mesh for the DNS simulations is generated with the characteristic length h ≈ H DN S /15, which is similar to the one used in the dataset generation. We consider N DN S y ∈ {24, 72}, to study two different approximations with respect to the DNS, which is expected to be more suitable for larger N DN S y . Just for visualisation purposes, we show in Figure 19 one realisation of a structure with N DN S y = 7. Moreover, it is worth remarking that the mesh generation for larger N DN S y becomes cumbersome and computationally costly. Finally, it is also worth mentioning that the bar geometric dimensions were inspired by [22], however as in that reference the results presented were merely visual, we decided to compare DeepBND against HF and periodic models only.

141Concerning the multiscale simulations, we use a regular triangular mesh with 100 divisions vertically and 400 horizontally. Notice that this mesh is several orders of magnitude coarser than the DNS, which makes the FE 2 simulations still appealing, despite its also elevated cost. As usual, one MD should be associated at each integration point. Differently from the previous case (Cook's Membrane, Section 6.1), now the microstructures have to keep some relation with its neighbourhood. Given an integration point, we choose the associated MD as the 6x6 window having the closest centre point, and then we proceed as before by identifying the reduced 2x2 window and predicting the BCs. This strategy is depicted in Figure 18 Concerning the results, each structure has been solved using quadratic polynomial elements for the DNS mesh (DNS solution) and using the multiscale approach, with the MDs selected as aforementioned, for the DeepBND, periodic, and the HF cases. The latter cases have been compared with the DNS solution with respect to the L 2 norm, and the Euclidean norm for displacements at points A and B (see Figure 18). We can see in Figure 20(c) that relative errors for the N DN S y = 24 case are of order 1%, with slight advantages for the HF and DeepBND contrasted with the periodic case. On the other hand, for the N DN S y = 72 case, DeepBND model reaches 0.05% in relative error for the L 2 (Ω)-norm while the periodic model attains 0.2% in the same norm, i.e., a factor 4 of improvement. Similar gains were found for the point-wise displacement norms. Unexpectedly, comparing with the HF case, DeepBND performs even better, which shows that our approach does not only interpolate the HF targets, in the sense of averaging results taking close inputs, but it is also capable of learning more general relations associated to the whole assemble of data.

Concluding Remarks

142In this work, we have introduced a novel ML-based technique, so-called DeepBND, to predict more suitable BCs for multiscale problems. Exploiting the combination between ROM-RB and DNN, our method delivers physically admissible BCs and can learn from previous HF simulations. As result, numerical examples have shown that DeepBND reaches improvements in accuracy up to two orders of magnitude, keeping the same computational cost, compared to classical methods. While the construction of the DeepBND model might be computationally expensive (offline phase), we reached speed-up gains of approximately 60 times in the real-use FE 2 case (online phase) when compared to HF simulations, which justifies the fixed additional effort. Indeed, as seen in Algorithm 2, DeepBND method only adds one new step to the online phase, namely the DNN model evaluation, which is negligible in terms of additional computational complexity concerning the standard methodologies. Consequently, DeepBND can be straightforwardly implemented in already existing FE 2 codes [29].

143It is worth mentioning that our method presents clear advantages concerning FE 2 approaches with classical BCs and also those in which surrogate models replace the constitutive law. Concerning the former approach, as already discussed, the main asset is the computational speed-up by keeping similar accuracy. As for those using surrogate models, our method is naturally more precise since we still solve the physical problem. Indeed, DeepBND can be understood as an hybrid methodology, in the sense that it lies between the standard computational homogenisation with relatively large MDs and its complete replacement by surrogate models. Up to the best of authors' knowledge, our approach is unique in the literature.

144Finally, it is worth remarking that although we have particularly focused on problems arising in multiscale solid mechanics, our method is sufficiently generic and remains essentially the same for other boundary value problems at the microscale. Other possible example of applications are porous media with random porosity fields or fluid mechanics with random obstacles. DeepBND can also tackle MDs with different kinds of heterogeneities, e.g., elliptical inclusions not necessarily distributed in grid, continuous varying properties and so forth, with the only constraint that larger datasets are needed as the number of parameters increases.

Introduction

145Multiscale methods can be regarded as theories that link the macroscopic behaviour of continua to phenomena occurring at smaller spatial scales, a situation found in a large range of applications such as porous media or composites, to name a few. Early developments in solid mechanics date back at least from the mid-twentieth century, with the estimation of macroscopic properties of heterogeneous materials, using the self-consistent approach [15,19,21], and methods based on the asymptotic analysis of partial differential equations with periodic coefficients [6,33]. Despite methodological differences, common across the range of different approaches is the fact that macroscopic continuum quantities, so-called homogenised, are invariably linked to their microscale counterpart fields upon a solution of an auxiliary local problem defined at microscale domain followed by some kind of averaging process.

146The manuscript is organised as follows: in Section 2 we introduce necessary concepts for the sake of completeness purposes, in particular the basic background on multiscale solid mechanics and reduced-basis for parametrised PDEs are provided in Section 2.1 and 2.2, respectively; Section 3 deals with the formulation of the proposed method, where special attention is devoted to cast the problem of Multiscale Solid Mechanics into the Parametrised PDE format in Section 3.1 that, among other steps, presents the key idea of the method of finding the reduced-order description of boundary (Section 3.1.3). The section ends with an useful overview of the method is Section 3.2. In Section 4 we propose a novel physically inspired DNN architecture tailored to exploit particular physical symmetries in the reduced-basis generation (Section 4.2). Finally, Section 5 and Section 6 are dedicated to the numerical implementation of the proposed methodology, concerning dataset construction, DNN model training, and relevant numerical examples in coupled micro-macro simulations, respectively.

Preliminaries

147As already commented, one of the main goals of this section is to set the general context of the computational homogenisation for random media, here specialised for multiscale solid mechanics (Section 2.1), which is instrumental to the presentation of our method (Section 3). Moreover, the second goal is to review the reduced-basis setting for parametrised PDEs (Section 2.2), which can skipped by an expert reader.

Multiscale Solid Mechanics

148In this section, we review the basic equations of computational homogenisation in multiscale solid mechanics. The literature in this realm is vast and dates back to the '70s with the postulation of the cornerstone Hill-Mandel Macro-homogeneity Principle [19,21]. More recently, emerging from the applied mathematical community, the so-called Heterogeneous Multiscale Method (HMM) [2] has brought significant new insights into the field. Although these two methods have independent points of departure at the first sight, it has been shown that the resulting models are coincident [9,11]. Hence our method can be applied to both methodologies. Our presentation follows closely [8,7], that provides a natural mathematical framework for the formulation of our method. Additional details that are not necessary to follow the manuscript are included in Appendix A, for the sake of completeness.

149Before digging into the formulation itself, let us consider the following conventions. As usual, the unit vectors {e i } d i=1 refer to the canonical basis for R d . We also use the font convention a ∈ R d , A ∈ R d,d , A ∈ R d,d,d,d to discern between vectors, second-and fourth-order tensors, respectively. Regular type face fonts are always used to denote components (or scalars) in cartesian coordinates, e.g. a = a i e i , A = A ij e i ⊗ e j and so-forth (Einstein's summation convention applied). Space R d,d sym denotes symmetric real-valued second-order tensors. Finally, we also consider the following operations:

150a ⊗ s b :

151In the following, we present the multiscale solid mechanics computational homogenisation framework, starting with the macroscale followed by the microscale model.

Setting of the homogenisation problem

152Let us consider Ω ⊂ R d , d = 2 or 3, the domain in which the physical problem of interest is defined as shown in the left-hand side of Figure 1. Thereafter, we refer to it as the macroscale domain, whose characteristic size is L, as opposed the to microscale domains, displayed on the remaining columns of Figure 1, whose size L µ is in the same other of the magnitude of the length-scale of material properties heterogeneities. For the sake of simplicity, the example depicted is a composite material with two phases, the matrix (in light grey) and circular inclusions (in dark grey), although more general structures for the heterogeneity are also allowed.

153It is important to remark that the length of heterogeneities can be arbitrary small, posing computational difficulties if one is interested in solving such problem up to that scale. Notwithstanding, it is well established in the literature that in the scale separation limit, i.e.

154Lµ L 1, the original problem with (fast-)varying parameters can be replaced by the so-called homogenised problem [6]. Indeed, the homogenised problem have the very same mathematical nature as the original at hand, but with effective, so-called homogenised, coefficients. The very process of finding such coefficients is called homogenisation, which encompasses the solution of an auxiliary problem, known as corrector problem or simply microscale problem, solved in the microscale domain, and a posterior averaging scheme using its solution, both established in Section 2.1.2 for our problem.

155In the specific setting of this work, we consider as macroscale (or homogenised) problem a standard solid continuum mechanics model in the infinitesimal strain regime. We are interested in solving a quasi-static mechanical equilibrium problem, in which the displacement vector field u : Ω → R d is obtained as the solution to the equilibrium problem once suitable BCs and constitutive equations are provided. Associated with the field u, the symmetric gradient tensor field ε := ∇ s u : Ω → R d,d sym is the strain measure of choice. We adopt the linear elasticity constitutive model, hence the Cauchy stress tensor σ ∈ R d,d sym is given through the Hookean law σ = Cε, where C ∈ L 2 (Ω) d,d,d,d is a fourth-order positive-definite elastic tensor, with symmetries C ijkl = C jikl = C ijlk = C klij . In the context of this work, we aim at obtaining C via the homogenisation procedure. Using the notation of the left part of Figure 1, the macroscale problem is read as below 2

156where ∂Ω D and ∂Ω N are the Dirichlet and Neumann boundaries, respectively, forming partition of ∂Ω, with the associated prescribed displacementū D and tractiont . It is worth noticing that the computational implementation via FEM of the above problem follows standard procedures, apart from the evaluation of the σ (or C) at the integration point level. For each integration point, there is an associated microstructure which should be coupled kinematically and energetically with the macroscale quantities at that point. This defines the corrector problem, which however lacks boundary condition information that needs to be chosen properly. This choice lies behind the very idea of the proposed method, to be explored in Section 3.

Micro-macro coupling

157For each macroscale (integration) point x ∈ Ω we associate a microscale domain (MD) Ω µ ⊂ R d 3 . It is considered that L µ /L 1, being L and L µ the characteristic lengths related to the macroscale and microscale, respectively. The 2 For the sake of simplicity, but without loss of generality, we are disregarding body forces (see [8]). 3 We decided to use the acronym MD, instead of Representative Volume Element (RVE), to avoid discussions of statistical nature that go beyond the scope of this work. Notwithstanding, for most practical considerations MD and RVE can be understood as synonyms. Other possible nomenclature, preferred by some authors to avoid this confusion, is SVE (Statistical Volume Element) [23]. characteristic size L µ is chosen such that Ω µ should have meaningful numbers and type of material heterogeneities but also keeping the compromise in terms of computational cost. Thereafter, for the sake of simplicity, we use the notation u = u(x), ε = ε(x) and σ = σ(x), to represent point-valued vectors or tensors at a point x ∈ Ω, rather than vector or tensor fields in Ω. On the other hand, objects associated with Ω µ are denoted by the subindex µ.

158We also consider the notation · Ωµ = 1 |Ωµ| Ωµ (·) dΩ µ , · ∂Ωµ = 1 |Ωµ| ∂Ωµ (·) d∂Ω µ to denote microscale domain and boundary averages respectively. Also, we consider a local coordinate system at Ω µ , with points denoted y ∈ Ω µ and such that Ωµ ydΩ µ = 0 (centred at the centroid). Accordingly, the symmetric gradient operator in the microscale coordinates becomes ε µ (·) := ∇ s y (·). The basic idea of the multiscale mechanics approach is to be able to describe the microscopic displacement u µ : Ω µ → R d which is related to the macroscale kinematics but not entirely determined by it. We assume that u and ε dictate affine deformations at the microscale while the so-called microscale displacement fluctuations field u µ : Ω µ → R d (supposedlyũ µ ∈ [H 1 (Ω µ )] d ) is responsible for higher-order terms. This yields to the decomposition u µ (y) = u + εy +ũ µ (y), ∀y ∈ Ω µ .

159Following some natural physical constraints (see Appendix A for the interested reader), fluctuationsũ µ should live in

160the so-called Minimally Constrained Space for fluctuations, also known as uniform traction model. Variations of this model are possible considering subspaces of V M µ . Remarkably, popular models (subspaces) in the literature are

161where the notation (·) ± denotes opposite boundary/points, e.g., left(-)/right(+) or bottom(-)/top(+) in a unit square Ω µ . Figure 2 depicts the kinematical effect of the different classical models, where V T µ constrain the admissible displacements to affine transformations, whilst in V L µ just the boundary deforms affinely and models V M µ and V P µ allow non-affine displacements on ∂Ω µ . Excepting the space V T µ , the other three classical spaces will be useful for different reasons in the proposed method. It is worth noticing that V L µ ⊂ V P µ ⊂ V M µ , where V L µ and V M µ are known to deliver upper and lower bounds in terms of homogenised stress respectively [37]. In turn, in the absence of physical guidance, V P µ is the standard choice even if the microstructure is not periodic since it delivers a more balanced response. In this work, we seek an affine subspace V µ ⊂ V M µ that outperforms V P µ , by exploiting a priori knowledge provided by RB-ROM and ML techniques. For convenience, thereafter we denote simply as V µ ⊂ V M µ , the choice of one of these subspaces. The notation V µ (Ω µ ) may be used to avoid ambiguity in the domain of definition.

162It is also helpful for the subsequent sections to introduce an auxiliary space V ZA µ (from zero-average) as

163which differs from V M µ only by relaxing the restriction on the boundary. From the definition V M µ ⊂ V ZA µ . In terms of material constitutive behaviour at microscale, we also consider a Hookean material characterised by the fourth-order micro-elasticity tensor C µ ∈ L 2 (Ω µ ) d,d,d,d positive-definite and with the symmetries (C µ ) ijkl = (C µ ) jikl = (C µ ) ijlk = (C µ ) klij , which defines the microscopic stress state as σ µ = C µ ε µ (u µ ).

164As result of balance of virtual powers in macro-and microscale (see details in Appendix A), the corrector (or microscale equilibrium) problem and the homogenisation read as follows.

165Problem 1 (Microscale) Given ε ∈ R d,d sym , solve: C(I) Corrector (or microscale equilibrium) : findũ µ ∈ V µ such that

166C(II) Stress homogenisation: letũ µ ∈ V µ be the solution of (7), then

167Instead of computing the stress homogenisation through (8), it is convenient to obtain the homogenised elasticity tensor C and then evaluate σ = Cε. This can be easily performed by solving Problem 1 replacing ε by the unitary strains E kl = e k ⊗ s e l , with k, l = 1, . . . , d, and then averaging as follows

168where andũ E kl µ denotes the solution of (7) for a given ε = E kl .

169Remark 1 As already commented, the theory developed so far is consistent for any choice of V µ ⊂ V M µ . Moreover, variationally, we are also allowed to choose different subsets of V M µ to work as trial set or test spaces. This property is explored in Section 3.1 to reduce the MD size of problem.

170Remark 2 As already commented, the choice of BCs is not readily defined in the case of random media. The only case in which this choice is straightforward if for periodic cells, i.e. periodic BCs. Particularly, the material is periodic if we can identify a microscale domain which is repeated throughout (unique up to a translation). If microstructures are not periodic, the corrector problem, although valid and useful, is inexact for several reasons as discussed next.

Remark 3

171It is worth noticing that Problem 1 does not depend on the macroscale displacement u itself, but rather on its gradient, already taken into account with ε. As consequence, in terms of macroscale kinematical dependence, σ is invariant to u and only depends on ε. In other words, the zero-average constraint in (4) has merely the role of eliminating rigid-body movements and can be replaced by any other equivalent strategy. We use this property in Section 3.1. The dependence with u is important in dynamics problems and for non-uniform body forces at the macroscale [8].

172Remark 4 Instead of adopting displacement fluctuationsũ µ as primal variables, some authors prefer adopting the full microscale displacement u µ [32], which is an equivalent framework. Nevertheless, the formulation in terms ofũ µ is convenient since the kinematical constraints become homogeneous.

Reduced Basis Method for Parametrised PDEs

173In this section, we aim at providing fundamental concepts of the RB-ROM technique for parametrised PDEs. The presentation focuses on a generic problem to set a suitable notation before linking it to the specific PDE concerned, which is the focus of Section 3.1. For a deeper understanding of the method, we refer to [17,26].

174Consider a vector space W, where the solutions of a parametrised PDE live (in our case a multiscale solid mechanics boundary value problem described in Section 2.1), equipped with the inner product (·, ·) W with the induced norm · W . Let P ⊂ R Np be a manifold of admissible parameters and let L : P → W be the mapping from parameters onto the solutions of the parametrised PDE at hand. Let P = {p (i) ; i = 1, . . . , N s ∈ P} be a set containing N s samples of P, so-called sampling set, and the associated images upon L, so-called snapshots, collected in the set S := L(P) = {w(p (i) ) = L(p (i) ) ∈ W; p (i) ∈ P, i = 1, . . . , N s }.

175Note that span S is an approximation of L(P), which becomes better accordingly to how well P samples P and depends upon the complexity of the mapping L. We are interested in finding the orthonormal basis B N rb := {ξ i ∈ span S} N rb i=1 , with N rb << N s , so-called Reduced Basis (RB), which is optimal in the sense that among all possible basis choices, B N rb is chosen such that 1

176ξ i is the orthogonal projection of a function on the space spanned by the RB.

177This task can be performed by the Proper Orthogonal Decomposition (POD) procedure detailed in Algorithm 1, yielding the POD-error

178which is related the ordered eigenvalues λ j , for j = 1, · · · , N s , of the correlation matrix defined in (11). The size N rb is selected to attain a given tolerance tol POD ∈ (0, 1) in terms of relative POD-errors.

179In the remaining of the manuscript, we target an RB representation of the traces of solutions on an internal boundary Γ (properly specified later). Therefore we always set W = [L 2 (Γ)] d with the [L 2 (Γ)] d -inner product as our ambient Hilbert space.

180Remark 5 Note that POD procedure format in Algorithm 1 is independent of discretisation. As result, the RB can be obtained even using snapshots with heterogeneous discretisation. Just for computational purposes, e.g., speed-up calculations, we use coincident meshes on ∂Ω R µ (see Section 5).

181Given S, tol POD ∈ (0, 1), do: 1. Correlation matrix:

1822. Eigenvalues analysis:

183where the order λ 1 ≥ λ 2 ≥ · · · ≥ λ Ns is assumed. 3. Basis determination: The i-th basis vector is constructed as

1844. RB construction: choose the first N rb << N s such that 1 −

185.

186Algorithm 1: Proper Orthogonal Decomposition procedure to obtain the Reduced Basis with a given error tolerance.

Formulation of the method

187Before formulating the method itself, it is worth remembering that in order to have a computable microscopic cell problem, we need to truncate a problem posed essentially in an infinite domain, intrinsically connected to the choices below:

1881. Boundary condition: As already commented, there is no inherently correct boundary condition to the corrector problem apart from periodic geometries. Notwithstanding, the error arising from the artificial imposition of BCs fades according to the MD size [37].

1892. Microscale domain size: regarding the window of observation as a realisation of an underlying random variable that dictates the microstructure, the larger is such window, the better the heterogeneities are sampled. As result, as the microscale domain gets larger, the homogenised coefficients tend to the infinite infinite cell values.

190Concerning the microscale domain size decision, we have to leverage two competing characteristics, namely the computational cost and the accuracy in the two senses above. The remaining option to increase the accuracy without interfering the computational cost is improving the BCs choice. Therefore, the main contribution of this work is to bring errors due to BCs choices in small MDs down to the same levels of larger domains.

191The very central rationale behind the method is the reduction of the computational domain in the local problem, as depicted on the rightmost column of Figure 1. First, according to the final accuracy desired and the computational effort we can afford, two given sizes of microscale domains should be chosen (see Figure 3). The larger cell is denoted Ω H µ and is used for the computation of reference solutions, so-called High-Fidelity (HF) solutions, by using a chosen classical BC. On the other hand, Ω R µ is the smaller MD (reduced) where the corrector problem is solved with an enriched, non-classical, BC. Instrumental for formulation of the admissible space that encodes such novel BC is the parametrised PDE setting, introduced in the following section. Such a structure is an essential step towards the use RB-ROM framework, which justification is also provided along this section.

Reformulation of the multiscale problem in terms of parametrised PDE

192In this section, we aim at providing a parametrised PDE structure to the corrector problem for solid mechanics. It is worth mentioning that the conversion of the general problem into its parametrised format encompasses necessarily a simplification. The practical effect is a new problem with a finite number of parameters that spans a controlled scenario of randomness, representative of the problem at hand. However, the general idea of the method remains true independently of the particular parametrisation chosen.

193We are interested in approximating the fluctuationũ H µ , solution of Problem 1 in an enlarged domain Ω H µ , which depends on some parameters p ∈ P ⊂ R Np , with N p the number of parameters. Noticing that the triple (ε, C µ , V µ ) fully defines the latter problem, the role of p is to parametrise each of these objects, as respectively detailed in the following subsections. Importantly, we reserve the word parameter, and notation p, to designate non-fixed properties, i.e., those that should be sampled. For other numbers helping to define the problem, but that are fixed, we omit their explicit dependence. Importantly, the space V µ stands for different spaces depending if the problem is formulated on

194, leading to Problem 1 rewritten as follows.

195where

196v| Ω H µ \Ω R µ = 0, inducing the following trial set for the fluctuations

197where the dependence on p is made explicitly and

198Using the previously defined spaces, the constrained version of Problem 2 on Ω R µ read as:

199where

200Importantly, we should notice thatũ H µ | Ω R µ =ũ R µ holds by construction and, as already commented in Remark 3, the homogenised stress is invariant upon translations. Therefore, it is convenient to define

201where

202Notice that Problem 3 can be rephrased replacing V µ (p)(Ω R µ ) by V * µ (p)(Ω R µ ). As commented, the new solution is mechanically equivalent (leads to the same homogenised stress). As a result, the only information needed coming from the solution of Problem 2 is its trace to the internal boundary ∂Ω R µ and the necessary translation to obtain a zero-averaged fluctuation field in Ω R µ . For convenience, we rearranged this operation in the goal solution w, as above. The key idea of proposed method is the following: Instead of solving the larger Problem 2 to obtain w, we aim at obtaining an approximation w N by a method that combines RB-ROM and DNN. This approximation yields to the definition of the novel set V N µ (Ω R µ )(p) (or just V N µ ). Our final goal is to show that V N µ outperforms the classical choices of BCs.

203Finally, before proceeding with the parametrisation of C µ and ε in Sections 3.1.1 and 3.1.2, respectively, it is useful to assume the split

204In our context, parametrising the constitutive law is intrinsically linked with the parametrisation of microstructural geometrical features of material constituents. In this work, since the number of parameters have a direct impact on the quality of sampling, if we want to keep the number of samples limited, we aim at keeping the geometry and number of materials simple. ∩ Ω H,2 µ = ∅, i.e., a partition of Ω H µ (see Figure 3). Each of these materials are linear isotropic and thus modelled by the Hookean law characterised by the two spatially varying Lamé coefficients λ µ and G µ , or conversely the pair Young modulus and Poisson ratio. It reads

205Let us assume λ µ and G µ are linked with Ω H,1 µ

206and Ω H,2 µ via a constant γ > 0. It useful to define χ γ : Ω H µ → R as follows

207so λ µ (y) := χ γ (y)λ 1 µ , G µ (y) = χ γ (y)G 1 µ , i.e., C µ (y) = χ γ (y)C 1 µ . For the sake of simplicity, let us consider the two-dimensional setting with Ω H µ = (0, 1) 2 and Ω H,2 µ composed by union of disjoint balls, distributed on a lattice. Let N b the number of balls, y c i and r i , i = 1, 2, . . . , N b the centre positions and radii, respectively. Hence Ω H,2

208where B(y 0 , r) := {y ∈ R d ; y − y 0 < r} denotes the ball centred in y 0 with radius r. Furthermore, we assume a regular grid of √ N b × √ N b balls, for N b a perfect square number, with positions as follows

209Regarding other properties used in the model, for the sake of simplicity, let us take λ 1 µ , G 1 µ , and γ fixed. Notice that each element of (λ 1 µ , G 1 µ , γ, y c 1 , . . . , y N b 1 ) has fixed value and is not considered as a parameter of the problem . In turn, the de facto parameters ruling C µ are p c = (r 1 , r 2 , . . . , r N b ).

Parametrisation of ε

210Differently as in the last section, the parametrisation of macroscale strain is straightforward and we do not need to assume any simplification, besides the symmetry of ε. Focusing on d = 2, we introduce p ε = (p ε,1 , p ε,2 , p ε,3 ) and

211. This choice of parametrisation is not unique, but it turns out that in this specific choice each component of p ε is physically meaningful: i) p ε,1,2 is the axial strain along the 1, 2 directions and ii) p ε,3 is the shear strain. Indeed, p ε corresponds to the so-called Voigt's notation of ε, here represented by the mapping Voigt : R 2,2 sym → R 3 , such that ε → p ε = Voigt(ε) = (ε 11 , ε 22 , ε 12 + ε 21 ). Finally, the extension for d = 3 is immediate, but will not be used in this manuscript.

212Taking advantage of the problem structure in the right-hand side of (15), we can exploit its linearity with respect to p ε by writing

213Accordingly, it is easy to see that linearity is also valid for w as follows

214where

215We exploit this decomposition in Section 4.2 to reduce the number of RB constructions.

216By defining a learning-based set V N µ , the goal is to characterise the set where fluctuations live as accurate as possible (not necessarily as large as possible) based on the prior knowledge decoded in the RB-ROM and DNN model. Indeed, we must recall that V N µ aims to approximate V µ (Ω R µ ) in Problem 3. To this end, let us assume we dispose of an

217to Ω R µ , whose construction is detailed next.

Solving Problem 3 with solutions in

218This decoupling is possible thanks to the linearity of the problem.

Remark 6

219It is worth mentioning that in general V N µ is not a subset of V M µ . In Appendix B we prove this does not impose any limitation to the method and that, in fact, we can equivalently rewrite the original problem using a set

220just by incorporating a new term on the right-hand side of the variational formulation in Problem 3.

Remark 7

221In practice, it is more convenient to solve Problem 3 (using V N µ ) at once rather (28) and (29) separately. However, this split motivates and justifies the structure V N µ postulated in (27).

Overview of the method

222Before digging into methodological details of (Deep) Neural Networks (Section 4), it is useful to start a short overview of the method we propose. For easiness of notation, thereafter we denote our method as DeepBND , which stands for Deep Boundary, as reference of a deep learning methodology to enrich multiscale problems with more accurate BCs. It is worth highlighting that the basic requirements behind the development of DeepBND and the strategies adopted to address each of them are the following:

2231. Computational efficiency: coupled multiscale simulations are computationally demanding by their very nature. Since the local-problem solving is embarrassingly parallel, this step is the most critical regarding the optimisation of the method. Therefore, such speed-up is mandatory and our main strategy is to reduce the microscale domain.

2242. Accuracy: To keep the same accuracy of more computationally demanding larger microscale domains, our strategy focuses on the choice of a more precise BCs for smaller microscale domains.

2253. Exploitation of a priori knowledge: To be able to enrich the corrector problem with more suitable BCs, we exploit previous knowledge from pre-computed accurate solutions, also called high-fidelity (HF) solutions, which are necessarily more computationally demanding. This is performed by fully exploiting the potential of Reduced Order Modelling using Reduced Basis Method (RB-ROM) in combination with (Deep) Neural Networks (DNN). The use of RB-ROM allows for a more compact representation of the BC, reducing the size of the needed DNN, by automatically ranking the basis in a meaningful order of importance, which will be also exploited to suitably calibrate the training process of the DNN in next section.

2264. Easiness of implementation: The very mathematical structure of the local problem is unchanged, only the BCs are touched. Our method leads to non-homogeneous Dirichlet BCs, not leading to any additional difficulties in terms of implementation.

227As usual in RB-ROM strategies, DeepBND can be structured into offline and online phases. Having chosen some meaningful microstructural parametrisation for the HF problem at hand, the main goal of the offline phase is to find a mapping that translates parameters from the high-fidelity problem into an accurate BC of the problem solved in the online phase. It consists in the following pipeline: i) the dataset acquisition by simulating those models for some representative sampling of the parameter space, ii) the RB construction using the previous dataset, iii) extraction of relevant features of the dataset through the orthogonal projections onto this RB and, iv) the training of a DNN model aiming to predict these projections. Mathematically, this procedure results in a)

228, a RB with N rb functions and b) the mapping N : R Np → R N rb , where N p is the number of parameters of the high-fidelity model. As for the online phase, we can predict the Dirichlet-like BC encoding these two previous outputs into V N µ for a given parameter of the HF problem p ∈ R Np . Finally, we proceed by solving the reduced corrector problem followed by some homogenisation post-processing. The general outline of the method is depicted in Algorithm 2. It is worth mentioning that the RB-ROM and DNN concentrate most of the computational efforts in the offline phase rather than in the online phase. To generate the dataset, some parametrisation of the microstructure should be chosen, together with the range of these parameters, their probability distributions, and sample strategy. This is a problem-dependent choice and we discuss in Section 5 the examples treated in the manuscript. In turn, the final cost added in comparison to a standard coupled multiscale simulation is the evaluation of a DNN model to determine the BC that feeds the corrector problem solver. The DNN evaluation step (prediction) is many orders of magnitude less computationally demanding than the corrector problem numerical solution, by using FEM for example.

Designing the Neural Network

229In this section, we introduce the DNN model to predict the BCs. As mentioned before, we aim at characterising the nonlinear mapping from the parameter space into RB coefficients N : R Np → R N rb . In terms of DNN architecture, our model is based on two instances of the standard fully connected Multilayer Perceptron (MLP) model, which is revisited in Section 4.1, combined seamlessly to exploit: i) the splitting between macro-strain and microscale constitutive parameters and ii) the problem symmetries. We also explore such principles for dataset and RB generation (Section 4.2), which, in fact, naturally leads to a specific format for combining MLP submodels, as explained in Section 4.3. Regarding the loss function, we also adopt a non-standard setting motivated from the RB-ROM (see Section 4.4).

Basic notation for Deep Neural Networks

230Here we review some basic concepts and notation for supervised learning using DNN. For the interested reader, we refer to [18,13] for a deeper presentation.

231. . , N s } be a dataset with N s samples (or snapshots). We aim at finding the mapping N (θ; ·) : R m → R n such that it minimises the regularised empirical risk

232where L : R m × R m → R + is the so-called cost or loss function, and R : R p × R m → R + is a regularising function controlled by a intensity factor λ ∈ R + . The vector θ should be understood as a collection of parameters that defines the mapping N (θ; ·), which is taken accordingly with the usual definition of the MLP architecture for DNN [13]. The size of θ, and thus the complexity of the DNN, depends on the pre-fixed number of hidden layers N L and the quantity of neurons in each layer (see Figure 4 to help with the interpretation).

233Moreover, concerning the practical implementation of the training, i.e., the optimisation procedure to solve (30), we use the ADAM version of the stochastic gradient with mini-batches, and, as regularisation techniques, we make use of dropout [36], l 2 regularisation, and early stop based on the validation error [13]. The exact numerical values used in our examples are specified in the appropriate section.

Dataset and RB construction strategies

234As seen in Section 3.1.2, the trace w of the fluctuations on ∂Ω R µ , is the linear combination of auxiliary solutions obtained to each load direction (w (I) ), for I = 1, 2, 3. Obtaining them involve fewer parameters, since the loads are fixed in unitary directions, which lead to a reduced parameter space to sample. In other words, exploiting this property in the dataset generation means that for a fixed number of high-fidelity snapshots, we can sample better a smaller parameter set P r ⊂ R N b instead of P ⊂ R Np , where N p = N b + 3 (in 2D). In this regard, it is also important to maximise the covering of P r by using a smart sampling strategy, for example one of the Quasi-Monte Carlo Family such as the Latin Hypercube Sampling (LHS) used in this work.

235Furthermore, in terms of mechanical load, solutions w (1) and w (2) as in (26) are equivalent in the sense one can be obtained by rotation of another, as depicted in Figure 5. Hence, choosing N rb basis functions to satisfy some accuracy criteria, we obtain B

236associated to w (I) for I = 1, 3, by applying the POD procedure of Algorithm 1.

The missing basis B

237(2) N rb can be obtained by B

238, where the anti-clockwise rotation of π/2rad is applied for each function in the basis by means of the orthonormal matrix Q π 2 . On the other hand, for a given p c ∈ R Nc , the solution w (2) (p c ) transforms according to w (2) (p c ) = w((p c , e 2 )) = Q π 2 w((π −1 π 2 (p c ), e 1 )) = Q π 2 w (1) (π −1 π 2 (p c )),

239where π −1 π 2 denotes a permutation on the parameter vector entries to reflect a clockwise rotation of π/2 rad on the microstructure pattern (see Figure 5). The actual format for the permutation is problem-and implementation-dependent. In the next section, we retake these ideas to construct the DNN model that predicts the BCs.

DeepBND-NN model: definition and combination of the axial and shear DNN submodels

240As already commented, before defining the DNN model, we need to obtain a DNN submodel for the axial unitary macro-strain (without loss of generality, chosen here as the horizontal one) and another DNN submodel for shear unitary macro-strain. Following the previous conventions, we denote them as N (1) , N (3) : R N b → R N rb , for the axially horizontal and shear loading, respectively. In turn, for the axially vertical loading, we invoke (31)

241Finally, the BC prediction for some p ∈ R Np reads as

242It is important to mention that by taking into account the physical structure of the problem into the DNN architecture (reviewed in Figure 6), we are able to: i) minimise the size of datasets needed since the size of parameter space (input) is smaller for each submodel; ii) use fewer number of neurons and layers (smaller complexity of the DNN architecture) since the prediction of directional load-wise solutions are also less complex; iii) profit from the full advantage of the RB representation due to their specialisation according to the load; iv) use fewer RB modes for the same accuracy; v) naturally take into account symmetries concerning horizontal and vertical loads and vi) training of 2 instead of 3 submodels. All points mentioned here are intrinsically related and overall render better accuracy and smaller computational burden in the dataset generation and training.

DNN-POD error analysis and Loss Function choice

243In this section, we precisely define the total error committed in the BC prediction, which accounts for the intrinsic truncation error when a RB is chosen (POD error) and also the error due to the DNN prediction. The latter naturally yields to the natural choice for the loss-function L used in (30). All notation here should be understood for one specific load, axial or shear, with indices omitted for convenience.

244First, let us consider some B N rb and S given. For some i = 1, . . . , N s and target HF solution w (i) ∈ S ⊂ L 2 (∂Ω R µ ), let us denote its projection upon span B N rb as Π N rb w (i) :=

245j represents its projection along ξ j . Analogously, we denote the DNN prediction of w (i) asŵ (i) :=

246A natural choice to measure the expected error is to consider the empirical averaged error over all elements of S namely

247where the sub-index (·) T stands for total error, as opposed to the contributions to the POD and DNN errors defined next. To this aim, using the fact that w (i) − Π N rb (w (i) ) ∈ (span B N rb ) ⊥ and that B N rb is orthonormal, it yields

248The boldface notation forβ (i) and β (i) simply mean the component-wise collection for their respective projections for a snapshot i. Note that the second term of the above expression when averaged over the N s snapshots corresponds to the POD mean squared error (E 2 P OD ) already defined in (10). On the other hand, the first term accounts for the DNN error, in which the mean squared version is defined below

249The expression above provides a physically-based formula for the loss function to be considered in (30). More precisely,

250where we have used the min-max scaling (·) =

251Finally, we can rewrite (33) as

252where we should notice that while E 2 P OD has a monotonous decreasing (w.r.t. N rb ) estimation given by (10), the E 2 DN N depends on the DNN architecture, initialisation, optimisation algorithm, etc. Therefore, to assess an optimal N rb for a given DNN architecture we should study the trade-off between these two errors. This is explored in Section 5.

253It is worth highlighting that the RB-based strategy adopted also induces a specific choice of weighted mean-squared error, where weights are given by eigenvalues found in the POD procedure, which are ranked by magnitude. This choice also leads to a natural total estimator in the L 2 (∂Ω R µ )-norm, which is the intrinsic choice to measure the BC discrepancies, that links the loss function reached in the training and the error committed by POD truncation itself. Importantly, each submodel can be trained separately and be put together only for prediction purposes, which is interesting from the computational point of view.

Index Load

254Use Size (N s ) Sample 1

255Axial Training/RB N trb s = 51200 P (1) (LHS(N trb s , seed = 1)) 2

256Shear Training/RB N trb s = 51200 P (1) (LHS(N trb s , seed = 1)) 3

257Axial Validation N val s = 10240 P (2) (LHS(N val s , seed = 2)) 4

258Shear Validation N val s = 10240 P (2) (LHS(N val s , seed = 2)) 5

259Axial Testing N tes s = 5120 P (3) (LHS(N tes s , seed = 3)) 6

260Shear Testing N tes s = 5120 P (3) (LHS(N tes s , seed = 3)) Table 1: Summary datasets for the different combinations of "Load/Use" scenarios. Each "Use" is associated with one LHS run for a given seed and number of samples.

DNN model construction: datasets, RB, and training

261In this section, we specify the choice of numerical parameters adopted to assess our method. We choose to constrain the more general setting of Sections 3.1 and 4. As already discussed, the DNN model construction encompasses the RB extraction and the training of a DNN for a given dataset, denoted here as training/RB dataset, with size N trb s = 51200. Moreover, from the point of view of DNN training, we also need to simulate auxiliary datasets for validation and testing reasons, in which the size is assumed to be respectively 20% (N val s = 10240) and 10% (N tes s = 5120) of the training/RB dataset size. Importantly, each dataset is considered for the axial and shear loads separately, as summarised in Table 1. The fixed coefficients used in all simulations are presented in Table 2, while the random sampling of the inclusion sizes, which are the random parameters of the problem, are shown next.

262Concerning the inclusions, they are placed in a 6 × 6 grid (see (24)), so N b = 36, with radii computed as follows

263where a = log(r max r min ), b = log( rmax rmin ), r max = 0.4

264is a random variable detailed next. The strategy (38) is used by [25] in a similar scenario and has the advantages of being empirically inspired and also a simple manner to constrain the value range for the radii. Regarding the sampling, we use the LHS with an underlying uniform distribution to sample θ (i) j for j = 1, . . . , N b , i = 1, . . . , N s . Notice that the LHS requires a priori knowledge of N s and N b , since it aims at achieving an optimal coverage of the high-dimensional parameter while keeping the number of samples small. Indeed, each realisation is not independent from each other. We use the default LHS implementation provided scikit-opt library [4], with three different seeds for random generation and sample sizes according to Table 1, yielding the samples P (1) , P (2) , and P (3) . Examples of some realisations of microstructures are found in Figure 7.

265It is widely known in the multiscale solid mechanics literature that the volume fraction φ = N b i=1 πr 2 i (L HF µ ) 2 is a random variable that plays a crucial role in the final solution. Consequently it is worth looking at how this variable is indirectly sampled by the assumed random generation algorithm, which focuses only on individual radii. In Figure 8, checking the histograms of φ for P (1) , P (2) , and P (3) , we can observe that, although not implicitly enforced, the resulting underlying probability distribution seems to be consistent along the several datasets. We can also perfectly use another sample strategy, provided that the resulting volume fractions remain close to the range that the model was designed for.

266For obtaining the HF solutions, we use the FEM with quadratic polynomials in triangular meshes. For the mesh generation using gmsh [12], we have imposed 20 equally spaced divisions for each internal boundary segment (bottom, right, top and left of ∂Ω R µ ), making a total of 160 degrees of freedom on the boundary, for all snapshots. The overall unstructured mesh on Ω H µ is then generated using the corresponding characteristic length size of the internal boundary. Accordingly, the number of functions in the RB will be at most the total number of degree of freedom on the boundary, and the associated POD-error should vanish close to this value. Indeed, the largest RB considered here is 140, which actually gives practically zero POD-error.

267Concerning the computational time, all simulations were performed in a cluster with 80 (160 threads) Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz cores and the results of solving each HF simulation are resumed in Table 3. The Total Time displayed is an estimate based on the statistics computed over all snapshots, i.e., the number of snapshots times the mean time spent per snapshot. The Wall Time is computed supposing the use of 32 cores and such that the Total Time is split equally. These estimates make sense only in embarrassingly parallel scenarios, as it is the case of the problem at hand. Notwithstanding, the ultimate time expended depend on many other factors, which are out of the scope of our analysis, such as the implementation, number of cores/threads, memory available, etc. Furthermore, Table 2: From left to right: the two Lamé coefficients (λ 1 µ and G 1 µ ) for the matrix and the multiplicative constant factor (γ) in the inclusion applied for both previous coefficients. The values for λ 1 µ and G 1 µ corresponds to E = 1.0 (units disregarded), the Young modulus, and ν = 0.3, the Poisson ratio, using standard transformation expressions for Hookean isotropic media. Finally, by applying POD procedure of Algorithm 1 to the datasets 1 and 2, we can evaluate the committed error in the sense of (10), as shown in Figure 9. This error represents the best expected approximation of the BC in the sense of L 2 (∂Ω R µ ), i.e., with no error due to the DNN approximation. We can verify these two errors are comparable, with a slight advantage to the shear over the axial model, for a given number of RB functions. As result, we have adopted the same DNN architecture and number of RB in both models, since they have comparable complexity.

268To define the models N (1) and N (3) , it is worth studying the sensibility of the total error E T with the number of RB (see (33)). It is reasonable to expect that at some point the decreasing of E P OD may not compensate the increasing of E DN N as N rb gets larger. Therefore, we have considered N rb ∈ {5, 10, 20, 40, 80, 140} and have trained 6 different DNN architectures (one for each N rb ), which do not differ regarding the hidden layers, but only the number of entries on the output. Also, we have considered a DNN architecture of 3 hidden layers with 300 neurons each. As activation functions, we have used the Swish [27] in the hidden layers followed by a linear activation in the output layer. To regularise the model, we have used the dropout with probability of retention p = 99, 5% in all hidden layers and λ = 10 −8 for l 2 regularisation for all weights and biases. The DNN has been trained using the ADAM optimiser with default parameters and mini-batches of 32 samples. An adaptive learning rate has been employed, decreasing linearly from 5.0 × 10 −4 until 5.0 × 10 −5 in epoch 5000 (last). It is worth mentioning that we reached these values by systematically testing combinations of smaller architectures, regularisation values, and activation functions. Therefore, such values should be understood as guidance for problems with similar complexity and dataset sizes, although there might be still room for small tunings. Finally, we used Tensorflow [1] for the implementation, and the final model is assumed to be the one yielding to the least loss function value in the validation dataset.

269In Figures 10(a) and 10(b) we can see the loss function history (E 2 DN N ) for the axial DNN model using N rb = 5 and N rb = 140, respectively. Loss function values are naturally larger for N rb = 140, since the output has more entries. The loss function evaluated on training and validation differ considerably as result of regularisation, which is not used in validation, the latter turning out to be smaller. For the last epochs, the validation reaches a plateau while the training error continues to decrease slightly. This indicates that the model reached its full capacity while avoiding overfitting. The very same comments apply to Figures 11(a) and 11(b), for the shear DNN model. For the results with different N rb , check Appendix C.

270Lastly, the final trained DNN models are compared in terms of the DNN, POD, and total errors (in test datasets) in Figures 12(a) and 12(b) for the axial and shear cases, respectively. For the axial case we observe the least total error for

Numerical Examples

271In this section we aim at assessing the DeepBND method in practice, i.e., in coupled two-scale simulations, also known as FE 2 [10]. Two kinds of problems are considered (recall the notation of Figure 1): i) the first with a strong scale separation, i.e., the size of heterogeneities is several orders of magnitude smaller than the dimension of the body such that L µ L; and ii) the second with L µ < L with about one or two orders of magnitude of difference. As already commented, the computational homogenisation approach is best suited for the i)-kind-problem, however due practical reasons ii)-kind-problem is also interesting since only in this situation direct numerical simulations (DNS) are feasible. The two kinds of problems differ substantially in terms of how the microstructures are generated at integration points. We postpone the presentation of further details to Section 6.1 and Section 6.2.

272Before digging into the numerical results, it is worth mentioning that we aim at answering the following questions:

2731. How does DeepBND compare in terms of accuracy with the periodic condition using the high-fidelity solution as reference? 2. How does DeepBND compare in terms of computational cost the high-fidelity model? 3. How does DeepBND compare in terms of accuracy with the periodic and high-fidelity approaches using the DNS as the reference solution?

274Here, it is worth recalling that the DeepBND and periodic models refer to local problems posed in Ω R µ , thus with the BC imposed on ∂Ω R µ , while high-fidelity stands for local problems Ω H µ , with periodic conditions imposed on ∂Ω H µ . We decided to choose periodic BCs for comparisons, since it is widely accepted that this model usually leads to more accurate results in contrast with classical models for BCs. As a natural choice, we answer questions 1 and 2 above using a i)-kind-problem (Section 6.1), and question 3 using a ii)-kind-problem (Section 6.2).

275Concerning the computational framework, in all numerical examples we use the micmacFenics library [29], an open-source Fenics-based library for the implementation classical BCs in the FE 2 setting, which can be alternatively found as part of multiphenics [5].

Cook Membrane

276In this example for i)-kind-problem we apply the DeepBND to the so-called Cook Membrane, a classical benchmark in solid mechanics normally used to test numerical methods for incompressible material [35], but also used in computational homogenisation [32] and to test ML-based surrogate models [22]. It consists in a solid structure with dimensions as in Figure 13(a) subjected to an homogeneous distributed vertical load t on the rightmost face. The magnitude of t and the material model itself varies among the literature considered. Therefore, for the sake of simplicity, we decided to consider the very same material as used in the dataset construction of Section 5 and t = (0, 0.05), which gives approximately the same vertical displacement of the tip A found in [35].

277We aim at comparing the results obtained using the boundary conditions i) DeepBND and ii) Periodic against our reference solution, obtained from high-fidelity microstructures. For the sake of simplicity, we choose the MDs randomly from the validation and test datasets from Section 5, already at hand. They are sorted among the elements without repetition, which is possible since there are fewer integration points in the finer mesh than the pre-simulated structures microstructures available. To obtain more reliable results, we always report results considering the average over 10 realisations, where each realisation should be understood as a different sorting of MDs along the integration points. Importantly, also notice that due the scale separation, the MDs choices keeps no neighbouring relation.

278As first study, we consider the convergence of the vertical displacement of the tip A (Figure 13(a)) with respect to the mesh divisions in the vertical direction. The coarser mesh looks like the one depicted in Figure 13(b), with 5 regular divisions along the vertical direction and a the horizontal number of divisions such as we keep the same characteristic length of the rightmost side. We then build the other finer meshes with 10, 20, 40, and 80 divisions. We can see the results in Figure 14, where a clear advantage of DeepBND against the periodic can be observed when compared with the high-fidelity results. In numerical terms, for the finest mesh we gain between one and two orders of magnitude in the relative error norm (see Table 4).

279As a second comparison, Figure 15 shows the von Mises equivalent stress field for the different models, where we can notice that the results for the periodic case (rightmost plot) are considerably noisier, which means worse, compared to the DeepBND simulation (central plot) that visually presents identical results to High-fidelity solution (leftmost plot). Such discrepancies become clearer by plotting errors of the Von Mises stresses, as depicted Figure 16, in which DeepBND performs about 3 orders of magnitude better than the periodic case. Similar conclusions for the stress are also retrieved component-wise in Figure 17. Analysing Figure 15, 17, and 13(a), we can see that points B, C and D were placed where extreme values for stresses are retrieved. Comparing the Von Mises stress along all realisations, DeepBND gains between one and two orders of magnitude in accuracy with respect to the periodic case, depending on the point considered, as seen in Table 4.

280In terms of computational times, we can see in Table 5 that the computational speed-up reached by DeepBND with respect to HF with linear BCs was about 59×. This number refers only to the embarrassingly parallel part of the problem, which in this case is the assembly of FEM matrices for the macroscale problem, specifically the solution of the local problems. The remaining fixed time for solving the macroscale problem is the same, hence no reason of including it here. Also, the mesh generation is not taken into account, but if taken, the speed-up would be even higher. The DeepBND was not compared directly with periodic BCs times, since due to the more efficient native Fenics/Multiphenics implementation of enforcing Dirichlet BCs with DeepBND, instead of the periodicity which is imposed by Lagrange Multipliers with additional pure Python routines. (g) σ HF 12 .

281(h) σ dnn 12 .

282(i) σ per 12 . Figure 17: Comparison Cauchy stress components in the Cook membrane.

Clamped bar using DNS

283The last test of the new multiscale methodology aims at assessing its performance in terms of accuracy and computational cost with respect to other multiscale methods in comparison to direct numerical simulations (DNS). In this second numerical example, for easiness of microstructures constructions, we adopt a rectangular bar Ω = [0, L x = 4] × [0, L y = 1] as macroscopic domain such that it is clamped on the left and loaded with a uniform shear on the right t = (0, −0.2), as in Figure 18. The material is organised by a N DN S x × N DN S y grid of H DN S = L x /N DN S x = L y /N DN S y squared blocks in which each block contains a random sized circular inclusion. The mesh for the DNS simulations is generated with the characteristic length h ≈ H DN S /15, which is similar to the one used in the dataset generation. We consider N DN S y ∈ {24, 72}, to study two different approximations with respect to the DNS, which is expected to be more suitable for larger N DN S y . Just for visualisation purposes, we show in Figure 19 one realisation of a structure with N DN S y = 7. Moreover, it is worth remarking that the mesh generation for larger N DN S y becomes cumbersome and computationally costly. Finally, it is also worth mentioning that the bar geometric dimensions were inspired by [22], however as in that reference the results presented were merely visual, we decided to compare DeepBND against HF and periodic models only.

284Concerning the multiscale simulations, we use a regular triangular mesh with 100 divisions vertically and 400 horizontally. Notice that this mesh is several orders of magnitude coarser than the DNS, which makes the FE 2 simulations still appealing, despite its also elevated cost. As usual, one MD should be associated at each integration point. Differently from the previous case (Cook's Membrane, Section 6.1), now the microstructures have to keep some relation with its neighbourhood. Given an integration point, we choose the associated MD as the 6x6 window having the closest centre point, and then we proceed as before by identifying the reduced 2x2 window and predicting the BCs. This strategy is depicted in Figure 18 Concerning the results, each structure has been solved using quadratic polynomial elements for the DNS mesh (DNS solution) and using the multiscale approach, with the MDs selected as aforementioned, for the DeepBND, periodic, and the HF cases. The latter cases have been compared with the DNS solution with respect to the L 2 norm, and the Euclidean norm for displacements at points A and B (see Figure 18). We can see in Figure 20(c) that relative errors for the N DN S y = 24 case are of order 1%, with slight advantages for the HF and DeepBND contrasted with the periodic case. On the other hand, for the N DN S y = 72 case, DeepBND model reaches 0.05% in relative error for the L 2 (Ω)-norm while the periodic model attains 0.2% in the same norm, i.e., a factor 4 of improvement. Similar gains were found for the point-wise displacement norms. Unexpectedly, comparing with the HF case, DeepBND performs even better, which shows that our approach does not only interpolate the HF targets, in the sense of averaging results taking close inputs, but it is also capable of learning more general relations associated to the whole assemble of data.

Concluding Remarks

285In this work, we have introduced a novel ML-based technique, so-called DeepBND, to predict more suitable BCs for multiscale problems. Exploiting the combination between ROM-RB and DNN, our method delivers physically admissible BCs and can learn from previous HF simulations. As result, numerical examples have shown that DeepBND reaches improvements in accuracy up to two orders of magnitude, keeping the same computational cost, compared to classical methods. While the construction of the DeepBND model might be computationally expensive (offline phase), we reached speed-up gains of approximately 60 times in the real-use FE 2 case (online phase) when compared to HF simulations, which justifies the fixed additional effort. Indeed, as seen in Algorithm 2, DeepBND method only adds one new step to the online phase, namely the DNN model evaluation, which is negligible in terms of additional computational complexity concerning the standard methodologies. Consequently, DeepBND can be straightforwardly implemented in already existing FE 2 codes [29].

286It is worth mentioning that our method presents clear advantages concerning FE 2 approaches with classical BCs and also those in which surrogate models replace the constitutive law. Concerning the former approach, as already discussed, the main asset is the computational speed-up by keeping similar accuracy. As for those using surrogate models, our method is naturally more precise since we still solve the physical problem. Indeed, DeepBND can be understood as an hybrid methodology, in the sense that it lies between the standard computational homogenisation with relatively large MDs and its complete replacement by surrogate models. Up to the best of authors' knowledge, our approach is unique in the literature.

287Finally, it is worth remarking that although we have particularly focused on problems arising in multiscale solid mechanics, our method is sufficiently generic and remains essentially the same for other boundary value problems at the microscale. Other possible example of applications are porous media with random porosity fields or fluid mechanics with random obstacles. DeepBND can also tackle MDs with different kinds of heterogeneities, e.g., elliptical inclusions not necessarily distributed in grid, continuous varying properties and so forth, with the only constraint that larger datasets are needed as the number of parameters increases.

참고문헌 46건

  1. Asymptotic Analysis for Periodic Structures 2011 10.1090/chel/374
  2. Material spatial randomness: From statistical to representative volume element Probabilistic Engineering Mechanics · Elsevier BV · 2005 10.1016/j.probengmech.2005.07.007
  3. Scale-dependent homogenization of random composites as micropolar continua European Journal of Mechanics - A/Solids · Elsevier BV · 2014 10.1016/j.euromechsol.2014.08.010
  4. A self-consistent mechanics of composite materials Journal of the Mechanics and Physics of Solids · Elsevier BV · 1965 10.1016/0022-5096(65)90010-4
  5. A variational approach to the theory of the elastic behaviour of multiphase materials Journal of the Mechanics and Physics of Solids · Elsevier BV · 1963 10.1016/0022-5096(63)90060-7
  6. Variational Foundations and Generalized Unified Theory of RVE-Based Multiscale Models Archives of Computational Methods in Engineering · Springer Science+Business Media · 2014 10.1007/s11831-014-9137-5
  7. An RVE-based multiscale theory of solids with micro-scale inertia and body force effects Mechanics of Materials · Elsevier BV · 2014 10.1016/j.mechmat.2014.10.007
  8. Dropout: a simple way to prevent neural networks from overfitting 2014
  9. Gmsh: A 3‐D finite element mesh generator with built‐in pre‐ and post‐processing facilities International Journal for Numerical Methods in Engineering · Wiley · 2009 10.1002/nme.2579
  10. Subsampling and homogenization to investigate variability of composite material mechanical properties Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2012 10.1016/j.cma.2012.06.003
  11. The local microscale problem in the multiscale modeling of strongly heterogeneous media: Effects of boundary conditions and cell size Journal of Computational Physics · Elsevier BV · 2006 10.1016/j.jcp.2006.07.034
  12. Certified Reduced Basis Methods for Parametrized Partial Differential Equations SpringerBriefs in mathematics · Springer International Publishing · 2015 10.1007/978-3-319-22470-1
  13. The heterogeneous multiscale method Acta Numerica · Cambridge University Press · 2012 10.1017/s0962492912000025
  14. A multilevel finite element method (FE2) to describe the response of highly non-linear structures using generalized continua Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2003 10.1016/s0045-7825(03)00348-7
  15. Approximation theory of the MLP model in neural networks Acta Numerica · Cambridge University Press · 1999 10.1017/s0962492900002919
  16. Reduced Basis Methods for Partial Differential Equations: An Introduction 2015
  17. Determination of RVE size for random composites with local volume fraction variation Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2016 10.1016/j.cma.2016.03.002
  18. TensorFlow: a system for large-scale machine learning Operating Systems Design and Implementation · 2016 10.5555/3026877.3026899
  19. Aspects of Computational Homogenization at Finite Deformations: A Unifying Review From Reuss' to Voigt's Bound Applied Mechanics Reviews · American Society of Mechanical Engineers · 2016 10.1115/1.4034024
  20. Deep Learning MIT Press eBooks · MIT Press · 2016
  21. The heterogeneous multiscale finite element method for the homogenization of linear elastic solids and a comparison with the FE<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" id="mml161" display="inline" overflow="scroll" altimg="si81.gif"><mml:msup><mml:mrow/><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math> method Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2017 10.1016/j.cma.2017.10.001
  22. Swish: a Self-Gated Activation Function arXiv (Cornell University) · Cornell University · 2017
  23. Non-intrusive reduced order modeling of nonlinear problems using neural networks Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.02.037
  24. Searching for Activation Functions arXiv (Cornell University) · Cornell University · 2017
  25. Convergence and error analysis of FE-HMM/FE<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" id="d1e1519" altimg="si2.svg"><mml:msup><mml:mrow /><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:math> for energetically consistent micro-coupling conditions in linear elastic solids European Journal of Mechanics - A/Solids · Elsevier BV · 2019 10.1016/j.euromechsol.2019.02.001
  26. Multi-scale modelling of arterial tissue: Linking networks of fibres to continua Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.06.031
  27. An inverse micro-mechanical analysis toward the stochastic homogenization of nonlinear random composites Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2019 10.1016/j.cma.2019.01.016
  28. Error bounds for approximations with deep ReLU neural networks in $W^{s,p}$ norms arXiv (Cornell University) · Cornell University · 2019
  29. Data driven approximation of parametrized PDEs by reduced basis and neural networks Journal of Computational Physics · Elsevier BV · 2020 10.1016/j.jcp.2020.109550
  30. A Theoretical Analysis of Deep Neural Networks and Parametric PDEs Constructive Approximation · Springer Science+Business Media · 2021 10.1007/s00365-021-09551-4
  31. Exponential decay of the resonance error in numerical homogenization via parabolic and elliptic cell problems Infoscience (Ecole Polytechnique Fédérale de Lausanne) · 2020
  32. TensorFlow: A system for large-scale machine learning arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1605.08695
  33. Deep Learning: An Introduction for Applied Mathematicians SIAM Review · Society for Industrial and Applied Mathematics · 2019 10.1137/18m1165748
  34. Machine learning for fast and reliable solution of time-dependent differential equations Journal of Computational Physics · Elsevier BV · 2019 10.1016/j.jcp.2019.07.050
  35. On periodic boundary conditions and ergodicity in computational homogenization of heterogeneous materials with random microstructure Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2019 10.1016/j.cma.2019.07.032
  36. Error bounds for approximations with deep ReLU neural networks in Ws,p norms Analysis and Applications · World Scientific · 2019 10.1142/s0219530519410021
  37. A surrogate model for computational homogenization of elastostatics at finite strain using high‐dimensional model representation‐based neural network International Journal for Numerical Methods in Engineering · Wiley · 2020 10.1002/nme.6493
  38. A Selection of Benchmark Problems in Solid Mechanics and Applied Mathematics Archives of Computational Methods in Engineering · Springer Science+Business Media · 2020 10.1007/s11831-020-09477-3
  39. On-the-Fly Adaptivity for Nonlinear Twoscale Simulations Using Artificial Neural Networks and Reduced Order Modeling Frontiers in Materials · Frontiers Media · 2019 10.3389/fmats.2019.00075
  40. A Theoretical Analysis of Deep Neural Networks and Parametric PDEs Constructive Approximation · Springer Science+Business Media · 2021 10.1007/s00365-021-09551-4
  41. Damage-driven strain localisation in networks of fibres: A computational homogenisation approach Computers & Structures · Elsevier BV · 2021 10.1016/j.compstruc.2021.106635
  42. Stochastic local FEM for computational homogenization of heterogeneous materials exhibiting large plastic deformations Computational Mechanics · Springer Science+Business Media · 2021 10.1007/s00466-021-02099-x
  43. Asymptotic Analysis for Periodic Structures Studies in mathematics and its applications · Elsevier BV · 1978 10.1016/s0168-2024(08)x7015-8
  44. Plasticité classique et viscoplasticité Springer eBooks · Springer Nature · 1972
  45. A stochastic computational multiscale approach; Application to MEMS resonators Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2015 10.1016/j.cma.2015.05.019
  46. Homogenization method for the study of composite media Lecture notes in mathematics · Springer Nature · 1983 10.1007/bfb0062368