#include <users_modules/fracture_mechanics/src/GriffithForceElement.hpp>
Definition at line 915 of file GriffithForceElement.hpp.
◆ MyTriangleFEConstrains()
FractureMechanics::GriffithForceElement::MyTriangleFEConstrains::MyTriangleFEConstrains |
( |
MoFEM::Interface & |
m_field, |
|
|
const std::string & |
lambda_field_name, |
|
|
BlockData & |
block_data, |
|
|
SmartPetscObj< Vec > & |
delta_vec |
|
) |
| |
|
inline |
◆ postProcess()
MoFEMErrorCode FractureMechanics::GriffithForceElement::MyTriangleFEConstrains::postProcess |
( |
| ) |
|
|
inline |
◆ preProcess()
MoFEMErrorCode FractureMechanics::GriffithForceElement::MyTriangleFEConstrains::preProcess |
( |
| ) |
|
|
inline |
Definition at line 927 of file GriffithForceElement.hpp.
936 double sum_of_delta = 0;
937 double sum_of_lambda = 0;
938 const auto bit_field_number =
941 case CTX_SNESSETFUNCTION: {
943 bit_field_number, dit)) {
944 if (
static_cast<int>(dit->get()->getPart()) ==
946 int local_idx = dit->get()->getPetscLocalDofIdx();
947 double lambda = dit->get()->getFieldData();
950 int global_idx = dit->get()->getPetscGlobalDofIdx();
951 CHKERR VecSetValue(snes_f, global_idx, val, ADD_VALUES);
955 case CTX_SNESSETJACOBIAN: {
957 bit_field_number, dit)) {
958 if (
static_cast<int>(dit->get()->getPart()) ==
960 int local_idx = dit->get()->getPetscLocalDofIdx();
961 double lambda = dit->get()->getFieldData();
965 int global_idx = dit->get()->getPetscGlobalDofIdx();
967 "Constrains on node %lu diag = %+3.5e "
968 "delta = %+3.5e lambda = %+3.5e",
969 dit->get()->getEnt(), val,
delta[local_idx],
lambda);
970 CHKERR MatSetValue(snes_B, global_idx, global_idx, val, ADD_VALUES);
971 sum_of_delta +=
delta[local_idx];
976 "Sum of delta = %+6.4e Sum of lambda = %+6.4e",
977 sum_of_delta, sum_of_lambda);
◆ blockData
BlockData& FractureMechanics::GriffithForceElement::MyTriangleFEConstrains::blockData |
◆ deltaVec
SmartPetscObj<Vec> FractureMechanics::GriffithForceElement::MyTriangleFEConstrains::deltaVec |
◆ lambdaFieldName
const std::string FractureMechanics::GriffithForceElement::MyTriangleFEConstrains::lambdaFieldName |
The documentation for this struct was generated from the following file: