v0.9.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 ()
 
 ~EpElementBase ()
 
MoFEMErrorCode addStreachSchurMatrix (Mat Suu, AO aoSuu)
 
MoFEMErrorCode addBubbleSchurMatrix (Mat SBubble, AO aoSBubble)
 
MoFEMErrorCode addSpatialDispStressSchurMatrix (Mat Sw, AO aoSw)
 
MoFEMErrorCode addOmegaSchurMatrix (Mat SOmega, AO aoSOmega)
 

Additional Inherited Members

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

Detailed Description

Definition at line 210 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ EpFEMethod()

EshelbianPlasticity::EpFEMethod::EpFEMethod ( )

Definition at line 211 of file EshelbianPlasticity.hpp.

211 : EpElement<FEMethod>() {}

Member Function Documentation

◆ postProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::postProcess ( )

Definition at line 225 of file EshelbianPlasticity.hpp.

225  {
227  auto assemble = [](Mat &a) {
229  if (a) {
230  CHKERR MatAssemblyBegin(a, MAT_FINAL_ASSEMBLY);
231  CHKERR MatAssemblyEnd(a, MAT_FINAL_ASSEMBLY);
232  }
234  };
235  CHKERR assemble(Suu);
236  CHKERR assemble(SBubble);
237  CHKERR assemble(SOmega);
238  CHKERR assemble(Sw);
239  // std::string wait;
240  // CHKERR MatView(SOmega, PETSC_VIEWER_DRAW_WORLD);
241  // std::cin >> wait;
242  // CHKERR MatView(Sw, PETSC_VIEWER_DRAW_WORLD);
243  // std::cin >> wait;
244  // CHKERR MatView(SBubble, PETSC_VIEWER_DRAW_WORLD);
245  // std::cin >> wait;
246  // CHKERR MatView(Suu, PETSC_VIEWER_DRAW_WORLD);
247  // std::cin >> wait;
248  // CHKERR MatView(ts_B, PETSC_VIEWER_DRAW_WORLD);
249  // std::cin >> wait;
251  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:501
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:508
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

◆ preProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::preProcess ( )

Definition at line 212 of file EshelbianPlasticity.hpp.

212  {
214  if (Suu)
215  CHKERR MatZeroEntries(Suu);
216  if (SBubble)
217  CHKERR MatZeroEntries(SBubble);
218  if (Sw)
219  CHKERR MatZeroEntries(Sw);
220  if (SOmega)
221  CHKERR MatZeroEntries(SOmega);
223  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:477
#define CHKERR
Inline error check.
Definition: definitions.h:596
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:407

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