v0.16.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EshelbianPlasticity::dJ_duGammaImpl Struct Reference
Inheritance diagram for EshelbianPlasticity::dJ_duGammaImpl:
[legend]
Collaboration diagram for EshelbianPlasticity::dJ_duGammaImpl:
[legend]

Public Member Functions

MoFEMErrorCode integrate (EntData &data)
 
- Public Member Functions inherited from EshelbianPlasticity::OpAssembleTopologicalObjectiveDerivativeImplBase< OpAssembleFace >
 OpAssembleTopologicalObjectiveDerivativeImplBase (const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, boost::shared_ptr< TopologicalData > topo_ptr, boost::shared_ptr< double > J_ptr, SmartPetscObj< Vec > assemble_vec, Tag topo_tag)
 
MoFEMErrorCode assemble (int side, EntityType type, EntData &data) override
 
- Public Member Functions inherited from OpAssembleBasic< FaceUserDataOperator >
 OpAssembleBasic (const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type)
 
 OpAssembleBasic (std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type, const bool assemble_symmetry, ScaleOff scale_off=[]() { return 1;})
 
 OpAssembleBasic (const FieldSpace space)
 
virtual MoFEMErrorCode integrate (EntData &)
 
virtual MoFEMErrorCode integrate (int, EntityType, EntData &data)
 
virtual MoFEMErrorCode integrate (EntData &, EntData &)
 
virtual MoFEMErrorCode assemble (EntData &data)
 
virtual MoFEMErrorCode assemble (int, int, EntityType, EntityType, EntData &row_data, EntData &col_data)
 
MoFEMErrorCode doWork (int side, EntityType type, EntData &data)
 
MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data)
 

Additional Inherited Members

- Public Types inherited from EshelbianPlasticity::OpAssembleTopologicalObjectiveDerivativeImplBase< OpAssembleFace >
using OP = OpAssembleFace
 
- Public Types inherited from OpAssembleBasic< FaceUserDataOperator >
using ScaleOff = boost::function< double()>
 
- Public Attributes inherited from OpAssembleBasic< FaceUserDataOperator >
const bool assembleSymmetry
 
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
 data at integration pts
 
VectorDouble nF
 local right hand side vector
 
MatrixDouble K
 local tangent matrix
 
MatrixDouble transposeK
 
ScaleOff scaleOff
 
- Protected Attributes inherited from EshelbianPlasticity::OpAssembleTopologicalObjectiveDerivativeImplBase< OpAssembleFace >
double locJ
 
boost::shared_ptr< double > JPtr
 
SmartPetscObj< Vec > assembleVec
 
Tag topoTag
 
boost::shared_ptr< TopologicalData > topoData
 

Detailed Description

Definition at line 163 of file EshelbianTopologicalDerivativeOperators.cpp.

Member Function Documentation

◆ integrate()

MoFEMErrorCode EshelbianPlasticity::dJ_duGammaImpl::integrate ( EntData &  data)

Definition at line 940 of file EshelbianTopologicalDerivativeOperators.cpp.

940 {
942
943#ifndef NDEBUG
944 if (!topoData)
945 SETERRQ(PETSC_COMM_SELF, MOFEM_DATA_INCONSISTENCY,
946 "Topological data pointer is null");
947#endif // NDEBUG
948
949 const int nb_dofs = data.getIndices().size();
950 if (!nb_dofs)
952
953 const int nb_integration_pts = data.getN().size1();
954
955 auto t_w = getFTensor0IntegrationWeight();
956 const int nb_base_functions = data.getN().size2();
957 auto t_row_base_fun = data.getFTensor0N();
958 auto t_obj_du_gamma =
959 topoData->getFTensorObjDDisplacement(nb_integration_pts);
960
962
963 auto get_ftensor1 = [](auto &v) {
965 &v[0], &v[1], &v[2]);
966 };
967
968 for (int gg = 0; gg != nb_integration_pts; ++gg) {
969 const double a = t_w * getMeasure();
970 auto t_nf = get_ftensor1(nF);
971
972 int bb = 0;
973 for (; bb != nb_dofs / SPACE_DIM; ++bb) {
974 t_nf(i) += a * t_row_base_fun * t_obj_du_gamma(i);
975 ++t_nf;
976 ++t_row_base_fun;
977 }
978 for (; bb != nb_base_functions; ++bb)
979 ++t_row_base_fun;
980
981 ++t_w;
982 ++t_obj_du_gamma;
983 }
984
986}
boost::shared_ptr< DataAtIntegrationPts > data
#define FTENSOR_INDEX(DIM, I)
constexpr double a
constexpr int SPACE_DIM
#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 ...
@ MOFEM_DATA_INCONSISTENCY
Definition definitions.h:31
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
const double v
phase velocity of light in medium (cm/ns)
VectorDouble nF
local right hand side vector

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