v0.15.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp > Struct Template Reference

#include "users_modules/adolc-plasticity/src/ADOLCPlasticity.hpp"

Inheritance diagram for ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >:
[legend]
Collaboration diagram for ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >:
[legend]

Public Member Functions

 OpRhsImpl (std::string field_name, boost::shared_ptr< CommonData > common_data_ptr)
 
MoFEMErrorCode iNtegrate (EntitiesFieldData::EntData &data)
 [OpRhsImpl integrate]
 

Private Attributes

boost::shared_ptr< CommonDatacommonDataPtr
 
MatrixDouble baseStorage
 Store tensorial base functions.
 

Detailed Description

template<int DIM, typename AssemblyDomainEleOp>
struct ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >

Definition at line 556 of file ADOLCPlasticity.hpp.

Constructor & Destructor Documentation

◆ OpRhsImpl()

template<int DIM, typename AssemblyDomainEleOp >
ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >::OpRhsImpl ( std::string  field_name,
boost::shared_ptr< CommonData common_data_ptr 
)

Definition at line 580 of file ADOLCPlasticity.hpp.

582 : AssemblyDomainEleOp(field_name, field_name, AssemblyDomainEleOp::OPROW),
583 commonDataPtr(common_data_ptr) {}
constexpr auto field_name
FormsIntegrators< DomainEleOp >::Assembly< A >::OpBase AssemblyDomainEleOp

Member Function Documentation

◆ iNtegrate()

template<int DIM, typename AssemblyDomainEleOp >
MoFEMErrorCode ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >::iNtegrate ( EntitiesFieldData::EntData &  data)

[OpRhsImpl integrate]

Definition at line 587 of file ADOLCPlasticity.hpp.

588 {
590 using OP = AssemblyDomainEleOp;
591 FTensor::Index<'i', 3> i;
592 FTensor::Index<'j', 3> j;
593 double *w_ptr = &(OP::getGaussPts()(DIM, 0));
594 // Calulate tensorial base functions. Apply bBar method when needed
596 data, baseStorage, commonDataPtr->bBar, OP::getGaussPts().size2(), w_ptr,
598
599 auto t_stress = getFTensor2SymmetricFromMat<3>(commonDataPtr->stressMatrix);
600
601 const auto vol = OP::getMeasure();
602 auto t_w = OP::getFTensor0IntegrationWeight();
603 for (int gg = 0; gg != OP::nbIntegrationPts; gg++) {
604 double alpha = vol * t_w;
605 for (int bb = 0; bb != OP::nbRows; ++bb) {
606 OP::locF[bb] += alpha * (t_stress(i, j) * t_diff(i, j));
607 ++t_diff;
608 }
609 ++t_w;
610 ++t_stress;
611 }
613}
#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
static FTensor::Tensor2_symmetric< FTensor::PackPtr< double *, 6 >, 3 > getFTensor2SymmetricDiffBase(DataForcesAndSourcesCore::EntData &data, MatrixDouble &storage, const bool b_bar, const int nb_integration_pts, double *w_ptr, FTensor::Number< 2 >)
MatrixDouble baseStorage
Store tensorial base functions.

Member Data Documentation

◆ baseStorage

template<int DIM, typename AssemblyDomainEleOp >
MatrixDouble ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >::baseStorage
private

Store tensorial base functions.

Definition at line 563 of file ADOLCPlasticity.hpp.

◆ commonDataPtr

template<int DIM, typename AssemblyDomainEleOp >
boost::shared_ptr<CommonData> ADOLCPlasticity::OpRhsImpl< DIM, GAUSS, AssemblyDomainEleOp >::commonDataPtr
private

Definition at line 562 of file ADOLCPlasticity.hpp.


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