v0.15.5
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 1131 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1134 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 3811 of file EshelbianOperators.cpp.

3814 : OP(broken_base_side_data, ents_ptr) {
3815 this->sourceVec = boost::shared_ptr<MatrixDouble>();
3816 this->betaCoeff = beta_coeff;
3817}
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 3820 of file EshelbianOperators.cpp.

3821 {
3823
3824 if (OP::entsPtr) {
3825 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
3827 }
3828
3829#ifndef NDEBUG
3830 if (!brokenBaseSideData) {
3831 SETERRQ(PETSC_COMM_SELF, MOFEM_IMPOSSIBLE_CASE, "space not set");
3832 }
3833#endif // NDEBUG
3834
3835 auto do_work_rhs = [this](int row_side, EntityType row_type,
3836 EntitiesFieldData::EntData &row_data) {
3838 // get number of dofs on row
3839 OP::nbRows = row_data.getIndices().size();
3840 if (!OP::nbRows)
3842 // get number of integration points
3843 OP::nbIntegrationPts = OP::getGaussPts().size2();
3844 // get row base functions
3845 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
3846 // resize and clear the right hand side vector
3847 OP::locF.resize(OP::nbRows, false);
3848 OP::locF.clear();
3849 // integrate local vector
3850 CHKERR this->iNtegrate(row_data);
3851 // assemble local vector
3852 CHKERR this->aSsemble(row_data);
3854 };
3855
3856 switch (OP::opType) {
3857 case OP::OPSPACE:
3858 for (auto &bd : *brokenBaseSideData) {
3859 this->sourceVec =
3860 boost::shared_ptr<MatrixDouble>(brokenBaseSideData, &bd.getFlux());
3861 CHKERR do_work_rhs(bd.getSide(), bd.getType(), bd.getData());
3862 this->sourceVec.reset();
3863 }
3864 break;
3865 default:
3867 (std::string("wrong op type ") +
3868 OpBaseDerivativesBase::OpTypeNames[OP::opType])
3869 .c_str());
3870 }
3871
3873}
#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.
MoFEMErrorCode iNtegrate(EntitiesFieldData::EntData &row_data)
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: