#include "users_modules/mofem_um_homogenisation/src/BCs_RVELagrange_Periodic.hpp"
|
| PetscErrorCode | shapeMat (int rank, unsigned int gg, DataForcesAndSurcesCore::EntData &col_data, MatrixDouble &N_mat, int div=1) |
| |
| PetscErrorCode | shapeMatNew (int rank, unsigned int gg, MatrixDouble &RowN, MatrixDouble &N_mat, int div=1) |
| |
◆ shapeMat()
| PetscErrorCode BCs_RVELagrange_Periodic::CommonFunctionsPeriodic::shapeMat |
( |
int |
rank, |
|
|
unsigned int |
gg, |
|
|
DataForcesAndSurcesCore::EntData & |
col_data, |
|
|
MatrixDouble & |
N_mat, |
|
|
int |
div = 1 |
|
) |
| |
|
inline |
Definition at line 91 of file BCs_RVELagrange_Periodic.hpp.
93 {
94 PetscFunctionBegin;
95
96
97 int shape_size=col_data.getN().size2()/div;
98
99
100 N_mat.resize(rank,shape_size*rank); N_mat.clear();
101 int gg1=0; int kk=0;
102 for(int ii=0; ii<shape_size; ii++){
103 for(int jj=0; jj<rank; jj++){
104
105 N_mat(jj,kk)=col_data.getN()(gg,gg1); kk++;
106 }
107 gg1++;
108 }
109 PetscFunctionReturn(0);
110 }
◆ shapeMatNew()
| PetscErrorCode BCs_RVELagrange_Periodic::CommonFunctionsPeriodic::shapeMatNew |
( |
int |
rank, |
|
|
unsigned int |
gg, |
|
|
MatrixDouble & |
RowN, |
|
|
MatrixDouble & |
N_mat, |
|
|
int |
div = 1 |
|
) |
| |
|
inline |
Definition at line 114 of file BCs_RVELagrange_Periodic.hpp.
116 {
117 PetscFunctionBegin;
118
119
120 int shape_size=RowN.size2()/div;
121
122
123 N_mat.resize(rank,shape_size*rank); N_mat.clear();
124 int gg1=0; int kk=0;
125 for(int ii=0; ii<shape_size; ii++){
126 for(int jj=0; jj<rank; jj++){
127
128 N_mat(jj,kk)=RowN(gg,gg1); kk++;
129 }
130 gg1++;
131 }
132 PetscFunctionReturn(0);
133 }
The documentation for this struct was generated from the following file: