v0.15.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
BCs_RVELagrange_Disp::CommonFunctions Struct Reference

#include "users_modules/mofem_um_homogenisation/src/BCs_RVELagrange_Disp.hpp"

Public Member Functions

PetscErrorCode shapeMat (int rank, unsigned int gg, DataForcesAndSurcesCore::EntData &col_data, MatrixDouble &N_mat)
 

Detailed Description

Definition at line 398 of file BCs_RVELagrange_Disp.hpp.

Member Function Documentation

◆ shapeMat()

PetscErrorCode BCs_RVELagrange_Disp::CommonFunctions::shapeMat ( int  rank,
unsigned int  gg,
DataForcesAndSurcesCore::EntData &  col_data,
MatrixDouble &  N_mat 
)
inline

Definition at line 399 of file BCs_RVELagrange_Disp.hpp.

399 {
400 PetscFunctionBegin;
401 int shape_size=col_data.getN().size2();
402 // cout<<"shape_size = "<<shape_size<<endl;
403 // cout<<"rank = "<<rank<<endl;
404 N_mat.resize(rank,shape_size*rank); N_mat.clear();
405 int gg1=0; int kk=0;
406 for(int ii=0; ii<shape_size; ii++){ //number of shape funcitons
407 for(int jj=0; jj<rank; jj++){
408 // cout<<"ii "<<ii<<endl;
409 N_mat(jj,kk)=col_data.getN()(gg,gg1); kk++;
410 }
411 gg1++;
412 }
413 PetscFunctionReturn(0);
414 }

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