\biref operator to calculate the LHS for the RVE bounary conditions
More...
#include <users_modules/homogenisation/src/BCs_RVELagrange_Trac_Rigid_Trans.hpp>
\biref operator to calculate the LHS for the RVE bounary conditions
Definition at line 24 of file BCs_RVELagrange_Trac_Rigid_Trans.hpp.
◆ OpRVEBCsLhs()
BCs_RVELagrange_Trac_Rigid_Trans::OpRVEBCsLhs::OpRVEBCsLhs |
( |
const string |
field_name, |
|
|
const string |
lagrang_field_name, |
|
|
Mat |
aij, |
|
|
RVEBC_Data & |
data |
|
) |
| |
|
inline |
◆ doWork()
Definition at line 40 of file BCs_RVELagrange_Trac_Rigid_Trans.hpp.
49 if(row_data.getIndices().size()==0) PetscFunctionReturn(0);
50 if(col_data.getIndices().size()==0) PetscFunctionReturn(0);
51 if(col_type==MBVERTEX) {
54 getNumeredEntFiniteElementPtr()->getRowDofsByPetscGlobalDofIdx(
55 col_data.getIndices()[0]);
56 const FENumeredDofEntity *dof_ptr;
57 if (
auto ptr = weak_ptr_dof.lock())
62 int rank = dof_ptr->getNbOfCoeffs();
71 for(
int nn=0; nn<3; nn++){
83 SETERRQ(PETSC_COMM_SELF,1,
"not implemented");
87 int nb_rows=row_data.getIndices().size();
88 int nb_cols=col_data.getIndices().size();
90 Aij,nb_rows,&row_data.getIndices()[0],nb_cols,&col_data.getIndices()[0],&
Mat_face(0,0),ADD_VALUES
96 Aij,nb_cols,&col_data.getIndices()[0],nb_rows,&row_data.getIndices()[0],&
Mat_face_Tran(0,0),ADD_VALUES
100 }
catch (
const std::exception& ex) {
102 ss <<
"throw in method: " << ex.what() << endl;
103 SETERRQ(PETSC_COMM_SELF,1,ss.str().c_str());
105 PetscFunctionReturn(0);
◆ Aij
Mat BCs_RVELagrange_Trac_Rigid_Trans::OpRVEBCsLhs::Aij |
◆ dAta
RVEBC_Data& BCs_RVELagrange_Trac_Rigid_Trans::OpRVEBCsLhs::dAta |
◆ Mat_face
MatrixDouble BCs_RVELagrange_Trac_Rigid_Trans::OpRVEBCsLhs::Mat_face |
◆ Mat_face_Tran
MatrixDouble BCs_RVELagrange_Trac_Rigid_Trans::OpRVEBCsLhs::Mat_face_Tran |
The documentation for this struct was generated from the following file:
MoFEMErrorCode MatSetValues(Mat M, const EntitiesFieldData::EntData &row_data, const EntitiesFieldData::EntData &col_data, const double *ptr, InsertMode iora)
Assemble PETSc matrix.