v0.16.0
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)
 

Additional Inherited Members

- Protected Attributes inherited from OpStabBrokenBaseImpl< OpMassVectorFace >
boost::weak_ptr< MatrixDouble > fluxMatPtr
 

Detailed Description

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

Definition at line 1191 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1193 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
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 4006 of file EshelbianOperators.cpp.

4009 : OP(broken_base_side_data, ents_ptr) {
4010 this->sYmm = false;
4011 this->betaCoeff = beta;
4012 OP::assembleTranspose = false;
4013 OP::onlyTranspose = false;
4014}
OpStabBrokenBaseImpl< OpMassVectorFace > OP

Member Function Documentation

◆ doWork()

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

Definition at line 4017 of file EshelbianOperators.cpp.

4018 {
4020
4021 if (OP::entsPtr) {
4022 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
4024 }
4025
4026#ifndef NDEBUG
4027 if (!brokenBaseSideData) {
4028 SETERRQ(PETSC_COMM_SELF, MOFEM_IMPOSSIBLE_CASE, "space not set");
4029 }
4030#endif // NDEBUG
4031
4032 auto do_work_lhs = [this](int row_side, int col_side, EntityType row_type,
4033 EntityType col_type,
4035 EntitiesFieldData::EntData &col_data) {
4037
4038 auto check_if_assemble_transpose = [&] {
4039 if (this->sYmm) {
4040 if (OP::rowSide != OP::colSide || OP::rowType != OP::colType)
4041 return true;
4042 else
4043 return false;
4044 } else if (OP::assembleTranspose) {
4045 return true;
4046 }
4047 return false;
4048 };
4049
4050 OP::rowSide = row_side;
4051 OP::rowType = row_type;
4052 OP::colSide = col_side;
4053 OP::colType = col_type;
4054 OP::nbCols = col_data.getIndices().size();
4055 OP::locMat.resize(OP::nbRows, OP::nbCols, false);
4056 OP::locMat.clear();
4057 CHKERR this->iNtegrate(row_data, col_data);
4058 CHKERR this->aSsemble(row_data, col_data, check_if_assemble_transpose());
4060 };
4061
4062 switch (OP::opType) {
4063 case OP::OPSPACE:
4064
4065 for (auto &bd : *brokenBaseSideData) {
4066
4067#ifndef NDEBUG
4068 if (!bd.getData().getNSharedPtr(bd.getData().getBase())) {
4069 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
4070 "base functions not set");
4071 }
4072#endif
4073
4074 OP::nbRows = bd.getData().getIndices().size();
4075 if (!OP::nbRows)
4077 OP::nbIntegrationPts = OP::getGaussPts().size2();
4078 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(bd.getData());
4079
4080 if (!OP::nbRows)
4082
4083 CHKERR do_work_lhs(
4084
4085 // side
4086 bd.getSide(), bd.getSide(),
4087
4088 // type
4089 bd.getType(), bd.getType(),
4090
4091 // row_data
4092 bd.getData(), bd.getData()
4093
4094 );
4095 }
4096
4097 break;
4098
4099 default:
4101 (std::string("wrong op type ") +
4102 OpBaseDerivativesBase::OpTypeNames[OP::opType])
4103 .c_str());
4104 }
4105
4107}
#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: