1 Introduction

Multiscale modeling of fracturing solids is a challenging topic that has been the subject of considerable research efforts, cf. the reviews in [1, 2]. A frequently used approach is to perform numerical simulations on Statistical Volume Elements (SVEs),Footnote 1 whereby a fundamental challenge is that the SVE looses its representative character upon localization. This loss of representativeness leads, for standard first order computational homogenization, to pathological dependence of the numerical results on the macroscale mesh size and the SVE size. These problems have been addressed in the literature using several different schemes. A homogenization scheme that employs discrete cracks on both scales was proposed by Verhoosel et al. [5], where a homogenized traction-separation law is derived, assuming elastic material behavior prior to crack nucleation. An alternative scheme that assumes a weak discontinuity on the microscale was proposed by Coenen et al. [6]. Souza and Allen [7] instead considered visco-elastic materials, and developed a homogenized traction-separation law using interface elements on the microscale and XFEM on the macroscale. Methods employing XFEM were also proposed by Belytschko et al. [8] and Bosco et al. [9], whereas element embedded discontinuities were employed by Toro et al. [10].

The problem with pathological SVE size dependence can be addressed by separating the bulk deformation and the discontinuous deformation in a suitable way, thereby allowing incorporation of a length scale related to the fracture zone. Souza and Allen [7] compute the bulk and interface response from different SVEs, imposing only the discontinuous part of the strain on the localized SVE. Belytschko et al. [8] instead introduce a perforated unit cell, and separate the bulk deformation from the discontinuity by excluding unstable subdomains. This method allows simulations involving macroscale localization, but requires that the SVE size is approximately equal to the macroscale element size. A scheme that allows wider scale separation was proposed in [3, 6, 9], where the effective microscale discontinuity is identified by means of image analysis techniques in order to separate the bulk and discontinuity parts of the deformation. In [11], the effective discontinuity was instead identified by monitoring the damage evolution in the SVE. Even though these schemes have successfully addressed several difficulties associated to multiscale localization, we note that previous work tends to focus on approaches where the topology of the microscale discontinuity is explicitly identified and tracked dynamically in different ways [3, 6, 8,9,10,11]. Therefore, a simpler but more versatile approach, that does not require dynamic tracking of the microscale discontinuity, would be very valuable.

Regarding the choice of suitable boundary conditions (BCs) on the SVE, it is well known that both Dirichlet, strong periodic and Neumann BCs are inaccurate if localization occurs in the SVE. In fact, these BCs are inaccurate also during the early stages of crack propagation, i.e. prior to localization, if cracks intersect the SVE boundary, see e.g. the comparison between different BCs in [12]. Remedies proposed in the literature are to mix Dirichlet and Neumann BCs on different parts of the SVE boundary [8], to use Percolation Path Aligned BCs on strong form [3, 6], or to use localization aligned periodic BCs on weak form [13].

In the present work, we choose to use localization aligned weakly periodic BCs on the SVE and adopt the concept of Variationally Consistent Homogenization (VCH) to develop a multiscale method that is computationally efficient when the macroscale deformation localizes in a narrow band. We allow for the use of any suitable fracture model (XFEM, interface elements, embedded discontinuities, nonlocal continuum damage) on the microscale, but we consider strong discontinuities on the macroscale, and impose these discontinuities on the SVE in a smeared sense, thereby avoiding the need to explicitly identify and track a localization region in the SVE. More precisely, the homogenized response obtained from the SVEs in the damaged zone provides an (implicit) cohesive zone law, relating the macro discontinuity to the effective macro traction computed from the SVE response. Using a smeared macro-to-micro discontinuity transition to impose the macro discontinuity on the SVE, the macro discontinuity is thereby implicitly driven by the microscale response.

The remainder of the paper is organized as follows: The strong and weak forms of the single scale model problem under consideration are established in Sect. 2, followed by the derivation of the two-scale formulation in Sect. 3, a few illustrative examples in Sect. 4, and some concluding remarks in Sect. 5.

Fig. 1
figure 1

Specimen with internal boundaries representing cracks in the material

2 Model problem

In this section, we will establish the fully resolved problem, i.e., the single scale problem prior to introduction of computational homogenization. To this end, let us consider a solid domain \(\varOmega \) with external boundary \(\varGamma _{ext}\) and internal surfaces \(\varGamma _{int}\) representing cracks in the material as indicated in Fig. 1. The internal boundaries \(\varGamma _{int}\) have a predefined normal \(\varvec{n}_{int}\) and consist of two-sided surfaces, as also indicated in Fig. 1. The external boundary consists of a part \(\varGamma _{ext,D}\) with Dirichlet boundary conditions and a part \(\varGamma _{ext,N}\) with Neumann boundary conditions, so that the boundary of \(\varOmega \) is decomposed as \(\partial \varOmega = \varGamma _{ext,D}\cup \varGamma _{ext,N}\cup \varGamma _{int}\). Letting superscripts \(^{+}\) and \(^{-}\) denote quantities on the positive side and the negative side of the internal boundaries \(\varGamma _{int}\), respectively, we define the normal as \(\varvec{n}_{int}\overset{\mathrm {def}}{=}\varvec{\varvec{n}_{int}}^{-}\). Since the cracks represented by \(\varGamma _{int}\) may branch and intersect, \(\varvec{n}_{int}\) is not necessarily continuous along a chosen part of \(\varGamma _{int}\).

Considering small strains and quasistatic loading, and neglecting the body force, the strong form of the equilibrium equations is given by

$$\begin{aligned} \begin{aligned} - \mathbin {\varvec{\sigma }}\cdot \varvec{\nabla }&= \varvec{0} \ \text {in} \ \varOmega , \\ \varvec{t}^{+} + \varvec{t}^{-}&= \varvec{0} \ \text {on} \ \varGamma _{int}, \\ \varvec{t} \overset{\mathrm {def}}{=}\mathbin {\varvec{\sigma }}\cdot \varvec{n}&= \hat{\varvec{t}} \ \text {on} \ \varGamma _{ext,N}, \\ \varvec{u}&= \hat{\varvec{u}} \ \text {on} \ \varGamma _{ext,D} , \end{aligned} \end{aligned}$$
(1)

where \(\mathbin {\varvec{\sigma }}= \mathbin {\varvec{\sigma }}{\left\{ \mathbin {\varvec{\epsilon }}\right\} }\) is the Cauchy stress, \(\mathbin {\varvec{\epsilon }}= \left( \left[ \varvec{u}\otimes \varvec{\nabla }\right] ^{sym} \right) \) is the strain, \(\varvec{\nabla }\) is the gradient operator, \(\varvec{n}\) is a unit normal vector, \(\hat{\varvec{t}}\) is a prescribed traction and \(\hat{\varvec{u}}\) is a prescribed displacement. The traction on the internal boundaries \(\varGamma _{int}\) is described by a cohesive zone law specifying \(\varvec{t}^+ = - \varvec{t}^- = \varvec{t}{\left\{ \llbracket \varvec{u} \rrbracket \right\} }\) in terms of the jump \(\llbracket \varvec{u} \rrbracket \overset{\mathrm {def}}{=}\varvec{u}^{+} - \varvec{u}^{-}\) over the crack faces. Note that in the constitutive relations for the stress-strain relation \(\mathbin {\varvec{\sigma }}= \mathbin {\varvec{\sigma }}{\left\{ \mathbin {\varvec{\epsilon }}\right\} }\) and the traction-separation law \({\varvec{t} = \varvec{t}{\left\{ \llbracket \varvec{u} \rrbracket \right\} }}\), the dependence of \({\mathbin {\varvec{\sigma }}}\) and \({\varvec{t}}\) on internal variables has been omitted for brevity. Even though body forces have been neglected in Eq. (1), such forces can be included without fundamental difficulty.

The (displacement based, single field) weak solution corresponding to Eq. (1) is obtained by finding \(\varvec{u}\in \mathbb {U}\) such that

$$\begin{aligned} \begin{aligned}&a\left( \varvec{u},\delta \varvec{u}\right) - b\left( \varvec{t} \left\{ \llbracket \varvec{u} \rrbracket \right\} ,\delta \varvec{u}\right) = l\left( \delta \varvec{u}\right) \quad \forall \delta \varvec{u}\in \mathbb {U}^0 ,\\&\quad \mathbb {U}= \left\{ \varvec{v}: \varvec{v} \in \left[ \mathbb {H}^1{\left( \varOmega \right) }\right] ^d, \ \varvec{v} = \hat{\varvec{u}} \ \text {on} \ \varGamma _{ext,D}\right\} ,\\&\quad \mathbb {U}^0= \left\{ \varvec{v}: \varvec{v} \in \left[ \mathbb {H}^1{\left( \varOmega \right) }\right] ^d, \ \varvec{v} = \varvec{0} \ \text {on} \ \varGamma _{ext,D}\right\} , \end{aligned} \end{aligned}$$
(2)

where d is the number of spatial dimensions in the problem, \(\varvec{t} \left\{ \llbracket \varvec{u} \rrbracket \right\} \) denotes the traction obtained from the cohesive zone constitutive law, and where

$$\begin{aligned} a\left( \varvec{u},\delta \varvec{u}\right)&\overset{\mathrm {def}}{=}\int _{\varOmega } \mathbin {\varvec{\sigma }}: \left[ \delta \varvec{u}\otimes \varvec{\nabla }\right] {{\mathrm{d \!}}}\,\varOmega , \end{aligned}$$
(3)
$$\begin{aligned} b\left( \varvec{t} \left\{ \llbracket \varvec{u} \rrbracket \right\} ,\delta \varvec{u}\right)&\overset{\mathrm {def}}{=}\int _{\varGamma _{int}} \varvec{t} \left\{ \llbracket \varvec{u} \rrbracket \right\} \cdot \llbracket \delta \varvec{u} \rrbracket {{\mathrm{d \!}}}\,\varGamma , \end{aligned}$$
(4)
$$\begin{aligned} l\left( \delta \varvec{u}\right)&\overset{\mathrm {def}}{=}\int _{\varGamma _{ext,N}} \hat{\varvec{t}} \cdot \delta \varvec{u}{{\mathrm{d \!}}}\,\varGamma . \end{aligned}$$
(5)

Regarding the regularity requirements in \(\mathbb {U}\) and \(\mathbb {U}^0\), \(\mathbb {H}^1(\varOmega )\) denotes the space of square integrable functions with square integrable derivatives, and we recall that \(\varOmega \) is the “perforated” solid domain.

We remark that Eq. (2) represents the fully resolved problem in the sense that computational homogenization has not yet been introduced. In the next section, we will consider the situation that the fully resolved problem is intractable due to vast separation of length scales and derive a two-scale formulation of this equation.

3 A two-scale formulation including macroscopic localization

3.1 Preliminaries

In this section, we aim to construct a two-scale model of the problem given by Eq. (2), where \(\varGamma _{int}\) defines a large set of microcracks. On the macroscopic level, we consider the continuousFootnote 2 bulk domain \(\bar{\varOmega }= \varOmega \cup \varGamma _{int}\), where microscopic cracks are not explicitly resolved. To account for macroscopic strain localization, we split the macroscopic domain according to \(\bar{\varOmega }= \bar{\varOmega }_r\cup \bar{\varOmega }_d\), where \(\bar{\varOmega }_r\) denotes the regular part of the continuous bulk domain \({\bar{\varOmega }}\) where the microcracks are separated and the effective (macroscale) response shows no localization. In the discontinuity region \(\bar{\varOmega }_d\), on the other hand, we assume that microcracks have coalesced into macrocracksFootnote 3 causing a macroscale localization. We assume that the localization zone \({\bar{\varOmega }_d}\) is narrow, whereby \(\bar{\varOmega }_d\) can be described accurately by the effective discontinuity surface \(\bar{\varGamma }_d\) and a width \(l_d\), cf. Fig. 2.

Fig. 2
figure 2

Macroscopic domain \(\bar{\varOmega }\) divided into a part \(\bar{\varOmega }_d\) containing an effective macroscopic discontinuity surface \(\bar{\varGamma }_d\), and a part \(\bar{\varOmega }_r\) that is free from macroscopic discontinuities. The width \({l_d}\) of the discontinuity region \({\bar{\varOmega }_d}\) is also shown

3.2 Variationally consistent homogenization for continua with macroscopic localization

To derive a two-scale model, we adopt the procedure of Variationally Consistent Homogenization (VCH), which was introduced by Larsson and Runesson [14] in the context of adaptive scale bridging, and later applied to transient heat flow in [15] and to microfracturing solids in [12]. The key ingredient in the present work, which is an extension of [12], is the introduction of macroscopic localization.

As the first step of VCH, we introduce the decomposition \(\mathbb {U}= \mathbb {U}^{\mathrm {M}}\oplus \mathbb {U}^{\mathrm {s}}\) and consider a split of the solution into macro and micro parts according to \( \varvec{u} = \varvec{u}^{\mathrm {M}} + \varvec{u}^{\mathrm {s}}\) , where \(\varvec{u}^{\mathrm {M}} \in \mathbb {U}^{\mathrm {M}}\) describes smooth (average) parts of the solution and \(\varvec{u}^{\mathrm {s}} \in \mathbb {U}^{\mathrm {s}}\) are the microscale fluctuations. Assuming the same split for any function in \(\mathbb {U}^0\), we can state the original problem in Eq. (2) as the macro problem

$$\begin{aligned}&a\left( \varvec{u},\delta \varvec{u}^{\mathrm {M}}\right) - b\left( \varvec{t} \left\{ \llbracket \varvec{u} \rrbracket \right\} ,\delta \varvec{u}^{\mathrm {M}}\right) = l\left( \delta \varvec{u}^{\mathrm {M}}\right) \quad \forall \delta \varvec{u}^{\mathrm {M}} \in \mathbb {U}^{\mathrm {M},0}, \end{aligned}$$
(6)

and the micro problem

$$\begin{aligned} a\left( \varvec{u},\delta \varvec{u}^{\mathrm {s}}\right) - b\left( \varvec{t} \left\{ \llbracket \varvec{u} \rrbracket \right\} ,\delta \varvec{u}^{\mathrm {s}}\right)&= l\left( \delta \varvec{u}^{\mathrm {s}}\right) \quad \forall \delta \varvec{u}^{\mathrm {s}} \in \mathbb {U}^{\mathrm {s},0}, \end{aligned}$$
(7)

where we recall that \({a\left( \bullet ,\bullet \right) }\), \({b\left( \bullet ,\bullet \right) }\) and \({l\left( \bullet \right) }\) were defined in Eqs. (3), (4) and (5), respectively. So far, we note that Eqs. (6) and (7) pertain to the Variational MultiScale method (VMS) introduced by Hughes et al. [16].

The second step of VCH is to restate the integrals in Eq. (6) using running averages in order to obtain a homogenized problem. To this end, we consider the split of the domain \(\bar{\varOmega }= \bar{\varOmega }_r\cup \bar{\varOmega }_d\) as discussed in Sect. 3.1 and, for the regular domain \(\bar{\varOmega }_r\), we introduce the approximation

$$\begin{aligned} \begin{aligned}&\int _{\bar{\varOmega }_r} f {{\mathrm{d \!}}}\,\varOmega + \int _{\varGamma _{int}\cap \bar{\varOmega }_r} g {{\mathrm{d \!}}}\,\varGamma \approx \int _{\bar{\varOmega }_r} f_{\Box } {{\mathrm{d \!}}}\,\varOmega , \\&\quad f_{\Box } \overset{\mathrm {def}}{=}\frac{1}{\left| \varOmega _{\Box }\right| } \left[ \int _{\varOmega _{\Box }} f {{\mathrm{d \!}}}\,\varOmega + \int _{\varGamma _{int}\cap \varOmega _{\Box }} g {{\mathrm{d \!}}}\,\varGamma \right] , \end{aligned} \end{aligned}$$
(8)

where \(\varOmega _{\Box }\) denotes a Statistical Volume Element (SVE), formally unique for any point in \(\bar{\varOmega }\).

Remark

Note that, if we split the entire domain into adjacent SVEs so that \(\bar{\varOmega }_r= \cup _i \varOmega _{\Box ,i}\), and assume the SVE integral \(f_{\Box }\) to be piecewise constant in each \(\varOmega _{\Box ,i}\), the approximation in Eq. (8) becomes an identity.

For the discontinuity region \(\bar{\varOmega }_d\), we state the integrals based on the interface \(\bar{\varGamma }_d\) according to

$$\begin{aligned} \int _{\bar{\varOmega }_d} f {{\mathrm{d \!}}}\,\varOmega + \int _{\varGamma _{int}^{+} \cap \bar{\varOmega }_d} g {{\mathrm{d \!}}}\,\varGamma \approx \int _{\bar{\varOmega }_d} f_{\Box } {{\mathrm{d \!}}}\,\varOmega \approx \int _{\bar{\varGamma }_d} l_df_{\Box } {{\mathrm{d \!}}}\,\varGamma , \end{aligned}$$
(9)

where the last approximation is based on the assumption of a narrow region \(\bar{\varOmega }_d\), and where \(f_{\Box }\), that was defined in Eq. (8), is now evaluated in a point on \(\bar{\varGamma }_d\).

In the presence of localization, it is clear that the quantity \(f_{\Box }\) in Eq. (9) will not be representative if evaluated on an arbitrarily sized SVE \(\varOmega _{\Box }\). To overcome this issue, we consider \(\bar{\varOmega }_d\) entirely populated by SVEs through the (narrow) width \(l_d\),Footnote 4 cf. Fig. 2. Defining an effective discontinuity surface \(\bar{\varGamma }_{d,\Box }\) as the plane through the center of the SVE parallel to \(\bar{\varGamma }_{d}\), we then obtain the geometric relation

$$\begin{aligned} l_d= \frac{\left| \varOmega _{\Box }\right| }{\left| \bar{\varGamma }_{d,\Box } \right| }. \end{aligned}$$
(10)

With this choice, it becomes evident that the homogenization in Eq. (9) is a homogenization on \(\bar{\varGamma }_{d}\), whereas the direction perpendicular to \(\bar{\varGamma }_{d}\) is fully resolved. We also note that, since \({l_d}\) depends only on the SVE size and the orientation of the effective discontinuity \({\bar{\varGamma }_{d}}\), \({l_d}\) is independent of the loading direction.

Finally, in order to derive the homogenized problem, prolongation conditions need to be specified. More precisely, the macroscale part \({\varvec{u}^{\mathrm {M}}}\) of the resolved solution inside \({\varOmega _{\Box }}\) needs to be expressed in terms of the homogenized solution field \({\bar{\varvec{u}}}\). To this end, we shall adopt different strategies for \(\bar{\varOmega }_r\) and \(\bar{\varOmega }_d\). We start off with introducing the homogenized displacement ansatz \(\bar{\varvec{u}}\in \bar{\mathbb {U}}\) which is smooth on \(\hat{\varOmega }\overset{\mathrm {def}}{=}\bar{\varOmega }_r\cup \bar{\varOmega }_d\setminus \bar{\varGamma }_d\) but may be discontinuous across \(\bar{\varGamma }_d\). For SVEs pertaining to the regular subdomain \({\bar{\varOmega }_r}\), we use the ansatz from conventional first order homogenization,

$$\begin{aligned} \varvec{u}^{\mathrm {M}} = \left. \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }\right| _{\bar{\varvec{x}}} \cdot \left[ \varvec{x} - \bar{\varvec{x}} \right] \text { inside } \varOmega _{\Box }{\left( \bar{\varvec{x}} \right) }, \quad \forall \bar{\varvec{x}} \in \bar{\varOmega }_r, \end{aligned}$$
(11)

where \(\varOmega _{\Box }{\left( \bar{\varvec{x}} \right) }\) is the SVE centered around \(\bar{\varvec{x}}\).

For SVEs located on \(\bar{\varGamma }_d\), we adopt a smeared approach, whereby the average strain inside \(\varOmega _{\Box }\) is expressed as the sum of the average bulk strain and the strain contribution from the displacement jump smeared over \(l_d\). Hence, we state the macroscale displacement field as

$$\begin{aligned} \varvec{u}^{\mathrm {M}} = \left. \bar{\mathbin {\varvec{\epsilon }}}_d\right| _{\bar{\varvec{x}}} \cdot \left[ \varvec{x} - \bar{\varvec{x}} \right] \text { inside } \varOmega _{\Box }{\left( \bar{\varvec{x}} \right) }, \quad \forall \bar{\varvec{x}} \in \bar{\varGamma }_d. \end{aligned}$$
(12)

Here, we define the effective strain on \(\bar{\varGamma }_d\) as

$$\begin{aligned} \bar{\mathbin {\varvec{\epsilon }}}_d\overset{\mathrm {def}}{=}\bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{2l_d} \left( \llbracket \bar{\varvec{u}} \rrbracket \otimes \varvec{n} + \varvec{n} \otimes \llbracket \bar{\varvec{u}} \rrbracket \right) , \end{aligned}$$
(13)

where we introduced the bulk strain on \(\bar{\varGamma }_d\) asFootnote 5

$$\begin{aligned}&\bar{\mathbin {\varvec{\epsilon }}}_0\overset{\mathrm {def}}{=}\frac{1}{l_d} \left( \int _{s = -l_d/2}^{s = 0^{-}} \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }\left( \bar{\varvec{x}} + s \varvec{n} \right) {{\mathrm{d \!}}}s \right. \nonumber \\&\qquad \qquad \qquad \left. + \int _{s = 0^{+}}^{s = l_d/2} \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }\left( \bar{\varvec{x}} + s \varvec{n} \right) {{\mathrm{d \!}}}s \right) \end{aligned}$$
(14)

and where \(\varvec{n}\) is the normal of \(\bar{\varGamma }_d\) at \(\bar{\varvec{x}}\). It is easily verified that the integration of Eq. (12) gives displacement compatibility between \(\bar{\varvec{u}}\) and \(\varvec{u}^{\mathrm {M}}\) on the boundary of \(\bar{\varOmega }_d\). For the numerical implementation, we further introduce the approximation

$$\begin{aligned} \bar{\mathbin {\varvec{\epsilon }}}_0{\left[ \bar{\varvec{u}}\right] }\left( \bar{\varvec{x}} \right) \approx \frac{1}{2} \left( \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }^{+} + \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }^{-} \right) , \end{aligned}$$
(15)

where the average of the strains

$$\begin{aligned} \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }^{\pm } \overset{\mathrm {def}}{=}\lim _{s \rightarrow 0} \mathbin {\varvec{\epsilon }}{\left[ \bar{\varvec{u}}\right] }\left( \bar{\varvec{x}} \pm s \varvec{n} \right) \end{aligned}$$
(16)

replaces the integral expressions.

Using the integral transformations in Eqs. (8) and (9), together with the prolongation expressions in Eqs. (11) and (12), we may now restate Eq. (6) as the macroscale problem of finding \(\bar{\varvec{u}}\in \bar{\mathbb {U}}\) such that

$$\begin{aligned}&\int _{\bar{\varOmega }_r} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega + \int _{\bar{\varGamma }_d} l_d\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}_d{{\mathrm{d \!}}}\,\varGamma \nonumber \\&\quad = \int _{\varGamma _{ext,N}} \hat{\varvec{t}} \cdot \delta \bar{\varvec{u}}{{\mathrm{d \!}}}\,\varGamma \quad \forall \delta \bar{\varvec{u}}\in \bar{\mathbb {U}}^0 , \end{aligned}$$
(17)

where \(\bar{\mathbin {\varvec{\epsilon }}}\overset{\mathrm {def}}{=}\left[ \bar{\varvec{u}}\otimes \varvec{\nabla }\right] ^{sym}\) and the effective macroscale stress \(\bar{\mathbin {\varvec{\sigma }}}\) is obtained from the microscale solution according to

$$\begin{aligned} \bar{\mathbin {\varvec{\sigma }}} \overset{\mathrm {def}}{=}\frac{1}{\left| \varOmega _{\Box }\right| } \int _{\varOmega _{\Box }} \mathbin {\varvec{\sigma }}{{\mathrm{d \!}}}\,\varOmega . \end{aligned}$$
(18)

3.3 Operational format of integral expressions

Solving the macroscale problem as given by Eq. (17) requires evaluation of an integral over \(\bar{\varOmega }_r\). This evaluation is inconvenient from a computational perspective, because the finite element mesh will not match \(\bar{\varOmega }_r\). In order to restate \(\int _{\bar{\varOmega }_r} \bullet {{\mathrm{d \!}}}\,\varOmega \), we recall that \(\hat{\varOmega }= \bar{\varOmega }_r\cup \bar{\varOmega }_d\setminus \bar{\varGamma }_d\) and use the definition \(\int _{\bar{\varOmega }_r} \bullet {{\mathrm{d \!}}}\,\varOmega = \int _{\hat{\varOmega }} \bullet {{\mathrm{d \!}}}\,\varOmega - \int _{\hat{\varOmega }_d} \bullet {{\mathrm{d \!}}}\,\varOmega \), where \(\hat{\varOmega }_d\overset{\mathrm {def}}{=}\bar{\varOmega }_d\setminus \bar{\varGamma }_d\) is the discontinuity region excluding the sharp discontinuity surface. Then, we may employ the approximation

$$\begin{aligned} \int _{\hat{\varOmega }_d} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega \approx \int _{\bar{\varGamma }_d} l_d\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}_0{{\mathrm{d \!}}}\,\varGamma , \end{aligned}$$
(19)

where the discontinuity is removed from the argument (i.e. \(\bar{\mathbin {\varvec{\epsilon }}}_0\) and \(\delta \bar{\mathbin {\varvec{\epsilon }}}_0\)) to account for the fact that \(\hat{\varOmega }_d\) does not contain \(\bar{\varGamma }_d\) itself. Finally, we obtain

$$\begin{aligned}&\int _{\bar{\varOmega }_r} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega + \int _{\bar{\varGamma }_d} l_d\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}_d{{\mathrm{d \!}}}\,\varGamma \approx \nonumber \\&\int _{\hat{\varOmega }} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega + \int _{\bar{\varGamma }_d} l_d\left( \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }- \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }\right) : \delta \bar{\mathbin {\varvec{\epsilon }}}_0{{\mathrm{d \!}}}\,\varGamma \nonumber \\&\quad + \int _{\bar{\varGamma }_d} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}{{\mathrm{d \!}}}\,\varGamma , \end{aligned}$$
(20)

where we also used that \(\delta \bar{\mathbin {\varvec{\epsilon }}}_d= \delta \bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{l_d} \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}\). Inserting the result from Eq. (20) in Eq. (17), the macroscale problem is then to find \(\bar{\varvec{u}}\in \bar{\mathbb {U}}\) such that

$$\begin{aligned} \bar{a}\left( \bar{\varvec{u}},\delta \bar{\varvec{u}}\right) = l\left( \delta \bar{\varvec{u}}\right) \quad \forall \delta \bar{\varvec{u}}\in \bar{\mathbb {U}}^0 , \end{aligned}$$
(21)

where

$$\begin{aligned} \bar{a}\left( \bar{\varvec{u}},\delta \bar{\varvec{u}}\right)&= \underbrace{\int _{\hat{\varOmega }} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \mathbin {\varvec{\epsilon }}{ \left[ \bar{\varvec{u}}\right] }\right\} }: \mathbin {\varvec{\epsilon }}{ \left[ \delta {\bar{\varvec{u}}}\right] }{{\mathrm{d \!}}}\,\varOmega }_{\overset{\mathrm {def}}{=}I_1} \nonumber \\&\quad + \underbrace{ \int _{\bar{\varGamma }_d} l_d\left( \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }- \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0{ \left[ \bar{\varvec{u}}\right] }\right\} }\right) : \bar{\mathbin {\varvec{\epsilon }}}_0{ \left[ \delta {\bar{\varvec{u}}}\right] }{{\mathrm{d \!}}}\,\varGamma }_{\overset{\mathrm {def}}{=}I_2} \nonumber \\&\quad +\underbrace{\int _{\bar{\varGamma }_d} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}{{\mathrm{d \!}}}\,\varGamma }_{\overset{\mathrm {def}}{=}I_3}. \end{aligned}$$
(22)

We note that \(I_1\) represents the contribution from the effective bulk response, and that \(I_3\) represents a contribution of cohesive zone type (homogenized from a damaging SVE) since

$$\begin{aligned} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}\!= \!\left\{ \bar{\varvec{t}}_d\overset{\mathrm {def}}{=}-\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }\cdot \varvec{n} \right\} \!=\! -\bar{\varvec{t}}_d\cdot \llbracket \delta \bar{\varvec{u}} \rrbracket . \end{aligned}$$
(23)

Note, however, that the cohesive traction \(\bar{\varvec{t}}_d\) depends also on the bulk strain because \(\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }= \bar{\mathbin {\varvec{\sigma }}} \left\{ \bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{l_d} \left[ \llbracket \varvec{u} \rrbracket \otimes \varvec{n} \right] ^{sym} \right\} \). Furthermore, we remark that the novel term \(I_2\) is scaled by \(l_d\), and therefore will be negligible for sufficiently small \(l_d\).

To ensure energy consistency between the micro- and macroscales, the Hill–Mandel condition needs to be fulfilled. Following Larsson et al. [20] it is clear that a Hill–Mandel condition on the form

$$\begin{aligned}&\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}_d\nonumber \\&\quad = \frac{1}{\left| \varOmega _{\Box }\right| } \left( \int _{\varOmega _{\Box }} \mathbin {\varvec{\sigma }}{\left\{ \mathbin {\varvec{\epsilon }}\right\} } : \delta {\mathbin {\varvec{\epsilon }}} {{\mathrm{d \!}}}\,\varOmega - \int _{\varGamma _{\Box ,int}} \varvec{t}{\left\{ \llbracket \varvec{u} \rrbracket \right\} } \cdot \llbracket \delta \varvec{u} \rrbracket {{\mathrm{d \!}}}\,\varGamma \right) \end{aligned}$$
(24)

is met. Utilizing the relation \({\bar{\mathbin {\varvec{\epsilon }}}_d= \bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{l_d} \left( \llbracket \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}}\), we conclude that

$$\begin{aligned}&\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}_0- \frac{1}{l_d} \bar{\varvec{t}}_d\cdot \llbracket \delta \bar{\varvec{u}} \rrbracket \nonumber \\&\quad \!=\! \frac{1}{\left| \varOmega _{\Box }\right| } \left( \int _{\varOmega _{\Box }} \mathbin {\varvec{\sigma }}{\left\{ \mathbin {\varvec{\epsilon }}\right\} } : \delta {\mathbin {\varvec{\epsilon }}} {{\mathrm{d \!}}}\,\varOmega \!-\! \int _{\varGamma _{\Box ,int}} \varvec{t}{\left\{ \llbracket \varvec{u} \rrbracket \right\} } \cdot \llbracket \delta \varvec{u} \rrbracket {{\mathrm{d \!}}}\,\varGamma \right) , \end{aligned}$$
(25)

which is the relevant Hill–Mandel condition for an SVE on \({\bar{\varGamma }_d}\).

Regarding the implementation of the macro problem, we choose to use the eXtended Finite Element Method (XFEM) [17,18,19] for the numerical representation of \({\bar{\varGamma }_d}\). For the numerical solution of Eq. (21), different sets of integration points are needed for the evaluation of \({\bar{a}\left( \bar{\varvec{u}},\delta \bar{\varvec{u}}\right) }\) in enriched macroscale elements as shown in Fig. 3. More precisely, the contribution from \({I_1}\) in Eq. (22) is evaluated by computing \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }}\) in bulk integration points as shown in the figure. For the contribution from \({I_2}\) and \({I_3}\), we employ two sets of integration points on \({\bar{\varGamma }_d}\) as also shown in the figure. Here, one set of integration points is used to evaluate \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }}\) and one set of integration points is used to evaluate \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }}\). We emphasize that both \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }}\), \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }}\) and \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }}\) denote the homogenized response of SVEs, where the effective strain imposed on the SVE is \({\bar{\mathbin {\varvec{\epsilon }}}, \bar{\mathbin {\varvec{\epsilon }}}_d}\) and \({\mathbin {\varvec{\epsilon }}0}\), respectively.

Fig. 3
figure 3

Numerical integration of \({\bar{a}\left( \bar{\varvec{u}},\delta \bar{\varvec{u}}\right) }\) in enriched macroscale elements [see Eq. (22)]. \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }}\) is computed in bulk integration points to evaluate \({I_1}\). The evaluation of \({I_3}\) requires computation of \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }}\) in integration points on \({\bar{\varGamma }_d}\), whereas \({I_2}\) requires computation of both \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }}\) and \({\bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }}\) on \({\bar{\varGamma }_d}\)

For small SVE sizes,Footnote 6 i.e. for small \(l_d\), we may consider the following alternatives when solving Eq. (21):

  • Alt. I: Eq. (21) is evaluated as it is, with all terms included:

    $$\begin{aligned} \bar{a}\left( \varvec{u},\delta \varvec{u}\right)&= \int _{\hat{\varOmega }} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega \nonumber \\&\quad + \int _{\bar{\varGamma }_d} l_d\left( \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }- \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }\right) : \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varGamma \nonumber \\&\quad + \int _{\bar{\varGamma }_d} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}{{\mathrm{d \!}}}\,\varGamma ,\end{aligned}$$
    (26)
    $$\begin{aligned} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }&= \bar{\mathbin {\varvec{\sigma }}}\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{l_d} \left( \llbracket \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) \right\} . \end{aligned}$$
    (27)
  • Alt. II: \(l_d\) is assumed to be small, so that \(\int _{\bar{\varGamma }_d} l_d \left( \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }- \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0\right\} }\right) : \delta \bar{\mathbin {\varvec{\epsilon }}}_0{{\mathrm{d \!}}}\,\varGamma \approx 0\):

    $$\begin{aligned} \bar{a}\left( \varvec{u},\delta \varvec{u}\right)&\approx \int _{\hat{\varOmega }} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega \nonumber \\&\quad + \int _{\bar{\varGamma }_d} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}{{\mathrm{d \!}}}\,\varGamma ,\end{aligned}$$
    (28)
    $$\begin{aligned} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }&= \bar{\mathbin {\varvec{\sigma }}}\left\{ \bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{l_d} \left( \llbracket \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) \right\} . \end{aligned}$$
    (29)
  • Alt. III: As Alt. II, but the bulk strain in the SVEs on \(\bar{\varGamma }_d\) is neglected:

    $$\begin{aligned} \bar{a}\left( \varvec{u},\delta \varvec{u}\right)&\approx \int _{\hat{\varOmega }} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}\right\} }: \delta \bar{\mathbin {\varvec{\epsilon }}}{{\mathrm{d \!}}}\,\varOmega \nonumber \\&\quad + \int _{\bar{\varGamma }_d} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }: \left( \llbracket \delta \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) ^{sym}{{\mathrm{d \!}}}\,\varGamma ,\end{aligned}$$
    (30)
    $$\begin{aligned} \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\mathbin {\varvec{\epsilon }}}_d\right\} }&\approx \bar{\mathbin {\varvec{\sigma }}}\left\{ \frac{1}{l_d} \left( \llbracket \bar{\varvec{u}} \rrbracket \otimes \varvec{n} \right) \right\} . \end{aligned}$$
    (31)

We remark that Alt. I and Alt. II require duplicated SVEs in the Gauss points on \(\bar{\varGamma }_d\), whereas single SVEs are sufficient for Alt. III. Furthermore, we note that Alt. I and Alt. III retain symmetry (if it exists for the original problem), whereas Alt. II is inherently unsymmetric. The performance of these approximations for different SVE sizes will be examined in the numerical examples presented in Sect. 4.

Fig. 4
figure 4

Statistical Volume Element (SVE) with boundary divided into image and mirror parts (a). An effective discontinuity passing through the center of the SVE is also shown, together with the shifted mirror function. The corresponding stacking of SVEs is shown in (b)

3.4 Localization aligned weakly periodic boundary conditions

To solve the microscale problem obtained from Eq. (7) on an SVE \(\varOmega _{\Box }\), the macroscopic part of the displacement given by Eq. (11) or Eq. (12) is imposed on the SVE boundary through suitable BCs. In the present work, we will use weakly periodic boundary conditions that are aligned to the direction of the effective discontinuity in the SVE [13]. To this end, we divide the SVE boundary into an image part \(\varGamma _{\Box }^{+}\) and a mirror part \(\varGamma _{\Box }^{-}\) as shown in Fig. 4a. Furthermore, we introduce a mapping \(\varvec{\varphi }_{per}: \varGamma _{\Box }^{+} \rightarrow \varGamma _{\Box }^{-}\) such that points on \(\varGamma _{\Box }^{+}\) and \(\varGamma _{\Box }^{-}\) are associated to each other according to \(\varvec{x}^{-} = \varvec{\varphi }_{per}{(\varvec{x}^{+})}\). For SVEs pertaining to bulk response, i.e. for quadrature points in \(\hat{\varOmega }\), the mapping is typically performed along horizontal and vertical lines between the surfaces of the square SVE domain. However, for SVEs on the localization band \(\bar{\varGamma }_d\), the mapping is constructed such that the periodicity directions are aligned with the direction of the effective discontinuity, cf. Fig. 4a. We also define the jumpFootnote 7 between a point \(\varvec{x}^{+}\) on \(\varGamma _{\Box }^{+}\) and the associated point \(\varvec{x}^{-} = \varvec{\varphi }_{per}{(\varvec{x}^{+})}\) on \(\varGamma _{\Box }^{-}\) as

$$\begin{aligned} {\llbracket \varvec{u} \rrbracket }_{\Box } \overset{\mathrm {def}}{=}{\varvec{u}}_{\varGamma _{\Box }^{+}} - {\varvec{u}}_{\varGamma _{\Box }^{-}} = \varvec{u}{(\varvec{x}^{+})} - \varvec{u}{\left( \varvec{\varphi }_{per}{(\varvec{x}^{+})}\right) } \ \text {on} \ \varGamma _{\Box }^{+} . \end{aligned}$$

Next, we impose localization aligned weakly periodic boundary conditions on the SVE by introducing an independent discretization for the boundary traction \({\mathbin {{\varvec{t}}_{\lambda }}}\) and requiring \({\llbracket \varvec{u} \rrbracket }_{\Box } = \bar{\varvec{\epsilon }}\cdot {\llbracket \varvec{x} - \bar{\varvec{x}} \rrbracket }_{\Box }\) to hold in a weak sense on \(\varGamma _{\Box }^{+}\). The SVE problem is then to find \(\varvec{u}\in \mathbb {U}_{\Box }\) and \(\mathbin {{\varvec{t}}_{\lambda }}\in \mathbb {T}_{\Box }\) such that

$$\begin{aligned}&a_{\Box }\left( \varvec{u},\delta \varvec{u}\right) - d_{\Box } \left( \mathbin {{\varvec{t}}_{\lambda }}, \delta \varvec{u}\right) = 0 \quad \forall \delta \varvec{u}\in \mathbb {U}_{\Box } , \nonumber \\&\quad - d_{\Box } \left( \delta \mathbin {{\varvec{t}}_{\lambda }}, \varvec{u}\right) = - d_{\Box } \left( \delta \mathbin {{\varvec{t}}_{\lambda }}, \bar{\varvec{\epsilon }}\cdot \left[ \varvec{x} - \bar{\varvec{x}} \right] \right) \quad \forall \delta \mathbin {{\varvec{t}}_{\lambda }}\in \mathbb {T}_{\Box } , \end{aligned}$$
(32)
$$\begin{aligned}&\mathbb {U}_{\Box } = \left\{ \varvec{v} : \varvec{v} \in \left[ \mathbb {H}^{1}{\left( \varOmega _{\Box }\right) } \right] ^d , \ \int _{\varGamma _{\Box }} \varvec{v} {{\mathrm{d \!}}}\,\varGamma = \varvec{0} \right\} , \end{aligned}$$
(33)
$$\begin{aligned}&\mathbb {T}_{\Box } = \left\{ \varvec{t} : \varvec{t} \in \left[ \mathbb {L}_{2}{\left( \varGamma _{\Box }^{+}\right) } \right] ^{d} \right\} , \end{aligned}$$
(34)

where we introduced the expressions

$$\begin{aligned}&a_{\Box }\left( \varvec{u},\delta \varvec{u}\right) \overset{\mathrm {def}}{=}\frac{1}{\left| \varOmega _{\Box }\right| } \left[ \int _{\varOmega _{\Box }} \mathbin {\varvec{\sigma }}: \mathbin {\varvec{\epsilon }}\left[ \delta \varvec{u}\right] {{\mathrm{d \!}}}\,\varOmega \right. \nonumber \\&\quad \left. - \int _{\varGamma _{\Box ,int}} \varvec{t} \cdot \llbracket \delta \varvec{u} \rrbracket {{\mathrm{d \!}}}\,\varGamma \right] , \end{aligned}$$
(35)
$$\begin{aligned}&d_{\Box } \left( \mathbin {{\varvec{t}}_{\lambda }}, \delta \varvec{u}\right) \overset{\mathrm {def}}{=}\frac{1}{\left| \varOmega _{\Box }\right| } \int _{\varGamma _{\Box }^{+}} \mathbin {{\varvec{t}}_{\lambda }}\cdot {\llbracket \delta \varvec{u} \rrbracket }_{\Box } {{\mathrm{d \!}}}\,\varGamma , \end{aligned}$$
(36)

and where \(\mathbb {L}_{2}{\left( \varGamma _{\Box }^{+}\right) }\) denotes the space of square integrable functions on \(\varGamma _{\Box }^{+}\). See [13, 20, 21] for further details.

We remark that, on \(\bar{\varGamma }_d\), the weakly periodic boundary conditions are employed to impose the macroscopic strain \(\bar{\mathbin {\varvec{\epsilon }}}_d= \bar{\mathbin {\varvec{\epsilon }}}_0+ \frac{1}{l_d} \left( \llbracket \varvec{u} \rrbracket \otimes \varvec{n} \right) ^{sym}\) in a weak sense on the whole SVE boundary. Hence, there is no need to explicitly identify the location or width of the damaged zone in the SVE, only the localization direction needs to be determined in order to define the effective discontinuity normal direction \(\varvec{n}\). Recall that \(\varvec{n}\) also defines the periodicity alignment.

We also remark that \(l_d\) cannot be chosen freely, it is related to the SVE size \(\left| \varOmega _{\Box }\right| \) according to Eq. (10). For the special case of 2D and a square SVE, we may compute \(l_d\) explicitly as

$$\begin{aligned} \begin{aligned} l_d&= l_{\Box }\cos {\alpha }, \qquad 0{^{\circ }} \le \alpha \le 45{^{\circ }},\\ l_d&= l_{\Box }\sin {\alpha }, \qquad 45{^{\circ }} \le \alpha \le 90{^{\circ }}, \end{aligned} \end{aligned}$$
(37)

where \(l_{\Box }= \sqrt{\left| \varOmega _{\Box }\right| }\) and \(\alpha \) is the angle between the effective discontinuity and the x-axis.

To summarize, we may compute the homogenized stress \(\bar{\mathbin {\varvec{\sigma }}}= \bar{\mathbin {\varvec{\sigma }}}{\left\{ \bar{\varvec{\epsilon }}\right\} }\) for a given \(\bar{\varvec{\epsilon }}\) by solving Eq. (32) and employing Eq. (18).

4 Numerical examples

4.1 Preliminaries

In this section, we demonstrate the performance of the proposed method with a few numerical examples. To assess the accuracy of the proposed method, we will present comparisons between fully resolved Direct Numerical Simulations (DNS) and two-scale simulations (FE\(^2\)). The open source software package OOFEM [22, 23] has been used for the numerical implementation.

Fig. 5
figure 5

Specimen with vertical localization band (dashed line) considered in Example 4.2

Fig. 6
figure 6

Deformed shape of the specimen considered in Example 4.2, magnified by a factor of 100. The figure is colored by the horizontal displacement. (Color figure online)

In Example 4.2, we present a comparison between Alt. I, Alt. II and Alt. III described in Sect. 3. In Examples 4.3 and 4.4, we use Alt. I and demonstrate that the proposed method accurately predicts homogenized stress-strain relations, provided that an appropriate kinematic ansatz is made for the macroscale displacement field. Finally, an outlook is presented in Example 4.5, indicating the application of the proposed method to cases where the macroscale localization pattern is not known a-priori. Here, Alt. III is used to reduce the computational cost.

4.2 Elastic specimen with vertical localization band

To investigate the SVE size dependence for different approximations to Eq. (21), we consider the specimen shown in Fig. 5. The specimen has length \(L = 10\,\hbox {mm}\), height \(H = 5\,\hbox {mm}\), notch diameter \(D = 0.5\,\hbox {mm}\) and a thickness of \(1\,\hbox {mm}\). The bulk material is isotropic and linear elastic, with Young’s modulus \(E = 210 \times 10^{3}\,\hbox {MPa}\) and Poisson’s ratio \(\nu = 0.3\). Plane strain is assumed. The interface is modeled by an isotropic elastic cohesive zone model with stiffness \(k = 1.0\times 10^{5}\,\hbox {N}\,\hbox {mm}^{-3}\).

The left edge of the specimen is clamped and the right edge is subjected to a prescribed displacement according to \(u_x = 0.01 y/H, \ u_y = 0\), see Fig. 6.

The response of the specimen is computed in two ways: i) with DNS and ii) with FE\(^2\) for the interface response. For the DNS, we use a standard discretization with 6-node triangles in the bulk and model the interface by means of XFEM using the previously mentioned isotropic elastic interface law.Footnote 8 For the FE\(^2\), we also use 6-node triangles with isotropic linear elastic material model (i.e. no homogenization of bulk response in this example) and an XFEM discretization of the interface. However, the interface response is now computed from SVEs in the cohesive zone Gauss points.

As output from the simulations, we choose to monitor the normal traction along the cohesive interface (Fig. 7). The normal tractions predicted with Alt. I and Alt. II are shown in Fig. 7a, b, respectively. As can be seen, these approximations both agree very well with the DNS solution. Alt. III, shown in Fig. 7c, agrees very well with the DNS for the smallest SVE, but large discrepancies occur for the largest SVE. This is expected, because Alt. III neglects the bulk strain in the SVE, and the bulk strain is more important for large SVEs.

In summary, all three approximations are accurate for the smallest SVE (i.e. when strong scale separation holds), whereas Alt. I and Alt. II perform better than Alt. III when the SVE size approaches the size of the macroelements.

Fig. 7
figure 7

Normal traction along the interface for Example 4.2. a Alt. I, b Alt. II, c Alt. III

4.3 Plate with inclined effective discontinuity surface

To investigate how the orientation of the effective discontinuity surface influences the macroscopic response, we consider a square plate with a circular hole and a band of porous material as shown in Fig. 8. The orientation of this softer band is described by the angle \(\alpha \) between the band and the x-axis.

We consider an isotropic and linear elastic bulk material in plane strain with Young’s modulus \(E = 210\times 10^{3}\,\hbox {MPa}\) and Poisson’s ratio \(\nu = 0.3\). The material is homogeneous, except in the softer band, where small holes in the material are present as shown in Figs. 9 and 10. The side length of the plate is \(L = 100\,\hbox {mm}\) and the diameter of the macroscopic hole is \(d = 60\,\hbox {mm}\). The small holes in the soft band have a diameter of \(1\,\hbox {mm}\), and the spacing between the small holes (center-center distance) is \(1.25\,\hbox {mm}\). Three rows of small holes run across the entire plate as shown in Figs. 9 and 10.

We solve the problem using both DNS and FE\(^2\) for different values of the angle \(\alpha \). DNS meshes for three different angles are shown in Fig. 9. For the DNS meshes, 3-node triangles with a side length of \(1\,\hbox {mm}\) are used, except in the region surrounding the small holes, where a side length of \(0.025\,\hbox {mm}\) is used. For the FE\(^2\) simulations, 6-node triangles with an element side length of \(5.0\,\hbox {mm}\) is used on the macroscale. For the SVE meshes, 6-node triangles with a side length of \(0.5\,\hbox {mm}\) are used, except in the region surrounding the small holes, where a side length of \(0.1\,\hbox {mm}\) is used. Regarding the SVE size, we choose \(l_{\Box } = 20\,\hbox {mm}\).

Fig. 8
figure 8

Macroscale geometry considered in Example 4.3: a square plate with hole. The plate is clamped at the left side and a uniform displacement is imposed on the right side. The thick red stripe indicates the location of the effective discontinuity surface \({\bar{\varGamma }_d}\). (Color figure online)

Fig. 9
figure 9

Meshes for fully resolved simulations (DNS) of the plate considered in Example 4.3. Meshes for three different orientations of the soft band are shown. a \(\alpha = 0{^{\circ }}\), b \(\alpha = 35{^{\circ }}\), c \(\alpha = 60{^{\circ }}\)

The left edge of the specimen is clamped, and a uniform displacement of \(u_0 = 0.01\,\hbox {mm}\) is applied in the x-direction on the right edge. As output from the simulations, we choose to monitor the reaction force in the x-direction.

The deformed shape of the structure, computed with DNS for \(\alpha = 60{^{\circ }}\), is shown in Fig. 11. As can be seen, a substantial amount of the deformation is localized to the soft band. This is also reflected in the stress field shown in Fig. 12: the effective stress is much higher around the holes than in the rest of the structure.

The reaction force on the clamped edge, computed with both DNS and FE\(^2\), is shown for different \(\alpha \) in Fig. 13. The agreement between the DNS and FE\(^2\) simulations is good, the largest difference in reaction force between the DNS and the FE\(^2\) simulations is \(7\%\) (for \(\alpha = 45{^{\circ }}\)). The larger discrepancy close to \({\alpha = 45{^{\circ }}}\) is most likely due to the finite width of the soft region. More precisely, the DNS will capture the effect of the finite width soft region overlapping the upper right corner, whereas the FE\(^2\) macroscale representation of the soft region is a strong discontinuity with zero (macroscale) thickness. Despite the discrepancy around \(\alpha = 45{^{\circ }}\), we conclude that the agreement is good for all values of \(\alpha \).

4.4 Nonlinear response of a plate with a softening region

To verify that the response during softening is insensitive to the SVE size, we consider a plate with a softening region containing a cohesive surface and holes as shown in Fig. 14. The plate has side length \(L = 100\,\hbox {mm}\) and thickness \(1\,\hbox {mm}\) (plane strain is assumed). The cohesive band has holes with radius \(1\,\hbox {mm}\) and center-center distance \(4\,\hbox {mm}\), and runs through the center of the plate at an angle of \(\alpha = 25{^{\circ }}\) to the horizontal axis.

The bulk material is linear elastic with Young’s modulus \(E = 20.0\times 10^{3}\,\hbox {MPa}\) and Poisson’s ratio \(\nu = 0.2\).

The cohesive interface is modeled by a standard bilinear cohesive law. In this example, we consider monotonic loading and thus disregard history effects in the cohesive zone material, thereby employing an “elastic” cohesive law with softening as indicated in Fig. 15. For the cohesive zone material parameters, we choose the initial stiffness as \(k = 1.0\times 10^{5}\,\hbox {N}\, \hbox {mm}^{-3}\), the peak stress as \(\sigma _{fn} = 2.5\times 10^{2}\,\hbox {MPa}\) and the fracture energy as \(G_I = 2.0\times 10^{1}\,\hbox {N}\,\hbox {mm}^{-3}\).

