1 Introduction

Electro-active polymers (EAP) are a class of smart materials that react to electric stimulation with bulk deformation. EAPs are used in soft robots (Lee et al. 2017; Gu et al. 2021), artificial muscles (Bar-Cohen 2002; Carpi et al. 2011), and in a broad range of industries (Bashir and Rajendran 2018).

Numerous examples of finite-strain-coupled numerical models can be found in the literature to simulate EAPs (Yang and Batra 1995; Dorfmann and Ogden 2005; Vu et al. 2007; Zwecker et al. 2011; Ask et al. 2012; Hossain et al. 2012; Skatulla et al. 2012; Büschel et al. 2013; Gil and Ortigosa 2016). In all of the aforementioned works on EAPs, only their material bodies were considered and discretized using the finite element method. This is a reasonable approach for simulating EAPs with higher permittivity, e.g. piezoelectric polymers.

However, in the case of electronic EAPs, where the electric permittivity is approximately one order of magnitude greater than that of vacuum, the electric energy stored in the surrounding free space also has a significant influence on the behavior of EAP. This influence was studied by Vu and Steinmann (2010, 2012) and Steinmann (2011), by considering the free space through a coupled BEM-FEM method. In Pelteret et al. (2016), a mixed variational formulation for quasi-incompressible electro-active or magneto-active polymers, which accounts for the influence of the surrounding free space was studied. In Steinmann and Vu (2017) the computational challenges in the simulation of EAPs were presented and the authors concluded that to build a complete picture of what happens inside an EAP, what happens outside deserves due attention.

In the recent decades, topology optimization (TO) has been increasingly utilized to generate designs based on mathematical optimization techniques that go beyond human intuition (Sigmund and Maute 2013; Deaton and Grandhi 2014). TO has been used to optimize electromechanical actuators for MEMS application Qian and Sigmund (2013), as well as dielectric elastomer actuators by Wang et al. (2019) and Chen et al. (2020). In the recent work of Ortigosa et al. (2021), TO was applied to optimize EAPs. However, in all the aforementioned TO problems, the electric field in the surrounding free space was disregarded. This approach is reasonable considering the materials used and the focus on optimizing thin film EAPs with an electric field applied perpendicular to the film. Nevertheless, there is still a lack of research on electronic EAPs where the electric energy stored in the surrounding free space also plays a significant role. In this study, we specifically consider this class of material. Additionally, unlike the previous works that concentrated on thin films, our investigation of 2D structures does not involve any dimension that is significantly smaller than the others. These distinctions allow us to explore the influence of free space on the optimized structure.

The layout of this paper is as follows: Sect. 2 introduces the essence of nonlinear electro-elasticity with free space. Section 3 describes TO for the electro-elastic problem. Finally, Sect. 4 illustrates numerical examples where topology optimization of EAP is carried out with the consideration of free space. Finally, Sect. 5 provides some concluding remarks.

2 Nonlinear electro-elasticity with freespace

This section presents a brief introduction to the formulation and computation of geometrically nonlinear electro-elasticity immersed in the surrounding free space.

2.1 Kinematics and state equations

Consider an EAP \({\mathcal {B}}_0\) immersed in the surrounding free space (vacuum) \(\Omega _0\) in their material configuration at time \(t_0\). Subsequently, due to deformation, the EAP and the free space will occupy a spatial configuration \({\mathcal {B}}_t\) and \(\Omega _t\) at time t (\(t>t_0\)), as shown in Fig. 1. The transformation of the EAP into the spatial configuration is defined by a deformation map \({\varvec{\varphi }}\). The deformation map is associated with the deformation gradient \({\varvec{F}}\), which is defined as follows:

$$\begin{aligned} {\varvec{F}} = \nabla _{X} {\varvec{\varphi }}. \end{aligned}$$
(1)

Here, \(\nabla _{X}\) is the gradient operator with respect to material coordinates \({\varvec{X}}\). The deformation gradient \({\varvec{F}}\) is associated with the Jacobian J and the right Cauchy-Green strain tensor \({\varvec{C}}\), which are defined as follows:

$$\begin{aligned} J = \textrm{det} \left( {{\varvec{F}}} \right) ; \qquad {\varvec{C}}={\varvec{F}}^\top \cdot {\varvec{F}}. \end{aligned}$$
(2)

We can characterize the quasi-static elastic problem through the balance of linear momentum, which can be written as follows:

$$\begin{array}{ll} \textrm{Div} {\varvec{P}} + {\varvec{f}}_0= {\varvec{0}}& \quad \mathrm{in\ } {\mathcal {B}}_0 \cup \Omega _0;\\ \llbracket {\varvec{P}} \rrbracket \cdot {\varvec{N}}= {\varvec{t}}_0& \quad \mathrm{on}\; \Gamma _0^t;\\ {\varvec{\varphi }}= \overline{{\varvec{\varphi }}}& \quad \mathrm{on}\; \Gamma _0^\varphi .\\ \end{array}$$
(3)

Here, the operator Div represents divergence with respect to material coordinates \({\varvec{X}}\). The jump, denoted by \(\llbracket \bullet \rrbracket\), is defined as the difference in the value of \((\bullet )\) when transitioning from inside the material to the free space outside \(\llbracket \bullet \rrbracket := \left[ \bullet \right] ^+ - \left[ \bullet \right] ^-\). The total Piola stress is represented by the symbol \({\varvec{P}}\), while \({\varvec{f}}_0\) denotes the mechanical body force per unit undeformed volume in \({\mathcal {B}}_0\). The term \({\varvec{t}}_0\) represents the applied mechanical traction force per unit undeformed area on \(\Gamma _0^t \subset \Gamma _0\). The prescribed displacement on \(\Gamma _0^\varphi \subset \Gamma _0\), is denoted by \(\overline{{\varvec{\varphi }}}\). Further, \(\Gamma _0^t \cup \Gamma _0^\varphi = \Gamma _0\) and \(\Gamma _0^t \cap \Gamma _0^\varphi = \emptyset\). We can characterize the electrical problem through the electrostatic Maxwell equations and restrict ourselves to materials without free currents and free electric charges, which leads to:

$$\begin{array}{ll} \textrm{Div} {\varvec{D}}= 0& \quad \mathrm{in}\; {\mathcal {B}}_0 \cup \Omega _0;\\ \llbracket {\varvec{D}} \rrbracket \cdot {\varvec{N}} = - \varrho _0 & \quad \mathrm{on}\; \Gamma _0^\varrho, \end{array}$$
(4)

where \({\varvec{D}}\) is the electric displacement vector in Lagrangian form and \(\varrho _0\) is the free surface charge density on \(\Gamma _0^\varrho \subset \Gamma _0\). Furthermore, Faraday’s law results in

$$\begin{array}{ll} {\varvec{E}}= - \nabla _{X} \phi & \quad \text{in}\; {\mathcal {B}}_0 \cup \Omega _0;\\ \phi = {\overline{\phi }}& \quad \text{on}\; \Gamma _0^\phi, \end{array}$$
(5)

where \({\varvec{E}}\) is the electric field vector in Lagrangian form, \(\phi\) is the scalar electric potential and \({\overline{\phi }}\) is the prescribed electric potential on \(\Gamma _0^\phi \subset \Gamma _0\), with \(\Gamma _0^\varrho \cup \Gamma _0^\phi = \Gamma _0\) and \(\Gamma _0^\varrho \cap \Gamma _0^\phi = \emptyset.\)

Fig. 1
figure 1

Undeformed and deformed configuration of EAP in free space. (Color figure online)

2.2 Constitutive modeling

Next, to solve the state problem described by Eqs. (3)-(5), a constitutive relation is required. To this end, we define an appropriate total energy density functional \(\psi =\psi ({\varvec{F}}, {\varvec{E}})\) in terms of the unknown deformation map \({\varvec{\varphi }}\) and electric potential \(\phi\). The total energy density function for the bulk material, denoted as \(\psi _b({\varvec{F}}, {\varvec{E}})\), is defined as:

$$\begin{aligned} \psi _b\left( {{\varvec{F}}, {\varvec{E}}} \right)&= \frac{\mu }{2} \left[ {\varvec{C}}:{\varvec{I}} - n_\textrm{dim} \right] + \mu \textrm{ln} J + \frac{\lambda }{2}\left[ \textrm{ln} J\right] ^2 \\&\quad + c_1 {\varvec{I}}:\left[ {\varvec{E}} \otimes {\varvec{E}} \right] + c_2 {\varvec{C}}: \left[ {\varvec{E}} \otimes {\varvec{E}} \right] \\&\quad - \frac{1}{2}\epsilon _r J {\varvec{C}}^{-1}:\left[ {\varvec{E}} \otimes {\varvec{E}} \right] \end{aligned}$$
(6)

where \(\lambda\) and \(\mu\) are the two Lamé coefficients of the classical neo-Hookean material law and \(n_\textrm{dim}\) is the dimension of the space. The material constants \(c_1\) and \(c_2\) are responsible for electromechanical coupling and \(\epsilon _r\) is the relative electric permittivity of the bulk material.

To model the influence of the free space, we define an appropriate energy functional in the free space as:

$$\begin{aligned} \psi _f\left( {{\varvec{F}}, {\varvec{E}}} \right)&= \frac{\theta }{2} \left[ {\varvec{F}} - {\varvec{I}}\right] : {\varvec{{\mathcal {C}}}}_0: \left[ {\varvec{F}} - {\varvec{I}}\right] \\&\quad - \frac{1}{2}\epsilon _0 J {\varvec{C}}^{-1}: \left[ {\varvec{E}} \otimes {\varvec{E}} \right] . \end{aligned}$$
(7)

