Prepare SPHLite 0.2.0 development baseline
This commit is contained in:
@@ -25,6 +25,11 @@ extern "C" {
|
||||
#define SPHLITE_PHASE_SOLID_FAILED 8
|
||||
#define SPHLITE_PHASE_SHELL_FAILED 9
|
||||
|
||||
#define SPHLITE_STATUS_ACTIVE 0
|
||||
#define SPHLITE_STATUS_INACTIVE 1
|
||||
#define SPHLITE_STATUS_FAILED 2
|
||||
#define SPHLITE_STATUS_RESERVED 3
|
||||
|
||||
SPHLITE_API int sphlite_initialize(void);
|
||||
SPHLITE_API int sphlite_finalize(void);
|
||||
SPHLITE_API int sphlite_get_version(int *major, int *minor, int *patch);
|
||||
@@ -36,9 +41,28 @@ SPHLITE_API int sphlite_advance_explicit(double dt);
|
||||
SPHLITE_API int sphlite_run_explicit(void);
|
||||
SPHLITE_API int sphlite_get_current_time(double *time, int *step);
|
||||
SPHLITE_API int sphlite_get_particle_count(int *count);
|
||||
SPHLITE_API int sphlite_get_input_warning_count(int *count);
|
||||
SPHLITE_API int sphlite_set_output_directory(const char *path);
|
||||
SPHLITE_API int sphlite_set_output_interval(int interval);
|
||||
SPHLITE_API int sphlite_write_output(int step, double time);
|
||||
SPHLITE_API int sphlite_write_csv(const char *filename);
|
||||
SPHLITE_API int sphlite_write_restart(const char *filename);
|
||||
SPHLITE_API int sphlite_read_restart(const char *filename);
|
||||
SPHLITE_API int sphlite_get_particle_state(int max_particles,
|
||||
int *particle_id_ext,
|
||||
int *phase,
|
||||
int *status,
|
||||
int *material_id,
|
||||
int *section_id,
|
||||
double *x,
|
||||
double *v,
|
||||
double *a,
|
||||
double *rho,
|
||||
double *pressure,
|
||||
double *internal_energy,
|
||||
double *temperature,
|
||||
double *h,
|
||||
int *count);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user