v0.13.1
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:
[legend]
Collaboration diagram for OpRotatingFrameTools::OpVolumeSideCalculateTAU:
[legend]

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 535 of file RotatingFrameOperators.cpp.

538 commonDataPtr(common_data_ptr) {
539 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE], false);
540 doEntities[MBTET] = true;
541 doEntities[MBHEX] = true;
542}
DomainSideEle::UserDataOperator DomainSideEleOp
constexpr auto field_name
@ OPROW
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 544 of file RotatingFrameOperators.cpp.

545 {
547
548 // FIXME: this is wrong, resize only on zero type
549 const size_t nb_dofs = data.getIndices().size();
550 // data.getFieldData().size()
551 if (nb_dofs) {
552 int nb_gauss_pts = data.getN().size1();
553 VectorDouble &vec_tau = commonDataPtr->plasticTauSideMap[getFaceSense()];
554 vec_tau.resize(nb_gauss_pts, false);
555 vec_tau.clear();
556
557 for (int gg = 0; gg != nb_gauss_pts; gg++) {
558 vec_tau(gg) = inner_prod(trans(data.getN(gg)), data.getFieldData());
559 }
560 }
562}
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
UBlasVector< double > VectorDouble
Definition: Types.hpp:79
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
private

Definition at line 116 of file RotatingFrameOperators.hpp.


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