v0.10.0
Public Member Functions | List of all members
EshelbianPlasticity::EpFEMethod Struct Reference

#include <users_modules/eshelbian_plasticty/src/EshelbianPlasticity.hpp>

Inheritance diagram for EshelbianPlasticity::EpFEMethod:
[legend]
Collaboration diagram for EshelbianPlasticity::EpFEMethod:
[legend]

Public Member Functions

 EpFEMethod ()
 
MoFEMErrorCode preProcess ()
 
MoFEMErrorCode postProcess ()
 
- Public Member Functions inherited from EshelbianPlasticity::EpElement< FEMethod >
 EpElement ()
 
- Public Member Functions inherited from EshelbianPlasticity::EpElementBase
 EpElementBase ()=default
 
virtual ~EpElementBase ()=default
 
MoFEMErrorCode addStreachSchurMatrix (SmartPetscObj< Mat > &Suu, SmartPetscObj< AO > &aoSuu)
 
MoFEMErrorCode addBubbleSchurMatrix (SmartPetscObj< Mat > &SBubble, SmartPetscObj< AO > &aoSBubble)
 
MoFEMErrorCode addSpatialDispStressSchurMatrix (SmartPetscObj< Mat > &Sw, SmartPetscObj< AO > &aoSw)
 
MoFEMErrorCode addOmegaSchurMatrix (SmartPetscObj< Mat > &SOmega, SmartPetscObj< AO > &aoSOmega)
 

Additional Inherited Members

- Public Attributes inherited from EshelbianPlasticity::EpElementBase
SmartPetscObj< Mat > Suu
 
SmartPetscObj< AO > aoSuu
 
SmartPetscObj< Mat > SBubble
 
SmartPetscObj< AO > aoSBubble
 
SmartPetscObj< Mat > SOmega
 
SmartPetscObj< AO > aoSOmega
 
SmartPetscObj< Mat > Sw
 
SmartPetscObj< AO > aoSw
 

Detailed Description

Definition at line 95 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ EpFEMethod()

EshelbianPlasticity::EpFEMethod::EpFEMethod ( )

Definition at line 96 of file EshelbianPlasticity.hpp.

96 : EpElement<FEMethod>() {}

Member Function Documentation

◆ postProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::postProcess ( )

Definition at line 110 of file EshelbianPlasticity.hpp.

110  {
112  auto assemble = [](Mat a) {
114  if (a) {
115  CHKERR MatAssemblyBegin(a, MAT_FINAL_ASSEMBLY);
116  CHKERR MatAssemblyEnd(a, MAT_FINAL_ASSEMBLY);
117  }
119  };
120  CHKERR assemble(Suu);
121  CHKERR assemble(SBubble);
122  CHKERR assemble(SOmega);
123  CHKERR assemble(Sw);
124  // std::string wait;
125  // CHKERR MatView(SOmega, PETSC_VIEWER_DRAW_WORLD);
126  // std::cin >> wait;
127  // CHKERR MatView(Sw, PETSC_VIEWER_DRAW_WORLD);
128  // std::cin >> wait;
129  // CHKERR MatView(SBubble, PETSC_VIEWER_DRAW_WORLD);
130  // std::cin >> wait;
131  // CHKERR MatView(Suu, PETSC_VIEWER_DRAW_WORLD);
132  // std::cin >> wait;
133  // CHKERR MatView(getTSB(), PETSC_VIEWER_DRAW_WORLD);
134  // std::cin >> wait;
136  }

◆ preProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::preProcess ( )

Definition at line 97 of file EshelbianPlasticity.hpp.

97  {
99  if (Suu)
100  CHKERR MatZeroEntries(Suu);
101  if (SBubble)
102  CHKERR MatZeroEntries(SBubble);
103  if (Sw)
104  CHKERR MatZeroEntries(Sw);
105  if (SOmega)
106  CHKERR MatZeroEntries(SOmega);
108  }

The documentation for this struct was generated from the following file:
MoFEMFunctionReturnHot
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:516
EshelbianPlasticity::EpElementBase::Sw
SmartPetscObj< Mat > Sw
Definition: EshelbianPlasticity.hpp:45
EshelbianPlasticity::EpElementBase::Suu
SmartPetscObj< Mat > Suu
Definition: EshelbianPlasticity.hpp:39
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:604
EshelbianPlasticity::EpElementBase::SBubble
SmartPetscObj< Mat > SBubble
Definition: EshelbianPlasticity.hpp:41
EshelbianPlasticity::EpElementBase::SOmega
SmartPetscObj< Mat > SOmega
Definition: EshelbianPlasticity.hpp:43
MoFEMFunctionBeginHot
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:509
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:485
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:415