OpenFAST
Wind turbine multiphysics simulator
Functions
freedata.c File Reference
#include "freedata.h"
Include dependency graph for freedata.c:

Functions

MAP_EXTERNCALL void MAP_InitInput_Delete (InitializationData *init_data)
 
MAP_EXTERNCALL void MAP_OtherState_Delete (Domain *domain)
 
MAP_ERROR_CODE free_outlist (Domain *domain, char *map_msg, MAP_ERROR_CODE *ierr)
 Frees internal state data allcoated in the mapcall_msqs_init( ) function. More...
 
MAP_ERROR_CODE free_cable_library (list_t *restrict library)
 Deallocate the 'label' parameter in the CableLibrary. More...
 
MAP_ERROR_CODE free_update_list (list_t *restrict ref_list)
 Set the reference in ReferencePoint to NULL. More...
 
MAP_ERROR_CODE free_line (list_t *restrict line)
 Deallocates all lines. More...
 
MAP_ERROR_CODE free_node (list_t *restrict node)
 Deallocates all nodes. More...
 
MAP_ERROR_CODE free_vessel (Vessel *floater)
 
MAP_ERROR_CODE map_free_types (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_ERROR_CODE free_outer_solve_data (OuterSolveAttributes *ns, const int size, char *map_msg, MAP_ERROR_CODE *ierr)
 

Function Documentation

◆ free_cable_library()

MAP_ERROR_CODE free_cable_library ( list_t *restrict  library)

Deallocate the 'label' parameter in the CableLibrary.

Accessed in map_end()

Parameters
library,librarylink list
Here is the call graph for this function:

◆ free_line()

MAP_ERROR_CODE free_line ( list_t *restrict  line)

Deallocates all lines.

Function loops through the elemenet link list and frees allocated data. Pointers are nullified.

Parameters
linethe line link list
Returns
MAP_SAFE if it completes successfully
See also
Line_t()
Here is the call graph for this function:

◆ free_node()

MAP_ERROR_CODE free_node ( list_t *restrict  node)

Deallocates all nodes.

Function loops through the elemenet link list and frees allocated data. Pointers are nullified.

Parameters
nodethe node link list
Returns
MAP_SAFE if it completes successfully
See also
Line_t()
Here is the call graph for this function:

◆ free_outlist()

MAP_ERROR_CODE free_outlist ( Domain domain,
char *  map_msg,
MAP_ERROR_CODE *  ierr 
)

Frees internal state data allcoated in the mapcall_msqs_init( ) function.

Todo:
: delete additional dependancies in data->z, data->y_list, data->u : none : mapcall_msqs_end( )
See also
: allocate_outlist( )
Here is the call graph for this function:

◆ free_update_list()

MAP_ERROR_CODE free_update_list ( list_t *restrict  ref_list)

Set the reference in ReferencePoint to NULL.

Accessed in map_end(). The ref_list points to nodes associated with u_types, i.e., input types that are interpolated by FAST.

Parameters
ref_list,referenceto 'connect' node positions