#include <elemparticle.h>
Public Member Functions | |
void | direction_vector_1d (long eid, long i, long j, vector &s, vector &x, vector &u) |
void | direction_vector_2d (long eid, long i, long j, vector &s, vector &x, vector &y, vector &u, vector &v) |
void | direction_vector_3d (long eid, long i, long j, vector &s, vector &x, vector &y, vector &z, vector &u, vector &v, vector &w) |
elemparticle (long cnne, long cdim) | |
void | forces_1d (long ipp, vector &fij, vector &s) |
void | forces_2d (long ipp, vector &fij, vector &s) |
void | forces_3d (long ipp, vector &fij, vector &s) |
void | inter_forces_1d (long eid, vector &f) |
void | inter_forces_2d (long eid, vector &f) |
void | inter_forces_3d (long eid, vector &f) |
void | res_internal_forces (long eid, vector &ifor) |
void | res_stiffness_matrix (long eid, matrix &sm) |
void | stiffmat_1d_kii (long ipp, matrix &k, vector &s) |
void | stiffmat_1d_kij (long ipp, matrix &k, vector &s) |
void | stiffmat_2d_kii (long ipp, matrix &k, vector &s) |
void | stiffmat_2d_kij (long ipp, matrix &k, vector &s) |
void | stiffmat_3d_kii (long ipp, matrix &k, vector &s) |
void | stiffmat_3d_kij (long ipp, matrix &k, vector &s) |
void | stiffness_matrix_1d (long eid, matrix &sm) |
void | stiffness_matrix_2d (long eid, matrix &sm) |
void | stiffness_matrix_3d (long eid, matrix &sm) |
~elemparticle (void) | |
Public Attributes | |
long | dim |
dimension of problem | |
long | nb |
number of blocks | |
long | ndofe |
number of DOFs | |
long ** | nip |
array of numbers of integration points in blocks | |
long | nne |
number of nodes on one element | |
long | tnip |
total number of integration point |
class elemparticle serves for computations with particles it is intended for molecular dynamics functions from this class define particles which influence each other
JK, 19.6.2005
Definition at line 17 of file elemparticle.h.
elemparticle | ( | long | cnne, | |
long | cdim | |||
) |
~elemparticle | ( | void | ) |
Definition at line 51 of file elemparticle.cpp.
function computes direction vectors
eid | - element id | |
i,j | - particle ids | |
s | - direction vector | |
x | - vector of coordinates | |
u | - vector of displacements |
JK, 19.6.2005
Definition at line 77 of file elemparticle.cpp.
Referenced by inter_forces_1d(), and stiffness_matrix_1d().
void direction_vector_2d | ( | long | eid, | |
long | i, | |||
long | j, | |||
vector & | s, | |||
vector & | x, | |||
vector & | y, | |||
vector & | u, | |||
vector & | v | |||
) |
function computes direction vectors
eid | - element id | |
i,j | - particle ids | |
s | - direction vector | |
x,y | - vectors of coordinates | |
u,v | - vectors of displacements |
JK, 19.6.2005
Definition at line 93 of file elemparticle.cpp.
Referenced by inter_forces_2d(), stiffness_matrix_2d(), and stiffness_matrix_3d().
void direction_vector_3d | ( | long | eid, | |
long | i, | |||
long | j, | |||
vector & | s, | |||
vector & | x, | |||
vector & | y, | |||
vector & | z, | |||
vector & | u, | |||
vector & | v, | |||
vector & | w | |||
) |
function computes direction vectors
eid | - element id | |
i,j | - particle ids | |
s | - direction vector | |
x,y,z | - vectors of coordinates | |
u,v,w | - vectors of displacements |
JK, 19.6.2005
Definition at line 111 of file elemparticle.cpp.
Referenced by inter_forces_3d().
Definition at line 579 of file elemparticle.cpp.
References mechmat::give_first_derivative(), Mm, and normv().
Referenced by inter_forces_1d().
Definition at line 628 of file elemparticle.cpp.
References mechmat::give_first_derivative(), Mm, and normv().
Referenced by inter_forces_2d().
Definition at line 673 of file elemparticle.cpp.
References mechmat::give_first_derivative(), Mm, and normv().
Referenced by inter_forces_3d().
void inter_forces_1d | ( | long | eid, | |
vector & | f | |||
) |
Definition at line 592 of file elemparticle.cpp.
References vector::a, copyv(), direction_vector_1d(), mechtop::elements, fillv(), forces_1d(), mechtop::give_elemnodes(), mechtop::give_noddispl_1d(), mechtop::give_node_coord1d(), mechmat::ip, element::ipp, Mm, Mt, vector::n, nne, nodes, Out, and intpoints::stress.
Referenced by res_internal_forces().
void inter_forces_2d | ( | long | eid, | |
vector & | f | |||
) |
Definition at line 641 of file elemparticle.cpp.
References direction_vector_2d(), mechtop::elements, fillv(), forces_2d(), mechtop::give_elemnodes(), mechtop::give_noddispl_2d(), mechtop::give_node_coord2d(), element::ipp, Mt, nne, and nodes.
Referenced by res_internal_forces().
void inter_forces_3d | ( | long | eid, | |
vector & | f | |||
) |
Definition at line 687 of file elemparticle.cpp.
References direction_vector_3d(), mechtop::elements, fillv(), forces_3d(), mechtop::give_elemnodes(), mechtop::give_noddispl_3d(), mechtop::give_node_coord3d(), element::ipp, Mt, nne, and nodes.
Referenced by res_internal_forces().
void res_internal_forces | ( | long | eid, | |
vector & | ifor | |||
) |
Definition at line 719 of file elemparticle.cpp.
References dim, inter_forces_1d(), inter_forces_2d(), and inter_forces_3d().
Referenced by elem_internal_forces().
void res_stiffness_matrix | ( | long | eid, | |
matrix & | sm | |||
) |
Definition at line 557 of file elemparticle.cpp.
References dim, stiffness_matrix_1d(), stiffness_matrix_2d(), and stiffness_matrix_3d().
Referenced by stiffmat().
function computes stiffness in 1D
ipp | - integration point id | |
k | - stiffness matrix (diagonal submatrices) | |
s | - direction vector |
JK, 23.6.2005
Definition at line 129 of file elemparticle.cpp.
References f, g, mechmat::give_first_derivative(), mechmat::give_second_derivative(), Mm, and normv().
Referenced by stiffness_matrix_1d().
function computes stiffness in 1D
ipp | - integration point id | |
k | - stiffness matrix (offdiagonal submatrices) | |
s | - direction vector |
JK, 23.6.2005
Definition at line 155 of file elemparticle.cpp.
References f, g, mechmat::give_first_derivative(), mechmat::give_second_derivative(), Mm, and normv().
Referenced by stiffness_matrix_1d().
function computes stiffness in 2D
ipp | - integration point id | |
k | - stiffness matrix (diagonal submatrices) | |
s | - direction vector |
JK, 26.9.2005
Definition at line 269 of file elemparticle.cpp.
References f, g, mechmat::give_first_derivative(), mechmat::give_second_derivative(), Mm, and normv().
Referenced by stiffness_matrix_2d(), and stiffness_matrix_3d().
function computes stiffness in 2D
ipp | - integration point id | |
k | - stiffness matrix (offdiagonal submatrices) | |
s | - direction vector |
JK, 26.9.2005
Definition at line 299 of file elemparticle.cpp.
References f, g, mechmat::give_first_derivative(), mechmat::give_second_derivative(), Mm, and normv().
Referenced by stiffness_matrix_2d(), and stiffness_matrix_3d().
function computes diagonal stiffness matrix block in 3D
ipp | - integration point id | |
k | - stiffness matrix (diagonal submatrices) | |
s | - direction vector |
JK, 26.9.2005
Definition at line 423 of file elemparticle.cpp.
References f, g, mechmat::give_first_derivative(), mechmat::give_second_derivative(), Mm, and normv().
function computes off-diagonal stiffness matrix block in 3D
ipp | - integration point id | |
k | - stiffness matrix (offdiagonal submatrices) | |
s | - direction vector |
JK, 26.9.2005
Definition at line 459 of file elemparticle.cpp.
References f, g, mechmat::give_first_derivative(), mechmat::give_second_derivative(), Mm, and normv().
void stiffness_matrix_1d | ( | long | eid, | |
matrix & | sm | |||
) |
function computes stiffness matrix of cell of particles
eid | - element id | |
sm | - stiffness matrix |
JK, 23.6.2005
Definition at line 180 of file elemparticle.cpp.
References direction_vector_1d(), mechtop::elements, fillm(), mechtop::give_elemnodes(), mechtop::give_noddispl_1d(), mechtop::give_node_coord1d(), element::ipp, Mt, nne, nodes, Out, stiffmat_1d_kii(), and stiffmat_1d_kij().
Referenced by res_stiffness_matrix().
void stiffness_matrix_2d | ( | long | eid, | |
matrix & | sm | |||
) |
function computes stiffness matrix of cell of particles
eid | - element id | |
sm | - stiffness matrix |
JK, 26.9.2005
Definition at line 328 of file elemparticle.cpp.
References direction_vector_2d(), mechtop::elements, fillm(), mechtop::give_elemnodes(), mechtop::give_noddispl_2d(), mechtop::give_node_coord2d(), element::ipp, Mt, nne, nodes, Out, stiffmat_2d_kii(), and stiffmat_2d_kij().
Referenced by res_stiffness_matrix().
void stiffness_matrix_3d | ( | long | eid, | |
matrix & | sm | |||
) |
function computes stiffness matrix of cell of particles in 3D
eid | - element id | |
sm | - stiffness matrix |
JK, 26.9.2005
Definition at line 494 of file elemparticle.cpp.
References direction_vector_2d(), mechtop::elements, fillm(), mechtop::give_elemnodes(), mechtop::give_noddispl_2d(), mechtop::give_node_coord2d(), element::ipp, Mt, nne, nodes, Out, stiffmat_2d_kii(), and stiffmat_2d_kij().
Referenced by res_stiffness_matrix().
long dim |
dimension of problem
Definition at line 52 of file elemparticle.h.
Referenced by elemparticle(), res_internal_forces(), and res_stiffness_matrix().
long nb |
number of blocks
Definition at line 58 of file elemparticle.h.
Referenced by elemparticle(), mechtop::give_nb(), mechtop::give_nb_te(), and ~elemparticle().
long ndofe |
number of DOFs
Definition at line 56 of file elemparticle.h.
Referenced by elemparticle(), mechtop::give_ncomp(), mechtop::give_ndofe(), and mechtop::give_tncomp().
long** nip |
array of numbers of integration points in blocks
Definition at line 63 of file elemparticle.h.
Referenced by elemparticle(), mechtop::give_nip(), and ~elemparticle().
long nne |
number of nodes on one element
Definition at line 54 of file elemparticle.h.
Referenced by elemparticle(), mechtop::give_nne(), inter_forces_1d(), inter_forces_2d(), inter_forces_3d(), stiffness_matrix_1d(), stiffness_matrix_2d(), and stiffness_matrix_3d().
long tnip |
total number of integration point
Definition at line 60 of file elemparticle.h.
Referenced by elemparticle().