We have provided the electro-mechanical applications in KRATOS for the simulations of ferroelectric and piezoelectric materials. The code has been developed mainly to study the crack propagation in these materials but it can be effectively used for other purposes regarding an intact model. An excellent forum regarding the fracture of ferroelectrics can be found in imechanica - Fracture of Ferroelectrics. Here we start from a brief theory of these materials and then we move to the numerical implementation in KRATOS. The theory of ferroelectric materials is presented in our published paper which can be accessed in the following link.
Abdollahi A, Arias I. Phase-field modeling of the coupled microstructure and fracture evolution in ferroelectric single crystals. Acta Mater (2011), doi:10.1016/j.actamat.2011.03.030
All the theory and the developed codes for the numerical implementation are based on the model presented in this paper.
The total electro-mechanical enthalpy for a ferroelectric body occupying a region is stated as:
where and ω are the tractions and surface charge density respectively, and and ΓN,φ are the parts of the boundary of the domain where mechanical and electrical Neumann boundary conditions are applied. is the strain tensor associated with the mechanical displacement , , is the polarization, is the electric field defined as , where φ is the electric potential. Gc is the critical energy release rate or the surface energy density in Griffith's theory. The scalar field v provides a diffuse representation of the fracture zone, κ is a positive regularization constant to regulate the size of the fracture zone. The electro-mechanical enthalpy density h considering permeable and impermeable cracks follows
where the energy functions U, W and χ are stated as
where the combination of energy functions χ and W is the total Landau-Devonshire energy density, a0 is the scaling parameter of the domain wall energy, bi(i = 1,2,3) are the constants of the coupling terms between strain and polarization, ci(i = 1,2,3) are the elastic constants and α1, α11, α12, α111, α112, α1111, α1112, α1122, are the constants of the phase-separation potential χ.
This model leads to six degrees of freedom , , φ and v per node in the case of plane polarization and strain.
In this model, v is selected together with the polarization as primary order parameters, and finite mobilities are introduced for the micro-structure and fracture processes. Thus, the weak form of the gradient flow for the primary variables, together with the equations for mechanical and electrostatic equilibria, follow from
where 1 / μp > 0 and 1 / μv > 0 are the mobilities of the processes. The weak form of the evolution and equilibrium equations is discretized in space with standard finite elements. Equations (7) and (8) are discretized in time with a semi-implicit scheme.
NOTE that for the simulations of ferroelectric materials without considering a crack, the scalar field v should be fixed to 1 in all the domain. In this case, the degrees of freedom reduces to five and there is no need to solve equation (8).
A simple algorithm to solve the coupled system in a straightforward staggered approach is presented in  This algorithm is simply based on solving equations (7) - (10) in an iterative process which leads to the coupled microstructure and fracture evolution.