Release SPHLite 0.8.2
This commit is contained in:
@@ -66,13 +66,15 @@ int sphlite_get_current_time(double *time, int *step);
|
||||
int sphlite_set_output_directory(const char *path);
|
||||
int sphlite_set_output_interval(int interval);
|
||||
int sphlite_write_output(int step, double time);
|
||||
int sphlite_write_csv(const char *filename);
|
||||
int sphlite_write_vtu(const char *filename);
|
||||
int sphlite_write_restart(const char *filename);
|
||||
int sphlite_read_restart(const char *filename);
|
||||
```
|
||||
|
||||
restart 应保存完整模块级状态,包括粒子通用状态、Velocity-Verlet 所需速度/加速度/半步速度、水相、气相、炸药、Solid、Shell、诊断和耦合历史状态。
|
||||
|
||||
输出接口只控制输出行为,不应改变求解物理状态。
|
||||
输出接口只控制输出行为,不应改变求解物理状态。`sphlite_write_output` 当前写出 CSV、summary CSV、VTU 和 PVD;`sphlite_write_csv` 与 `sphlite_write_vtu` 可作为直接格式输出入口。
|
||||
|
||||
## 5. Phase 和 Status 常量
|
||||
|
||||
@@ -163,6 +165,71 @@ SPHLite 不直接依赖 FEMLite,也不依赖外部 CouplingModule。C ABI 中
|
||||
|
||||
CouplingInterface 使用中立命名,必须支持每步交换。
|
||||
|
||||
0.8.1/0.8.2 当前稳定 C ABI 清单:
|
||||
|
||||
```c
|
||||
int sphlite_coupling_get_region_count(int *count);
|
||||
int sphlite_coupling_get_region_info(int region_index, char *name,
|
||||
int name_capacity, int *region_type,
|
||||
int *export_mode, int *import_mode,
|
||||
int *enabled, int *particle_count,
|
||||
int *facet_count);
|
||||
int sphlite_coupling_get_region_modes(int region_index, int *load_mode,
|
||||
int *distribution_mode,
|
||||
int *contact_state_mode);
|
||||
int sphlite_coupling_export_particles(int region_index, int capacity,
|
||||
int *count, int *ext_ids,
|
||||
int *internal_indices, int *phases,
|
||||
int *statuses, int *materials,
|
||||
int *sections, double *scalar_values,
|
||||
double *vector_values);
|
||||
int sphlite_coupling_export_facets(int region_index, int capacity,
|
||||
int *count, int *facet_ids,
|
||||
int *particle_ids, int *materials,
|
||||
int *sections, double *vector_values,
|
||||
double *area_values);
|
||||
int sphlite_coupling_apply_particle_forces(int region_index,
|
||||
int force_count,
|
||||
const int *export_indices,
|
||||
const double *forces);
|
||||
int sphlite_coupling_apply_facet_pressures(int region_index, int load_count,
|
||||
const int *facet_ids,
|
||||
const double *pressures,
|
||||
int distribution_mode,
|
||||
int coupling_step);
|
||||
int sphlite_coupling_apply_facet_tractions(int region_index, int load_count,
|
||||
const int *facet_ids,
|
||||
const double *tractions,
|
||||
int distribution_mode,
|
||||
int coupling_step);
|
||||
int sphlite_coupling_apply_facet_resultants(int region_index, int load_count,
|
||||
const int *facet_ids,
|
||||
const double *resultants,
|
||||
int distribution_mode,
|
||||
int coupling_step);
|
||||
int sphlite_coupling_apply_contact_state(int region_index, int contact_count,
|
||||
const int *facet_ids,
|
||||
const double *normals,
|
||||
const double *gaps,
|
||||
const double *penetrations,
|
||||
const double *contact_pressures,
|
||||
int coupling_step);
|
||||
int sphlite_coupling_apply_motion_boundary(int region_index, int export_index,
|
||||
int target_kind, int mode,
|
||||
const double *target);
|
||||
int sphlite_coupling_get_load_balance(double *input_force,
|
||||
double *distributed_force,
|
||||
double *force_error,
|
||||
double *input_moment,
|
||||
double *distributed_moment,
|
||||
double *moment_error);
|
||||
int sphlite_coupling_get_contact_diagnostics(int *counts, int count_capacity,
|
||||
double *values,
|
||||
int value_capacity);
|
||||
int sphlite_coupling_get_diagnostics(double *values, int value_capacity,
|
||||
int *counts, int count_capacity);
|
||||
```
|
||||
|
||||
建议 C ABI:
|
||||
|
||||
```c
|
||||
|
||||
Reference in New Issue
Block a user