v0.16.3
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
OpTauStabilizationRotationLhsBc Struct Reference

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

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

Public Types

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

Public Member Functions

 OpTauStabilizationRotationLhsBc (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< BcRotVec > &bc_ptr, ScalarFun tau_coeff, boost::shared_ptr< Range > ents_ptr=nullptr)
 
- Public Member Functions inherited from OpBrokenBaseBrokenBase
 OpBrokenBaseBrokenBase (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, ScalarFun beta, boost::shared_ptr< Range > ents_ptr=nullptr)
 
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 
- Public Member Functions inherited from OpStabBrokenBaseImpl< OpMassVectorFace >
MoFEMErrorCode doWork (int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
 

Protected Member Functions

MoFEMErrorCode iNtegrate (EntData &row_data, EntData &col_data)
 

Protected Attributes

boost::shared_ptr< BcRotVec > bcRotPtr
 
- Protected Attributes inherited from OpStabBrokenBaseImpl< OpMassVectorFace >
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 1333 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1335 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpTauStabilizationRotationLhsBc()

OpTauStabilizationRotationLhsBc::OpTauStabilizationRotationLhsBc ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
boost::shared_ptr< BcRotVec > &  bc_ptr,
ScalarFun  tau_coeff,
boost::shared_ptr< Range ents_ptr = nullptr 
)
inline

Definition at line 1337 of file EshelbianOperators.hpp.

1341 : OP(broken_base_side_data, tau_coeff, ents_ptr), bcRotPtr(bc_ptr) {
1342 }
boost::shared_ptr< BcRotVec > bcRotPtr

Member Function Documentation

◆ iNtegrate()

MoFEMErrorCode OpTauStabilizationRotationLhsBc::iNtegrate ( EntData row_data,
EntData col_data 
)
protected
Examples
/home/lk58p/mofem_install/vanilla_dev_release/mofem-cephas/mofem/users_modules/eshelbian_plasticity/src/impl/EshelbianOperators.cpp.

Definition at line 2084 of file EshelbianOperators.cpp.

2085 {
2087 // get entity of face
2088 EntityHandle fe_ent = OP::getFEEntityHandle();
2089 // iterate over all boundary data
2090 for (auto &bc : (*bcRotPtr)) {
2091 // check if finite element entity is part of boundary condition
2092 if (bc.faces.find(fe_ent) != bc.faces.end()) {
2093 int nb_dofs = row_data.getIndices().size();
2094
2095 int nb_integration_pts = OP::getGaussPts().size2();
2096 auto t_w = OP::getFTensor0IntegrationWeight();
2097 int nb_base_functions = row_data.getN().size2();
2098 auto t_row_base_fun = row_data.getFTensor0N();
2099
2102
2103 auto get_t_vec = [&](const int rr) {
2104 std::array<double *, SPACE_DIM> ptrs;
2105 for (auto i = 0; i != SPACE_DIM; ++i)
2106 ptrs[i] = &OP::locMat(rr + i, i);
2108 SPACE_DIM>(ptrs);
2109 };
2110
2111 auto area = getMeasure();
2112 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
2113 for (int gg = 0; gg != nb_integration_pts; ++gg) {
2114 auto tau_scale =
2115 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
2116 int rr = 0;
2117 for (; rr != nb_dofs / SPACE_DIM; ++rr) {
2118 auto t_mat = get_t_vec(SPACE_DIM * rr);
2119 auto t_col_base_fun = col_data.getFTensor0N(gg, 0);
2120 for (int cc = 0; cc != nb_dofs / SPACE_DIM; ++cc) {
2121 for (int ii = 0; ii != SPACE_DIM; ++ii) {
2122 t_mat(ii) += tau_scale * (t_row_base_fun * t_col_base_fun);
2123 }
2124 ++t_col_base_fun;
2125 ++t_mat;
2126 }
2127 ++t_row_base_fun;
2128 }
2129 for (; rr != nb_base_functions; ++rr)
2130 ++t_row_base_fun;
2131
2132 ++t_w;
2133 ++t_coords;
2134 }
2135 }
2136 }
2137
2139}
#define FTENSOR_INDEX(DIM, I)
constexpr int SPACE_DIM
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.

Member Data Documentation

◆ bcRotPtr

boost::shared_ptr<BcRotVec> OpTauStabilizationRotationLhsBc::bcRotPtr
protected

Definition at line 1346 of file EshelbianOperators.hpp.


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