No Matches
Public Member Functions | Private Attributes | List of all members
OpRotatingFrameTools::OpVolumeSideCalculateTAU Struct Reference

#include <users_modules/multifield_plasticity/src/RotatingFrameOperators.hpp>

Inheritance diagram for OpRotatingFrameTools::OpVolumeSideCalculateTAU:
Collaboration diagram for OpRotatingFrameTools::OpVolumeSideCalculateTAU:

Public Member Functions

 OpVolumeSideCalculateTAU (const std::string field_name, boost::shared_ptr< CommonData > common_data_ptr)
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)

Private Attributes

boost::shared_ptr< CommonDatacommonDataPtr

Detailed Description

Definition at line 110 of file RotatingFrameOperators.hpp.

Constructor & Destructor Documentation

◆ OpVolumeSideCalculateTAU()

OpRotatingFrameTools::OpVolumeSideCalculateTAU::OpVolumeSideCalculateTAU ( const std::string  field_name,
boost::shared_ptr< CommonData common_data_ptr 

Definition at line 536 of file RotatingFrameOperators.cpp.

539 commonDataPtr(common_data_ptr) {
540 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE], false);
541 doEntities[MBTET] = true;
542 doEntities[MBHEX] = true;
DomainSideEle::UserDataOperator DomainSideEleOp
constexpr auto field_name
operator doWork function is executed on FE rows

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpRotatingFrameTools::OpVolumeSideCalculateTAU::doWork ( int  side,
EntityType  type,
EntData data 

Definition at line 545 of file RotatingFrameOperators.cpp.

546 {
549 // FIXME: this is wrong, resize only on zero type
550 const size_t nb_dofs = data.getIndices().size();
551 // data.getFieldData().size()
552 if (nb_dofs) {
553 int nb_gauss_pts = data.getN().size1();
554 VectorDouble &vec_tau = commonDataPtr->plasticTauSideMap[getFaceSense()];
555 vec_tau.resize(nb_gauss_pts, false);
556 vec_tau.clear();
558 for (int gg = 0; gg != nb_gauss_pts; gg++) {
559 vec_tau(gg) = inner_prod(trans(data.getN(gg)), data.getFieldData());
560 }
561 }
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorDouble & getFieldData() const
get dofs values
const VectorInt & getIndices() const
Get global indices of dofs on entity.

Member Data Documentation

◆ commonDataPtr

boost::shared_ptr<CommonData> OpRotatingFrameTools::OpVolumeSideCalculateTAU::commonDataPtr

Definition at line 116 of file RotatingFrameOperators.hpp.

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