1 Introduction

With the wide application of robotics in industrial production, medical treatment and daily life, better performances of robotic systems are demanded, such as a higher efficiency in energy, completing complex tasks and a safe interaction with environment. To cope with these challenges, the dielectric elastomer actuators (DEAs) have been developed to serve as artificial muscles for soft robotics, see e.g. [5, 9, 14, 17]. The DEA is essentially composed by multiple stacked capacitors where the dielectric elastomer is sandwiched between two compliant electrodes. When an external electric field is applied to the DEA, the dielectric material will be polarized, resulting in electrostatic pressure, see the models in [21, 25, 31, 34] for instance. Due to the contractive pressure, the contraction of the DEA will be induced such that it can be applied as an actuator. The deformation behavior of the DEA is governed by the electromechanical coupling in the dielectric material.

For the general investigation of the electromechanical coupling behavior, much effort has been made to address the nonlinear electroelasticity in the past years, see e.g. the theory of interaction of electromagnetic and elastic fields in deformable continua in [20], the nonlinear electroelasticity formulation for the finite deformation in [8] and the variational formulations of the electro- and magneto-elastostatics in [33]. Additionally, material models of the dielectric elastomers have been investigated, see e.g. [30, 33, 36]. The instabilities of dielectric membranes are investigated in [12]. In [13], a viscoelastic effect is introduced to account for the damped dynamic behavior in silicon based dielectric elastomers. A viscoelastic 3D finite element model of the DEA is developed by [24] for the dynamic analysis using a structure preserving time integration scheme. This model is extended to flexible multibody system dynamics in [23].

The finite element models introduced above provide a powerful and accurate tool for solving the electromechanical coupling problem in DEA. However, huge amounts of degrees of freedom are required in large 3D finite element models, which leads to inefficient computation and difficulties for the optimal control of DEA. Especially for long thin artificial muscles, 3D finite element model is more expensive in computational cost than beam model. Further more, the coupling between 3D finite element models and rigid body is possible but has to be specially addressed in multibody system. The geometrically exact beam performs well concerning the tradeoff between computational cost and accuracy for the simulation of slender structures like the stacked DEA. By assigning the rotational degrees of freedom to points in continuum, the Cosserat formulation [7] of geometrically exact beam closes the gap between classical continuum mechanics and rigid (multi-)body dynamics, which leads to a consistent formulation of flexible multibody systems. The fundamental formulations on geometrically exact beam can be found in [2, 27] for instance. The time integration of constrained geometrically nonlinear beam dynamics has been discussed by many authors, see e.g. the energy conserving/decaying algorithms in [3], the energy–momentum scheme with null space method in [6] and the variational integrators in [16]. An energy–momentum integrator is applied in the nonlinear electro-elastodynamics by [19]. To account for the electric field in a beam, the focus has been put on the piezoelectric effect, see [15, 26, 32]. An analytical model for dielectric elastomer based microbeam is discussed in [11]. However, the electromechanically coupled problem of dielectric elastomers in geometrically exact beam is still not given.

The objective of this work is to develop an electromechanically coupled beam model for the simulation of stacked dielectric elastomer actuators, where the Cosserat formulation of geometrically exact beam dynamics is extended by adding the electric potential as the additional degree of freedom. A linear distribution of electric potential on the beam cross section is proposed to generate different beam deformations including contraction, shear, bending and torsion. The electric field in the beam is computed from the gradient of the electric potential. Based on the formulation of deformation gradient and electric field in the beam, the electromechanically coupled strain energy function for the beam is derived consistently from the strain energy function in continuum electromechanics, which leads to the direct application of the material models in continuum electromechanics to the beam model. The viscoelastic effect is taken into account in the non-conservative force term. The electromechanically coupled problem in beam dynamics is first semidiscretized with 1D spatial finite elements and then solved via variational time integration. By applying different electrical boundary conditions, different deformations of the beam are obtained in the numerical examples, which are compared with the results of the 3D finite element model.

This paper is structured as follows: In Sects. 2 and 3, the governing equations for electromechanical coupling in continuum electromechanics and geometrically exact beam are presented, respectively. Then the formulation of kinematic variables including the deformation gradient, the electric potential and the electric field are derived for the beam in Sect. 4. Section 5 presents the consistent derivation of a strain energy function for the beam from continuum electromechanics. In Sect. 6, the electromechanical coupling problem is solved within the variational time integration scheme with null space projection. The numerical examples of the developed model are presented in Sect. 7, followed by the conclusions in Sect. 8.

2 Governing equations for electromechanical coupling in continuum electromechanics

The finite deformation of a dielectric elastic solid occupying the domain \(B \subset {\mathbb {R}}^3\) is distinguished by the initial and current configurations. The boundary of the solid \(\partial B\) is composed by the Dirichlet type sections \(\partial _{u} B\) and \(\partial _{\phi } B\), and the Neumann type sections \(\partial _{\sigma } B\) and \(\partial _D B\). By denoting the position of a material point in the initial configuration with \({\mathbf {X}}\in B_0\), the position of the material point in the current configuration at time t is given by

$$\begin{aligned} {\mathbf {x}}={\mathbf {X}}+{\mathbf {u}}({\mathbf {X}},t), \end{aligned}$$
(1)

where \({\mathbf {u}}\) is the displacement. The deformations within the body induced by the electric field satisfy the balance law of momentum and the Maxwell equations.

2.1 Balance of linear and angular momentum

The local balance law of linear momentum in the dynamic process is given by

$$\begin{aligned} \nabla _{{\mathbf {X}}} \cdot {\mathbf {P}} + \rho _0 \bar{{\mathbf {b}}} =\rho _0\ddot{\mathbf {u}} \qquad \mathrm{in} \quad B, \end{aligned}$$
(2)

subject to the Dirichlet and Neumann boundary conditions

$$\begin{aligned}&{\mathbf {u}}=\bar{{\mathbf {u}}} \qquad \mathrm{on} \quad \partial _{u} B, \end{aligned}$$
(3)
$$\begin{aligned}&{\mathbf {P}}\cdot {\mathbf {N}}=\bar{{\mathbf {T}}} \qquad \mathrm{on} \quad \partial _{\sigma } B, \end{aligned}$$
(4)

where \( {\mathbf {P}} \) is the first Piola–Kirchhoff stress tensor, \(\rho _0\) is the mass density in initial configuration, \(\bar{{\mathbf {b}}}\) is the body force vector, \(\ddot{\mathbf {u}}\) is the acceleration, \(\bar{{\mathbf {u}}}\) is the prescribed displacement and \(\bar{{\mathbf {T}}}\) is the prescribed traction. The local balance of angular momentum reads

$$\begin{aligned} {\mathbf {F}}{\mathbf {P}}^T = {\mathbf {P}}{\mathbf {F}}^T, \end{aligned}$$
(5)

in which \({\mathbf {F}}\) is the deformation gradient defined as \({\mathbf {F}}=\partial {\mathbf {x}}({\mathbf {X}},t)/ \partial {\mathbf {X}}\).

2.2 Maxwell equations

By neglecting the magnetic field, the Maxwell equations are given by

$$\begin{aligned} \nabla _{{\mathbf {X}}} \times {\mathbf {E}}^e={\mathbf {0}}, \;\;\;\; \nabla _{{\mathbf {X}}} \cdot {\mathbf {D}}=0 \qquad \mathrm{in} \quad B , \end{aligned}$$
(6)

subject to the Dirichlet and Neumann boundary conditions

$$\begin{aligned}&\phi ={\bar{\phi }} \qquad \mathrm{on} \quad \partial _{\phi } B, \end{aligned}$$
(7)
$$\begin{aligned}&{\mathbf {D}}\cdot {\mathbf {N}}={\bar{Q}} \qquad \mathrm{on} \quad \partial _D B, \end{aligned}$$
(8)

with \( {\mathbf {E}}^e\) the electric field, \({\mathbf {D}}\) the electric displacement in the initial configuration, \(\phi \) the electric potential, \({\bar{\phi }}\) the prescribed electric potential, \({\mathbf {N}}\) the outward unit normal vector and \({\bar{Q}}\) the prescribed charges per unit area on the boundary \(\partial _D B\). The Eq. (6)\(_1\) leads to the definition of the electric field as the gradient of a scalar electric potential

$$\begin{aligned} {\mathbf {E}}^e=-\frac{\partial \phi }{\partial {\mathbf {X}}}. \end{aligned}$$
(9)

2.3 Electromechanical coupling

When the external electric field is imposed in the body of dielectric elastomer, the contractive pressure will be induced due to the polarization effects and thus the deformation of the body will be generated. The coupling effect between the electric field and the mechanical deformation is described by the strain energy function \(\Omega ({\mathbf {F}}, {\mathbf {E}}^e)\) of the dielectric material in the constitutive equations

$$\begin{aligned} {\mathbf {D}}=-\rho _0\frac{\partial \Omega ({\mathbf {F}}, {\mathbf {E}}^e)}{\partial {\mathbf {E}}^e}, \;\;\;\; {\mathbf {P}}=\rho _0\frac{\partial \Omega ({\mathbf {F}}, {\mathbf {E}}^e)}{\partial {\mathbf {F}}}. \end{aligned}$$
(10)

For the dielectric materials, the electromechanical coupling can be described by the strain energy function with the additive form

$$\begin{aligned} \Omega ({\mathbf {F}}, {\mathbf {E}}^e) = \Omega ^m ({\mathbf {F}}) + \Omega ^{\mathrm{em}}({\mathbf {F}}, {\mathbf {E}}^e) + \Omega ^e( {\mathbf {E}}^e), \end{aligned}$$
(11)

with \(\Omega ^m ({\mathbf {F}})\) referring to the purely mechanical behavior, \(\Omega ^{\mathrm{em}}({\mathbf {F}}, {\mathbf {E}}^e)\) referring to the electomechanical coupling and \(\Omega ^e( {\mathbf {E}}^e)\) referring to the pure electric behavior. Accordingly, the first Piola–Kirchhoff stress can be written as two parts

$$\begin{aligned} {\mathbf {P}}=\rho _0\frac{\partial \Omega ^m}{\partial {\mathbf {F}}}+\rho _0\frac{\partial \Omega ^{em}}{\partial {\mathbf {F}}}. \end{aligned}$$
(12)

3 Governing equations for electromechanical coupling in geometrically exact beam

In this work, the formulation of the electromechanical coupling problem presented above is extended to the geometrically exact beam. The deformation state of an initially straight beam over time can be distinguished by the initial configuration and the current configuration, as shown in Fig. 1.

Fig. 1
figure 1

Configurations of the beam

In the Cosserat formulation of geometrically exact beam, the placement of a material point in the current configuration of the beam is given by

$$\begin{aligned} {\mathbf {x}}(X^k,s,t)=\varvec{\varphi }(s,t)+X^k {\mathbf {d}}_k(s,t), \;\;\;\; k=1,2. \end{aligned}$$
(13)

where \(s \in [0,L] \subset {\mathbb {R}}\) denotes the arc-length of the line of the centroids \(\varvec{\varphi }(s,0)\in {\mathbb {R}}^3\) in the initial configuration, \({\mathbf {d}}_i(s,t)\) is an orthonormal triad at s with the directors \({\mathbf {d}}_k(s,t), k=1,2\) spanning a principle basis of the cross section, and \(X^k\) are the curvilinear coordinates on the cross section. Based on these assumptions, the governing equations for electromechanically coupled beam model can be consistently derived from the equations of continuum electromechanics.

3.1 Electromechanically coupled beam model in variational setting

The governing equations of the beam are usually derived by integrating Eq. (2) in continuum mechanics over the beam cross section, see e.g. [27]. However, the internal lateral traction on the contour of beam cross section appearing during the integration of the divergence term and the external lateral traction (as Neumann boundary condition) are not clearly distinguished. To obtain a consistent derivation of beam equations from continuum mechanics considering the Neumann boundary conditions in Eqs. (4) and (8), in this work, we formulate the governing equations for the beam from the variational setting.

The variational setting is formulated according to the Lagrange–d’Alembert principle

$$\begin{aligned} \delta S+ \int _{0}^{T} \delta W^{\mathrm{ext}}dt=0, \end{aligned}$$
(14)

with the action S defined as the space-time integral \(S=\int _{0}^{T}\int _{B_0} L dVdt\) over the Lagrange density L and \(W^{\mathrm{ext}}\) the external non-conservative work contributed by the body force and surface traction. According to the constitutive law in Eq. (10), the variation of the action can be formulated for the beam as

$$\begin{aligned} \delta S&=\int _{0}^{T} \int _{B_0} \left( \rho _0 \dot{{\mathbf {x}}} \cdot \delta \dot{{\mathbf {x}}} - \partial _{{\mathbf {F}}} \Omega : \delta {\mathbf {F}} - \partial _{{\mathbf {E}}^e} \Omega \cdot \delta {\mathbf {E}}^e \right) dVdt \nonumber \\&=\int _{0}^{T} \left\{ \int _{c}\int _{\Sigma } \left[ \delta {\mathbf {x}} \cdot \left( - \rho _0 \ddot{{\mathbf {x}}} + \nabla _{{\mathbf {X}}} \cdot {\mathbf {P}} \right) + \delta \phi \left( - \nabla _{{\mathbf {X}}} \cdot {\mathbf {D}} \right) \right] dAds\right. \nonumber \\&\quad \left. +\,\int _{c} \oint _{\partial \Sigma } \left[ \delta {\mathbf {x}} \cdot \left( - {\mathbf {P}} \cdot {\mathbf {N}} \right) +\delta \phi \left( {\mathbf {D}}\cdot {\mathbf {N}} \right) \right] dlds \right\} dt, \end{aligned}$$
(15)

where the formula \(-\partial _{{\mathbf {F}}} \Omega : \delta {\mathbf {F}}= (\nabla _{{\mathbf {X}}} \cdot \partial _{{\mathbf {F}}} \Omega ) \cdot \delta {\mathbf {x}} - \nabla _{{\mathbf {X}}} \cdot (\partial _{{\mathbf {F}}} \Omega \cdot \delta {\mathbf {x}})\) and the divergence theorem have been applied. In the derivation of Eq. (15), the end-point conditions in time, i.e. \(\delta {\mathbf {x}}_0=\delta {\mathbf {x}}_T={\mathbf {0}}\), have been applied. Due to the assumption of geometrically exact beam, the volume integral in Eq. (15) is split into the curve integral over beam center line and the area integral over beam cross section \(\Sigma \). At the same time, the surface integral in Eq. (15) is split into the curve integral over beam center line and the curve integral over the lateral contour of beam cross section. By using of \({\mathbf {P}}={\mathbf {t}}_k\otimes {\mathbf {d}}_k(s,0)+{\mathbf {t}}_s\otimes {\mathbf {d}}_3(s,0) \) and \({\mathbf {D}}=D_i {\mathbf {d}}_i(s,0) (i=1,2,3)\), the force \({\mathbf {f}}\), the torque \({\mathbf {m}}\) and the electric displacement \(d^e_s\) for the beam are defined as

$$\begin{aligned} {\mathbf {f}}=\int _{\Sigma }{\mathbf {t}}_s dA,\qquad {\mathbf {m}}=\int _{\Sigma } {\mathbf {r}} \times {\mathbf {t}}_s dA, \qquad d^e_s=\int _{\Sigma }D_3 dA, \end{aligned}$$
(16)

with \({\mathbf {r}}={\mathbf {x}}-\varvec{\varphi }\). For the sake of later use, the electric displacement vector \({\mathbf {d}}^e\) for the beam is defined as \({\mathbf {d}}^e=\begin{bmatrix} d_1^e&d_2^e&d_s^e \end{bmatrix}^T\) with the components \(d_k^e=\int _{\Sigma } D_k dA\). In this case, the divergence terms in Eq. (15) can be formulated as

$$\begin{aligned} \int _{\Sigma } \nabla _{{\mathbf {X}}} \cdot {\mathbf {P}} dA&= \underbrace{\int _{\Sigma } \frac{\partial {\mathbf {t}}_1}{\partial X_1} +\frac{\partial {\mathbf {t}}_2}{\partial X_2} dA}_{{\mathbf {f}}^n} + \frac{\partial {\mathbf {f}}}{\partial s}, \end{aligned}$$
(17)
$$\begin{aligned} \int _{\Sigma } {\mathbf {r}} \times \nabla _{{\mathbf {X}}} \cdot {\mathbf {P}} dA&= \underbrace{\int _{\Sigma } {\mathbf {r}} \times \left( \frac{\partial {\mathbf {t}}_1}{\partial X_1} +\frac{\partial {\mathbf {t}}_2}{\partial X_2}\right) dA}_{{\mathbf {m}}^n} \nonumber \\&\quad + \frac{\partial {\mathbf {m}}}{\partial s}+\frac{\partial \varvec{\varphi }}{\partial s} \times {\mathbf {f}}, \end{aligned}$$
(18)
$$\begin{aligned} \int _{\Sigma } \nabla \cdot {\mathbf {D}} dA&=\underbrace{ \int _{\Sigma } \frac{\partial D_1}{\partial X_1} +\frac{\partial D_2}{\partial X_2} dA}_{d^{en}} + \frac{\partial d^e_s}{\partial s}. \end{aligned}$$
(19)

In the surface integral of Eq. (15), the unit normal vector is in the plane of cross section, i.e. \({\mathbf {N}}=n_k{\mathbf {d}}_k(s,0) (k=1,2)\). Thus, by applying the divergence theorem, we have \(\oint _{\partial \Sigma } {\mathbf {P}}\cdot {\mathbf {N}}dl={\mathbf {f}}^n\), \(\oint _{\partial \Sigma }{\mathbf {r}} \times ({\mathbf {P}}\cdot {\mathbf {N}})dl={\mathbf {m}}^n\) and \( \oint _{\partial \Sigma } {\mathbf {D}}\cdot {\mathbf {N}}dl=d^{en} \).

The variation of the position field is given by

$$\begin{aligned} \delta {\mathbf {x}} = \delta \varvec{\varphi } + \delta \varvec{\eta } \times {\mathbf {r}}, \end{aligned}$$
(20)

with \(\delta \varvec{\eta }= \frac{1}{2}{\mathbf {d}}^i \times \delta {\mathbf {d}}_i\), see the details in [10]. The time derivatives of the position field are given by

$$\begin{aligned} \dot{{\mathbf {x}}} = \dot{\varvec{\varphi }} + \varvec{\omega } \times {\mathbf {r}}, \qquad \ddot{{\mathbf {x}}} = \ddot{\varvec{\varphi }} + \dot{\varvec{\omega }} \times {\mathbf {r}} + \varvec{\omega } \times \varvec{\omega } \times {\mathbf {r}}, \end{aligned}$$
(21)

with \(\varvec{\omega }\) the spatial angular velocity. Using Eqs. (19)–(21), the varitation of the action in Eq. (15) reads

$$\begin{aligned}&\delta S\nonumber \\&\quad =\int _{c} \left[ \delta \varvec{\varphi } \cdot \left( - A_{\rho } \ddot{\varvec{\varphi }} +{\mathbf {f}}^n+ \frac{\partial {\mathbf {f}}}{\partial s} \right) \right. \nonumber \\&\qquad + \delta \varvec{\eta } \cdot \left( - \dot{\varvec{\omega }} {\mathbb {I}} - \varvec{\omega } \times \varvec{\omega } {\mathbb {I}}+ {\mathbf {m}}^n+ \frac{\partial {\mathbf {m}}}{\partial s} + \frac{\partial \varvec{\varphi }}{\partial s} \times {\mathbf {f}} \right) \nonumber \\&\qquad \left. +\,\delta \phi \left( -d^{en}-\frac{\partial d^e_s}{\partial s} \right) \right] ds\nonumber \\&\qquad + \int _{c} \left[ \delta \varvec{\varphi } \cdot \left( -{\mathbf {f}}^n\right) + \delta \varvec{\varphi } \cdot \left( -{\mathbf {m}}^n\right) + \delta \phi \, d^{en} \right] ds, \end{aligned}$$
(22)

in which \({\mathbb {I}}=\int _{\Sigma } \rho \left( \left\| {\mathbf {x}}\right\| ^2 {\mathbf {I}} - {\mathbf {x}} \otimes {\mathbf {x}} \right) dA\) is the spatial mass moment of inertia tensor. It can be observed that \({\mathbf {f}}^n\) and \({\mathbf {m}}^n\) in the first curve integral of Eq. (22) come from the divergence term of the action in Eq. (15), \({\mathbf {f}}^n\) and \({\mathbf {m}}^n\) in the second curve integral of Eq. (22) come from the integration over a boundary surface in Eq. (15). Due to their opposite signs, they will be offset respectively.

By considering the Neumann boundary conditions in Eqs. (4) and (8), the variation of the external work is written as

$$\begin{aligned} \delta W^{\mathrm{ext}}&=\int _{B_0} \delta {\mathbf {x}} \cdot \rho _0\bar{{\mathbf {b}}} dV +\int _{\partial B_0} \delta {\mathbf {x}} \cdot \bar{{\mathbf {T}}} dA\nonumber \\&\quad + \int _{\partial B_0} \delta \phi \, {\bar{Q}} dA \nonumber \\&=\int _{c} \delta \varvec{\varphi } \cdot \bar{{\mathbf {f}}} ds + \int _{c}\delta \varvec{\varphi } \cdot \bar{{\mathbf {t}}} ds + \int _{c} \delta \varvec{\eta } \cdot \bar{{\mathbf {m}}} ds \nonumber \\&\quad + \int _{c}\delta \varvec{\eta } \cdot \bar{\varvec{\tau }} ds +\int _{c} \delta \phi \, {\bar{q}} ds, \end{aligned}$$
(23)

where the prescribed body force, lateral traction, torque and lateral charge are defined respectively as

$$\begin{aligned} \bar{{\mathbf {f}}}=&\int _{\Sigma }\rho _0 \bar{{\mathbf {b}}}dA, \quad \bar{{\mathbf {t}}}= \oint _{\partial \Sigma } \bar{{\mathbf {T}}} dl, \quad \bar{{\mathbf {m}}}=\int _{\Sigma }{\mathbf {r}}\times \rho _0 \bar{{\mathbf {b}}}dA, \nonumber \\ \bar{\varvec{\tau }}=&\oint _{\partial \Sigma } {\mathbf {r}} \times \bar{{\mathbf {T}}} dl, \quad {\bar{q}}= \oint _{\partial \Sigma } {\bar{Q}} dl. \end{aligned}$$
(24)

Combing Eqs. (22) and (23), the Lagrange–d’Alembert principle for the beam is given by

$$\begin{aligned}&\int _{0}^{T} \left\{ \int _{c} \left[ \delta \varvec{\varphi } \cdot \left( - A_{\rho } \ddot{\varvec{\varphi }} + \frac{\partial {\mathbf {f}}}{\partial s} +\bar{{\mathbf {f}}} +\bar{{\mathbf {t}}} \right) \right. \right. \nonumber \\&\quad +\delta \varvec{\eta } \cdot \left( - \dot{\varvec{\omega }} {\mathbb {I}} - \varvec{\omega } \times \varvec{\omega } {\mathbb {I}}+ \frac{\partial {\mathbf {m}}}{\partial s} + \frac{\partial \varvec{\varphi }}{\partial s} \times {\mathbf {f}} +\bar{{\mathbf {m}}} +\bar{\varvec{\tau }} \right) \nonumber \\&\quad \left. \left. +\,\delta \phi \left( -\frac{\partial d^e_s}{\partial s} +{\bar{q}} \right) \right] ds \right\} dt=0 \end{aligned}$$
(25)

3.2 Balance of linear and angular momentum

The requirement of stationary in Eq. (25) in terms of the translation field \( \varvec{\varphi }\) leads to the balance of linear momentum for the beam

$$\begin{aligned} \frac{\partial {\mathbf {f}}}{\partial s}+ \bar{{\mathbf {f}}}+ \bar{{\mathbf {t}}} =A_{\rho } \ddot{\varvec{\varphi }} \qquad s \in [0,L]. \end{aligned}$$
(26)

The requirement of stationary in Eq. (25) in terms of the rotation field \( \varvec{\eta }\) leads to the balance of the angular momentum for the beam

$$\begin{aligned} \frac{\partial {\mathbf {m}}}{\partial s} + \frac{\partial \varvec{\varphi }}{\partial s} \times {\mathbf {f}} +\bar{{\mathbf {m}}} +\bar{\varvec{\tau }} ={\mathbb {I}} \dot{\varvec{\omega }} +\varvec{\omega } \times {\mathbb {I}} \varvec{\omega } \qquad s \in [0,L]. \end{aligned}$$
(27)

3.3 Maxwell equation

The requirement of stationary in Eq. (25) in terms of the electric potential \( \phi \) leads to the Maxwell equation for the beam

$$\begin{aligned} \frac{\partial d^e_s}{\partial s} - {\bar{q}} =0 \qquad s \in [0,L]. \end{aligned}$$
(28)

3.4 Electromechanical coupling

The force \({\mathbf {f}}\), the torque \({\mathbf {m}}\) and the electric displacement vector \({\mathbf {d}}^e\) in the beam governing equations are related with the kinematic variables via the constitutive equations

$$\begin{aligned}&{\mathbf {d}}^e=-\rho _0\frac{\partial \Omega _b( \varvec{\gamma }, \varvec{\kappa }, \varvec{\varepsilon })}{\partial \varvec{\varepsilon }}, \;\;\;\; {\mathbf {f}}=\rho _0\frac{\partial \Omega _b( \varvec{\gamma }, \varvec{\kappa }, \varvec{\varepsilon })}{\partial \varvec{\gamma }}, \nonumber \\&\;\;\;\; {\mathbf {m}}=\rho _0\frac{\partial \Omega _b( \varvec{\gamma }, \varvec{\kappa }, \varvec{\varepsilon })}{\partial \varvec{\kappa }}, \end{aligned}$$
(29)

where \(\Omega _b\) is the strain energy per unit arc-length in a beam, \(\varvec{\varepsilon }\) is the strain-like electrical variable conjugated with the electric displacement \({\mathbf {d}}^e\) of the beam, \(\varvec{\gamma }\) and \(\varvec{\kappa }\) are the beam strain measures conjugated with \({\mathbf {f}}\) and \({\mathbf {m}}\), respectively. The electromechanical coupling can be specified by the strain energy function in the additive form

$$\begin{aligned} \Omega _b( \varvec{\gamma }, \varvec{\kappa }, \varvec{\varepsilon }) = \Omega ^{m}_b( \varvec{\gamma }, \varvec{\kappa }) + \Omega ^{\mathrm{em}}_b( \varvec{\gamma }, \varvec{\kappa }, \varvec{\varepsilon }) + \Omega ^{e}_b(\varvec{\varepsilon }). \end{aligned}$$
(30)

Due to the coupled term in strain energy, the force and torque are contributed by two parts accordingly, the electric part and the mechanical part, i.e.

$$\begin{aligned} {\mathbf {f}}=\rho _0\frac{\partial \Omega ^m_b}{\partial \varvec{\gamma }}+\rho _0\frac{\partial \Omega ^{em}_b}{\partial \varvec{\gamma }},\;\;\;\;\; {\mathbf {m}}=\rho _0\frac{\partial \Omega ^m_b}{\partial \varvec{\kappa }}+\rho _0\frac{\partial \Omega ^{em}_b}{\partial \varvec{\kappa }}. \end{aligned}$$
(31)

4 Mechanical and electrical kinematics in the beam

To compute the force \({\mathbf {f}}\), the torque \({\mathbf {m}}\) and the electric displacement \({\mathbf {d}}^e\) in the governing equations of the electromechanically coupled beam model in Sect. 3, the conjugated kinematic variables for mechanical and electrical parts have to be formulated. The mechanical strain measures \(\varvec{\gamma }\) and \(\varvec{\kappa }\) for the geometrically exact beam have been defined and related with the deformation gradient in the literature, see e.g. [4]. However, the electric potential \(\phi \) as well as the strain-like electrical variable \(\varvec{\varepsilon }\) are still not given for the beam.

4.1 Mechanical kinematics in the beam

By setting the origin of the global Cartesian coordinate system \({\mathbf {O}}\) to one end of the beam as shown in Fig. 1, the location of the node \(\varvec{\varphi }(s,0)\) of the straight beam can be rewritten in terms of the director \({\mathbf {d}}_3(s,0)\) and the arc length s

$$\begin{aligned} \varvec{\varphi }(s,0)=X^3 {\mathbf {d}}_3(s,0)=s {\mathbf {d}}_3(s,0), \;\;\;\; \mathrm{or } \;\;\; X^3 =s. \end{aligned}$$
(32)

Thus the components \(X^i\) of the vector \({\mathbf {X}}\) in the initial configuration can be computed by projecting the position vector to the directors

$$\begin{aligned} X^i={\mathbf {X}}\cdot {\mathbf {d}}_i(s,0),\;\;\;\; i=1,2,3. \end{aligned}$$
(33)

By applying Eqs. (13) and (33), the deformation gradient at a point \((X^1, X^2, s)\) in the beam can be written as, see [4],

$$\begin{aligned} {\mathbf {F}}(X^1, X^2, s,t)&=\frac{\partial {\mathbf {x}}}{\partial {\mathbf {X}}}=\frac{\partial {\mathbf {x}}}{\partial X_i} \otimes {\mathbf {d}}_i(s,0) \nonumber \\&=\left[ {\mathbf {I}} + \left( \frac{\partial \varvec{\varphi }(s,t)}{\partial s} - {\mathbf {d}}_3(s,t) \right. \right. \nonumber \\&\quad \left. \left. +\, X^1 \frac{\partial {\mathbf {d}}_1(s,t)}{\partial s} + X^2 \frac{\partial {\mathbf {d}}_2(s,t)}{\partial s} \right) \otimes {\mathbf {d}}_3(s,t) \right] \varvec{\Lambda }(s), \end{aligned}$$
(34)

with the rotation tensor \( \varvec{\Lambda }(s)={\mathbf {d}}_i(s,t) \otimes {\mathbf {d}}_i(s,0)\) and \(\varvec{\Lambda }(s)^{-1}=\varvec{\Lambda }(s)^T \). The derivatives in Eq. (34) can be written in terms of the beam strain measures, such as \(\frac{\partial {\mathbf {d}}_k(s,t)}{\partial s}\) is related to the strain \(\varvec{\kappa }\) for bending and torsion by

$$\begin{aligned} \frac{\partial {\mathbf {d}}_k(s,t)}{\partial s}=\varvec{\kappa }(s,t) \times {\mathbf {d}}_k(s,t)=\left[ \kappa _j{\mathbf {d}}_j(s,t)\right] \times {\mathbf {d}}_k(s,t), \end{aligned}$$
(35)

and \(\frac{\partial \varvec{\varphi }(s,t)}{\partial s}\) is related to the strain \(\varvec{\gamma }\) for shear and elongation by

$$\begin{aligned} \frac{\partial \varvec{\varphi }(s,t)}{\partial s} - {\mathbf {d}}_3(s,t)=\varvec{\gamma }(s,t). \end{aligned}$$
(36)

Consequently, the deformation gradient \({\mathbf {F}}\) in Eq. (34) can be further formulated in terms of the beam strain measures as

$$\begin{aligned} {\mathbf {F}}&=\left\{ {\mathbf {I}} + \left[ \varvec{\gamma }(s,t) + \varvec{\kappa }(s,t) \times X^k {\mathbf {d}}_k(s,t)\right] \otimes {\mathbf {d}}_3(s,t)\right\} \varvec{\Lambda }(s) \nonumber \\&=\left[ {\mathbf {I}} +{\mathbf {a}}(s,t) \otimes {\mathbf {d}}_3(s,t) \right] \varvec{\Lambda }(s) \end{aligned}$$
(37)

