v0.16.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
OpCalculateTractionFromSideEl Struct Reference

#include "users_modules/eshelbian_plasticity/src/EshelbianOperators.hpp"

Inheritance diagram for OpCalculateTractionFromSideEl:
[legend]
Collaboration diagram for OpCalculateTractionFromSideEl:
[legend]

Public Member Functions

 OpCalculateTractionFromSideEl (boost::shared_ptr< DataAtIntegrationPts > data_ptr)
 
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)
 

Private Attributes

boost::shared_ptr< DataAtIntegrationPtsdataAtPts
 data at integration pts
 

Detailed Description

Definition at line 286 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpCalculateTractionFromSideEl()

OpCalculateTractionFromSideEl::OpCalculateTractionFromSideEl ( boost::shared_ptr< DataAtIntegrationPts data_ptr)
inline

Definition at line 287 of file EshelbianOperators.hpp.

289 : SideEleOp(NOSPACE, SideEleOp::OPSPACE), dataAtPts(data_ptr) {
290 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE], false);
291 for (auto t = moab::CN::TypeDimensionMap[SPACE_DIM].first;
292 t <= moab::CN::TypeDimensionMap[SPACE_DIM].second; ++t)
293 doEntities[t] = true;
294 sYmm = false;
295 }
constexpr int SPACE_DIM
@ NOSPACE
Definition definitions.h:83
constexpr double t
plate stiffness
Definition plate.cpp:58
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
EleOnSide::UserDataOperator SideEleOp

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpCalculateTractionFromSideEl::doWork ( int  side,
EntityType  type,
EntData data 
)
Examples
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 704 of file EshelbianOperators.cpp.

705 {
709
710 auto N_InLoop = getNinTheLoop();
711 auto sensee = getSkeletonSense();
712 auto nb_gauss_pts = getGaussPts().size2();
713 auto t_normal = getFTensor1NormalsAtGaussPts();
714
715 auto t_sigma_ptr = dataAtPts->getFTensorApproxP(getGaussPts().size2());
716 auto get_tracion =
718 dataAtPts->tractionAtPts, nb_gauss_pts);
719 if (N_InLoop == 0) {
720 dataAtPts->tractionAtPts.clear();
721 }
722
723 auto t_traction = get_tracion();
724 for (int gg = 0; gg != nb_gauss_pts; gg++) {
725 t_traction(i) = t_sigma_ptr(i, j) * sensee * (t_normal(j) / t_normal.l2());
726 ++t_traction;
727 ++t_sigma_ptr;
728 ++t_normal;
729 }
730
732}
#define FTENSOR_INDEX(DIM, I)
#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()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
DataLayoutTraits< DataLayout::GaussByCoeffs > DL
Definition MatHuHu.hpp:33
decltype(GetFTensor1FromMatImpl< Tensor_Dim, S, DL, M >::get(std::declval< M & >(), 0, 0)) GetFTensor1FromMatType

Member Data Documentation

◆ dataAtPts

boost::shared_ptr<DataAtIntegrationPts> OpCalculateTractionFromSideEl::dataAtPts
private

data at integration pts

Definition at line 300 of file EshelbianOperators.hpp.


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