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

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

Inheritance diagram for OpTauStabilizationDispLhsBc:
[legend]
Collaboration diagram for OpTauStabilizationDispLhsBc:
[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

 OpTauStabilizationDispLhsBc (boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< BcDispVec > &bc_disp_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< BcDispVec > bcDispPtr
 
- 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 1320 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

Definition at line 1322 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpTauStabilizationDispLhsBc()

OpTauStabilizationDispLhsBc::OpTauStabilizationDispLhsBc ( boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
boost::shared_ptr< BcDispVec > &  bc_disp_ptr,
ScalarFun  tau_coeff,
boost::shared_ptr< Range ents_ptr = nullptr 
)
inline

Definition at line 1324 of file EshelbianOperators.hpp.

1328 : OP(broken_base_side_data, tau_coeff, ents_ptr), bcDispPtr(bc_disp_ptr) {
1329 }
boost::shared_ptr< BcDispVec > bcDispPtr

Member Function Documentation

◆ iNtegrate()

MoFEMErrorCode OpTauStabilizationDispLhsBc::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 1621 of file EshelbianOperators.cpp.

1622 {
1624 // get entity of face
1625 EntityHandle fe_ent = OP::getFEEntityHandle();
1626 // iterate over all boundary data
1627 for (auto &bc : (*bcDispPtr)) {
1628 // check if finite element entity is part of boundary condition
1629 if (bc.faces.find(fe_ent) != bc.faces.end()) {
1630 int nb_dofs = row_data.getIndices().size();
1631
1632 int nb_integration_pts = OP::getGaussPts().size2();
1633 auto t_w = OP::getFTensor0IntegrationWeight();
1634 int nb_base_functions = row_data.getN().size2();
1635 auto t_row_base_fun = row_data.getFTensor0N();
1636
1639
1641 for (int ii = 0; ii != SPACE_DIM; ++ii)
1642 t_bc_mask(ii) = bc.flags[ii] ? 1. : 0.;
1643
1644 auto get_t_vec = [&](const int rr) {
1645 std::array<double *, SPACE_DIM> ptrs;
1646 for (auto i = 0; i != SPACE_DIM; ++i)
1647 ptrs[i] = &OP::locMat(rr + i, i);
1649 SPACE_DIM>(ptrs);
1650 };
1651
1652 auto area = getMeasure();
1653 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
1654 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1655 auto tau_scale =
1656 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
1657 int rr = 0;
1658 for (; rr != nb_dofs / SPACE_DIM; ++rr) {
1659 auto t_mat = get_t_vec(SPACE_DIM * rr);
1660 auto t_col_base_fun = col_data.getFTensor0N(gg, 0);
1661 for (int cc = 0; cc != nb_dofs / SPACE_DIM; ++cc) {
1662 t_mat(i) +=
1663 tau_scale * (t_row_base_fun * t_col_base_fun) * t_bc_mask(i);
1664 ++t_col_base_fun;
1665 ++t_mat;
1666 }
1667 ++t_row_base_fun;
1668 }
1669 for (; rr != nb_base_functions; ++rr)
1670 ++t_row_base_fun;
1671
1672 ++t_w;
1673 ++t_coords;
1674 }
1675 }
1676 }
1677
1679}
#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

◆ bcDispPtr

boost::shared_ptr<BcDispVec> OpTauStabilizationDispLhsBc::bcDispPtr
protected

Definition at line 1333 of file EshelbianOperators.hpp.


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