NNPS 粒子对
(20230722) time used with build: 18.2%, time used with query: 52.7%
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(nnps_pairs_type), | public | :: | pairs |
交互粒子对 |
|||
| type(nnps_grid2d), | public | :: | nnps_grid |
NNPS 网格数据结构 |
交互粒子对
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | len |
粒子对数量 |
|||
| integer, | private | :: | cap |
向量容量 |
|||
| integer, | public, | pointer | :: | items(:) |
粒子对的2个粒子序号的数组 [(i, j), ...] |
||
| real(kind=rk), | public, | pointer | :: | rdx(:) |
r, dx(:) |
||
| real(kind=rk), | public, | allocatable | :: | wdwdx(:,:) |
w, dwdx(:) |
||
| integer, | public, | allocatable | :: | contact_type(:) |
接触控制类型 |
| procedure , public , :: calc Subroutine | |
| procedure , public , :: init Subroutine | |
| procedure , private :: extend Subroutine |
初始化内存空间
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nnps_pairs_type), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | n |
粒子对容量 |
拓展内存空间,
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nnps_pairs_type), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | len |
粒子对容量 |
计算 dW/dX
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nnps_pairs_type), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | itype(:) |
粒子类型 |