v0.15.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
EshelbianPlasticity::OpGetTag Struct Reference
Inheritance diagram for EshelbianPlasticity::OpGetTag:
[legend]
Collaboration diagram for EshelbianPlasticity::OpGetTag:
[legend]

Public Types

using OP = OpBrokenBaseCohesive
 
- Public Types inherited from EshelbianPlasticity::OpBrokenBaseCohesive
using OP = FormsIntegrators< FaceElementForcesAndSourcesCore::UserDataOperator >::Assembly< A >::OpBrokenBase
 
- Public Types inherited from MoFEM::OpBrokenBaseImpl< OpBase >
using OP = OpBase
 
- Public Types inherited from MoFEM::OpBaseImpl< A, EleOp >
using OpType = typename EleOp::OpType
 
using EntData = EntitiesFieldData::EntData
 
using MatSetValuesHook = boost::function< MoFEMErrorCode(ForcesAndSourcesCore::UserDataOperator *op_ptr, const EntitiesFieldData::EntData &row_data, const EntitiesFieldData::EntData &col_data, MatrixDouble &m)>
 

Public Member Functions

 OpGetTag (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, Tag tag, TagGetType tag_get_type, boost::shared_ptr< VectorDouble > tag_data_ptr, boost::shared_ptr< Range > ents_ptr=nullptr)
 
MoFEMErrorCode iNtegrate (EntData &data)
 Class dedicated to integrate operator.
 
MoFEMErrorCode aSsemble (EntData &data)
 Assemble local vector into global vector.
 
- Public Member Functions inherited from EshelbianPlasticity::OpBrokenBaseCohesive
 OpBrokenBaseCohesive (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_flux_data_ptr, boost::shared_ptr< Range > ents_ptr=nullptr)
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 
- Public Member Functions inherited from MoFEM::OpBrokenBaseImpl< OpBase >
 OpBrokenBaseImpl (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< Range > ents_ptr=nullptr)
 
 OpBrokenBaseImpl (const std::string row_field, boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, const bool assmb_transpose, const bool only_transpose, boost::shared_ptr< Range > ents_ptr=nullptr)
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 
- Public Member Functions inherited from MoFEM::OpBaseImpl< A, EleOp >
 OpBaseImpl (const std::string row_field_name, const std::string col_field_name, const OpType type, boost::shared_ptr< Range > ents_ptr=nullptr)
 Constructor for base operator implementation.
 
MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data)
 Do calculations for the left hand side.
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntData &row_data)
 Do calculations for the right hand side.
 

Private Attributes

Tag tagHandle
 
boost::shared_ptr< VectorDouble > tagDataPtr
 
TagGetType tagGetType
 

Additional Inherited Members

- Public Attributes inherited from MoFEM::OpBaseImpl< A, EleOp >
TimeFun timeScalingFun
 assumes that time variable is set
 
FEFun feScalingFun
 set by fe entity handle
 
boost::shared_ptr< RangeentsPtr
 Entities on which element is run.
 
- Static Public Attributes inherited from MoFEM::OpBaseImpl< A, EleOp >
static MatSetValuesHook matSetValuesHook
 
- Protected Member Functions inherited from MoFEM::OpBaseImpl< A, EleOp >
template<int DIM>
FTensor::Tensor1< FTensor::PackPtr< double *, DIM >, DIM > getNf ()
 Get local vector tensor for assembly.
 
template<int DIM>
FTensor::Tensor2< FTensor::PackPtr< double *, DIM >, DIM, DIM > getLocMat (const int rr)
 Get local matrix tensor for assembly.
 
virtual MoFEMErrorCode iNtegrate (EntData &row_data, EntData &col_data)
 Integrate grad-grad operator.
 
virtual MoFEMErrorCode aSsemble (EntData &row_data, EntData &col_data, const bool trans)
 Assemble local matrix into global matrix.
 
virtual size_t getNbOfBaseFunctions (EntitiesFieldData::EntData &data)
 Get number of base functions.
 
- Protected Attributes inherited from EshelbianPlasticity::OpBrokenBaseCohesive
boost::shared_ptr< MatrixDouble > fluxMatPtr
 
int faceSense = 0
 
- Protected Attributes inherited from MoFEM::OpBrokenBaseImpl< OpBase >
boost::shared_ptr< std::vector< BrokenBaseSideData > > brokenBaseSideData
 
- Protected Attributes inherited from MoFEM::OpBaseImpl< A, EleOp >
int nbRows
 number of dofs on rows
 
int nbCols
 number if dof on column
 
int nbIntegrationPts
 number of integration points
 
int nbRowBaseFunctions
 number or row base functions
 
int rowSide
 row side number
 
int colSide
 column side number
 
EntityType rowType
 row type
 
EntityType colType
 column type
 
bool assembleTranspose
 
bool onlyTranspose
 
MatrixDouble locMat
 local entity block matrix
 
MatrixDouble locMatTranspose
 local entity block matrix
 
VectorDouble locF
 local entity vector
 

Detailed Description

Definition at line 767 of file EshelbianCohesive.cpp.

Member Typedef Documentation

◆ OP

Definition at line 769 of file EshelbianCohesive.cpp.

Constructor & Destructor Documentation

◆ OpGetTag()

EshelbianPlasticity::OpGetTag::OpGetTag ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
Tag  tag,
TagGetType  tag_get_type,
boost::shared_ptr< VectorDouble >  tag_data_ptr,
boost::shared_ptr< Range ents_ptr = nullptr 
)
inline

Definition at line 771 of file EshelbianCohesive.cpp.

776 : OpBrokenBaseCohesive(broken_base_side_data, ents_ptr), tagHandle(tag),
777 tagGetType(tag_get_type), tagDataPtr(tag_data_ptr) {}
OpBrokenBaseCohesive(boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_flux_data_ptr, boost::shared_ptr< Range > ents_ptr=nullptr)
boost::shared_ptr< VectorDouble > tagDataPtr

Member Function Documentation

◆ aSsemble()

MoFEMErrorCode EshelbianPlasticity::OpGetTag::aSsemble ( EntData data)
inlinevirtual

Assemble local vector into global vector.

Parameters
dataEntity data
Returns
Error code

Reimplemented from MoFEM::OpBaseImpl< A, EleOp >.

Definition at line 832 of file EshelbianCohesive.cpp.

832 {
835 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()

◆ iNtegrate()

MoFEMErrorCode EshelbianPlasticity::OpGetTag::iNtegrate ( EntData data)
inlinevirtual

Class dedicated to integrate operator.

Parameters
dataentity data on element row
Returns
error code

Reimplemented from MoFEM::OpBaseImpl< A, EleOp >.

Definition at line 779 of file EshelbianCohesive.cpp.

779 {
781
782 auto get_sense_index = [this]() { return (faceSense == 1) ? 0 : 1; };
783 auto &v = *tagDataPtr;
784
785 switch (tagGetType) {
786 case TagSET:
787 break;
788 case TagGET:
789 v.resize(1);
790 v.clear();
791 break;
792 }
793
794 auto get_data = [&](auto &v) {
796
797 auto &moab = getMoab();
798 auto fe_ent = getFEEntityHandle();
799
800 int size;
801 double *data;
802 rval = moab.tag_get_by_ptr(tagHandle, &fe_ent, 1, (const void **)&data,
803 &size);
804 if (
805
806 rval == MB_SUCCESS && size > 0 && size != v.size()
807
808 ) {
809 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
810 "Inconsistent size of tag data");
811 } else {
812 if (rval != MB_SUCCESS || tagGetType == TagSET) {
813 int tag_size[1];
814 tag_size[0] = v.size();
815 void const *tag_data[] = {&v[0]};
816 CHKERR moab.tag_set_by_ptr(tagHandle, &fe_ent, 1, tag_data, tag_size);
817 } else {
818 CHKERR moab.tag_get_by_ptr(tagHandle, &fe_ent, 1,
819 (const void **)&data, &size);
820 std::copy(data, data + size, v.begin());
821 }
822 }
823
825 };
826
827 CHKERR get_data(v);
828
830 }
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#define CHKERR
Inline error check.
const double v
phase velocity of light in medium (cm/ns)
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval

Member Data Documentation

◆ tagDataPtr

boost::shared_ptr<VectorDouble> EshelbianPlasticity::OpGetTag::tagDataPtr
private

Definition at line 839 of file EshelbianCohesive.cpp.

◆ tagGetType

TagGetType EshelbianPlasticity::OpGetTag::tagGetType
private

Definition at line 840 of file EshelbianCohesive.cpp.

◆ tagHandle

Tag EshelbianPlasticity::OpGetTag::tagHandle
private

Definition at line 838 of file EshelbianCohesive.cpp.


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