Fig. 10
figure 10

Meshes for two-scale simulation of the plate considered in Example 4.3: macroscale mesh (left) and SVE mesh (right) for \(\alpha = 35{^{\circ }}\)

Fig. 11
figure 11

Fully resolved simulation (DNS) of the plate considered in Example 4.3. The figure shows the deformed shape of the plate magnified by a factor of 500 for \(\alpha = 60{^{\circ }}\)

For the DNS, the bulk material is discretized with 6-node triangles with a side length of \(1\,\hbox {mm}\), except close to the interface, where the side length is \(0.075\,\hbox {mm}\). The cohesive surface is modeled by interface elements. For the FE\(^2\) simulations, XFEM is used on the macroscale, whereas interface elements are used to represent the microscale discontinuity. Regarding the bulk discretization, 6-node triangles with a side length of \(1.25\,\hbox {mm}\) are used on the macroscale. For the microscale, we use 6-node triangles with a side length of \(0.36\,\hbox {mm}\), except close to the interface where the side length is reduced to \(0.18\,\hbox {mm}\). Two SVE sizes are considered: \(l_{\Box } = 3.62\,\hbox {mm}\) and \(l_{\Box } = 7.24\,\hbox {mm}\), cf. Fig. 16.

A prescribed displacement \(\varvec{u}_0\) as indicated in Fig. 14 is added incrementally in 10 load steps. As output from the simulations, we choose to monitor the reaction force for the lower right support. The reaction force vs displacement curve for the lower right support, computed with DNS and FE\(^2\), is shown in Fig. 17. As can be seen, the FE\(^2\) solution is insensitive to the SVE size and agrees very well with the DNS solution.

4.5 Plate with localizing microcracks

In this example, we consider a plate with a circular hole and a microstructure consisting of a matrix with circular inclusions as shown in Fig. 18. The plate, which has length \(L = 50\,\hbox {mm}\) and hole diameter \(D = 20\,\hbox {mm}\), is clamped at the left edge. The right edge is fixed in the horizontal direction and a uniform displacement is applied in the vertical direction.

The matrix material is isotropic and linear elastic with Young’s modulus \(E_m = 210\times 10^{3}\,\hbox {MPa}\) and Poisson’s ratio \(\nu _m = 0.3\). The inclusions are also isotropic and linear elastic, with Young’s modulus \(E_i = 10.0\times 10^{3}\,\hbox {MPa}\) and Poisson’s ratio \(\nu _i = 0.3\). The inclusions have diameter \(d = 0.5\,\hbox {mm}\) and are randomly distributed in the plate. For the microscale problem in the FE\(^2\) simulations and the DNS, cracks nucleate if the highest principal stress exceeds \(400\,\hbox {MPa}\). Crack propagation is modeled using the concept of material forces, whereby the cracks propagate in the direction of the material force when the magnitude of the material force exceeds \(0.25\,\hbox {N}\). On the macroscale, we consider two different meshes as shown in Fig. 19. For the macroscale crack initiation, we choose for simplicityFootnote 9 to nucleate cracks when the highest principal strain exceeds \(1\times 10^{3}\) in any integration point. A macroscopic crack segment is thereby introduced in the direction perpendicular to the corresponding principal strain direction. Such macroscopic new segment is also allowed to intersect already existing cracks on the macroscale. Existing macroscale cracks propagate in the direction perpendicular to the highest principal strain when the highest principal strain in the integration point closest to the crack tip exceeds \(1\times 10^{-4}\).

Fig. 12
figure 12

Fully resolved simulation (DNS) of the plate considered in Example 4.3. The figure shows the stress distribution (limited to 100 \(\hbox {mm}\)). a Overall stress distribution. b Stress distribution in the porous band

Fig. 13
figure 13

Plate with soft band considered in Example 4.3. Horizontal reaction force versus angle of the soft band computed with DNS and FE\(^2\)

Fig. 14
figure 14

Plate containing a softening region with a cohesive surface (red) and holes. (Example 4.4). (Color figure online)

The resulting effective stress predicted with DNS is shown in Fig. 20, and the displacement field, computed with DNS and FE\(^2\), is shown in Fig. 21. In the DNS, the propagating microcracks interact with the microstructure to form an irregularly shaped macrocrack. The FE\(^2\) simulation does not capture the small scale irregularities in the crack pattern on the macroscale, but the overall crack pattern is in qualitative agreement with the DNS. The reaction forces computed with DNS and FE\(^2\) are shown in Fig. 22. Despite the crude macroscale crack initiation criterion adopted in the present example, the FE\(^2\) solution agrees fairly well with the DNS.

5 Conclusions

In the present work, we model fracturing solids undergoing strain localization using a two-scale approach based on Variationally Consistent Homogenization (VCH). We propose a continuous-discontinuous homogenization scheme, where the eXtended Finite Element Method (XFEM) is used to represent narrow macroscale localization bands. The displacement discontinuities across the macroscopic discontinuity surfaces are transferred to the microscale in a smeared sense, using a smearing width \(l_d\) that is related to the orientation of the effective discontinuity and the SVE size. Using a correct smearing width turns out to be crucial for obtaining accurate results without pathological dependence on the SVE size.

Fig. 15
figure 15

Schematic illustration of the cohesive zone model adopted in Example 4.4

Fig. 16
figure 16

SVEs considered in Example 4.4. The SVE sizes are \(l_{\Box } = 3.62\,\hbox {mm}\) (left) and \(l_{\Box } = 7.24\,\hbox {mm}\) (right)

Adopting the procedure of VCH and assuming that the macroscale localization region is well approximated by a strong discontinuity, we derive a two-scale scheme containing a conventional bulk term, a term of cohesive zone type and a correction term. The latter term has negligible effect on the accuracy if strong scale separation holds, but is indeed needed to retain any (possible) symmetry of the problem. A major benefit of the proposed scheme is that it does not require dynamic tracking of an evolving damage region on the microscale, and that it does not explicitly assume a particular constitutive behavior on the microscale.

Fig. 17
figure 17

Reaction force versus displacement for the lower right support (Example 4.4)

Fig. 18
figure 18

Plate with hole considered in Example 4.5 (left). The plate has a microstructure consisting of a stiff matrix with soft circular inclusions, illustrated as red circles (right)

Fig. 19
figure 19

Macro meshes considered in Example 4.5. a Mesh 1: 177 elements. b Mesh 2: 735 elements

Fig. 20
figure 20

Effective stress computed with DNS (Example 4.5)

Fig. 21
figure 21

Displacement field computed with DNS (left) and FE\(^2\) (right) for Example 4.5

Fig. 22
figure 22

Reaction force versus displacement for a plate with coalescing microcracks (Example 4.5)

In the numerical examples, we show that the proposed scheme is insensitive to the SVE size if all terms obtained in the derivation are included, and that approximations are possible for sufficiently small SVE sizes \(l_{\Box }\) (i.e. in the case of strong scale separation). Furthermore, it is demonstrated that the proposed scheme, in combination with localization aligned weakly periodic BCs, is accurate for varying crack orientations. We also illustrate the potential of the proposed scheme with an FE\(^2\) simulation of a localizing microstructure. In the last example presented, the potential of the proposed method has been demonstrated using simplified models for crack initiation and propagation. Future work therefore involves more accurate models for macroscale crack propagation, i.e. a proper strategy for insertion and propagation of (possible) macroscale discontinuities.

In summary, a multiscale modeling scheme that allows microscopic and macroscopic localization is proposed. The good performance of the proposed scheme is demonstrated by several numerical examples.