External forces
外力:1. 重力;2. 边界排斥力。
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(external_force_type), | public | :: | exf_obj | ||||
| integer, | private, | parameter | :: | p1 | = | 12 |
p1, p2 are used to calculate the boundary repulsion |
| integer, | private, | parameter | :: | p2 | = | 4 |
p1, p2 are used to calculate the boundary repulsion |
Solve the external force
外力求解,涉及重力和边界力
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(external_force_type), | intent(inout) | :: | self | |||
| type(particle_type), | intent(in) | :: | particle |
particle |
||
| type(nnps_pairs_type), | intent(in) | :: | pairs |
Pairs |
||
| real(kind=rk), | intent(inout) | :: | acc(:,:) |
Acceleration |
||
| integer, | intent(in) | :: | n |
实粒子数, nreal |
外力求解
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| procedure(external_force_fcn), | public, | pointer | :: | run | |||
| real(kind=rk), | public | :: | r0 |
排斥力半径 |
|||
| real(kind=rk), | public | :: | dd |
速度最大值的平方量级 |
| procedure , public , :: init Subroutine |
含重力、排斥力的外力求解
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(external_force_type), | intent(inout) | :: | self | |||
| type(particle_type), | intent(in) | :: | particle |
区域 |
||
| type(nnps_pairs_type), | intent(in) | :: | pairs |
粒子对 |
||
| real(kind=rk), | intent(inout) | :: | acc(:,:) |
加速度 |
||
| integer, | intent(in) | :: | n |
实粒子数 |
排斥力的外力求解 (无重力)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(external_force_type), | intent(inout) | :: | self | |||
| type(particle_type), | intent(in) | :: | particle |
区域 |
||
| type(nnps_pairs_type), | intent(in) | :: | pairs |
粒子对 |
||
| real(kind=rk), | intent(inout) | :: | acc(:,:) |
加速度 |
||
| integer, | intent(in) | :: | n |
实粒子数 |