#ifndef FEMLITE_C_API_H #define FEMLITE_C_API_H #ifdef __cplusplus extern "C" { #endif int femlite_initialize(void); int femlite_finalize(void); int femlite_get_version(int *major, int *minor, int *patch); int femlite_get_last_error(int *code, char *message, int message_capacity); int femlite_read_inp(const char *filename); int femlite_build_model(void); int femlite_compute_lumped_mass(void); int femlite_estimate_stable_dt(double *dtcrit); int femlite_advance_explicit(double dt); int femlite_get_current_time(double *time, int *step); int femlite_get_model_size(int *num_nodes, int *num_elems, int *num_dof); int femlite_get_contact_summary(int *active_count, double *work_step, double *work_total, double *max_penetration, double *force_norm); int femlite_clear_sph_forces(void); int femlite_apply_sph_nodal_forces(int num_force_nodes, const int *node_ids, const double *forces); int femlite_get_boundary_facet_count(int *num_facets, int *max_face_nodes); int femlite_get_boundary_facets(int num_facets, int max_face_nodes, int *facet_id, int *elem_id, int *face_id, int *facet_nnode, int *facet_conn, double *x, double *vnod, double *normal, double *area); int femlite_apply_sph_facet_pressure(int num_facets, const int *facet_id, const double *pressure); int femlite_apply_sph_facet_tractions(int num_facets, const int *facet_id, const double *pressure, const double *shear); int femlite_get_node_kinematics(int node_id, double *displacement, double *velocity, double *acceleration); int femlite_write_restart(const char *filename); int femlite_read_restart(const char *filename); #ifdef __cplusplus } #endif #endif