45 MAP_EXTERNCALL
double* map_plot_x_array(
MAP_OtherStateType_t* other_type,
int i,
int num_points,
char* map_msg, MAP_ERROR_CODE* ierr);
46 MAP_EXTERNCALL
double* map_plot_y_array(
MAP_OtherStateType_t* other_type,
int i,
int num_points,
char* map_msg, MAP_ERROR_CODE* ierr);
47 MAP_EXTERNCALL
double* map_plot_z_array(
MAP_OtherStateType_t* other_type,
int i,
int num_points,
char* map_msg, MAP_ERROR_CODE* ierr);
48 MAP_EXTERNCALL
void map_plot_array_free(
double* array) ;
49 MAP_EXTERNCALL
double map_residual_function_length(
MAP_OtherStateType_t* other_type,
int i,
char* map_msg, MAP_ERROR_CODE* ierr);
50 MAP_EXTERNCALL
double map_residual_function_height(
MAP_OtherStateType_t* other_type,
int i,
char* map_msg, MAP_ERROR_CODE* ierr);
51 MAP_EXTERNCALL
double map_jacobian_dxdh(
MAP_OtherStateType_t* other_type,
int i,
char* map_msg, MAP_ERROR_CODE* ierr);
52 MAP_EXTERNCALL
double map_jacobian_dxdv(
MAP_OtherStateType_t* other_type,
int i,
char* map_msg, MAP_ERROR_CODE* ierr);
53 MAP_EXTERNCALL
double map_jacobian_dzdh(
MAP_OtherStateType_t* other_type,
int i,
char* map_msg, MAP_ERROR_CODE* ierr);
54 MAP_EXTERNCALL
double map_jacobian_dzdv(
MAP_OtherStateType_t* other_type,
int i,
char* map_msg, MAP_ERROR_CODE* ierr);
55 MAP_EXTERNCALL
int map_size_lines(
MAP_OtherStateType_t* other_type, MAP_ERROR_CODE* ierr,
char* map_msg);
244 MAP_ERROR_CODE* ierr,
279 MAP_ERROR_CODE* ierr,
306 MAP_ERROR_CODE* ierr,
330 MAP_ERROR_CODE* ierr,
MAP_EXTERNCALL void map_free_linearize_matrix(double **array)
lib.py_free_linearize_matrix.argtypes = [POINTER(POINTER(c_double))]
Definition: mapapi.c:560
MAP_EXTERNCALL MAP_ContinuousStateType_t * map_create_continuous_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_ContinuousStateType_t.
Definition: mapapi.c:1353
Definition: MAP_Types.h:50
Definition: MAP_Types.h:99
MAP_EXTERNCALL double * map_f_op(MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_OtherStateType_t *other_type, MAP_OutputType_t *y_type, MAP_ConstraintStateType_t *z_type, MAP_ERROR_CODE *ierr, char *map_msg)
lib.map_f_op.argtypes = [MapInput_Type, MapData_Type, MapOutnput_Type, c_double, c_char_p, POINTER(c_int)]
Definition: mapapi.c:384
MAP_EXTERNCALL MAP_ParameterType_t * map_create_parameter_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_ParameterType_t.
Definition: mapapi.c:1308
MAP_EXTERNCALL void map_update_states(float t, int interval, MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_ContinuousStateType_t *x_type, MAP_DiscreteStateType_t *xd_type, MAP_ConstraintStateType_t *z_type, MAP_OtherStateType_t *other_type, MAP_ERROR_CODE *ierr, char *map_msg)
Solves the statics problem for the MSQS system and should be called at each time step or vessel displ...
Definition: mapapi.c:173
MAP_EXTERNCALL void map_set_summary_file_name(MAP_InitInputType_t *init_type, char *map_msg, MAP_ERROR_CODE *ierr)
Set the name out the MAP summary output file.
Definition: mapapi.c:1077
MAP_EXTERNCALL MAP_InputType_t * map_create_input_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_InputType_t.
Definition: mapapi.c:1293
MAP_EXTERNCALL void map_set_sea_density(MAP_ParameterType_t *p_type, const double rho)
Set the water density.
Definition: mapapi.c:1154
Definition: MAP_Types.h:46
Definition: MAP_Types.h:73
MAP_EXTERNCALL void map_free_f_op(double *array)
lib.map_free_f_op.argtypes = [POINTER(c_double)]
Definition: mapapi.c:439
MAP_EXTERNCALL void map_set_sea_depth(MAP_ParameterType_t *p_type, const double depth)
Set the water depth.
Definition: mapapi.c:1148
Definition: MAP_Types.h:36
MAP_EXTERNCALL InitializationData * MAP_InitInput_Create(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate InitializationData.
Definition: mapapi.c:1214
MAP_EXTERNCALL void map_set_gravity(MAP_ParameterType_t *p_type, const double gravity)
Set the gravitational constant.
Definition: mapapi.c:1160
MAP_EXTERNCALL double ** map_linearize_matrix(MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_OtherStateType_t *other_type, MAP_OutputType_t *y_type, MAP_ConstraintStateType_t *z_type, double epsilon, MAP_ERROR_CODE *ierr, char *map_msg)
lib.linearize_matrix.argtypes = [MapInput_Type, MapData_Type, MapOutnput_Type, c_double, c_char_p, POINTER(c_int)]
Definition: mapapi.c:448
MAP_EXTERNCALL void map_get_header_string(int *n, char **str_array, MAP_OtherStateType_t *other_type)
Obtains the variable name array corresponding to the outputs selected in the MAP input file...
Definition: mapapi.c:1085
MAP_EXTERNCALL void set_init_to_null(MAP_InitInputType_t *init_type, char *map_msg, MAP_ERROR_CODE *ierr)
Fortran binding routine SUBROUTINE MAP_set_initinput_to_null(interf,msg,err) bind(C,name='set_init_to_null')
Definition: mapapi.c:1141
MAP_EXTERNCALL MAP_InitOutputType_t * map_create_initout_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_InitOutputType_t.
Definition: mapapi.c:1278
MAP_EXTERNCALL void map_end(MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_ContinuousStateType_t *x_type, MAP_DiscreteStateType_t *xd_type, MAP_ConstraintStateType_t *z_type, MAP_OtherStateType_t *other_type, MAP_OutputType_t *y_type, MAP_ERROR_CODE *ierr, char *map_msg)
Deallocates all memory.
Definition: mapapi.c:294
MAP_EXTERNCALL MAP_OtherStateType_t * map_create_other_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_OtherStateType_t and Domain.
Definition: mapapi.c:1262
MAP_EXTERNCALL void map_get_fairlead_force_3d(double *fx, double *fy, double *fz, MAP_OtherStateType_t *other_type, int index, char *map_msg, MAP_ERROR_CODE *ierr)
Returns X, Y, and Z fairlead force in global reference frame.
Definition: mapapi.c:1049
MAP_EXTERNCALL void map_initialize_msqs_base(MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_ContinuousStateType_t *x_type, MAP_ConstraintStateType_t *z_type, MAP_OtherStateType_t *other_type, MAP_OutputType_t *y_type, MAP_InitOutputType_t *io_type)
Initalizes all MAP base types (including some internal state)
Definition: mapapi.c:37
MAP_EXTERNCALL MAP_InitInputType_t * map_create_init_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_InitInputType_t and InitializationData.
Definition: mapapi.c:1230
MAP_EXTERNCALL void map_get_fairlead_force_2d(double *H, double *V, MAP_OtherStateType_t *other_type, int index, char *map_msg, MAP_ERROR_CODE *ierr)
Returns vertical and horizontal fairlead force along line plane.
Definition: mapapi.c:1030
MAP_EXTERNCALL Domain * MAP_OtherState_Create(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate Domain.
Definition: mapapi.c:1247
MAP_EXTERNCALL void map_offset_vessel(MAP_OtherStateType_t *other_type, MAP_InputType_t *u_type, double x, double y, double z, double phi, double the, double psi, char *map_msg, MAP_ERROR_CODE *ierr)
call this in python: offset_vessel().argtypes = [MapData_Type, MapInput_Type, c_char_p, POINTER(c_int)] angles are radians
Definition: mapapi.c:332
MAP_EXTERNCALL int free_init_data(InitializationData *init_data, char *map_msg, MAP_ERROR_CODE *ierr)
Deallocates the memory space for the init structure.
Definition: mapapi.c:1368
MAP_EXTERNCALL MAP_OutputType_t * map_create_output_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_OutputType_t.
Definition: mapapi.c:1338
Definition: MAP_Types.h:81
Definition: MAP_Types.h:54
MAP_EXTERNCALL void map_get_unit_string(int *n, char **str_array, MAP_OtherStateType_t *other_type)
Obtains the units of the outputs passed back to the calling program.
Definition: mapapi.c:1111
MAP_EXTERNCALL void map_calc_output(float t, MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_ContinuousStateType_t *x_type, MAP_DiscreteStateType_t *xd_type, MAP_ConstraintStateType_t *z_type, MAP_OtherStateType_t *other_type, MAP_OutputType_t *y_type, MAP_ERROR_CODE *ierr, char *map_msg)
Retrieves the values after the statics problem is solved.
Definition: mapapi.c:232
MAP_EXTERNCALL void map_init(MAP_InitInputType_t *init_type, MAP_InputType_t *u_type, MAP_ParameterType_t *p_type, MAP_ContinuousStateType_t *x_type, MAP_DiscreteStateType_t *xd_type, MAP_ConstraintStateType_t *z_type, MAP_OtherStateType_t *other_type, MAP_OutputType_t *y_type, MAP_InitOutputType_t *io_type, MAP_ERROR_CODE *ierr, char *map_msg)
Initializes the MAP model and allocates memory.
Definition: mapapi.c:78
MAP_EXTERNCALL MAP_ConstraintStateType_t * map_create_constraint_type(char *map_msg, MAP_ERROR_CODE *ierr)
Allocate MAP_ConstraintType_t.
Definition: mapapi.c:1323