PeriDEM
0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
bMatrix.h
Go to the documentation of this file.
1
/*
2
* -------------------------------------------
3
* Copyright (c) 2021 - 2026 Prashant K. Jha
4
* -------------------------------------------
5
* PeriDEM https://github.com/prashjha/PeriDEM
6
*
7
* Distributed under the Boost Software License, Version 1.0. (See accompanying
8
* file LICENSE)
9
*/
10
11
#ifndef FE_BMATRIX_H
12
#define FE_BMATRIX_H
13
14
#include <vector>
15
16
namespace
fe
{
17
25
class
B
{
26
public
:
27
B
(
const
std::vector<std::vector<double>> &dNdx,
int
dim
);
28
29
int
nStrain
()
const
{
return
d_nStrain
; }
30
int
nDof
()
const
{
return
d_nDof
; }
31
int
dim
()
const
{
return
d_dim
; }
32
33
double
operator()
(
int
i,
int
j)
const
{
34
return
d_data
[i *
d_nDof
+ j];
35
}
36
37
private
:
38
int
d_dim
;
39
int
d_nStrain
;
40
int
d_nDof
;
41
std::vector<double>
d_data
;
42
};
43
44
}
// namespace fe
45
46
#endif
// FE_BMATRIX_H
fe::B
Definition
bMatrix.h:25
fe::B::d_nDof
int d_nDof
Definition
bMatrix.h:40
fe::B::operator()
double operator()(int i, int j) const
Definition
bMatrix.h:33
fe::B::dim
int dim() const
Definition
bMatrix.h:31
fe::B::d_nStrain
int d_nStrain
Definition
bMatrix.h:39
fe::B::nDof
int nDof() const
Definition
bMatrix.h:30
fe::B::d_dim
int d_dim
Definition
bMatrix.h:38
fe::B::nStrain
int nStrain() const
Definition
bMatrix.h:29
fe::B::d_data
std::vector< double > d_data
Definition
bMatrix.h:41
fe
Definition
baseElem.h:17
src
fe
bMatrix.h
Generated by
1.9.8