v0.16.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | List of all members
OpBrokenBaseTimesBrokenDisp Struct Reference

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

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

Public Types

using OP = OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
 
- Public Types inherited from OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
using BASE = OpBrokenBaseImpl< OpBaseTimesVectorFace >
 

Public Member Functions

 OpBrokenBaseTimesBrokenDisp (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, ScalarFun beta_coeff=[](double, double, double) constexpr { return 1;}, boost::shared_ptr< Range > ents_ptr=nullptr)
 
- Public Member Functions inherited from OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 

Protected Member Functions

MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 

Additional Inherited Members

- Protected Attributes inherited from OpStabBrokenBaseImpl< OpBaseTimesVectorFace >
boost::weak_ptr< MatrixDouble > fluxMatPtr
 

Detailed Description

Examples
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianPlasticity.cpp.

Definition at line 1250 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1253 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpBrokenBaseTimesBrokenDisp()

OpBrokenBaseTimesBrokenDisp::OpBrokenBaseTimesBrokenDisp ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
ScalarFun  beta_coeff = [](doubledoubledouble) constexpr { return 1; },
boost::shared_ptr< Range ents_ptr = nullptr 
)
Examples
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 4448 of file EshelbianOperators.cpp.

4451 : OP(broken_base_side_data, ents_ptr) {
4452 this->sourceVec = boost::shared_ptr<MatrixDouble>();
4453 this->betaCoeff = beta_coeff;
4454}
OpStabBrokenBaseImpl< OpBaseTimesVectorFace > OP

Member Function Documentation

◆ doWork()

MoFEMErrorCode OpBrokenBaseTimesBrokenDisp::doWork ( int  row_side,
EntityType  row_type,
EntitiesFieldData::EntData row_data 
)
protected
Examples
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 4457 of file EshelbianOperators.cpp.

4458 {
4460
4461 if (OP::entsPtr) {
4462 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
4464 }
4465
4466#ifndef NDEBUG
4467 if (!brokenBaseSideData) {
4468 SETERRQ(PETSC_COMM_SELF, MOFEM_IMPOSSIBLE_CASE, "space not set");
4469 }
4470#endif // NDEBUG
4471
4472 auto do_work_rhs = [this](int row_side, EntityType row_type,
4473 EntitiesFieldData::EntData &row_data) {
4475 // get number of dofs on row
4476 OP::nbRows = row_data.getIndices().size();
4477 if (!OP::nbRows)
4479 // get number of integration points
4480 OP::nbIntegrationPts = OP::getGaussPts().size2();
4481 // get row base functions
4482 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
4483 // resize and clear the right hand side vector
4484 OP::locF.resize(OP::nbRows, false);
4485 OP::locF.clear();
4486 // integrate local vector
4487 CHKERR this->iNtegrate(row_data);
4488 // assemble local vector
4489 CHKERR this->aSsemble(row_data);
4491 };
4492
4493 switch (OP::opType) {
4494 case OP::OPSPACE:
4495 for (auto &bd : *brokenBaseSideData) {
4496 this->sourceVec =
4497 boost::shared_ptr<MatrixDouble>(brokenBaseSideData, &bd.getFlux());
4498 CHKERR do_work_rhs(bd.getSide(), bd.getType(), bd.getData());
4499 this->sourceVec.reset();
4500 }
4501 break;
4502 default:
4504 (std::string("wrong op type ") +
4505 OpBaseDerivativesBase::OpTypeNames[OP::opType])
4506 .c_str());
4507 }
4508
4510}
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define CHK_MOAB_THROW(err, msg)
Check error code of MoAB function and throw MoFEM exception.
@ MOFEM_IMPOSSIBLE_CASE
Definition definitions.h:35
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
Data on single entity (This is passed as argument to DataOperator::doWork)
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.

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