v0.16.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CohesiveElement::CohesiveInterfaceElement::OpSetSignToShapeFunctions Struct Reference

Set negative sign to shape functions on face 4. More...

#include "tutorials/cor-12_cohesive_interface/src/CohesiveInterfaceElement.hpp"

Inheritance diagram for CohesiveElement::CohesiveInterfaceElement::OpSetSignToShapeFunctions:
[legend]
Collaboration diagram for CohesiveElement::CohesiveInterfaceElement::OpSetSignToShapeFunctions:
[legend]

Public Member Functions

 OpSetSignToShapeFunctions (const std::string field_name)
 
MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 

Detailed Description

Set negative sign to shape functions on face 4.

Definition at line 308 of file CohesiveInterfaceElement.hpp.

Constructor & Destructor Documentation

◆ OpSetSignToShapeFunctions()

CohesiveElement::CohesiveInterfaceElement::OpSetSignToShapeFunctions::OpSetSignToShapeFunctions ( const std::string  field_name)
inline

Definition at line 311 of file CohesiveInterfaceElement.hpp.

312 : FlatPrismElementForcesAndSourcesCore::UserDataOperator(
313 field_name, ForcesAndSourcesCore::UserDataOperator::OPROW) {}
constexpr auto field_name

Member Function Documentation

◆ doWork()

MoFEMErrorCode CohesiveElement::CohesiveInterfaceElement::OpSetSignToShapeFunctions::doWork ( int  side,
EntityType  type,
EntitiesFieldData::EntData &  data 
)
inline

Definition at line 315 of file CohesiveInterfaceElement.hpp.

316 {
318 if (data.getN().size1() == 0)
320 if (data.getN().size2() == 0)
322 switch (type) {
323 case MBVERTEX:
324 for (unsigned int gg = 0; gg < data.getN().size1(); gg++) {
325 for (int nn = 3; nn < 6; nn++) {
326 data.getN()(gg, nn) *= -1;
327 }
328 }
329 break;
330 case MBEDGE:
331 if (side < 3)
333 data.getN() *= -1;
334 break;
335 case MBTRI:
336 if (side == 3)
338 data.getN() *= -1;
339 break;
340 default:
341 SETERRQ(PETSC_COMM_SELF, 1, "data inconsitency");
342 }
344 }
std::string type
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBeginHot
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...

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