with \({\mathbf {a}}(s,t) = \varvec{\gamma }(s,t) + \varvec{\kappa }(s,t) \times X^k {\mathbf {d}}_k(s,t) \). The variable \({\mathbf {a}}\) can be formulated in the reference configuration with the beam strain measures \(\varvec{\Gamma }\) and \({\mathbf {K}}\)

$$\begin{aligned} {\mathbf {a}}^r=\varvec{\Lambda }^T{\mathbf {a}}=\varvec{\Gamma } + {\mathbf {K}} \times X^k {\mathbf {d}}^0_k. \end{aligned}$$
(38)

The determinant of the deformation gradient reads

$$\begin{aligned} J=\mathrm{det}({\mathbf {F}})= 1+{\mathbf {a}}(s,t) \cdot {\mathbf {d}}_3(s,t). \end{aligned}$$
(39)

Accordingly, the Green-Lagrange strain and the right Cauchy Green tensor are given by

$$\begin{aligned} {\mathbf {E}}&=\left[ {\mathbf {a}}^r \otimes {\mathbf {d}}_3(s,0)\right] ^{\mathrm{sym}} + \frac{1}{2} ({\mathbf {a}}^r \cdot {\mathbf {a}}^r) {\mathbf {d}}_3(s,0) \otimes {\mathbf {d}}_3(s,0), \end{aligned}$$
(40)
$$\begin{aligned} {\mathbf {C}}&={\mathbf {I}} + 2 \left[ {\mathbf {a}}^r \otimes {\mathbf {d}}_3(s,0)\right] ^{\mathrm{sym}} + ({\mathbf {a}}^r \cdot {\mathbf {a}}^r) {\mathbf {d}}_3(s,0) \otimes {\mathbf {d}}_3(s,0). \end{aligned}$$
(41)

The inverse of the right Cauchy Green tensor can be formulated as

$$\begin{aligned} {\mathbf {C}}^{-1}&={\mathbf {F}}^{-1}{\mathbf {F}}^{-T} =\varvec{\Lambda }^{-1}{\mathbf {A}}^{-1}{\mathbf {A}}^{-T}\varvec{\Lambda }^{-T}=\varvec{\Lambda }^{T}{\mathbf {A}}^{-1}{\mathbf {A}}^{-T}\varvec{\Lambda } \end{aligned}$$
(42)

with \({\mathbf {A}}^{-1}={\mathbf {I}}-\frac{1}{J}\left[ {\mathbf {a}}\otimes {\mathbf {d}}_3(s,t)\right] \).

The material time derivative of the location of a material point in the current configuration reads

$$\begin{aligned} \dot{{\mathbf {x}}}(X^k,s,t)=\dot{\varvec{\varphi }}(s,t)+X^k \dot{{\mathbf {d}}}_k(s,t), \end{aligned}$$
(43)

by which the time derivative of deformation gradient can be evaluated with

$$\begin{aligned}&\dot{{\mathbf {F}}}(X^1, X^2, s,t)=\frac{\partial \dot{{\mathbf {x}}}}{\partial {\mathbf {X}}}=\frac{\partial \dot{{\mathbf {x}}}}{\partial X_i} \otimes {\mathbf {d}}_i(s,0) \nonumber \\&\quad =\dot{{\mathbf {d}}}_1(s,t) \otimes {\mathbf {d}}_1(s,0) + \dot{{\mathbf {d}}}_2(s,t) \otimes {\mathbf {d}}_2(s,0) \nonumber \\&\qquad + \left( \frac{\partial \dot{\varvec{\varphi }}(s,t)}{\partial s} + X^1 \frac{\partial \dot{{\mathbf {d}}}_1(s,t)}{\partial s} + X^2 \frac{\partial \dot{{\mathbf {d}}}_2(s,t)}{\partial s} \right) \otimes {\mathbf {d}}_3(s,0) \nonumber \\&\quad = \dot{\varvec{\Lambda }}(s) + \left( \frac{\partial \dot{\varvec{\varphi }}(s,t)}{\partial s} - \dot{{\mathbf {d}}}_3(s,t) + X^1 \frac{\partial \dot{{\mathbf {d}}}_1(s,t)}{\partial s} \right. \nonumber \\&\qquad \left. +\, X^2 \frac{\partial \dot{{\mathbf {d}}}_2(s,t)}{\partial s} \right) \otimes {\mathbf {d}}_3(s,0). \end{aligned}$$
(44)

4.2 Electrical kinematics in the beam

To formulate the electromechanical coupling problem, the electric potential will serve as the extra degree of freedom. In this work, the electric potential at the point \((X^1,X^2,s)\) is represented by the electric potential at the beam node plus the increment from the beam node to the point \((X^1,X^2)\) on the cross section as shown in Fig. 2. Similar to the local description of the cross section in Eq. (13), the electric potential on the cross section is given by

$$\begin{aligned} \phi (X^1,X^2,s)=\phi _o(s) + X^1 \alpha (s) + X^2 \beta (s) \end{aligned}$$
(45)

with \(\phi _o(s) \) the electric potential at the beam node, \( \alpha (s)\) and \(\beta (s)\) the incremental parameters of the electric potential in the directions of \({\mathbf {d}}_1\) and \({\mathbf {d}}_2\), respectively. Equation (45) is the linear part of a Taylor series expansion of the electric potential. To be able to generate complex beam deformations via dielectric actuator, at least a linear distribution of electric potential on the beam cross section is required. The extension to nonlinear distributions of the electric potential on beam cross section can be made by adding the higher order terms.

Fig. 2
figure 2

Linear distribution of electric potential on cross section

The Eq. (13) describes the cross section as a plane. Correspondingly, Eq. (45) defines a linear distribution of electric potential on the cross section. If the electric potential is constant within the cross section (i.e. \(\alpha ,\beta =0\)), the electric field only exists in the \({\mathbf {d}}_3\) direction, which will lead to the uniaxial contraction in beam.

According to the Maxwell equations, the electric field is defined as the gradient of the electric potential \( \phi \), see Eq. (9). To compute the gradient of the electric potential for the beam, a similar approach as the deformation gradient in Eq. (34) can be adopted. By applying the electric potential in Eq. (45), the electric field at \((X^1,X^2,s)\) in the beam can be computed as

$$\begin{aligned} {\mathbf {E}}^e(X^1,X^2,s)&= -\frac{\partial \phi }{\partial X_i} \otimes {\mathbf {d}}_i(s,0) \end{aligned}$$
(46)
$$\begin{aligned}&=-\left[ \alpha (s) {\mathbf {d}}_1(s,0) + \beta (s) {\mathbf {d}}_2(s,0)\right. \nonumber \\&\quad \left. +\, \left( \frac{\partial \phi _o(s)}{\partial s} + X^1 \frac{\partial \alpha (s)}{\partial s} + X^2 \frac{\partial \beta (s)}{\partial s} \right) {\mathbf {d}}_3(s,0) \right] . \end{aligned}$$
(47)

For the later computing of the virtual work induced by the electric field, the variation of the electric field is given by

$$\begin{aligned} \delta {\mathbf {E}}^e&= -\left[ \delta \alpha (s) {\mathbf {d}}_1(s,0) + \delta \beta (s) {\mathbf {d}}_2(s,0)\right. \nonumber \\&\quad \left. +\, \delta \left( \frac{\partial \phi _o(s)}{\partial s} + X^1 \frac{\partial \alpha (s)}{\partial s} + X^2 \frac{\partial \beta (s)}{\partial s} \right) {\mathbf {d}}_3(s,0) \right] . \end{aligned}$$
(48)

Since the electric field expressed in Eq. (47) is not a strain-like variable for beam, we need to formulate the strain-like electrical variable \(\varvec{\varepsilon }\), which can be consistently conjugated with the beam electric displacement \({\mathbf {d}}^e\) in Eq. (29). For this purpose, we start from the internal virtual work \(\delta W_{\mathrm{int}}\) induced by the electric field in the 3D continuum

$$\begin{aligned} \delta W_{\mathrm{int}}=\int _{B_0} {\mathbf {D}}\cdot \delta {\mathbf {E}}^e dV. \end{aligned}$$
(49)

By applying the electric displacement and the variation of electric field in Eq. (48) to the internal virtual work, we obtain

$$\begin{aligned} \delta W_{int}&= \int _{B_0} -(D_i {\mathbf {d}}_i) \cdot \left[ \delta \alpha (s) {\mathbf {d}}_1(s,0) + \delta \beta (s) {\mathbf {d}}_2(s,0) \right. \nonumber \\&\quad \left. +\, \delta \left( \frac{\partial \phi _o(s)}{\partial s} + X^1 \frac{\partial \alpha (s)}{\partial s} + X^2 \frac{\partial \beta (s)}{\partial s} \right) {\mathbf {d}}_3(s,0) \right] dV \nonumber \\&=\int _c -\left[ \delta \alpha (s) \int _{\Sigma } D_1 dA +\delta \beta (s) \int _{\Sigma } D_2 dA \right. \nonumber \\&\quad + \delta \frac{\partial \phi _o(s)}{\partial s} \int _{\Sigma } D_3 dA + \delta \frac{\partial \alpha (s)}{\partial s} \int _{\Sigma } X^1 D_3 dA \nonumber \\&\quad \left. +\, \delta \frac{\partial \beta (s)}{\partial s} \int _{\Sigma } X^2 D_3 dA \right] ds. \end{aligned}$$
(50)

Due to the presence of the cross section coordinates \(X^1\) and \(X^2\) in Eq. (50), any strain-like electrical variable depends on the cross section at s. However, assuming that \(\alpha (s)\) and \(\beta (s)\) are linear functions in terms of s, the variations of \(\frac{\partial \alpha (s)}{\partial s}\) and \(\frac{\partial \beta (s)}{\partial s}\) vanish leading to the following expression for the virtual work

$$\begin{aligned} \delta W_{int}=&\int _c -\left[ \delta \alpha (s) \int _{\Sigma } D_1 dA +\delta \beta (s) \int _{\Sigma } D_2 dA \right. \nonumber \\&\left. +\, \delta \frac{\partial \phi _o(s)}{\partial s} \int _{\Sigma } D_3 dA \right] ds \nonumber \\ =&\int _c {\mathbf {d}}^e \cdot \delta \varvec{\varepsilon } ds, \end{aligned}$$
(51)

where the work conjugate of \({\mathbf {d}}^e\) and \(\varvec{\varepsilon } \) can be observed with the strain-like electrical variable \(\varvec{\varepsilon }\) defined as

$$\begin{aligned} \varvec{\varepsilon }= \begin{bmatrix} -\alpha (s)&-\beta (s)&-\frac{\partial \phi _o(s)}{\partial s} \end{bmatrix}^T. \end{aligned}$$
(52)

5 Strain energy function for the beam

