Procedures

ProcedureLocationProcedure TypeDescription
artificial_viscosityspx_artifical_forceSubroutine

Artificial viscosity
人工粘度

Read more…
calcspx_nnps_pairsSubroutine

计算 dW/dX

Read more…
checkspx_memorySubroutine

检查是否粒子发生坍塌聚集

closespx_pif_h5partSubroutine

关闭

contact_controlspx_contact_controlFunction

每个相态仅支持一种粒子模拟, 边界和刚体是表面光滑的 (目前, 后续可以扩展为: 用户在配置文件中指定粒子类型交互规则)

continuous_density_summationspx_density_summationSubroutine

Continuous density summation
基于连续性方程的连续密度法,计算密度的增量以在时间积分算法中更新密度值

Read more…
create_backupspx_particleSubroutine

创建备份

cross_product_localspx_float_objectFunction

简单叉乘, 2 维叉乘

cross_product_local2spx_float_objectFunction

简单叉乘 2, @tocheck \( \omega \cdot r \)

cubic_spline_kernelspx_smoothed_kernel_functionSubroutine

Smoothed kernel function: Cubic spline
三次样条曲线 (monaghan 1985)
计算光滑函数 及其导数 的子例程

denormalized_density_summationspx_density_summationSubroutine

对所有实粒子粒子进行非正则化密度求和

destoryspx_loggerSubroutine

关闭

extendspx_nnps_pairsSubroutine

拓展内存空间,

Read more…
external_force_with_gravityspx_external_forceSubroutine

含重力、排斥力的外力求解

external_force_without_gravityspx_external_forceSubroutine

排斥力的外力求解 (无重力)

get_accspx_float_objectSubroutine

获取浮体受力,更新浮体的加速度

Read more…
get_distancespx_mathSubroutine

粒子之间的距离 (distance)

Read more…
get_sound_speedspx_eosSubroutine

Calculate sound speed
计算声速

initspx_density_summationSubroutine

初始化

initspx_smoothed_kernel_functionSubroutine

建立光滑核函数句柄

initspx_time_integrationSubroutine

初始化时间积分器

initspx_eosSubroutine

初始化

initspx_external_forceSubroutine

初始化

initspx_nnps_pairsSubroutine

初始化内存空间

initspx_loggerSubroutine

初始化

initspx_float_objectSubroutine

初始化浮体的质量、质心、转动惯量、速度、角速度

initspx_memorySubroutine

初始化

internal_force_with_viscspx_internal_forceSubroutine

Internal force function with viscosity
内力求解(含粘性力)

Read more…
internal_force_without_viscspx_internal_forceSubroutine

Internal force function without viscosity
内力求解

Read more…
ioc_printspx_configurationSubroutine

打印输入输出参数

ioc_readspx_configurationSubroutine

读取输入输出参数

normalized_density_summationspx_density_summationSubroutine

Normalized density summation
对所有粒子进行正则化密度求和法

Read more…
openspx_pif_h5partSubroutine

打开

p_ideal_gasspx_eosSubroutine

应用状态方程通过密度和能量计算理想气体压力和声速

p_solid_lespx_solid_EoSSubroutine

固体力学线性弹性模型

p_solid_taitspx_solid_EoSSubroutine

固体力学 Tait 方程

p_solid_vonMisesspx_solid_EoSSubroutine

固体力学 von Mises 模型

p_water_monaghanspx_eosSubroutine

Suitable for free surface flow
自由面流动

p_water_morrisspx_eosSubroutine

Not suitable for free surface flow
不适用于自由面流动

Read more…
p_water_taitspx_eosSubroutine

Suitable for free surface flow
Tait simplified equation of state, 适用于自由面流动
孙鹏楠, 2018, 博士毕业论文, equ(2-12)

parsespx_command_lineSubroutine

初始化和解析命令行参数

quintic_spline_kernelspx_smoothed_kernel_functionSubroutine

Smoothed kernel function: Quintic spline
四次样条曲线 (Liu 2010)

readspx_pif_h5partSubroutine

读取粒子二进制文件

readspx_pif_namelistSubroutine

读取 pif.nml 文件

reportspx_memorySubroutine

报告

restore_backupspx_particleSubroutine

从备份中恢复

runspx_moduleSubroutine

sph求解器

Read more…
runspx_time_integrationSubroutine

时间积分

Read more…
solverspx_dynamicsSubroutine

求解实弹性、刚性粒子单步的加速度(受力)

Read more…
spc_printspx_configurationSubroutine

打印sph参数

spc_readspx_configurationSubroutine

读取sph参数

tic_printspx_configurationSubroutine

打印时间积分参数

tic_readspx_configurationSubroutine

读取时间积分参数

updatespx_statSubroutine
update_particle_initspx_float_objectSubroutine

初始化leapfrog算法,基于加速度,推进速度半步长

Read more…
update_particle_stepspx_float_objectSubroutine

更新粒子, 速度比位移、加速度快半步长

writespx_pif_h5partSubroutine

写入