To ensure that we can interpolate the energy functional of the bulk material and the free space in TO, we must consider pseudoelastic properties in the functional above. However, to minimize the contribution of these properties, we introduce a dimensionless coefficient of the order of \(10^{-15},\) denoted by \(\theta\). In the equation above, \({\varvec{{\mathcal {C}}}}_0\) represents the fourth-order linear elasticity tensor, while \(\epsilon _0 = 8.854 \times 10^{-12} \frac{\textrm{F}}{\textrm{m}}\) is the electric permittivity of free space.

Furthermore, Ortigosa et al. (2021) noted that the electromechanical component of the energy functional in Eq. 7 compromises numerical stability due to the high non-convexity of the functional with respect to the deformation gradient tensor \({\varvec{F}}\). Therefore, we adopt the stable version of the energy functional proposed in Ortigosa et al. (2021). This version eliminates the dependence of the electroelastic component on the deformation gradient, resulting in the following definition:

$$\begin{aligned}\psi _f\left( {{\varvec{F}}, {\varvec{E}}} \right)&= \frac{\theta }{2} \left[ {\varvec{F}} - {\varvec{I}}\right] : {\varvec{{\mathcal {C}}}}_0: \left[ {\varvec{F}} - {\varvec{I}}\right] \\&\quad - \frac{1}{2}\epsilon _0 \left[ {\varvec{E}} \cdot {\varvec{E}} \right] . \end{aligned}$$
(8)

We acknowledge that the simplification in Eq. 8 does not accurately account for the Maxwell stress. However, we conducted a comparison of the electric energy density defined in Eqs. 7 and 8 for our specific problem setting in Sect. 2.4. Our comparison revealed that the difference between the two formulations is not significant in our problem setup. Therefore, it is reasonable to utilize the numerically stable version of the energy function as defined in Eq. 8.

Having defined the energy density functions we can now define the total Piola stress \({\varvec{P}}\) and the referential dielectric displacement \({\varvec{D}}\) as

$${\varvec{P}} = \frac{\partial \psi }{\partial {\varvec{F}}} \quad \textrm{and} \quad {\varvec{D}} = - \frac{\partial \psi }{\partial {\varvec{E}}}.$$
(9)

Furthermore, the second derivatives of the energy density functional yields the constitutive tangent tensor, namely, the fourth-order elasticity tensor \({\varvec{{\mathcal {C}}}}\), the third-order piezoelectric tensor \({\varvec{{\mathcal {P}}}}\), and the second-order dielectric tensor \({\varvec{\epsilon }}\), defined respectively as

$$\begin{aligned}{\varvec{{\mathcal {C}}}} &= \frac{\partial ^2 \psi }{\partial {\varvec{F}} \otimes \partial {\varvec{F}}} \; \qquad {\varvec{{\mathcal {P}}}} = - \frac{\partial ^2 \psi }{\partial {\varvec{E}} \otimes \partial {\varvec{F}}}\\{\varvec{\epsilon }}& = - \frac{\partial ^2 \psi }{\partial {\varvec{E}} \otimes \partial {\varvec{E}}}.\end{aligned}$$
(10)

2.3 Variational formulation in nonlinear electro-elasticity

Here we discuss the variational approach to derive the weak form of the governing equations, (3) and (4). To this end, we define the total potential energy functional as follows:

$$\begin{aligned} \Pi&= \Pi ^\textrm{int} - \Pi ^\textrm{ext} \\&= \int _{{\mathcal {B}}_0} \psi _b\; \text{d}V+ \int _{\Omega _0} \psi _f\;\text{dV}\\&\quad - \int _{{\mathcal {B}}_0} {\varvec{\varphi }} \cdot {\varvec{f}}_0 \; \text{d}V- \int _{\Gamma _0^t} {\varvec{\varphi }} \cdot {\varvec{t}}_0 \mathrm dA- \int _{\Gamma _0^\varrho } \phi \varrho _0\ \mathrm dA. \end{aligned}$$
(11)

The stationary point \(\displaystyle \min _{{\varvec{\varphi }}} \max _{\phi } \Pi \Rightarrow \delta \Pi = 0\) defines the equilibrium solution of the system. To determine the stationary point, we take the variation of the energy functional with respect to variations \(\delta {\varvec{\varphi }}\) of the displacement field, resulting in:

$$\begin{aligned} \begin{aligned} \delta \Pi \left( {\delta {\varvec{\varphi }}} \right)&= \int _{{\mathcal {B}}_0} {\varvec{P}}_b: \nabla _{X} \delta {\varvec{\varphi }}\;\text{dV}\\&\quad + \int _{\Omega _0} {\varvec{P}}_f: \nabla _{X} \delta {\varvec{\varphi }}\;\text{dV}\\&\quad - \int _{{\mathcal {B}}_0} {\varvec{f}}_0 \cdot \delta {\varvec{\varphi }} \;\text{dV}- \int _{\Gamma _0^t} {\varvec{t}}_0 \cdot \delta {\varvec{\varphi }} \ \mathrm dA= 0. \end{aligned} \end{aligned}$$
(12)

Similarly, we take the variation of the energy functional with respect to variations \(\delta \phi\) of the electric potential, resulting in

$$\begin{aligned} \begin{aligned} \delta \Pi \left( {\delta \phi } \right)&= - \int _{{\mathcal {B}}_0} {\varvec{D}}_b \cdot \nabla _{X} \delta \phi \;\text{dV}\\&\quad - \int _{\Omega _0} {\varvec{D}}_f \cdot \nabla _{X} \delta \phi \;\text{dV}\\&\quad - \int _{\Gamma _0^\varrho } \varrho _0 \delta \phi \ \mathrm dA= 0. \end{aligned} \end{aligned}$$
(13)

Here, \({\varvec{P}}_b\) and \({\varvec{P}}_f\) represent the total Piola stress obtained from the energy density functions of the bulk and free space, respectively, as defined in Eq. 9. Similarly, \({\varvec{D}}_b\) and \({\varvec{D}}_f\) represent the referential dielectric displacement of the bulk and free space as defined in Eq. 9.

In order to solve for the stationary condition in Eq. 12 and 13, we utilize a Newton–Raphson scheme where we linearize \(\delta \Pi\) with respect to the incremental displacement field \(\Delta {\varvec{\varphi }}\) and the incremental electric potential \(\Delta \phi\), resulting in the following system of equations:

$$\begin{aligned} \begin{aligned} \Delta \delta \Pi \left( {\delta {\varvec{\varphi }}, \Delta {\varvec{\varphi }}} \right)&= \int _{{\mathcal {B}}_0} \nabla _{X} \Delta {\varvec{\varphi }}: {\varvec{{\mathcal {C}}}}_b: \nabla _{X} \delta {\varvec{\varphi }}\;\text{dV}\\&\quad + \int _{\Omega _0} \nabla _{X} \Delta {\varvec{\varphi }}: {\varvec{{\mathcal {C}}}}_f: \nabla _{X} \delta {\varvec{\varphi }}\;\text{dV},\\ \end{aligned} \end{aligned}$$
(14a)
$$\begin{aligned} \begin{aligned} \Delta \delta \Pi \left( {\delta {\varvec{\varphi }}, \Delta \phi } \right)&= \int _{{\mathcal {B}}_0} \nabla _{X} \Delta \phi \cdot {\varvec{{\mathcal {P}}}}_b: \nabla _{X} \delta {\varvec{\varphi }}\;\text{dV}\\&\quad + \int _{\Omega _0} \nabla _{X} \Delta \phi \cdot {\varvec{{\mathcal {P}}}}_f: \nabla _{X} \delta {\varvec{\varphi }}\;\text{dV},\\ \end{aligned} \end{aligned}$$
(14b)
$$\begin{aligned} \begin{aligned} \Delta \delta \Pi \left( {\delta \phi , \Delta {\varvec{\varphi }}} \right)&=\int _{{\mathcal {B}}_0} \nabla _{X} \Delta {\varvec{\varphi }}: {\varvec{{\mathcal {P}}}}_b^\top \cdot \nabla _{X} \delta \phi \;\text{dV}\\&\quad + \int _{\Omega _0} \nabla _{X} \Delta {\varvec{\varphi }}: {\varvec{{\mathcal {P}}}}_f^\top \cdot \nabla _{X} \delta \phi \;\text{dV},\\ \end{aligned} \end{aligned}$$
(14c)
$$\begin{aligned} \begin{aligned} \Delta \delta \Pi \left( {\delta \phi , \Delta \phi } \right)&= - \int _{{\mathcal {B}}_0} \nabla _{X} \Delta \phi \cdot {\varvec{\epsilon }}_b \cdot \nabla _{X} \delta \phi \;\text{dV}\\&\quad - \int _{\Omega _0} \nabla _{X} \Delta \phi \cdot {\varvec{\epsilon }}_f \cdot \nabla _{X} \delta \phi \;\text{dV}. \end{aligned} \end{aligned}$$
(14d)

Here, the fourth-order elasticity tensor for the bulk and free space is denoted by \({\varvec{{\mathcal {C}}}}_b\) and \({\varvec{{\mathcal {C}}}}_f\), respectively. Similarly, the third-order piezoelectric tensor for the bulk and free space is denoted by \({\varvec{{\mathcal {P}}}}_b\) and \({\varvec{{\mathcal {P}}}}_f\), and the second-order dielectric tensor for the bulk and free space is denoted by \({\varvec{\epsilon }}_b\) and \({\varvec{\epsilon }}_f\), respectively.

