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 3920 of file EshelbianOperators.cpp.

3923 : OP(broken_base_side_data, ents_ptr) {
3924 this->sYmm = false;
3925 this->betaCoeff = beta;
3926}
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 3929 of file EshelbianOperators.cpp.

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

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