v0.9.1
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 136 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ EpFEMethod()

EshelbianPlasticity::EpFEMethod::EpFEMethod ( )

Definition at line 137 of file EshelbianPlasticity.hpp.

137 : EpElement<FEMethod>() {}

Member Function Documentation

◆ postProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::postProcess ( )

Definition at line 151 of file EshelbianPlasticity.hpp.

151  {
153  auto assemble = [](Mat &a) {
155  if (a) {
156  CHKERR MatAssemblyBegin(a, MAT_FINAL_ASSEMBLY);
157  CHKERR MatAssemblyEnd(a, MAT_FINAL_ASSEMBLY);
158  }
160  };
161  CHKERR assemble(Suu);
162  CHKERR assemble(SBubble);
163  CHKERR assemble(SOmega);
164  CHKERR assemble(Sw);
165  // std::string wait;
166  // CHKERR MatView(SOmega, PETSC_VIEWER_DRAW_WORLD);
167  // std::cin >> wait;
168  // CHKERR MatView(Sw, PETSC_VIEWER_DRAW_WORLD);
169  // std::cin >> wait;
170  // CHKERR MatView(SBubble, PETSC_VIEWER_DRAW_WORLD);
171  // std::cin >> wait;
172  // CHKERR MatView(Suu, PETSC_VIEWER_DRAW_WORLD);
173  // std::cin >> wait;
174  // CHKERR MatView(ts_B, PETSC_VIEWER_DRAW_WORLD);
175  // std::cin >> wait;
177  }
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:506
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:482
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:513
#define CHKERR
Inline error check.
Definition: definitions.h:601
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:412

◆ preProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::preProcess ( )

Definition at line 138 of file EshelbianPlasticity.hpp.

138  {
140  if (Suu)
141  CHKERR MatZeroEntries(Suu);
142  if (SBubble)
143  CHKERR MatZeroEntries(SBubble);
144  if (Sw)
145  CHKERR MatZeroEntries(Sw);
146  if (SOmega)
147  CHKERR MatZeroEntries(SOmega);
149  }
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:482
#define CHKERR
Inline error check.
Definition: definitions.h:601
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:412

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