Add coupling output restart and APIs
This commit is contained in:
@@ -35,6 +35,29 @@ extern "C" {
|
||||
#define SPHLITE_SOLID_DIAGNOSTIC_VALUE_COUNT 3
|
||||
#define SPHLITE_SOLID_REFERENCE_VALUE_COUNT 1
|
||||
|
||||
#define SPHLITE_COUPLING_REGION_CONTACT 1
|
||||
#define SPHLITE_COUPLING_REGION_CONTINUUM 2
|
||||
|
||||
#define SPHLITE_COUPLING_EXPORT_PARTICLE 1
|
||||
#define SPHLITE_COUPLING_EXPORT_FACET 2
|
||||
#define SPHLITE_COUPLING_EXPORT_BOTH 3
|
||||
|
||||
#define SPHLITE_COUPLING_IMPORT_FORCE 1
|
||||
#define SPHLITE_COUPLING_IMPORT_FACET_LOAD 2
|
||||
#define SPHLITE_COUPLING_IMPORT_MOTION 3
|
||||
|
||||
#define SPHLITE_COUPLING_MOTION_NONE 0
|
||||
#define SPHLITE_COUPLING_MOTION_VELOCITY 1
|
||||
#define SPHLITE_COUPLING_MOTION_POSITION 2
|
||||
#define SPHLITE_COUPLING_MOTION_DIRECT 1
|
||||
#define SPHLITE_COUPLING_MOTION_PENALTY 2
|
||||
|
||||
#define SPHLITE_COUPLING_PARTICLE_SCALAR_COUNT 7
|
||||
#define SPHLITE_COUPLING_PARTICLE_VECTOR_COUNT 3
|
||||
#define SPHLITE_COUPLING_FACET_VECTOR_COUNT 3
|
||||
#define SPHLITE_COUPLING_DIAGNOSTIC_VALUE_COUNT 22
|
||||
#define SPHLITE_COUPLING_DIAGNOSTIC_COUNT_COUNT 5
|
||||
|
||||
SPHLITE_API int sphlite_initialize(void);
|
||||
SPHLITE_API int sphlite_finalize(void);
|
||||
SPHLITE_API int sphlite_get_version(int *major, int *minor, int *patch);
|
||||
@@ -120,6 +143,54 @@ SPHLITE_API int sphlite_get_solid_reference_quality(int *reference_neighbor_min,
|
||||
int *correction_status,
|
||||
double *values,
|
||||
int value_capacity);
|
||||
SPHLITE_API int sphlite_coupling_get_region_count(int *count);
|
||||
SPHLITE_API 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);
|
||||
SPHLITE_API 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);
|
||||
SPHLITE_API 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);
|
||||
SPHLITE_API int sphlite_coupling_apply_particle_forces(int region_index,
|
||||
int force_count,
|
||||
const int *export_indices,
|
||||
const double *forces);
|
||||
SPHLITE_API int sphlite_coupling_apply_facet_loads(int region_index,
|
||||
int load_count,
|
||||
const int *facet_ids,
|
||||
const double *loads);
|
||||
SPHLITE_API int sphlite_coupling_apply_motion_boundary(int region_index,
|
||||
int export_index,
|
||||
int target_kind,
|
||||
int mode,
|
||||
const double *target);
|
||||
SPHLITE_API int sphlite_coupling_clear_imports(void);
|
||||
SPHLITE_API int sphlite_coupling_get_diagnostics(double *values,
|
||||
int value_capacity,
|
||||
int *counts,
|
||||
int count_capacity);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user