v0.15.4
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 1169 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

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

3919 : OP(broken_base_side_data, ents_ptr) {
3920 this->sYmm = false;
3921 this->betaCoeff = beta;
3922}
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 3925 of file EshelbianOperators.cpp.

3926 {
3928
3929 if (OP::entsPtr) {
3930 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
3932 }
3933
3934#ifndef NDEBUG
3935 if (!brokenBaseSideData) {
3936 SETERRQ(PETSC_COMM_SELF, MOFEM_IMPOSSIBLE_CASE, "space not set");
3937 }
3938#endif // NDEBUG
3939
3940 auto do_work_lhs = [this](int row_side, int col_side, EntityType row_type,
3941 EntityType col_type,
3943 EntitiesFieldData::EntData &col_data) {
3945
3946 auto check_if_assemble_transpose = [&] {
3947 if (this->sYmm) {
3948 if (OP::rowSide != OP::colSide || OP::rowType != OP::colType)
3949 return true;
3950 else
3951 return false;
3952 } else if (OP::assembleTranspose) {
3953 return true;
3954 }
3955 return false;
3956 };
3957
3958 OP::rowSide = row_side;
3959 OP::rowType = row_type;
3960 OP::colSide = col_side;
3961 OP::colType = col_type;
3962 OP::nbCols = col_data.getIndices().size();
3963 OP::locMat.resize(OP::nbRows, OP::nbCols, false);
3964 OP::locMat.clear();
3965 CHKERR this->iNtegrate(row_data, col_data);
3966 CHKERR this->aSsemble(row_data, col_data, check_if_assemble_transpose());
3968 };
3969
3970 switch (OP::opType) {
3971 case OP::OPSPACE:
3972
3973 for (auto &bd : *brokenBaseSideData) {
3974
3975#ifndef NDEBUG
3976 if (!bd.getData().getNSharedPtr(bd.getData().getBase())) {
3977 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
3978 "base functions not set");
3979 }
3980#endif
3981
3982 OP::nbRows = bd.getData().getIndices().size();
3983 if (!OP::nbRows)
3985 OP::nbIntegrationPts = OP::getGaussPts().size2();
3986 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(bd.getData());
3987
3988 if (!OP::nbRows)
3990
3991 CHKERR do_work_lhs(
3992
3993 // side
3994 bd.getSide(), bd.getSide(),
3995
3996 // type
3997 bd.getType(), bd.getType(),
3998
3999 // row_data
4000 bd.getData(), bd.getData()
4001
4002 );
4003 }
4004
4005 break;
4006
4007 default:
4009 (std::string("wrong op type ") +
4010 OpBaseDerivativesBase::OpTypeNames[OP::opType])
4011 .c_str());
4012 }
4013
4015}
#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: