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

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

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

Public Types

using OP = typename FormsIntegrators< FaceUserDataOperator >::Assembly< A >::OpBrokenBase
 

Public Member Functions

 OpSpringLhsBc_dP (std::string row_field, boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< SpringBcVec > bc_spring_ptr)
 
MoFEMErrorCode iNtegrate (EntData &row_data, EntData &col_data)
 

Protected Attributes

boost::shared_ptr< SpringBcVec > bcSpringPtr
 

Detailed Description

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

Definition at line 627 of file EshelbianOperators.hpp.

Member Typedef Documentation

◆ OP

using OpSpringLhsBc_dP::OP = typename FormsIntegrators<FaceUserDataOperator>::Assembly<A>::OpBrokenBase

Definition at line 630 of file EshelbianOperators.hpp.

Constructor & Destructor Documentation

◆ OpSpringLhsBc_dP()

OpSpringLhsBc_dP::OpSpringLhsBc_dP ( std::string  row_field,
boost::shared_ptr< std::vector< BrokenBaseSideData > >  broken_base_side_data,
boost::shared_ptr< SpringBcVec >  bc_spring_ptr 
)
inline

Definition at line 633 of file EshelbianOperators.hpp.

637 : OP(row_field, broken_base_side_data, false, false, nullptr),
638 bcSpringPtr(bc_spring_ptr) {}
boost::shared_ptr< SpringBcVec > bcSpringPtr
typename FormsIntegrators< FaceUserDataOperator >::Assembly< A >::OpBrokenBase OP

Member Function Documentation

◆ iNtegrate()

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

Definition at line 2473 of file EshelbianOperators.cpp.

2474 {
2476
2477 int row_nb_dofs = row_data.getIndices().size();
2478 int col_nb_dofs = col_data.getIndices().size();
2479 auto &locMat = OP::locMat;
2480 locMat.resize(row_nb_dofs, col_nb_dofs, false);
2481 locMat.clear();
2482
2483 // get entity of face
2484 EntityHandle fe_ent = OP::getFEEntityHandle();
2485 // iterate over all boundary data
2486 for (auto &bc : (*bcSpringPtr)) {
2487 // check if finite element entity is part of boundary condition
2488 if (bc.faces.find(fe_ent) != bc.faces.end()) {
2489
2490 auto t_normal = OP::getFTensor1NormalsAtGaussPts();
2491 auto t_w = OP::getFTensor0IntegrationWeight();
2492
2496
2497 int nb_integration_pts = OP::getGaussPts().size2();
2498 int nb_base_functions = row_data.getN().size2();
2499 auto t_row_base = row_data.getFTensor0N();
2500
2502
2503 for (int gg = 0; gg != nb_integration_pts; ++gg) {
2504
2506 t_N(i) = t_normal(i);
2507 t_N.normalize();
2508
2509 int rr = 0;
2510 for (; rr != row_nb_dofs / SPACE_DIM; ++rr) {
2511 auto t_mat = getFTensor2FromArray<SPACE_DIM, SPACE_DIM, SPACE_DIM>(
2512 OP::locMat, SPACE_DIM * rr);
2513 auto t_col_base = col_data.getFTensor1N<3>(gg, 0);
2514 for (auto cc = 0; cc != col_nb_dofs / SPACE_DIM; ++cc) {
2515 t_mat(i, j) +=
2516 ((t_w * t_row_base) * (t_N(k) * t_col_base(k))) * 0.5 * t_kd(i, j);
2517 ++t_mat;
2518 ++t_col_base;
2519 }
2520 ++t_row_base;
2521 }
2522
2523 for (; rr != nb_base_functions; ++rr)
2524 ++t_row_base;
2525
2526 ++t_w;
2527 ++t_normal;
2528 }
2529
2530 locMat *= OP::getMeasure();
2531 }
2532 }
2534}
#define FTENSOR_INDEX(DIM, I)
constexpr int SPACE_DIM
Kronecker Delta class.
Tensor1< T, Tensor_Dim > normalize()
#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()
constexpr auto t_kd
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
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....
auto getFTensor1N(FieldApproximationBase base)
Get base functions for Hdiv/Hcurl spaces.
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.

Member Data Documentation

◆ bcSpringPtr

boost::shared_ptr<SpringBcVec> OpSpringLhsBc_dP::bcSpringPtr
protected

Definition at line 643 of file EshelbianOperators.hpp.


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