v0.15.5
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS > Struct Template Reference
Inheritance diagram for EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >:
[legend]
Collaboration diagram for EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >:
[legend]

Public Types

using OP = typename FormsIntegrators< FaceUserDataOperator >::Assembly< A >::OpBrokenBase
 

Public Member Functions

 OpConstrainBoundaryHDivRhs (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< ContactOps::CommonData > common_data_ptr, boost::shared_ptr< ContactTree > contact_tree_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &row_data)
 

Private Attributes

boost::shared_ptr< ContactOps::CommonDatacommonDataPtr
 
boost::shared_ptr< ContactTreecontactTreePtr
 

Detailed Description

template<AssemblyType A>
struct EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >

Definition at line 653 of file EshelbianContact.cpp.

Member Typedef Documentation

◆ OP

template<AssemblyType A>
using EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >::OP = typename FormsIntegrators<FaceUserDataOperator>::Assembly< A>::OpBrokenBase

Definition at line 656 of file EshelbianContact.cpp.

Constructor & Destructor Documentation

◆ OpConstrainBoundaryHDivRhs()

template<AssemblyType A>
EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >::OpConstrainBoundaryHDivRhs ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
boost::shared_ptr< ContactOps::CommonData common_data_ptr,
boost::shared_ptr< ContactTree contact_tree_ptr 
)

Definition at line 672 of file EshelbianContact.cpp.

678 : OP(broken_base_side_data), commonDataPtr(common_data_ptr),
679 contactTreePtr(contact_tree_ptr) {}
typename FormsIntegrators< FaceUserDataOperator >::Assembly< A >::OpBrokenBase OP

Member Function Documentation

◆ iNtegrate()

template<AssemblyType A>
MoFEMErrorCode EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >::iNtegrate ( EntitiesFieldData::EntData row_data)

Definition at line 682 of file EshelbianContact.cpp.

683 {
685
690
691 const size_t nb_gauss_pts = OP::getGaussPts().size2();
692
693#ifndef NDEBUG
694 if (commonDataPtr->contactDisp.size2() != nb_gauss_pts) {
695 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
696 "Wrong number of integration pts %ld != %ld",
697 commonDataPtr->contactDisp.size2(), nb_gauss_pts);
698 }
699#endif // !NDEBUG
700
701 auto &nf = OP::locF;
702 OP::locF.clear();
703
704 auto t_w = OP::getFTensor0IntegrationWeight();
705 auto t_material_normal = OP::getFTensor1NormalsAtGaussPts();
706 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
707
708 auto t_disp = getFTensor1FromMat<3>(commonDataPtr->contactDisp);
709 auto t_traction = getFTensor1FromMat<3>(commonDataPtr->contactTraction);
710
711 auto next = [&]() {
712 ++t_w;
713 ++t_disp;
714 ++t_traction;
715 ++t_coords;
716 ++t_material_normal;
717 };
718
719 auto face_data_vec_ptr =
720 contactTreePtr->findFaceDataVecPtr(OP::getFEEntityHandle());
721 auto face_gauss_pts_it = face_data_vec_ptr->begin();
722
723 auto nb_base_functions = data.getN().size2() / 3;
724 auto t_base = data.getFTensor1N<3>();
725 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
726
727 auto t_nf = getFTensor1FromPtr<3>(&nf[0]);
728 const double alpha = t_w / 2.;
729
730 size_t bb = 0;
731 for (; bb != OP::nbRows / 3; ++bb) {
732 const double beta = alpha * t_base(i) * t_material_normal(i);
733 t_nf(i) += beta * t_disp(i);
734 ++t_nf;
735 ++t_base;
736 }
737 for (; bb < nb_base_functions; ++bb)
738 ++t_base;
739
740 next();
741 }
742
744}
#define FTENSOR_INDEX(DIM, I)
constexpr int SPACE_DIM
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k

Member Data Documentation

◆ commonDataPtr

template<AssemblyType A>
boost::shared_ptr<ContactOps::CommonData> EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >::commonDataPtr
private

Definition at line 667 of file EshelbianContact.cpp.

◆ contactTreePtr

template<AssemblyType A>
boost::shared_ptr<ContactTree> EshelbianPlasticity::OpConstrainBoundaryHDivRhs< A, IntegrationType::GAUSS >::contactTreePtr
private

Definition at line 668 of file EshelbianContact.cpp.


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