v0.16.3
Loading...
Searching...
No Matches
Static Public Member Functions | Static Private Attributes | List of all members
UmatExample::TSElasticPostStep Struct Reference

#include "users_modules/um_ageing_umat/src/UmatExample.hpp"

Collaboration diagram for UmatExample::TSElasticPostStep:
[legend]

Static Public Member Functions

static MoFEMErrorCode postStepInitialise (UmatExample *example_ptr)
 
static MoFEMErrorCode postStepDestroy ()
 
static MoFEMErrorCode preStepFun (TS ts)
 
static MoFEMErrorCode postStepFun (TS ts)
 

Static Private Attributes

static UmatExample * umatExamplePtr
 
static PetscReal previousTime = 0
 

Detailed Description

Definition at line 55 of file UmatExample.hpp.

Member Function Documentation

◆ postStepDestroy()

static MoFEMErrorCode UmatExample::TSElasticPostStep::postStepDestroy ( )
inlinestatic

Definition at line 66 of file UmatExample.hpp.

66 {
67 umatExamplePtr = nullptr;
68 return 0;
69 }
static UmatExample * umatExamplePtr

◆ postStepFun()

static MoFEMErrorCode UmatExample::TSElasticPostStep::postStepFun ( TS  ts)
inlinestatic

Definition at line 71 of file UmatExample.hpp.

71 {
73 // (void)ts;
74 auto simple = umatExamplePtr->mField.getInterface<Simple>();
75 auto dm = simple->getDM();
77 int step = -1;
78 PetscReal t;
79 PetscReal next_dt;
80 CHKERR TSGetStepNumber(ts, &step);
81 CHKERR TSGetTime(ts, &t);
82 CHKERR TSGetTimeStep(ts, &next_dt);
88 umatExamplePtr->updateFe->ts_step = step;
90 CHKERR DMoFEMLoopFiniteElements(dm, simple->getDomainFEName(),
92 }
94 }
Vec t
Removal: the ring edge.
void simple(double P1[], double P2[], double P3[], double c[], const int N)
Definition acoustic.cpp:69
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
PetscErrorCode DMoFEMLoopFiniteElements(DM dm, const char fe_name[], MoFEM::FEMethod *method, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr())
Executes FEMethod for finite elements in DM.
Definition DMMoFEM.cpp:662
MoFEMErrorCode getInterface(IFACE *&iface) const
Get interface reference to pointer of interface.
PetscReal acceptedDt
PetscInt acceptedStep
MoFEM::Interface & mField
PetscReal acceptedTime
boost::shared_ptr< DomainEle > updateFe

◆ postStepInitialise()

static MoFEMErrorCode UmatExample::TSElasticPostStep::postStepInitialise ( UmatExample *  example_ptr)
inlinestatic

Definition at line 58 of file UmatExample.hpp.

58 {
59 umatExamplePtr = example_ptr;
63 previousTime = 0;
64 return 0;
65 }

◆ preStepFun()

static MoFEMErrorCode UmatExample::TSElasticPostStep::preStepFun ( TS  ts)
inlinestatic

Definition at line 70 of file UmatExample.hpp.

70{ return 0; }

Member Data Documentation

◆ previousTime

PetscReal UmatExample::TSElasticPostStep::previousTime = 0
inlinestaticprivate

Definition at line 98 of file UmatExample.hpp.

◆ umatExamplePtr

UmatExample* UmatExample::TSElasticPostStep::umatExamplePtr
inlinestaticprivate

Definition at line 97 of file UmatExample.hpp.


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