24 #ifndef _LINEROUTINES_H 25 #define _LINEROUTINES_H 34 MAP_ERROR_CODE increment_dof_by_delta(
double* u_type,
const double delta,
const int size);
40 MAP_ERROR_CODE restore_original_displacement(
double* u_ype,
const double* initial_value,
const int size);
46 MAP_ERROR_CODE reset_force_to_zero(
double* fx,
double* fy,
double* fz,
double* mx,
double* my,
double* mz,
const int size);
52 MAP_ERROR_CODE set_force_minus(
const double* in_force,
double* force,
const int size);
58 MAP_ERROR_CODE set_force_plus(
const double* in_force,
double* force,
const int size);
64 MAP_ERROR_CODE update_outer_loop_inputs(
double* input,
MAP_ConstraintStateType_t* z_type,
const int size,
char* map_msg, MAP_ERROR_CODE* ierr);
70 MAP_ERROR_CODE update_outer_loop_residuals(
double* residual,
MAP_OtherStateType_t* other_type,
const int size,
char* map_msg, MAP_ERROR_CODE* ierr);
76 MAP_ERROR_CODE set_moment_minus(
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const int size);
79 MAP_ERROR_CODE set_moment_plus(
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const int size);
82 MAP_ERROR_CODE set_moment_minus_phi(
const MAP_InputType_t* u_type,
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const double epsilon,
const int size);
83 MAP_ERROR_CODE set_moment_plus_phi(
const MAP_InputType_t* u_type,
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const double epsilon,
const int size);
84 MAP_ERROR_CODE set_moment_minus_the(
const MAP_InputType_t* u_type,
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const double epsilon,
const int size);
85 MAP_ERROR_CODE set_moment_plus_the(
const MAP_InputType_t* u_type,
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const double epsilon,
const int size);
86 MAP_ERROR_CODE set_moment_minus_psi(
const MAP_InputType_t* u_type,
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const double epsilon,
const int size);
87 MAP_ERROR_CODE set_moment_plus_psi(
const MAP_InputType_t* u_type,
const MAP_OutputType_t* y_type,
const Vessel* vessel,
double* mx,
double* my,
double* mz,
const double epsilon,
const int size);
90 MAP_ERROR_CODE increment_phi_dof_by_delta(
MAP_InputType_t* u_type,
const Vessel* vessel,
const double delta,
const int size);
93 MAP_ERROR_CODE increment_the_dof_by_delta(
MAP_InputType_t* u_type,
const Vessel* vessel,
const double delta,
const int size);
96 MAP_ERROR_CODE increment_psi_dof_by_delta(
MAP_InputType_t* u_type,
const Vessel* vessel,
const double delta,
const int size);
100 MAP_ERROR_CODE fd_x_sequence(
MAP_OtherStateType_t* other_type,
MAP_ParameterType_t* p_type,
MAP_InputType_t* u_type,
MAP_OutputType_t* y_type,
MAP_ConstraintStateType_t* z_type,
Fd* force,
const double epsilon,
const int size,
const double* original_pos,
char* map_msg, MAP_ERROR_CODE* ierr);
101 MAP_ERROR_CODE fd_y_sequence(
MAP_OtherStateType_t* other_type,
MAP_ParameterType_t* p_type,
MAP_InputType_t* u_type,
MAP_OutputType_t* y_type,
MAP_ConstraintStateType_t* z_type,
Fd* force,
const double epsilon,
const int size,
const double* original_pos,
char* map_msg, MAP_ERROR_CODE* ierr);
102 MAP_ERROR_CODE fd_z_sequence(
MAP_OtherStateType_t* other_type,
MAP_ParameterType_t* p_type,
MAP_InputType_t* u_type,
MAP_OutputType_t* y_type,
MAP_ConstraintStateType_t* z_type,
Fd* force,
const double epsilon,
const int size,
const double* original_pos,
char* map_msg, MAP_ERROR_CODE* ierr);
103 MAP_ERROR_CODE fd_phi_sequence(
MAP_OtherStateType_t* other_type,
MAP_ParameterType_t* p_type,
MAP_InputType_t* u_type,
MAP_OutputType_t* y_type,
MAP_ConstraintStateType_t* z_type,
Fd* force,
const double epsilon,
const int size,
const double* original_x,
const double* original_y,
const double* original_z,
char* map_msg, MAP_ERROR_CODE* ierr);
104 MAP_ERROR_CODE fd_the_sequence(
MAP_OtherStateType_t* other_type,
MAP_ParameterType_t* p_type,
MAP_InputType_t* u_type,
MAP_OutputType_t* y_type,
MAP_ConstraintStateType_t* z_type,
Fd* force,
const double epsilon,
const int size,
const double* original_x,
const double* original_y,
const double* original_z,
char* map_msg, MAP_ERROR_CODE* ierr);
105 MAP_ERROR_CODE fd_psi_sequence(
MAP_OtherStateType_t* other_type,
MAP_ParameterType_t* p_type,
MAP_InputType_t* u_type,
MAP_OutputType_t* y_type,
MAP_ConstraintStateType_t* z_type,
Fd* force,
const double epsilon,
const int size,
const double* original_x,
const double* original_y,
const double* original_z,
char* map_msg, MAP_ERROR_CODE* ierr);
106 MAP_ERROR_CODE calculate_stiffness(
double* K,
Fd* force,
const double delta,
const int size);
107 MAP_ERROR_CODE calculate_sumforce (
double* F,
Fd* force,
const int size);
112 MAP_ERROR_CODE set_line_variables_pre_solve(
Domain* domain,
char* map_msg, MAP_ERROR_CODE* ierr);
118 MAP_ERROR_CODE set_line_variables_post_solve(
Domain* domain,
char* map_msg, MAP_ERROR_CODE* ierr);
120 double set_vertical_excursion(
Line* line);
121 double set_horizontal_excursion(
Line* line);
138 MAP_ERROR_CODE set_psi(
Line* line,
char* map_msg, MAP_ERROR_CODE* ierr);
141 MAP_ERROR_CODE reset_node_force_to_zero(
Domain* domain,
char* map_msg, MAP_ERROR_CODE* ierr);
153 MAP_ERROR_CODE set_line_initial_guess(
Domain* domain,
char* map_msg, MAP_ERROR_CODE* ierr);
156 MAP_ERROR_CODE solve_linear_spring_cable(
Line* line,
char* map_msg, MAP_ERROR_CODE* ierr);
169 MAP_ERROR_CODE line_solve_sequence(
Domain* domain,
MAP_ParameterType_t* p_type,
const float time,
char* map_msg, MAP_ERROR_CODE* ierr);
170 MAP_ERROR_CODE solve_line(
Domain* domain,
const float time,
char* map_msg, MAP_ERROR_CODE* ierr);
199 MAP_ERROR_CODE check_maximum_line_length(
Line* line,
const bool contact_flag,
char* map_msg, MAP_ERROR_CODE* ierr);
212 void add_to_sum_fx(
Node* node,
const double fx);
218 void add_to_sum_fy(
Node* node,
const double fy);
224 void add_to_sum_fz(
Node* node,
const double fz);
Finite-difference structure.
Definition: map.h:96
Definition: MAP_Types.h:99
Central point where all 'VESSEL' nodes can be displaced.
Definition: map.h:191
Definition: MAP_Types.h:73
Definition: MAP_Types.h:81
Definition: MAP_Types.h:54