OpenFAST
Wind turbine multiphysics simulator
outputstream.h
1 /****************************************************************
2  * Copyright (C) 2014 mdm *
3  * map[dot]plus[dot]plus[dot]help[at]gmail *
4  * *
5  * Licensed to the Apache Software Foundation (ASF) under one *
6  * or more contributor license agreements. See the NOTICE file *
7  * distributed with this work for additional information *
8  * regarding copyright ownership. The ASF licenses this file *
9  * to you under the Apache License, Version 2.0 (the *
10  * "License"); you may not use this file except in compliance *
11  * with the License. You may obtain a copy of the License at *
12  * *
13  * http://www.apache.org/licenses/LICENSE-2.0 *
14  * *
15  * Unless required by applicable law or agreed to in writing, *
16  * software distributed under the License is distributed on an *
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY *
18  * KIND, either express or implied. See the License for the *
19  * specific language governing permissions and limitations *
20  * under the License. *
21  ****************************************************************/
22 
23 
24 #ifndef _OUTPUT_STREAM_H
25 #define _OUTPUT_STREAM_H
26 
27 
28 #include <time.h>
29 #include "mapsys.h"
30 #include "map.h"
31 #include "maperror.h"
32 #include "MAP_Types.h"
33 
34 
35 #if !defined(_MSC_VER) && !defined(__MINGW32__)
36 MAP_ERROR_CODE fopen_s(FILE** f, const char* name, const char* mode);
37 #endif
38 
39 
47 MAP_ERROR_CODE get_iteration_output_stream(MAP_OutputType_t *y_type, MAP_OtherStateType_t* other_type, char* map_msg, MAP_ERROR_CODE* ierr);
48 
49 
58 MAP_ERROR_CODE write_summary_file(InitializationData* init_data, MAP_ParameterType_t* param_type, Domain* domain, char* map_msg, MAP_ERROR_CODE* ierr);
59 
60 
75 MAP_ERROR_CODE write_cable_library_information_to_summary_file(FILE* file, Domain* domain);
76 
77 
88 MAP_ERROR_CODE write_node_type_to_summary_file(const int num_col, const int count_to_four, const NodeType node_type, bstring line);
89 
90 
101 MAP_ERROR_CODE write_node_header_to_summary_file(const int num_col, const int count_to_four, const int node_num, bstring line);
102 
103 
114 MAP_ERROR_CODE write_node_x_position_to_summary_file(const int num_col, const int count_to_four, VarTypePtr* x_pos, bstring line);
115 
116 
127 MAP_ERROR_CODE write_node_y_position_to_summary_file(const int num_col, const int count_to_four, VarTypePtr* y_pos, bstring line);
128 
129 
140 MAP_ERROR_CODE write_node_z_position_to_summary_file(const int num_col, const int count_to_four, VarTypePtr* z_pos, bstring line);
141 
152 MAP_ERROR_CODE write_node_mass_information_to_summary_file(const int num_col, const int count_to_four, VarType* point_mass, bstring line);
153 
154 
165 MAP_ERROR_CODE write_node_buoyancy_information_to_summary_file(const int num_col, const int count_to_four, VarType* point_buoy, bstring line);
166 
167 
178 MAP_ERROR_CODE write_node_x_sum_force_to_summary_file(const int num_col, const int count_to_four, VarTypePtr* x_sum_force, bstring line);
179 
180 
191 MAP_ERROR_CODE write_node_y_sum_force_to_summary_file(const int num_col, const int count_to_four, VarTypePtr* y_sum_force, bstring line);
192 
193 
204 MAP_ERROR_CODE write_node_z_sum_force_to_summary_file(const int num_col, const int count_to_four, VarTypePtr* z_sum_force, bstring line);
205 
206 
227 MAP_ERROR_CODE write_node_information_to_summary_file(FILE* file, Domain* domain, char* map_msg, MAP_ERROR_CODE* ierr);
228 
253 MAP_ERROR_CODE write_line_information_to_summary_file(FILE* file, Domain* domain);
254 
261 MAP_ERROR_CODE write_expanded_input_file_to_summary_file(FILE* file, InitializationData* init_data);
262 
263 
264 #endif // _OUTPUT_STREAM_H
MAP_ERROR_CODE write_expanded_input_file_to_summary_file(FILE *file, InitializationData *init_data)
prints the expanded MAP input file.
Definition: outputstream.c:880
MAP_ERROR_CODE write_node_mass_information_to_summary_file(const int num_col, const int count_to_four, VarType *point_mass, bstring line)
writes the node point mass value to the output block.
Definition: outputstream.c:427
Definition: MAP_Types.h:99
Serves the same function as VarType, but treats value as a pointer.
Definition: map.h:128
MAP_ERROR_CODE write_line_information_to_summary_file(FILE *file, Domain *domain)
write the complete line block to the summary file
Definition: outputstream.c:750
MAP_ERROR_CODE write_summary_file(InitializationData *init, MAP_ParameterType_t *paramType, Domain *data, char *map_msg, MAP_ERROR_CODE *ierr)
Definition: outputstream.c:148
MAP_ERROR_CODE write_node_z_position_to_summary_file(const int num_col, const int count_to_four, VarTypePtr *z_pos, bstring line)
writes the node z global displacement (position) to the node output block.
Definition: outputstream.c:380
MAP_ERROR_CODE write_cable_library_information_to_summary_file(FILE *file, Domain *domain)
Writes all cable properties defined in the MAP input file:
Definition: outputstream.c:210
MAP_ERROR_CODE write_node_type_to_summary_file(const int num_col, const int count_to_four, const NodeType node_type, bstring line)
writes the node type.
Definition: outputstream.c:229
MAP_ERROR_CODE get_iteration_output_stream(MAP_OutputType_t *y_type, MAP_OtherStateType_t *other_type, char *map_msg, MAP_ERROR_CODE *ierr)
Definition: outputstream.c:105
MAP_ERROR_CODE write_node_x_position_to_summary_file(const int num_col, const int count_to_four, VarTypePtr *x_pos, bstring line)
writes the node x global displacement (position) to the node output block.
Definition: outputstream.c:286
MAP_ERROR_CODE write_node_buoyancy_information_to_summary_file(const int num_col, const int count_to_four, VarType *point_buoy, bstring line)
writes the volumetric displacement of the buoyancy module to the node output block.
Definition: outputstream.c:474
Fundamental MAP type.
Definition: map.h:112
Definition: map.h:454
MAP_ERROR_CODE write_node_y_sum_force_to_summary_file(const int num_col, const int count_to_four, VarTypePtr *y_sum_force, bstring line)
writes the y-direction sum force to the node output block.
Definition: outputstream.c:568
Definition: MAP_Types.h:81
Definition: MAP_Types.h:54
MAP_ERROR_CODE write_node_z_sum_force_to_summary_file(const int num_col, const int count_to_four, VarTypePtr *z_sum_force, bstring line)
writes the z-direction sum force to the node output block.
Definition: outputstream.c:615
MAP_ERROR_CODE write_node_y_position_to_summary_file(const int num_col, const int count_to_four, VarTypePtr *y_pos, bstring line)
writes the node y global displacement (position) to the node output block.
Definition: outputstream.c:333
Definition: bstrlib.h:80
MAP_ERROR_CODE write_node_header_to_summary_file(const int num_col, const int count_to_four, const int node_num, bstring line)
header for the node block.
Definition: outputstream.c:264
Definition: map.h:433
MAP_ERROR_CODE write_node_x_sum_force_to_summary_file(const int num_col, const int count_to_four, VarTypePtr *x_sum_force, bstring line)
writes the x-direction sum force to the node output block.
Definition: outputstream.c:521
MAP_ERROR_CODE write_node_information_to_summary_file(FILE *file, Domain *domain, char *map_msg, MAP_ERROR_CODE *ierr)
write the complete node block to the summary file
Definition: outputstream.c:662