The next step is to solve the linearized system,

$$\begin{aligned} &\delta \Pi \left( {\delta {\varvec{\varphi }}} \right) + \delta \Pi \left( {\delta \phi } \right) \\&\quad + \Delta \delta \Pi \left( {\delta {\varvec{\varphi }}, \Delta {\varvec{\varphi }}} \right) \\&\quad + \Delta \delta \Pi \left( {\delta {\varvec{\varphi }}, \Delta \phi } \right) \\&\quad + \Delta \delta \Pi \left( {\delta \phi , \Delta {\varvec{\varphi }}} \right) \\&\quad + \Delta \delta \Pi \left( {\delta \phi , \Delta \phi } \right) \\&= 0, \end{aligned}$$
(15)

for the incremental fields \(\Delta {\varvec{\varphi }}\) and \(\Delta \phi\) and update the solution fields, i.e. \({\varvec{\varphi }}^{k+1} = {\varvec{\varphi }}^{k} + \Delta {\varvec{\varphi }}\) and \(\phi ^{k+1} = \phi ^k + \Delta \phi\)

Remark: We use the open source FE library deal.IIArndt et al. (2021a, 2021b) for our implementation. To obtain the variation and linearization of the energy density function, we use the automatic differentiation tools provided by the Sacado library, which is available as part of the Trilinos software package. This approach allows us to avoid implementing the terms in Eq. 15directly. Instead, we obtain them through automatic differentiation of the energy functionals in Eqs.6and 7.

2.4 Numerical example

In the first example, we validate our formulation using the benchmark problem presented in Vu and Steinmann (2010). We consider a square plate with dimensions of 60 µm \(\times\) 60 µm, which contains a square hole of dimensions 30 µm \(\times\) 30 µm. The free space surrounding the plate has dimensions of 120 µm \(\times\) 120 µm. The lower and upper edges of the plate have prescribed electric potentials of \(-500 V\) and 500V, respectively. The setup with the inclusion of free space is illustrated in Fig. 2. The constitutive parameters for the energy density function in Eq. 6 are taken from Vu and Steinmann (2010), with \(\mu = 0.05\) MPa, \(\lambda = 0.06\) MPa, \(c_1 = 0.2 \epsilon _0\), \(c_2 = 2 \epsilon _0\), and \(\epsilon _r = 5 \epsilon _0\).

Fig. 2
figure 2

Finite element mesh showing the bulk (blue) and the free space (white). (Color figure online)

To illustrate the significance of the consideration of free space in the simulation, we carried out the simulation in two setups. In the first setup, the bulk material is immersed in free space, and in the second setup, we consider only the bulk material. In Fig. 3, we present the electric potential distribution in the deformed configuration for both setups. The magnitude of the maximum displacement in the setup with the inclusion of free space is 3.1 µm, whereas without free space, it is 2.4 µm, which is \(22\%\) less. To get a closer look at the difference, in Fig. 4, we plot the displacement along the top face. This plot clearly shows that considering free space is important, and the results obtained are also in agreement with the results in Vu and Steinmann (2010).

Fig. 3
figure 3

Distribution of electric potential [V] in the deformed configuration for bulk truncated with free space (left) and only bulk (right). Using the black line the difference in the deformation of the top face can be visualized. (Color figure online)

Fig. 4
figure 4

Distribution of displacement along the upper edge

In the second example, we demonstrate the complexities in nonlinear coupled electro-mechanics. We consider a linear guiding actuator setup, as shown in Fig. 5. During the simulation, we consider different sizes of free space truncation, namely, 4 µm, 16 µm, 64 µm, 256 µm, and 512 µm, as illustrated in Fig. 6a. After solving the problems with different sizes of free space truncation, we plot the electric potential along the diagonal from bottom left to top right in Fig. 6b. It is important to note the potential distribution on the right side. The relationship between the size of free space truncation and the potential at the top right of the bulk material is not monotonous. This complex behavior motivated our subsequent study on the influence of free space size on topology optimization.

Fig. 5
figure 5

Linear guiding actuator problem setup with \(L=60\) µm and \({\varvec{f}}_\textrm{out}=1\)N

Fig. 6
figure 6

Illustration of complexity in electric potential distribution. In a we visualize the size of free space truncation and in b the potential along the diagonal is presented. (Color figure online)

Furthermore, we conducted a comparison between the electric energy densities in free space as defined by Eqs. 8 and 9. To evaluate the differences, we introduced a normalized difference metric given by the equation:

$$\begin{aligned} { \Vert \Delta \psi _f\Vert = \frac{\left[ \frac{1}{2}\epsilon _0 \left[ {\varvec{E}}\cdot {\varvec{E}}\right] \right] - \left[ \frac{1}{2}\epsilon _0 J {\varvec{C}}^{-1}:\left[ {\varvec{E}}\otimes {\varvec{E}}\right] \right] }{\left\Vert \frac{1}{2}\epsilon _0 \left[ {\varvec{E}}\cdot {\varvec{E}}\right] \right\Vert _\infty }} \end{aligned}$$
(16)

For this analysis, we chose a free space truncation of 256 µm. The visualization of the normalized difference in electric energy density is depicted in Fig. 7. Notably, the dissimilarity is predominantly observed near the boundary where the potential is prescribed, with the energy density difference amounting to only \(0.1\%\). Based on this observation, it is justified to employ the stable version of the energy function defined in Eq. 9.

Fig. 7
figure 7

Visualization of the difference in the electrical energy densities in free space, as defined in Eq. 16. (Color figure online)

3 Topology optimization

The goal of TO is to obtain an optimal distribution of EAP material to maximize the displacement at an output port, while satisfying a given volume constraint. Mathematically, the optimization problem is defined as follows:

$$\begin{aligned} \begin{aligned} \min _\rho \quad&{\mathcal {F}}_\textrm{cm}:= - \int _{\Gamma _\textrm{out}}{\varvec{\varphi }}\left( {\rho } \right) \cdot {\varvec{l}} \mathrm{\ dA} \\ \text {st.} \quad&{\mathcal {G}}_\textrm{vol}:= \int _{{\mathcal {B}}_0} \rho ({\varvec{X}}) \textrm{dV} - {\overline{V}} \le 0 \\ \quad&0 \le \rho _e \le 1 \qquad e = 1, \ldots ,N_e, \end{aligned} \end{aligned}$$
(17)

where \(\rho\) is the variable pseudo-density (design variable), \({\varvec{l}}\) is an indicator vector with values of 1 on the degrees of freedom where the displacement has to be maximized, \({\overline{V}}\) is the restriction on the allowed volume of the material, \(\rho _e\) is the pseudo-density corresponding to the e-th finite element, and \(N_e\) is the number of finite elements (design variables).

Since the pseudo-density \(\rho\) varies continuously from void to solid (i.e., from [0, 1]), we interpolate the energy density function according to the well-known SIMP method (Bendsoe and Sigmund 2003). In our case, we interpolate the total energy density functions of the solid (Eq. 6) and free space (Eq. 8) to define the interpolated energy density function \(\psi _\textrm{SIMP}\) as follows:

$$\begin{aligned} \psi _\textrm{SIMP}\left( {\rho , {\varvec{F}}, {\varvec{E}}} \right)= & {} \rho ^p \psi _b\left( {{\varvec{F}}, {\varvec{E}}} \right) \nonumber \\{} & {} + \left[ 1 - \rho ^p\right] \psi _f\left( {{\varvec{F}}, {\varvec{E}}} \right) \end{aligned}$$
(18)

where p is the penalization parameter, set to 5 in all our numerical studies.

Furthermore, to prevent the appearance of checkerboard patterns and to overcome the dependency on the mesh size in the final design, we have adopted a density filter (Bourdin 2001; Bruns and Tortorelli 2001). The filtered pseudo-density (\({\tilde{\rho }}\)) is defined as follows:

$$\begin{aligned} \tilde{\rho _i}= & {} \frac{\sum _{j\in \vartheta _i} w_i\left( {x_j} \right) \rho _j}{\sum _{j\in \vartheta _i} w_i\left( {x_j} \right) } \end{aligned}$$
(19)
$$\begin{aligned} w_i\left( {x_j} \right)= & {} \frac{R - \Vert x_j - x_i\Vert }{R} \end{aligned}$$
(20)

where \(\vartheta _i\) is a circular neighborhood centered at the center of element i which contains all the elements whose center are within a radius R.

Due to the use of the radius filter, some intermediate densities may still exist, which can be reduced using a smooth Heaviside projection filter (Wang et al. 2011).

$$\begin{aligned} \overline{\rho _i} = \frac{\textrm{tanh} \left( {\beta \eta } \right) + \textrm{tanh} \left( {\beta \left[ \tilde{\rho _i} - \eta \right] } \right) }{\textrm{tanh} \left( {\beta \eta } \right) + \textrm{tanh} \left( {\beta \left[ 1 - \eta \right] } \right) } \end{aligned}$$
(21)

Here, \(\beta\) controls the sharpness of the Heaviside projection, and \(\eta\) is the threshold density at which the transition takes place. The interpolated energy density function in Eq. 18, which utilizes the projected density (\({\overline{\rho }}\)), is given by:

$$\begin{aligned} \psi _\textrm{SIMP}\left( {{\overline{\rho }}, {\varvec{F}}, {\varvec{E}}} \right)= & {} {\overline{\rho }}^p \psi _b\left( {{\varvec{F}}, {\varvec{E}}} \right) \nonumber \\{} & {} + \left[ 1 - {\overline{\rho }}^p\right] \psi _f\left( {{\varvec{F}}, {\varvec{E}}} \right) . \end{aligned}$$
(22)

Furthermore, the volume constraint in Eq. 17 must also consider the projected pseudo-density \({\overline{\rho }}\).

In addition, when the design is geometrically symmetric, we apply an additional projection-based symmetric constraint based on the method proposed by Vatanabe et al. (2016). This constraint helps to maintain the symmetry of the optimized solution, which can be affected by finite precision errors in floating-point computations.

3.1 Sensitivity analysis and design update

The sensitivity analysis is performed using an adjoint method. The steps to perform adjoint sensitivity analysis involving electro-elastic problems are detailed in Ortigosa et al. (2021). Based on the computed sensitivities, the design is updated using an optimality criteria method (OCM), as described in Bendsoe and Sigmund (2003).

4 Results

In this section, we present the results of our study on the influence of free space on the optimized design. We provide two benchmark examples: (a) linear guiding actuator and (b) gripper actuator. We increase the size of the free space truncation considered in the computation and observe its impact on the optimized design.

The material parameters used to define the energy functional in Eqs. 6 and 8 are common for all examples and are as follows: \(\lambda =0.1\) MPa, \(\mu =0.05\) MPa, \(\epsilon _0=8.854\times 10^{-12}\frac{\textrm{F}}{\textrm{m}}\), \(c_1=0.2\epsilon _0\), \(c_2=2\epsilon _0\), \(\epsilon _r=5\epsilon _0\), and \(\theta =10^{-15}\). The optimization parameters are also common for all examples and are listed in Table 1.

In our implementation of the OCM (Bendsoe and Sigmund 2003), we set the lower Lagrange value as 0, and initialize the upper Lagrange value as 1. In subsequent iterations, the upper Lagrange value is set as 10 times the Lagrange value from the previous iteration. In the smooth Heaviside projection filter (Eq. 21), we initialize \(\beta =1\) and keep it unchanged until iteration 100. After that, we update \(\beta _i = 1.04\times \beta _{i-1}\) until we reach the value of \(\beta\) indicated in Table 1.

Table 1 Topology optimization parameters

4.1 Linear guiding actuator

The first example we consider is a linear guiding actuator. When an electric potential difference of 20 V is applied, the actuator maximizes the displacement at the output port \({\varvec{u}}_\textrm{out}\) in the horizontal direction against a reaction force of \({\varvec{f}}_\textrm{out}=1\) N applied by a body being pushed. The problem setup is illustrated in Fig. 5, where the length \(L=60\) µm in our study.

We discretize the truncated free space with a coarser mesh, as illustrated in Fig. 8. The use of a coarser mesh improves the numerical performance. Furthermore, the finite elements of the free space are not included in the optimization design space, and thus, do not require any special treatment in the topology optimization routine.

Fig. 8
figure 8

Finite element mesh of bulk and free space. (Color figure online)

To investigate the impact of free space on the optimized design, we conducted TO for the linear guiding actuator while considering different sizes of free space truncation in the computation. The sizes considered were \(0.5L=30\) µm, \(L=60\) mum, \(2L=120\) µm, \(4L=240\) µm, and \(6L=360\) µm, as shown in Fig. 9g.

In Figs. 9a–f, we present the results of TO for different free space truncations. It is observed that the consideration of free space significantly affects the optimized structure. This difference is clearly visualized in Fig. 9h, where we use a shape generation algorithm (Dev et al. 2022) to extract the outline of the structure. The optimized structures converge as we increase the free space truncation, with the difference in the optimized structure being minimal for free space sizes of 4 times (240 µm) and 6 times (360 µm) the bulk dimension. This convergence is also evident in the evolution of the objective plot in Fig. 10. Finally, we note that the difference in the objective value for free space size of 0 and 6L (360 µm) is \(9.98\%\).

Fig. 9
figure 9

This figure displays the linear guiding actuator with domain size of \(L=60\) µm optimized with varying sizes of free space truncation, as shown in a–f. g provides a visualization of the different truncations of free space considered in the optimization process, while h offers a comparison of the optimized structures in terms of their shape outline. (Color figure online)

Fig. 10
figure 10

Linear guiding actuator: Evolution of the objective function \({\mathcal {F}}_\textrm{cm}\) for various free space sizes for domain size of \(L=60\) µm. (Color figure online)

In Fig. 11, we present the potential distribution along the diagonal of the design domain to further examine how the consideration of different sizes of free space influences the potential distribution inside the design domain (bulk). Here, we observe a convergence in potential distribution for a free space size of 4 times (\(240 \mu\)m) and 6 times (360 µm) bulk dimension.

Fig. 11
figure 11

Linear guiding actuator: Potential distribution along the diagonal of the bulk material, from the bottom left to top right, at the end of the optimization process for different sizes of free space. (Color figure online)

Next, we consider the same problem setup as shown in Fig. 5, but on a larger scale, to investigate whether the influence of free space remains consistent for larger domain sizes. To achieve this, we set \(L=60\) mm and maintain an electric potential difference of 20 kV. Consequently, the truncated free space sizes are now \(0.5L=30\) mm, \(L=60\) mm, \(2L=120\) mm, \(4L=240\) mm, and \(6L=360\) mm, as depicted in Fig. 12g.

The TO results for different free space truncations are presented in Figs. 12a-12f. It is evident that there are no significant differences in the geometry of the designs as the domain size increases. This can be clearly observed by comparing the extracted shape in Fig. 12h with the shape extracted from a smaller domain in Fig. 9h. Furthermore, this similarity is also apparent in the evolution of the objective shown in Fig. 13. Based on these findings, we can conclude that the influence of free space is independent of the domain size.

Fig. 12
figure 12

This figure displays the linear guiding actuator with domain size of \(L=60\) mm optimized with varying sizes of free space truncation, as shown in a–f. g provides a visualization of the different truncations of free space considered in the optimization process, while h offers a comparison of the optimized structures in terms of their shape outline. (Color figure online)

Fig. 13
figure 13

Linear guiding actuator: Evolution of the objective function \({\mathcal {F}}_\textrm{cm}\) for various free space sizes for domain size of \(L=60\) mm. (Color figure online)

4.2 Gripper actuator

The next example we studied is a gripper actuator. When actuated with an electric potential of 20V, the actuator arms at the output port, \({\varvec{u}}_\textrm{out}\), move towards each other in the vertical direction against a reaction force \({\varvec{f}}_\textrm{out}=1\)N applied by a body being gripped. The problem setup is illustrated in Fig. 14 and \(L=60\) µm in our study.

We conducted a similar study as the previous example to investigate the influence of free space on the optimized structure. We considered different sizes of free space truncation in the computation and presented the results of TO in Fig. 15a–f. It can be observed that the variations in the topologies converge as we increase the size of free space truncation. This convergence is best visualized in Fig. 15h, where we presented the outline of the structures. The convergence of the design is also reflected in the evolution of the objective plot in Fig. 16. The differences in the design are due to the variation of the potential distribution inside the bulk when different sizes of free space are considered. To further examine the variation of the potential distribution inside the bulk, we plotted the potential along the diagonal of the design domain in Fig. 17 for different truncation of free space. An important observation is the convergence in the variation as we increase the size of truncation of free space. In our case, we observed the convergence of potential distribution for free space sizes of 4 times (\(240 \mu\)m) and 6 times (360 µm) of bulk dimension. Finally, the difference in the objective without considering free space and with a free space size of 6 times (360 µm) that of bulk dimension is \(24.77\%\).

Fig. 14
figure 14

Gripper actuator problem setup with \(L=60\) µm and \({\varvec{f}}_\textrm{out}=1\)N

Fig. 15
figure 15

This figure displays the gripper actuator optimized with varying sizes of free space truncation, as shown in a–f. g provides a visualization of the different truncations of free space considered in the optimization process, while h offers a comparison of the optimized structures in terms of their shape outline. (Color figure online)

Fig. 16
figure 16

Gripper actuator: Evolution of the objective function \({\mathcal {F}}_\textrm{cm}\) for various free space sizes. (Color figure online)

Fig. 17
figure 17

Gripper actuator: Potential distribution along the diagonal of the bulk material, from the bottom left to top right, at the end of the optimization process for different sizes of free space. (Color figure online)

5 Conclusion

In our study, we investigated the impact of the surrounding free space on the structural optimization of EAPs (EAPs). We modeled the free space as the void region in density-based TO. We increased the size of the free space considered for computation and observed the results of TO. Although there may not be significant visual differences when considering the free space, there are differences in the performance. Considering that these materials will be used as actuators, for example in biomedical devices, these differences might play an important role. Thus, we propose that the consideration of free space has an impact on the optimized structure. To accurately capture the influence of free space, we recommend considering a free space that is at least 6 times the size of the bulk material under consideration. Furthermore, we investigated to assess whether the influence of free space remains consistent as the domain size increases. Our observations revealed that the influence of free space is indeed independent of the domain size.

The consideration of free space also plays an important role in magneto-active polymers. Furthermore, the influence of free space on shape optimization and stress constraints has not been studied yet, and this could be explored using a sequential optimization approach (Dev et al. 2022; Stankiewicz et al. 2022). This constitutes the direction for future works.