#include <users_modules/basic_finite_elements/lessons/src/PlasticOps.hpp>
|
| Monitor (SmartPetscObj< DM > &dm, boost::shared_ptr< PostProcFaceOnRefinedMesh > &post_proc_fe, std::tuple< SmartPetscObj< Vec >, SmartPetscObj< VecScatter >> ux_scatter, std::tuple< SmartPetscObj< Vec >, SmartPetscObj< VecScatter >> uy_scatter) |
|
MoFEMErrorCode | preProcess () |
|
MoFEMErrorCode | operator() () |
|
MoFEMErrorCode | postProcess () |
|
- Examples
- lesson7_plastic.cpp.
Definition at line 1218 of file PlasticOps.hpp.
◆ Monitor()
OpPlasticTools::Monitor::Monitor |
( |
SmartPetscObj< DM > & |
dm, |
|
|
boost::shared_ptr< PostProcFaceOnRefinedMesh > & |
post_proc_fe, |
|
|
std::tuple< SmartPetscObj< Vec >, SmartPetscObj< VecScatter >> |
ux_scatter, |
|
|
std::tuple< SmartPetscObj< Vec >, SmartPetscObj< VecScatter >> |
uy_scatter |
|
) |
| |
◆ operator()()
MoFEMErrorCode OpPlasticTools::Monitor::operator() |
( |
| ) |
|
◆ postProcess()
MoFEMErrorCode OpPlasticTools::Monitor::postProcess |
( |
| ) |
|
Definition at line 1232 of file PlasticOps.hpp.
1235 auto make_vtk = [&]() {
1239 "out_plastic_" + boost::lexical_cast<std::string>(ts_step) +
".h5m");
1243 auto print_max_min = [&](
auto &tuple,
const std::string msg) {
1245 CHKERR VecScatterBegin(std::get<1>(tuple), ts_u, std::get<0>(tuple),
1246 INSERT_VALUES, SCATTER_FORWARD);
1247 CHKERR VecScatterEnd(std::get<1>(tuple), ts_u, std::get<0>(tuple),
1248 INSERT_VALUES, SCATTER_FORWARD);
1250 CHKERR VecMax(std::get<0>(tuple), PETSC_NULL, &max);
1251 CHKERR VecMin(std::get<0>(tuple), PETSC_NULL, &min);
1252 PetscPrintf(PETSC_COMM_WORLD,
"%s time %3.4e min %3.4e max %3.4e\n",
1253 msg.c_str(), ts_t, min, max);
◆ preProcess()
MoFEMErrorCode OpPlasticTools::Monitor::preProcess |
( |
| ) |
|
◆ dM
SmartPetscObj<DM> OpPlasticTools::Monitor::dM |
|
private |
◆ postProcFe
◆ uXScatter
std::tuple<SmartPetscObj<Vec>, SmartPetscObj<VecScatter> > OpPlasticTools::Monitor::uXScatter |
|
private |
◆ uYScatter
std::tuple<SmartPetscObj<Vec>, SmartPetscObj<VecScatter> > OpPlasticTools::Monitor::uYScatter |
|
private |
The documentation for this struct was generated from the following file: