v0.15.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
OpBrokenBaseTimesBrokenDisp Struct Reference

#include "users_modules/eshelbian_plasticity/src/EshelbianOperators.hpp"

Inheritance diagram for OpBrokenBaseTimesBrokenDisp:
[legend]
Collaboration diagram for OpBrokenBaseTimesBrokenDisp:
[legend]

Public Types

using OP = OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
 
- Public Types inherited from OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
using BASE = OpBrokenBaseImpl< OpBaseTimesVectorFace >
 

Public Member Functions

 OpBrokenBaseTimesBrokenDisp (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, ScalarFun beta_coeff=[](double, double, double) constexpr { return 1;}, boost::shared_ptr< Range > ents_ptr=nullptr)
 
- Public Member Functions inherited from OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 

Protected Member Functions

MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 

Detailed Description

Examples
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianPlasticity.cpp.

Definition at line 1127 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1130 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpBrokenBaseTimesBrokenDisp()

OpBrokenBaseTimesBrokenDisp::OpBrokenBaseTimesBrokenDisp ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
ScalarFun  beta_coeff = [](doubledoubledouble) constexpr { return 1; },
boost::shared_ptr< Range ents_ptr = nullptr 
)
Examples
mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 3807 of file EshelbianOperators.cpp.

3810 : OP(broken_base_side_data, ents_ptr) {
3811 this->sourceVec = boost::shared_ptr<MatrixDouble>();
3812 this->betaCoeff = beta_coeff;
3813}
OpStabBrokenBaseImpl< OpBaseTimesVectorFace > OP

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpBrokenBaseTimesBrokenDisp::doWork ( int  row_side,
EntityType  row_type,
EntitiesFieldData::EntData row_data 
)
protected
Examples
mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 3816 of file EshelbianOperators.cpp.

3817 {
3819
3820 if (OP::entsPtr) {
3821 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
3823 }
3824
3825#ifndef NDEBUG
3826 if (!brokenBaseSideData) {
3827 SETERRQ(PETSC_COMM_SELF, MOFEM_IMPOSSIBLE_CASE, "space not set");
3828 }
3829#endif // NDEBUG
3830
3831 auto do_work_rhs = [this](int row_side, EntityType row_type,
3832 EntitiesFieldData::EntData &row_data) {
3834 // get number of dofs on row
3835 OP::nbRows = row_data.getIndices().size();
3836 if (!OP::nbRows)
3838 // get number of integration points
3839 OP::nbIntegrationPts = OP::getGaussPts().size2();
3840 // get row base functions
3841 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
3842 // resize and clear the right hand side vector
3843 OP::locF.resize(OP::nbRows, false);
3844 OP::locF.clear();
3845 // integrate local vector
3846 CHKERR this->iNtegrate(row_data);
3847 // assemble local vector
3848 CHKERR this->aSsemble(row_data);
3850 };
3851
3852 switch (OP::opType) {
3853 case OP::OPSPACE:
3854 for (auto &bd : *brokenBaseSideData) {
3855 this->sourceVec =
3856 boost::shared_ptr<MatrixDouble>(brokenBaseSideData, &bd.getFlux());
3857 CHKERR do_work_rhs(bd.getSide(), bd.getType(), bd.getData());
3858 this->sourceVec.reset();
3859 }
3860 break;
3861 default:
3863 (std::string("wrong op type ") +
3864 OpBaseDerivativesBase::OpTypeNames[OP::opType])
3865 .c_str());
3866 }
3867
3869}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define CHK_MOAB_THROW(err, msg)
Check error code of MoAB function and throw MoFEM exception.
@ MOFEM_IMPOSSIBLE_CASE
Definition definitions.h:35
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
Data on single entity (This is passed as argument to DataOperator::doWork)
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.

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