The strain energy function of the beam model has been derived for the hyperelastic constitutive law, such as the widely used Saint-Venant–Kirchhoff model [28]. However, the strain energy for other material behaviors are not given for the beam model, including the dielectric elasticity. In continuum electromechanics, many material models have been postulated to describe different material behaviors, such as the dielectric elastomers in [33]. To apply these material models in a beam formulation, the rewriting of the strain energy function in terms of the beam strains is required, which can be achieved by applying the kinematic relations introduced in Sect. 4. In this part, we firstly present the derivation of the widely used Saint-Venant–Kirchhoff model for the beam. Then, the strain energy function of the dielectric elastomer is formulated for the beam such that it can be used in the beam constitutive equations directly.

5.1 Saint-Venant–Kirchhoff model

The Saint-Venant–Kirchhoff model describes a linear relationship between the Green-Lagrange strain \({\mathbf {E}}\) and the second Piola–Kirchhoff stress \({\mathbf {S}}\) with the strain energy function

$$\begin{aligned} \Omega ({\mathbf {E}}) =\frac{1}{2}\lambda \left( \mathrm{tr}{\mathbf {E}}\right) ^2 + \mu {\mathbf {E}} : {\mathbf {E}}, \end{aligned}$$
(53)

in which \(\lambda \) and \(\mu \) are the Lamé parameters. Inserting the linear part of \({\mathbf {E}}\) in Eq. (41) into the previous equation, the reduced strain energy \(\Omega ^r\) reads

$$\begin{aligned} \Omega ^r&=\frac{1}{2} \left\{ \lambda \left[ \mathrm{tr}({\mathbf {a}}^r \otimes {\mathbf {d}}_3(s,0))^{\mathrm{sym}}\right] ^2\right. \nonumber \\&\quad \left. +\, 2\mu \left[ \frac{1}{2} ({\mathbf {a}}^r \cdot {\mathbf {d}}_3(s,0))^2 +\frac{1}{2} {\mathbf {a}}^r \cdot {\mathbf {a}}^r \right] \right\} \nonumber \\&\quad = \frac{1}{2} {\mathbf {a}}^{rT} {\mathbf {D}} {\mathbf {a}}^{r} \end{aligned}$$
(54)

with \({\mathbf {D}}=( \lambda + \mu ){\mathbf {d}}_3(s,0) \otimes {\mathbf {d}}_3(s,0) + \mu {\mathbf {I}} \). Integrating \(\Omega ^r\) over beam cross section, the reduced strain energy for the beam is obtained as

$$\begin{aligned} \Omega ^{r}_b (\varvec{\Gamma }, {\mathbf {K}})&=\int _{\Sigma }\Omega ^r dA \nonumber \\&= \frac{1}{2} \int _{\Sigma } (\varvec{\Gamma } + {\mathbf {K}} \times {\mathbf {r}})^T {\mathbf {D}} (\varvec{\Gamma } + {\mathbf {K}} \times {\mathbf {r}}) dA \nonumber \\&= \frac{1}{2} \varvec{\Gamma } ^T {\mathbf {D}}^N \varvec{\Gamma } + \frac{1}{2} {\mathbf {K}}^T {\mathbf {D}}^K {\mathbf {K}}, \end{aligned}$$
(55)

where the material tangents \({\mathbf {D}}^N\) and \({\mathbf {D}}^K\) are given by

$$\begin{aligned}&{\mathbf {D}}^N= \begin{bmatrix} \mu A &{}\quad 0 &{}\quad 0\\ 0 &{}\quad \mu A &{}\quad 0\\ 0 &{}\quad 0 &{}\quad (\lambda +2\mu ) A \end{bmatrix}, \nonumber \\&{\mathbf {D}}^K= \begin{bmatrix} (\lambda +2\mu ) J_{22} &{}\quad (\lambda +2\mu ) J_{12} &{}\quad 0\\ (\lambda +2\mu ) J_{21} &{}\quad (\lambda +2\mu ) J_{11} &{}\quad 0\\ 0 &{}\quad 0 &{}\quad \mu J_p \end{bmatrix} \end{aligned}$$
(56)

with the first moments of area \(J_{ii}=\int _{\Sigma } X_i X_i dA\), the product moments of area \(J_{12}=J_{21}=-\int _{\Sigma } X_1 X_2 dA\) and the polar moment of area \(J_p=\int _{\Sigma } X_1^2+ X_2^2 dA\). It can be observed that the widely used beam constitutive model postulated by [28, 29] are recovered when \( \lambda +2\mu = E\). According to the formula of Lamé parameters, this formulation assumes the limit of Poisson’s \(\nu \rightarrow 0\), i.e. no lateral contraction. However, the physics is incorrect and it leads to the incorrect material moduli. To overcome this problem, the uniaxial stress assumption can be additionally included within a mix formulation such as the Hellinger-Reissner principle. An alternative solution is to apply a very small Poisson’s ratio \(\nu \) in the simulation, by which a relatively fair comparison between the beam model and the 3D finite element model can be achieved as shown in the numerical examples of this work.

Since the reduced beam strain energy \(\Omega ^{r}_b\) is derived by only inserting the linear part of the Green-Lagrange strain \({\mathbf {E}}\), the derived beam force will be just the linear part of the full one. To explain it, we start from the current force \({\mathbf {n}}\) of the beam computed from the first Piola–Kirchhoff stress \({\mathbf {P}}\)

$$\begin{aligned} {\mathbf {n}}&=\int _{\Sigma } {\mathbf {P}} {\mathbf {d}}_3(s,0) dA=\int _{\Sigma } \mathbf {FS} {\mathbf {d}}_3(s,0) dA\nonumber \\&=\int _{\Sigma } \varvec{\Lambda }\left[ {\mathbf {I}} + {\mathbf {a}}^r \otimes {\mathbf {d}}_3(s,0)\right] {\mathbf {S}} {\mathbf {d}}_3(s,0) dA. \end{aligned}$$
(57)

By applying the relation \({\mathbf {n}}=\varvec{\Lambda }{\mathbf {N}}\), the reference beam force \({\mathbf {N}}\) reads

$$\begin{aligned} {\mathbf {N}}=\int _{\Sigma } \left[ {\mathbf {I}} + {\mathbf {a}}^r \otimes {\mathbf {d}}_3(s,0)\right] {\mathbf {S}}{\mathbf {d}}_3(s,0) dA. \end{aligned}$$
(58)

It can be observed that force \({\mathbf {N}}\) is composed of two parts, one depending only on the stress and another also depending on strain variable \({\mathbf {a}}^r\). It has been proven that \({\mathbf {N}}\) is work conjugated with the beam strain \(\varvec{\Gamma }\), see the details in [4]. When the reduced strain energy in Eq. (55) is applied, the derived force \({\mathbf {N}}^r\) equals to the integration of the second Piola–Kirchhoff stress \({\mathbf {S}}^{\mathrm{lin}}\) computed with the linear strain \({\mathbf {E}}^{\mathrm{lin}}\)

$$\begin{aligned} {\mathbf {N}}^r=\frac{\partial \Omega ^{r}_b}{\partial \varvec{\Gamma }}= \int _{\Sigma } {\mathbf {S}}^{\mathrm{lin}}{\mathbf {d}}_3(s,0)dA, \end{aligned}$$
(59)

which can be seen as the linear part of the full force \({\mathbf {N}}\) in Eq. (58).

5.2 Extended Neo-Hookean model for DEA

To model the DEA, the material model of the dielectric elasticity applied in [24] for the finite element simulation is applied to the beam model in this work, where the strain energy density is given by

$$\begin{aligned} \Omega ({\mathbf {C}},{\mathbf {E}}^e)&=\underbrace{ \frac{\mu }{2} \left( {\mathbf {C}}:{\mathbf {1}}-3 \right) - \mu \mathrm{ln} J + \frac{\lambda }{2} (\mathrm{ln} J)^2}_{\text {Neo-Hookean}}\nonumber \\&\quad +\underbrace{c_1 {\mathbf {E}}^e \cdot {\mathbf {E}}^e + c_2 {\mathbf {C}}:({\mathbf {E}}^e \otimes {\mathbf {E}}^e)}_{\text {Polarization in dielectric material}} \nonumber \\&\quad - \underbrace{ \frac{1}{2} \varepsilon _0 J {\mathbf {C}}^{-1} : ({\mathbf {E}}^e \otimes {\mathbf {E}}^e)}_{\text {Free space term in vacuum}} \end{aligned}$$
(60)

with \(\varepsilon _0\) the vacuum permittivity, \(c_1\) and \(c_2\) the electrical parameters. It can be observed that the strain energy is composed of three parts, the Neo-Hookean part referring to the pure elastic behavior, the polarization part referring to the polarization in the condensed matter and the free space part referring to the effect in vacuum. The last two terms in Eq. (60) characterize the electromechanical coupling.

Apart from the dielectric elasticity, the viscoelastic effect in the dielectric material is accounted for by means of the first Piola–Kirchhoff stress \({\mathbf {P}}^{\mathrm{vis}}\), see the Kelvin–Voigt model in [35],

$$\begin{aligned} {\mathbf {P}}^{\mathrm{vis}}=\frac{1}{2}J\eta \left( {\mathbf {F}}^{-T}\cdot \dot{{\mathbf {F}}}^T \cdot {\mathbf {F}}^{-T} + \dot{{\mathbf {F}}}\cdot {\mathbf {C}}^{-1}\right) , \end{aligned}$$
(61)

in which \(\eta \) is the damping parameter.

The strain energy function for the beam corresponding to the continuum model in Eq. (60) can be derived with the same procedure as the Saint-Venant–Kirchhoff model. Since the coefficient \(\varepsilon _0\) has a very small value, see Table 1, the free space term in Eq. (60) is neglected in this work. The strain energy function for beam is obtained by integrating \(\Omega ({\mathbf {C}},{\mathbf {E}}^e)\) over the cross section

$$\begin{aligned} \Omega _b (\varvec{\Gamma }, {\mathbf {K}}, \varvec{\varepsilon }) =\int _{\Sigma } \Omega ({\mathbf {C}},{\mathbf {E}}^e) dA, \end{aligned}$$
(62)

where the integration can be evaluated with the numerical approach as well as the analytical approach. As the analytical approach, the beam strain energy function \(\Omega _b\) is explicitly formulated in the “Appendix”. For the sake of simplicity, the logarithm term in the beam strain energy function is approximated by using the first two terms of its Taylor series expansion, see Eq. (90). The higher order terms can be added in the approximation if needed.

6 Discrete variational integration scheme with null space projection

6.1 Discrete Euler–Lagrange equations

In this work, the electromechanically coupled beam dynamics is approximated within the constrained discrete variational scheme with the null space projection. The Lagrange–d’Alembert principle in Eq. (14) can be extended to constrained systems by enforcing the constraints via Lagrange multipliers as

$$\begin{aligned}&\delta \int _{0}^{T} \left[ L( {\mathbf {q}}, \dot{{\mathbf {q}}}) - {\mathbf {g}}^T({\mathbf {q}})\cdot \varvec{\lambda }\right] dt \nonumber \\&\quad + \int _{0}^{T}{\mathbf {f}}^{\mathrm{ext}}( t) \cdot \delta {\mathbf {q}}dt=0, \end{aligned}$$
(63)

where \({\mathbf {q}}\) is the configuration, \(L( {\mathbf {q}}, \dot{{\mathbf {q}}})\) is the Lagrangian, \({\mathbf {g}}\) represents holonomic constraints, \(\varvec{\lambda }\) is the Lagrangian multiplier and \({\mathbf {f}}^{\mathrm{ext}}(t)\) is the external force. By considering the electrical effect in geometrically exact beam, the electric potential \(\phi _o\) and the incremental variables \((\alpha , \beta )\) in Eq. (45) are treated as the electrical degrees of freedom \(\varvec{\phi }=\begin{bmatrix} \phi _o&\alpha&\beta \end{bmatrix}\) such that the configuration of the beam model is extended to

$$\begin{aligned} {\mathbf {q}}=\begin{bmatrix} \varvec{\varphi }&{\mathbf {d}}_1&{\mathbf {d}}_2&{\mathbf {d}}_3&\varvec{\phi }\end{bmatrix}^T. \end{aligned}$$
(64)

According to the kinematic assumptions in geometrically exact beams, the directors have to fulfill the orthogonal constraints

$$\begin{aligned} {\mathbf {g}}( {\mathbf {q}})=\begin{bmatrix} \frac{1}{2}({\mathbf {d}}_1^T {\mathbf {d}}_1-1) \\ \frac{1}{2}({\mathbf {d}}_2^T {\mathbf {d}}_2-1)\\ \frac{1}{2}({\mathbf {d}}_3^T {\mathbf {d}}_3-1) \\ {\mathbf {d}}_1^T{\mathbf {d}}_2\\ {\mathbf {d}}_1^T{\mathbf {d}}_3\\ {\mathbf {d}}_2^T{\mathbf {d}}_3 \end{bmatrix}={\mathbf {0}}. \end{aligned}$$
(65)

The continuous Lagrangian contains the difference between the kinetic energy \(T(\dot{{\mathbf {q}}}) \) and the internal potential energy \(V({\mathbf {q}})\)

$$\begin{aligned} L({\mathbf {q}}, \dot{{\mathbf {q}}})= T(\dot{{\mathbf {q}}}) -V({\mathbf {q}}). \end{aligned}$$
(66)

Since the electrical variables do not contribute to the kinetic energy, the kinetic energy for geometrically exact beams is computed as

$$\begin{aligned} T= \int _c \left( \frac{1}{2} A_{\rho } \left| \dot{\varvec{\varphi }} \right| ^2 + \frac{1}{2} \sum _{i=1}^{2} M^i_{\rho }\left| \dot{{\mathbf {d}}}_i \right| ^2 \right) ds, \end{aligned}$$
(67)

where \(A_{\rho }\) is the mass density per reference arc-length and \(M^i_{\rho }\) are the principle mass moments of inertia of cross section. In accordance with the configuration defined in Eq. (64), the component of the consistent mass matrix corresponding to the electrical degree of freedom \(\varvec{\phi }\) will be zero.

For the coupled hyperelastic material in DEA, the internal potential energy is computed by an integration of the beam strain energy density \( \Omega _b\) in Eq. (62) over the beam center line

$$\begin{aligned} V({\mathbf {q}}) = \int _c \Omega _b (s) ds. \end{aligned}$$
(68)

The external force \({\mathbf {f}}^{\mathrm{ext}}\) contains all non-conservative forces, such as the viscoelastic effect in this work. Based on the Kelvin–Voigt model in Eq. (61), the non-conservative work contributed by the viscoelastic effect is given by

$$\begin{aligned} W^{\mathrm{vis}}=\int _{B_0} {\mathbf {P}}^{\mathrm{vis}}: {\mathbf {F}}dV, \end{aligned}$$
(69)

where the work is computed from the two conjugate quantities being the first Piola–Kirchhoff stress \({\mathbf {P}}^{\mathrm{vis}}\) from the Kelvin–Voigt model and the deformation gradient \({\mathbf {F}}\). In this case, the external force corresponding to the viscoelastic effect can be formulated as

$$\begin{aligned} {\mathbf {f}}^{\mathrm{vis}}({\mathbf {q}},\dot{{\mathbf {q}}})=\frac{\partial W^{\mathrm{vis}}}{\partial {\mathbf {q}}}&= \int _{B_0} \frac{\partial W^{\mathrm{vis}}}{\partial {\mathbf {F}} } : \frac{\partial {\mathbf {F}}}{\partial {\mathbf {q}} } dV \nonumber \\&= \int _c \int _{\Sigma } {\mathbf {P}}^{\mathrm{vis}}: \frac{\partial {\mathbf {F}}}{\partial {\mathbf {q}} }dAds. \end{aligned}$$
(70)

The beam is first spatially discretized with the 1D finite elements, where one-dimensional Lagrange-type linear shape functions are applied in the discretization of beam configuration \({\mathbf {q}}\) in Eq. (64). In this case, the beam directors are directly discretized in space together with the beam centroids, see [22] for instance. Then the variational integration scheme, see e.g. [16], is applied to temporally discretize the action of the dynamic system, by which the good long term energy behavior can be obtained. In the variational integration scheme, the action integral within the time interval \((t_n,t_{n+1})\) is approximated with the discrete Lagrangian \(L_d\) as

$$\begin{aligned}&\int _{t_n}^{t_{n+1}} L({\mathbf {q}}, \dot{{\mathbf {q}}})dt \approx L_d({\mathbf {q}}_n,{\mathbf {q}}_{n+1}) \nonumber \\&\quad = \Delta t L(\frac{{\mathbf {q}}_{n+1}+{\mathbf {q}}_n}{2},\frac{{\mathbf {q}}_{n+1}-{\mathbf {q}}_n}{\Delta t}), \end{aligned}$$
(71)

where the discrete Lagrangian \(L_d\) is computed by applying the finite difference approximation to the velocity \(\dot{{\mathbf {q}}}\) and the midpoint rule to the configuration \({\mathbf {q}}\), i.e.

$$\begin{aligned} \dot{{\mathbf {q}}}\approx \frac{{\mathbf {q}}_{n+1}-{\mathbf {q}}_n}{\Delta t}, \;\;\;\;\; {\mathbf {q}}\approx \frac{{\mathbf {q}}_{n+1}+{\mathbf {q}}_n}{2} . \end{aligned}$$
(72)

After the temporal discretization, the discrete Euler–Lagrange equations can be obtained by taking the variation of the discrete action and requiring stationarity. To eliminate the constraint forces \(\varvec{\lambda }\) from the system, see e.g. [6], the nodal reparametrization \({\mathbf {q}}_{n+1} = {\mathbf {F}}_d ({\mathbf {u}}_{n+1}, {\mathbf {q}}_{n})\) and the discrete null space matrix \({\mathbf {P}}_d\) are applied to the discrete Euler–Lagrange equations leading to

$$\begin{aligned}&{\mathbf {P}}_d^T({\mathbf {q}}_n) \left[ \frac{\partial L_d({\mathbf {q}}_{n-1}, {\mathbf {q}}_{n})}{\partial {\mathbf {q}}_{n}} \right. \nonumber \\&\quad \left. +\, \frac{\partial L_d\left( {\mathbf {q}}_{n}, {\mathbf {F}}_d ({\mathbf {u}}_{n+1}, {\mathbf {q}}_{n})\right) }{\partial {\mathbf {q}}_{n}} + {\mathbf {f}}_n^{\mathrm{ext-}} + {\mathbf {f}}_{n-1}^{\mathrm{ext+}} \right] = {\mathbf {0}}, \end{aligned}$$
(73)

where \({\mathbf {u}}_{n+1}\) is the generalized configuration acting as the unknown variable, \({\mathbf {f}}_n^{\mathrm{ext-}}\) and \({\mathbf {f}}_{n-1}^{\mathrm{ext+}}\) are the discrete generalized external forces evaluated as

$$\begin{aligned}&{\mathbf {f}}_n^{\mathrm{ext-}}=\frac{\Delta t}{2} {\mathbf {f}}^{\mathrm{vis}} \left( \frac{{\mathbf {q}}_{n+1}+{\mathbf {q}}_n}{2},\frac{{\mathbf {q}}_{n+1} -{\mathbf {q}}_n}{\Delta t}\right) ,\nonumber \\&{\mathbf {f}}_{n-1}^{\mathrm{ext+}}=\frac{\Delta t}{2} {\mathbf {f}}^{\mathrm{vis}} \left( \frac{{\mathbf {q}}_{n-1}+{\mathbf {q}}_n}{2},\frac{{\mathbf {q}}_{n-1} -{\mathbf {q}}_n}{\Delta t}\right) . \end{aligned}$$
(74)

6.2 Null space matrix and parametrization of rotations

The internal null space matrix \({\mathbf {P}}_{\mathrm{int}}\) can be found by expressing the redundant velocity \(\dot{{\mathbf {q}}} \in {\mathbb {R}}^{15}\) in terms of the generalized velocity \({\mathbf {t}} \in {\mathbb {R}}^{9}\)

$$\begin{aligned} \dot{{\mathbf {q}}}={\mathbf {P}}_{\mathrm{int}}({\mathbf {q}})\cdot {\mathbf {t}}, \end{aligned}$$
(75)

where the generalized velocity is composed of the translational velocity \(\dot{\varvec{\varphi }}\), the angular velocity \(\varvec{\omega }\) and the velocity of electric potential \(\dot{\varvec{\phi }} \), i.e. \({\mathbf {t}}=\begin{bmatrix} \dot{\varvec{\varphi }}&\varvec{\omega }&\dot{\varvec{\phi }} \end{bmatrix}^T\). The corresponding internal null space matrix at time \(t_n\) is written as

$$\begin{aligned} {\mathbf {P}}_{\mathrm{int}}({\mathbf {q}}_n)= \begin{bmatrix} {\mathbf {I}} &{}\quad {\mathbf {0}} &{}\quad {\mathbf {0}}\\ {\mathbf {0}} &{}\quad -\hat{{\mathbf {d}}}_{1,n} &{}\quad {\mathbf {0}}\\ {\mathbf {0}} &{}\quad -\hat{{\mathbf {d}}}_{2,n} &{}\quad {\mathbf {0}}\\ {\mathbf {0}} &{}\quad -\hat{{\mathbf {d}}}_{3,n} &{}\quad {\mathbf {0}}\\ {\mathbf {0}}&{}\quad {\mathbf {0}}&{}\quad {\mathbf {I}} \end{bmatrix}, \end{aligned}$$
(76)

where \(\hat{{\mathbf {d}}}_{i,n}\) denotes the skew-symmetric matrix corresponding to the director vector \({\mathbf {d}}_{i,n}\) at \(t_n\) and \({\mathbf {I}}\) is the 3 by 3 identity matrix. For a multibody dynamic system composed of flexible beam actuators, rigid bodies, joints and constraints, the null space matrix can be designed by considering the electric potential as extra degree of freedom as well.

To solve the discrete Euler–Lagrange equations efficiently, the system can be reduced further into the minimal possible dimensions by use of the nodal reparametrization, which can be achieved by introducing a rotation matrix \({\mathbf {R}}(\varvec{\theta })\) parametrized in terms of the rotational variable \(\varvec{\theta }\). The rotation matrix can be chosen as the exponential map, see e.g. [18],

$$\begin{aligned} {\mathbf {R}}(\varvec{\theta })&=\mathrm{exp}(\hat{\varvec{\theta }})={\mathbf {I}}+\frac{\mathrm{sin} \left\| \varvec{\theta }\right\| }{\left\| \varvec{\theta }\right\| } \hat{\varvec{\theta }} \nonumber \\&\quad + \frac{1}{2} \left( \frac{\mathrm{sin} \left\| \varvec{\theta }\right\| /2}{\left\| \varvec{\theta }\right\| /2} \right) ^2 (\hat{\varvec{\theta }})^2. \end{aligned}$$
(77)

The generalized configuration of the electromechanically coupled beam is specified by

$$\begin{aligned} {\mathbf {u}}=\begin{bmatrix} {\mathbf {u}}_\varphi&\varvec{\theta }&{\mathbf {v}}\end{bmatrix}^T \end{aligned}$$
(78)

with \({\mathbf {u}}_\varphi , \varvec{\theta }\) and \({\mathbf {v}}\) characterizing the incremental displacement, the incremental rotation and the incremental electric potential, respectively. In this case, the nodal configuration for the next time step can be updated as

$$\begin{aligned} {\mathbf {q}}_{n+1} = {\mathbf {F}}_d ({{\mathbf {u}}_{n+1}}, {\mathbf {q}}_{n})= \begin{bmatrix} \varvec{\varphi }_n+{\mathbf {u}}_\varphi \\ \mathrm{exp}(\hat{\varvec{\theta }})\cdot {\mathbf {d}}_{1,n}\\ \mathrm{exp}(\hat{\varvec{\theta }})\cdot {\mathbf {d}}_{2,n}\\ \mathrm{exp}(\hat{\varvec{\theta }})\cdot {\mathbf {d}}_{3,n}\\ \varvec{\phi } + {\mathbf {v}} \end{bmatrix}. \end{aligned}$$
(79)

6.3 Tangent matrix

By means of the nodal reparametrization, the unknowns of the equations system in Eq. (73) is changed from \({\mathbf {q}}_{n+1}\) to the generalized variables \({\mathbf {u}}_{n+1}\). The nonlinear equation system is solved by use of the Newton-Rapson algorithm with the tangent matrix at iteration i

$$\begin{aligned} {\mathbf {K}}_T^i ={\mathbf {P}}^T({\mathbf {q}}_n) \frac{\partial {\mathbf {R}}^L({\mathbf {q}}_{n+1}^i)}{\partial {\mathbf {q}}_{n+1}^i} \frac{\partial {\mathbf {q}}_{n+1}({\mathbf {u}}_{n+1}^i)}{\partial {\mathbf {u}}_{n+1}^i}, \end{aligned}$$
(80)

in which \({\mathbf {R}}^L({\mathbf {q}}_{n+1})\) is the residual of the discrete Euler–Lagrange equation. When boundary conditions are imposed on some degrees of freedom of a beam node, the corresponding components in null space matrix will be zero. By crossing out the rows involved in boundary conditions, the non-singular tangent matrix can be obtained. Accordingly, the boundary conditions can be imposed by setting specific incremental values in the update of the nodal configuration in Eq. (79). In this work, the residual vector and the tangent matrix are derived by using the automatic differentiation tool CasADi [1].

6.4 Legendre transformation for energy evaluation and system initialization

Since the velocity involved in the kinetic energy is approximated with the finite difference scheme, it does not fulfill the hidden constraints and their time derivatives exactly. An alternative energy formulation is the discrete Hamiltonian evaluated with the momentum, which can be obtained via the discrete Legendre transformation, see e.g. [16]. Since the consistent mass matrix corresponding to the kinetic energy in Eq. (67) is singular, it can not be applied to compute the Hamiltonian directly where the inverse of the mass matrix is required. Due to the fact that the kinetic energy is independent of the rate of \({\mathbf {d}}_3\) and the rate of electric potential, a reduced non-singular mass matrix \(\bar{{\mathbf {M}}}\) can be defined at node s as

$$\begin{aligned} \bar{{\mathbf {M}}}=\begin{bmatrix} A_\rho {\mathbf {I}} &{}\quad {\mathbf {0}} &{}\quad {\mathbf {0}}\\ {\mathbf {0}} &{}\quad M_\rho ^1{\mathbf {I}} &{}\quad {\mathbf {0}}\\ {\mathbf {0}} &{}\quad {\mathbf {0}} &{}\quad M_\rho ^2{\mathbf {I}} \end{bmatrix} \end{aligned}$$
(81)

with \({\mathbf {I}}\) the \(3 \times 3\) identity matrix. Therefore, the discrete Hamiltonian can be evaluated with the reduced mass matrix \(\bar{{\mathbf {M}}}\) and its conjugated reduced momentum

$$\begin{aligned} \bar{{\mathbf {p}}}=[{\mathbf {p}}_{\varphi }, {\mathbf {p}}_1, {\mathbf {p}}_2 ]^T. \end{aligned}$$
(82)

To eliminate the Lagrangian multiplier term from the reduced momentum \(\bar{{\mathbf {p}}}\), the projected discrete Legendre transformation can be applied. In this case, the projected reduced momentum can be computed as

$$\begin{aligned} ^Q\bar{{\mathbf {p}}}_n^-=-\bar{{\mathbf {Q}}}({\mathbf {q}}_{n})\frac{\partial L_d({\mathbf {q}}_{n},{\mathbf {q}}_{n+1})}{\partial \bar{{\mathbf {q}}}_{n}}, \end{aligned}$$
(83)

where \(^Q\bar{{\mathbf {p}}}_n^-\) is the reduced momentum at time \(t_n\), \(\bar{{\mathbf {Q}}}\) is the projection matrix and \(\bar{{\mathbf {q}}}_{n}\) is the vector containing the first 9 elements of \({\mathbf {q}}_{n}\). Corresponding to the reduced momentum \(^Q\bar{{\mathbf {p}}}_n^-\) and the mass matrix \(\bar{{\mathbf {M}}}\), the projection matrix is computed in the reduced form

$$\begin{aligned} \bar{{\mathbf {Q}}}={\mathbf {I}}_{9\times 9}-\bar{{\mathbf {G}}}^T(\bar{{\mathbf {G}}}\bar{{\mathbf {M}}}^{-1}\bar{{\mathbf {G}}}^T)^{-1}\bar{{\mathbf {G}}}\bar{{\mathbf {M}}}^{-1} \end{aligned}$$
(84)

with the reduced internal constraint Jacobi matrix \(\bar{{\mathbf {G}}}_{3 \times 9}\) given by

$$\begin{aligned} \bar{{\mathbf {G}}} =\begin{bmatrix} {\mathbf {0}} &{}\quad {\mathbf {d}}_1^T&{}\quad {\mathbf {0}} \\ {\mathbf {0}} &{}\quad {\mathbf {0}} &{}\quad {\mathbf {d}}_2^T \\ {\mathbf {0}} &{}\quad {\mathbf {d}}_2^T &{}\quad {\mathbf {d}}_1^T \\ \end{bmatrix}. \end{aligned}$$
(85)

The discrete Hamiltonian \(H_d\) can be computed as

$$\begin{aligned} H_d =\int _c \left( \frac{1}{2} {^Q\bar{{\mathbf {p}}}_n^{-T}} \cdot \bar{{\mathbf {M}}}^{-1} \cdot {^Q\bar{{\mathbf {p}}}_n^-}\right) ds + V({\mathbf {q}}_n). \end{aligned}$$
(86)

Furthermore, the discrete Legendre transformation is applied to initialize the system at time step \(t_0\). In the discrete Euler–Lagrange equation (73), the unknown value of \( {\mathbf {q}}_{-1}\) is required to solve \( {\mathbf {q}}_{1}\). To avoid the computation of \( {\mathbf {q}}_{-1}\), the discrete momentum obtained from the Legendre transformation is initialized with an initial momentum \({\mathbf {p}}_{0}^-={\mathbf {p}}(0)\), which leads to the equation of motion at \(t_0\)

$$\begin{aligned} {\mathbf {P}}^T({\mathbf {q}}_0) \left[ -\frac{\partial L_d({\mathbf {q}}_{0},{\mathbf {q}}_{1})}{\partial {\mathbf {q}}_{0}} -{\mathbf {f}}_0^{\mathrm{ext-}}\right] ={\mathbf {P}}^T({\mathbf {q}}_0) {\mathbf {p}}(0). \end{aligned}$$
(87)

In this case, \({\mathbf {q}}_{1}\) can be computed given \( {\mathbf {q}}_{0}= {\mathbf {q}}(0)\) and \({\mathbf {p}}(0)\).

7 Numerical examples

The material parameters of the dielectric elastomer applied in this work are shown in Table 1. Instead of using the Lamé parameter \(\mu =0.233\) Mpa in [24] for the nearly incompressible case, the Lamé parameter \(\mu \) is set to be 233 Mpa in this work for the sake of a smaller Poisson’s ratio. According to the discussions in Sect. 5.1, the smaller Poisson’s ratio allows the better comparison of 3D FEM model with the beam model with assumption of no lateral contractions.

Table 1 Material parameters

The geometry of the beam with length l and square cross section \(b \times b\) is shown in Fig. 3. The beam is composed of \(N_c\) stacked DEA cells, where the thickness of the electrode connecting two adjacent cells is neglected, thus the beam is fully composed of the dielectric elastomer. Each DEA cell is discretized with \(N_e\) finite elements. The bottom beam node is fixed and the electrical boundary conditions \(\phi _i\) are imposed on the beam nodes corresponding to the electrodes i. The contractions of DEA cells will lead to different deformations in the beam, including uniaxial contraction, shear, bending and torsion. The electrical boundary conditions and the beam size for generating different beam deformations in this work are given in Table 2.

Fig. 3
figure 3

Boundary conditions on the beam

Table 2 Electrical boundary conditions and beam size

7.1 Uniaxial contraction

To generate the uniaxial contraction in the beam, the uniform electric potential is applied on the cross section, i.e. \(\alpha , \beta =0\). As shown in Table 2, the beam is composed of one (\(N_c=1\)) DEA cell and the electric potentials \(\phi _1=0\) V and \(\phi _2=2 \times 10^4\) V are applied to the two electrodes of the beam DEA cell, respectively. The motion of the beam discretized with \(N_e=5\) elements, i.e. 6 nodes, is computed with the time step of \(1 \times 10^{-4}\) ms.

Due to the contractive forces from the dielectric effect, the vibration of the beam is induced as shown in Fig. 4, where the position \(X_z\) of the beam node at the free end is depicted. In Fig. 4a, the beam strain energy \(\Omega _b\) derived in the “Appendix” is compared with that evaluated by the numerical integration over cross section. The derived strain energy shows good agreement with the numerical model in Fig. 4a and will be applied in the following parts. In Fig. 4b, the damping effect with different values of the viscosity parameter \(\eta \) is depicted. Without viscosity i.e. \(\eta =0\), the vibration of the beam continues over time. With the increase of viscoelastic effect, the increase of damping effect on the beam can be observed. By setting \(\eta =0.5\), the viscoelastic beam is gradually approaching a static state.

Fig. 4
figure 4

a Validation of the derived strain energy and b the damping effect on the top beam node

To evaluate the energy property of the beam, the discrete Hamiltonian \(H_d\) computed with momentum is plotted in Fig. 5. As shown in Fig. 5a, the total energy oscillates around a value when there is no viscosity i.e. \(\eta =0\). By introducing the viscosity, the total energy decreases at the beginning stage and then preserves a smaller value, where the decrease of total energy is induced by the decrease of kinetic energy. Additionally, with the increase of the damping parameter \(\eta \), the total energy decreases faster. To evaluate the energy behavior for \(\eta =0\) further, the kinetic energy \(T_d\) and the potential energy \(V_d\) corresponding to the total energy \(H_d\) are plotted in Fig. 5b. It can be observed that the frequency of the kinetic energy is twice as much as the frequency of the displacement in Fig. 4, which is reasonable by considering the velocity changes. However, the potential energy shares the same frequency with the kinetic energy, which is different from the pure elastic case where the elastic potential energy shares the same frequency with displacement. The reason can be attributed to the fact that the potential energy of the dielectric elastomer holding its maximum value in the undeformed state decreases to a minimum value in an intermediate compressed state, and then increases with the further compression, see the first V-shape oscillation of \(V_d\) in Fig. 5b.

Fig. 5
figure 5

Energy behavior of the beam

The magnitude of contractions of the beam depends on the magnitude of electric potential applied on it. With the increase of electric potential, the increase of contraction can be observed as shown in the upper graph of Fig. 6. To validate the beam model, the contractions of the beam model are compared with the results of the 3D FEM model as shown in the lower graph of Fig. 6. In the 3D FEM model, the beam structure is discretized with 5 elements in longitudinal direction whereas with \(2\times 2\) elements for the cross section, where the same material model and size as the beam model are applied. Since the same constitutive model is applied in the beam model and the 3D FEM model, the zero normal stress conditions in the transversal directions are fulfilled in the same extent in both cases. However, the lateral deformations still exist in the 3D FEM model, thus the inextensibility condition is not fulfilled while it is always fulfilled in the beam model. For the uniaxial contraction considered in this section, the inextensibility condition is additionally imposed to the 3D FEM model by fixing the horizontal movement of the finite element nodes, leading to a fairer comparison between the 3D FEM model and the beam model.

Fig. 6
figure 6

Contractions in the beam model (upper) and the 3D FEM model (lower) with electric potentials \(\phi _o=0,2,4,6,8\times 10^4\) V

Fig. 7
figure 7

a Displacement of the top beam node and b degree of freedom of the beam

The magnitude of contractions computed by these two approaches is compared in Fig. 7a. It can be observed that the contractions are converged for both models with the decrease of mesh size. Additionally, the contractions of beam model are very close to the 3D finite element model. The small deviation at \(\phi =8\times 10^4\) V is induced by the approximation of the logarithm terms in the beam strain energy, see Eq. (90). When the higher order terms of the Taylor series expansion are involved, the deviation will be smaller. In the beam model, 15 degrees of freedom are attached on each node. In the 3D FEM model, 16 degrees of freedom are required at each beam cross section when the cross section is discretized with one element. However, the number of degree of freedom in the 3D FEM model increases with the increase of number of elements on the cross section as shown in Fig. 7b. It can be observed that, for the same number of elements (5 elements in Fig. 7b) in the longitudinal direction, less degrees of freedom are required in the beam model.

Fig. 8
figure 8

Shear in the beam model and the 3D FEM model

Fig. 9
figure 9

Bending in the beam model and the 3D FEM model

7.2 Shear

Apart form the uniaxial contraction, the electric potential formulated in this work allows for more complex beam deformations by applying a non-uniform electric potential on the cross sections. To generate shear in the beam, the electric potential \(\phi _i=2\times 10^2+i4\times 10^2+2\times 10^4 X^1\) is applied to electrode i as shown in Table 2. The electric potential on the deformed beam at time \(t=0.5\) ms is shown in Fig. 8a, where the beam is discretized with 60 finite elements (20 DEA cells) and the damping parameter \(\eta \) is set to be 3. By applying the same electrical boundary conditions, the deformation is computed by the 3D FEM model as shown in Fig. 8b. The displacement of the top beam node is depicted in Fig. 8c, where the beam is discretized with 20, 40 and 60 elements, respectively. It can be observed that the displacements are converged in the fine mesh and the beam model is close to the 3D FEM model.

7.3 Bending

As shown in Table 2, the bending of the beam can be obtained by alternately applying zero and the non-uniform electric potential \(\phi =2 \times 10^2+ 2 \times 10^4 X^1\) on the cross sections of beam. In this case, the non-uniform contraction of each DEA cell leads to the overall bending of beam. The deformed state of the beam model at time \(t=2\) ms is compared with the 3D FEM model in Fig. 9. According to Fig. 9c, the displacement is converged with the decrease of mesh size for both models. However there is deviation of displacement during the dynamic process as well as at the steady state, which can be attributed to the deformation of the cross section in 3D FEM model. The deformation of cross section makes the beam softer thus the displacement \(u_x\) of the 3D FEM model is larger than the beam model.

Fig. 10
figure 10

Torsion in the beam model and the 3D FEM model

Fig. 11
figure 11

A soft robotic arm moving a package from the ground to a desk

7.4 Torsion

This part is devoted to the torsion of the beam where the torque around the beam axis has to be generated by applying the electric potential. To this end, the spiral distribution of electric potential along beam axis is applied. In this example, the beam is composed of \(N_c=40\) stacked DEA cells. The electric potential \(\phi _i\) in Table 2 is applied to the cross section of the beam node with electrode i attached. The angle \(\theta _i\) in the electric potential is set to be \(\theta _i=i\frac{\pi }{4}\). The torsion of the beam model at time \(t=0.2\) ms is compared with the 3D FEM model in Fig. 10, where the beam is discretized with 120 elements in the longitudinal direction in both models.

The rotation angle of the top beam node is shown in Fig. 10c, where the beam is discretized with 40, 80 and 120 elements in the longitudinal direction, respectively. It can be observed that the rotation angles computed with the beam model and the 3D FEM model are very close at time \(t=0.2\) ms. With the finer mesh, the rotation angles are approaching to the converged value. Additionally, the large deviation can be observed at the beginning of the loading, which is induced by the deformation of the cross section in the 3D FEM model during the rotation.

7.5 Robotic arm

As an example of the combination of different deformation modes, the beam model is applied in this part to simulate a simplified robotic arm holding a package as shown in Fig. 11. The package is represented by an additional point mass concentrated at the beam’s free end. The beam has the length \(l=0.1\) mm and a square cross section with width \(b=0.01\) mm. The mass of package is set to be 2 times the mass of beam. The beam is composed with 20 DEA cells and discretized with 20 finite elements.

As shown in Fig. 11a, b , the package is fist lifted from ground by the uniaxial contraction of the beam, where the constant electric potentials \(\phi _1=8 \times 10^4\) V and \(\phi _{21}=0\) V are applied to the beam’s fixed and free end, respectively, until \(t=0.05\) ms. Then, from \(t=0.051\) to \(t=0.2\) ms, the bending of the beam is generated by changing the electric boundary conditions to \(\phi _i=4\times 10^3+8\times 10^4(cos\frac{\pi }{8}-sin\frac{\pi }{8})X^1 +8\times 10^4(cos\frac{\pi }{8}+sin\frac{\pi }{8})X^2\, V, (i=2,4,...)\) and \(\phi _i=0 V (i=1,3,...)\), which leads to the moving of the package to the desk, as shown in Fig. 11c. From \(t=0.201\) to \(t=0.35\) ms, the bending of the beam in another direction is generated by changing the electric boundary conditions to \(\phi _i=4\times 10^3+8\times 10^4X^1\, {V}, (i=2,4,...)\), as shown in Fig. 11d. To rotate the package on the desk as shown in Fig. 11e, the electric boundary conditions \(\phi _i=4\times 10^3+2\times 10^5(cos\theta _i-sin\theta _i)X^1 +2\times 10^5(cos\theta _i+sin\theta _i)X^2\,V\) are imposed on the last three beam nodes from \(t=0.351\) to \(t=0.45\) ms. In the simulation, the damping effect is imposed by setting \(\eta =0.6\) in the viscoelastic model such that the beam is gradually approaching a steady state.

8 Conclusion

In this paper, an electromechanically coupled viscoelastic beam model is developed. Based on the governing equations, the kinematics as well as the strain energy functions in continuum electromechanics, their counterparts in Cosserat beam are formulated consistently. Especially, the proposed formulation of the electric potential allows for all types of the dielectric induced deformations in the beam, such as contraction, shear, bending and torsion. In the uniaxial contractions of the beam, the oscillation of the beam is induced by the contractive electric forces, where the damping effect in the motion of the beam node is observed after introducing the viscoelastic effect. Additionally, the damping behavior of the total energy is observed as well, where the discrete Hamiltonian is evaluated. Another interesting point is that the oscillation frequency of the potential energy in the dielectric elastomer is twice as much as that of the displacement, which can be attributed to the fact that the potential energy is in its maximum value in the undeformed state of the charged dielectric elastomer. The simulation results show that the beam model agrees well with the 3D FEM model in contraction, shear, bending and torsion, however less degrees of freedom are required in the beam model. It can be also observed that the beam DEAs have large flexibility of motion by combining different deformation modes.