v0.13.2
Loading...
Searching...
No Matches
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 90 of file EshelbianPlasticity.hpp.

Constructor & Destructor Documentation

◆ EpFEMethod()

EshelbianPlasticity::EpFEMethod::EpFEMethod ( )
inline

Definition at line 91 of file EshelbianPlasticity.hpp.

91: EpElement<FEMethod>() {}

Member Function Documentation

◆ postProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::postProcess ( )
inline

Definition at line 105 of file EshelbianPlasticity.hpp.

105 {
107 auto assemble = [](Mat a) {
109 if (a) {
110 CHKERR MatAssemblyBegin(a, MAT_FINAL_ASSEMBLY);
111 CHKERR MatAssemblyEnd(a, MAT_FINAL_ASSEMBLY);
112 }
114 };
115 CHKERR assemble(Suu);
116 CHKERR assemble(SBubble);
117 CHKERR assemble(SOmega);
118 CHKERR assemble(Sw);
119 // std::string wait;
120 // CHKERR MatView(SOmega, PETSC_VIEWER_DRAW_WORLD);
121 // std::cin >> wait;
122 // CHKERR MatView(Sw, PETSC_VIEWER_DRAW_WORLD);
123 // std::cin >> wait;
124 // CHKERR MatView(SBubble, PETSC_VIEWER_DRAW_WORLD);
125 // std::cin >> wait;
126 // CHKERR MatView(Suu, PETSC_VIEWER_DRAW_WORLD);
127 // std::cin >> wait;
128 // CHKERR MatView(getTSB(), PETSC_VIEWER_DRAW_WORLD);
129 // std::cin >> wait;
131 }
constexpr double a
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#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 MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:440

◆ preProcess()

MoFEMErrorCode EshelbianPlasticity::EpFEMethod::preProcess ( )
inline

Definition at line 92 of file EshelbianPlasticity.hpp.

92 {
94 if (Suu)
95 CHKERR MatZeroEntries(Suu);
96 if (SBubble)
97 CHKERR MatZeroEntries(SBubble);
98 if (Sw)
99 CHKERR MatZeroEntries(Sw);
100 if (SOmega)
101 CHKERR MatZeroEntries(SOmega);
103 }

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