template<int dim>
StressCalculatorMPI class

Calculates tensorial stress field associated with the phase field.

Given a triangulation and degree of Lagrange polynomials, this class creates all of the machinery necessary for calculating the stress tensor field $\sigma$ arising from the phase-field $\Psi$ . For sake of efficiency, this calculation is broken up into three steps which all have to be called initially in order to do the operation. These are:

  • setup_dofs
  • calculate_mass_matrix
  • calculate_stress

After the initial calculation, only calculate_stress needs to be rerun on update of $\Psi$ . setup_dofs needs to be rerun only if the Triangulation is modified, and calculate_mass_matrix needs to be rerun only if setup_dofs is. Typical usage is:

StressCalculatorMPI stress_calculator(tria, degree);
stress_calculator.setup_dofs(mpi_communicator);
stress_calculator.calculate_mass_matrix();
stress_calculator.calculate_stress(mpi_communicator,
                                   Psi_dof_handler,
                                   Psi,
                                   eps);