v0.14.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
SimpleContactProblem::OpGetMatPosForDisplAtGaussPtsMaster Struct Reference

Operator for the simple contact element. More...

#include <users_modules/mortar_contact/src/SimpleContact.hpp>

Inheritance diagram for SimpleContactProblem::OpGetMatPosForDisplAtGaussPtsMaster:
[legend]
Collaboration diagram for SimpleContactProblem::OpGetMatPosForDisplAtGaussPtsMaster:
[legend]

Public Member Functions

 OpGetMatPosForDisplAtGaussPtsMaster (const string field_name, boost::shared_ptr< CommonDataSimpleContact > common_data_contact)
 
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)
 

Public Attributes

boost::shared_ptr< CommonDataSimpleContactcommonDataSimpleContact
 

Detailed Description

Operator for the simple contact element.

Calculates the spacial coordinates of the gauss points of master triangle.

Definition at line 773 of file SimpleContact.hpp.

Constructor & Destructor Documentation

◆ OpGetMatPosForDisplAtGaussPtsMaster()

SimpleContactProblem::OpGetMatPosForDisplAtGaussPtsMaster::OpGetMatPosForDisplAtGaussPtsMaster ( const string  field_name,
boost::shared_ptr< CommonDataSimpleContact common_data_contact 
)
inline

Definition at line 776 of file SimpleContact.hpp.

779 : ContactOp(field_name, UserDataOperator::OPCOL, ContactOp::FACEMASTER),
780 commonDataSimpleContact(common_data_contact) {}
constexpr auto field_name
boost::shared_ptr< CommonDataSimpleContact > commonDataSimpleContact
ContactPrismElementForcesAndSourcesCore::UserDataOperator ContactOp

Member Function Documentation

◆ doWork()

MoFEMErrorCode SimpleContactProblem::OpGetMatPosForDisplAtGaussPtsMaster::doWork ( int  side,
EntityType  type,
EntData data 
)

Definition at line 497 of file SimpleContact.cpp.

498 {
500 const int nb_dofs = data.getFieldData().size();
501
502 if (nb_dofs == 0)
504
505 const int nb_gauss_pts = data.getN().size1();
506
507 auto t_new_spat_pos_master = getFTensor1FromMat<3>(
508 *commonDataSimpleContact->positionAtGaussPtsMasterPtr);
509
510 int nb_base_fun_col = data.getFieldData().size() / 3;
511
513
514 for (int gg = 0; gg != nb_gauss_pts; ++gg) {
515 FTensor::Tensor0<double *> t_base_master(&data.getN()(gg, 0));
516
517 FTensor::Tensor1<double *, 3> t_field_data_master(
518 &data.getFieldData()[0], &data.getFieldData()[1],
519 &data.getFieldData()[2], 3);
520
521 for (int bb = 0; bb != nb_base_fun_col; ++bb) {
522 t_new_spat_pos_master(i) -= t_base_master * t_field_data_master(i);
523
524 ++t_base_master;
525 ++t_field_data_master;
526 }
527 ++t_new_spat_pos_master;
528 }
529
531}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:447
#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
FTensor::Index< 'i', SPACE_DIM > i
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

Member Data Documentation

◆ commonDataSimpleContact

boost::shared_ptr<CommonDataSimpleContact> SimpleContactProblem::OpGetMatPosForDisplAtGaussPtsMaster::commonDataSimpleContact

Definition at line 775 of file SimpleContact.hpp.


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