v0.15.5
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
OpBrokenBaseBrokenBase Struct Reference

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

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

Public Types

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

Public Member Functions

 OpBrokenBaseBrokenBase (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, ScalarFun beta, boost::shared_ptr< Range > ents_ptr=nullptr)
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 
- Public Member Functions inherited from OpStabBrokenBaseImpl< OpMassVectorFace >
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 1172 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1174 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpBrokenBaseBrokenBase()

OpBrokenBaseBrokenBase::OpBrokenBaseBrokenBase ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
ScalarFun  beta,
boost::shared_ptr< Range ents_ptr = nullptr 
)
Examples
mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 3954 of file EshelbianOperators.cpp.

3957 : OP(broken_base_side_data, ents_ptr) {
3958 this->sYmm = false;
3959 this->betaCoeff = beta;
3960 OP::assembleTranspose = false;
3961 OP::onlyTranspose = false;
3962}
OpStabBrokenBaseImpl< OpMassVectorFace > OP

Member Function Documentation

◆ doWork()

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

Definition at line 3965 of file EshelbianOperators.cpp.

3966 {
3968
3969 if (OP::entsPtr) {
3970 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
3972 }
3973
3974#ifndef NDEBUG
3975 if (!brokenBaseSideData) {
3976 SETERRQ(PETSC_COMM_SELF, MOFEM_IMPOSSIBLE_CASE, "space not set");
3977 }
3978#endif // NDEBUG
3979
3980 auto do_work_lhs = [this](int row_side, int col_side, EntityType row_type,
3981 EntityType col_type,
3983 EntitiesFieldData::EntData &col_data) {
3985
3986 auto check_if_assemble_transpose = [&] {
3987 if (this->sYmm) {
3988 if (OP::rowSide != OP::colSide || OP::rowType != OP::colType)
3989 return true;
3990 else
3991 return false;
3992 } else if (OP::assembleTranspose) {
3993 return true;
3994 }
3995 return false;
3996 };
3997
3998 OP::rowSide = row_side;
3999 OP::rowType = row_type;
4000 OP::colSide = col_side;
4001 OP::colType = col_type;
4002 OP::nbCols = col_data.getIndices().size();
4003 OP::locMat.resize(OP::nbRows, OP::nbCols, false);
4004 OP::locMat.clear();
4005 CHKERR this->iNtegrate(row_data, col_data);
4006 CHKERR this->aSsemble(row_data, col_data, check_if_assemble_transpose());
4008 };
4009
4010 switch (OP::opType) {
4011 case OP::OPSPACE:
4012
4013 for (auto &bd : *brokenBaseSideData) {
4014
4015#ifndef NDEBUG
4016 if (!bd.getData().getNSharedPtr(bd.getData().getBase())) {
4017 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
4018 "base functions not set");
4019 }
4020#endif
4021
4022 OP::nbRows = bd.getData().getIndices().size();
4023 if (!OP::nbRows)
4025 OP::nbIntegrationPts = OP::getGaussPts().size2();
4026 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(bd.getData());
4027
4028 if (!OP::nbRows)
4030
4031 CHKERR do_work_lhs(
4032
4033 // side
4034 bd.getSide(), bd.getSide(),
4035
4036 // type
4037 bd.getType(), bd.getType(),
4038
4039 // row_data
4040 bd.getData(), bd.getData()
4041
4042 );
4043 }
4044
4045 break;
4046
4047 default:
4049 (std::string("wrong op type ") +
4050 OpBaseDerivativesBase::OpTypeNames[OP::opType])
4051 .c_str());
4052 }
4053
4055}
#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
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#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)

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