v0.13.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta Struct Reference

#include <users_modules/fracture_mechanics/src/GriffithForceElement.hpp>

Inheritance diagram for FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta:
[legend]
Collaboration diagram for FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta:
[legend]

Public Member Functions

 MyTriangleFEConstrainsDelta (MoFEM::Interface &m_field, const std::string &lambda_field_name)
 
MoFEMErrorCode preProcess ()
 
MoFEMErrorCode postProcess ()
 
- Public Member Functions inherited from FractureMechanics::GriffithForceElement::MyTriangleFE
 MyTriangleFE (MoFEM::Interface &m_field)
 
int getRule (int order)
 

Public Attributes

const std::string lambdaFieldName
 
bool ownDeltaVec
 
SmartPetscObj< Vec > deltaVec
 
- Public Attributes inherited from FractureMechanics::GriffithForceElement::MyTriangleFE
Mat B
 
Vec F
 

Detailed Description

Definition at line 809 of file GriffithForceElement.hpp.

Constructor & Destructor Documentation

◆ MyTriangleFEConstrainsDelta()

FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta::MyTriangleFEConstrainsDelta ( MoFEM::Interface m_field,
const std::string &  lambda_field_name 
)
inline

Member Function Documentation

◆ postProcess()

MoFEMErrorCode FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta::postProcess ( )
inline

Definition at line 833 of file GriffithForceElement.hpp.

833 {
835 MOFEM_LOG_CHANNEL("WORLD");
837 MOFEM_LOG_TAG("WORLD", "Arc");
838
839 CHKERR VecAssemblyBegin(deltaVec);
840 CHKERR VecAssemblyEnd(deltaVec);
841 CHKERR VecGhostUpdateBegin(deltaVec, ADD_VALUES, SCATTER_REVERSE);
842 CHKERR VecGhostUpdateEnd(deltaVec, ADD_VALUES, SCATTER_REVERSE);
843 CHKERR VecGhostUpdateBegin(deltaVec, INSERT_VALUES, SCATTER_FORWARD);
844 CHKERR VecGhostUpdateEnd(deltaVec, INSERT_VALUES, SCATTER_FORWARD);
845 double nrm;
846 CHKERR VecNorm(deltaVec, NORM_2, &nrm);
847 MOFEM_LOG_C("WORLD", Sev::noisy, "\tdelta vec nrm = %9.8e", nrm);
849 }
#define MOFEM_LOG_C(channel, severity, format,...)
Definition: LogManager.hpp:304
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
#define CHKERR
Inline error check.
Definition: definitions.h:535
#define MOFEM_LOG_TAG(channel, tag)
Tag channel.
Definition: LogManager.hpp:332
#define MOFEM_LOG_CHANNEL(channel)
Set and reset channel.
Definition: LogManager.hpp:277
#define MOFEM_LOG_FUNCTION()
Set scope.
Definition: LogManager.hpp:318

◆ preProcess()

MoFEMErrorCode FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta::preProcess ( )
inline

Definition at line 819 of file GriffithForceElement.hpp.

819 {
821 Vec l;
822 CHKERR VecGhostGetLocalForm(deltaVec, &l);
823 double *a;
824 CHKERR VecGetArray(l, &a);
825 int n;
826 CHKERR VecGetLocalSize(l, &n);
827 std::fill(&a[0], &a[n], 0);
828 CHKERR VecRestoreArray(l, &a);
829 CHKERR VecGhostRestoreLocalForm(deltaVec, &l);
831 }
constexpr double a
FTensor::Index< 'n', SPACE_DIM > n
FTensor::Index< 'l', 3 > l
const FTensor::Tensor2< T, Dim, Dim > Vec

Member Data Documentation

◆ deltaVec

SmartPetscObj<Vec> FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta::deltaVec

Definition at line 813 of file GriffithForceElement.hpp.

◆ lambdaFieldName

const std::string FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta::lambdaFieldName

Definition at line 811 of file GriffithForceElement.hpp.

◆ ownDeltaVec

bool FractureMechanics::GriffithForceElement::MyTriangleFEConstrainsDelta::ownDeltaVec

Definition at line 812 of file GriffithForceElement.hpp.


The documentation for this struct was generated from the following file: