1 /*--------------------------------------------------------------*/
2 /* Prototype Header file for EnSight External Reader */
3 /* DSO Library Routines */
5 /* intended to be included from global_extern.h only */
6 /*--------------------------------------------------------------*/
7 /* *************************************************************
8 * Copyright 1998 Computational Engineering International, Inc.
11 * Restricted Rights Legend
13 * Use, duplication, or disclosure of this
14 * software and its documentation by the
15 * Government is subject to restrictions as
16 * set forth in subdivision [(b)(3)(ii)] of
17 * the Rights in Technical Data and Computer
18 * Software clause at 52.227-7013.
19 * *************************************************************
21 #ifndef GLOBAL_EXTERN_PROTO_H
22 #define GLOBAL_EXTERN_PROTO_H
25 #define W32IMPORT __declspec( dllimport )
26 #define W32EXPORT __declspec( dllexport )
28 #define W32IMPORT extern
29 #define W32EXPORT extern
32 /*----------------------
33 * Same in All Versions
34 *----------------------*/
36 USERD_get_number_of_model_parts( void );
39 USERD_get_block_coords_by_component(int block_number
,
44 USERD_get_block_iblanking(int block_number
,
48 USERD_get_block_scalar_values(int block_number
,
53 USERD_get_block_vector_values_by_component(int block_number
,
59 USERD_get_name_of_reader(char reader_name
[Z_MAX_USERD_NAME
],
63 USERD_get_reader_descrip(char descrip
[Z_MAXFILENP
]);
66 USERD_set_filenames(char filename_1
[],
72 USERD_get_number_of_files_in_dataset( void );
75 USERD_get_dataset_query_file_info(Z_QFILES
*qfiles
);
78 USERD_get_changing_geometry_status( void );
81 USERD_get_node_label_status( void );
84 USERD_get_element_label_status( void );
87 USERD_get_number_of_variables( void );
90 USERD_stop_part_building( void );
93 USERD_bkup(FILE *archive_file
,
98 /*-----------------------
99 * For Version 1.000 Only
100 *-----------------------*/
101 #if defined USERD_API_100
104 USERD_get_number_of_global_nodes( void );
107 USERD_get_global_coords(CRD
*coord_array
);
110 USERD_get_global_node_ids(int *nodeid_array
);
113 USERD_get_element_connectivities_for_part(int part_number
,
114 int **conn_array
[Z_MAXTYPE
]);
117 USERD_get_element_ids_for_part(int part_number
,
118 int *elemid_array
[Z_MAXTYPE
]);
121 USERD_get_vector_values(int which_vector
,
124 float *vector_array
);
127 USERD_get_part_build_info(int *part_id
,
129 char *part_descriptions
[Z_BUFL
],
130 int *number_of_elements
[Z_MAXTYPE
],
131 int *ijk_dimensions
[3],
132 int *iblanking_options
[6]);
135 USERD_get_scalar_values(int which_scalar
,
138 float *scalar_array
);
141 USERD_get_variable_info(char **var_description
,
147 USERD_get_description_lines(int which_type
,
153 USERD_get_variable_value_at_specific(int which_var
,
154 int which_node_or_elem
,
161 USERD_get_constant_value(int which_var
);
164 USERD_get_solution_times(float *solution_times
);
166 USERD_set_time_step(int time_step
);
169 USERD_get_number_of_time_steps(void);
174 /*----------------------
175 * New For Version 2.000
176 *----------------------*/
177 #if !defined USERD_API_100
180 USERD_get_part_coords(int part_number
,
181 float **coord_array
);
184 USERD_get_part_node_ids(int part_number
,
188 USERD_get_part_elements_by_type(int part_number
,
192 USERD_get_part_element_ids_by_type(int part_number
,
197 USERD_get_reader_version(char version_number
[Z_MAX_USERD_NAME
]);
200 USERD_get_reader_release(char version_number
[Z_MAX_USERD_NAME
]);
203 USERD_get_var_by_component(int which_variable
,
212 USERD_get_maxsize_info(int *max_number_of_nodes
,
213 int *max_number_of_elements
[Z_MAXTYPE
],
214 int *max_ijk_dimensions
[3]);
217 USERD_exit_routine( void );
220 USERD_get_gold_variable_info(char **var_description
,
225 char **var_ifilename
,
230 USERD_get_model_extents( float extents
[6] );
233 USERD_get_descrip_lines(int which_type
,
240 USERD_get_var_value_at_specific(int which_var
,
241 int which_node_or_elem
,
249 USERD_get_constant_val(int which_var
, int imag_data
);
252 USERD_get_geom_timeset_number(void);
255 USERD_get_number_of_timesets(void);
258 USERD_get_timeset_description(int timeset_number
,
259 char timeset_description
[Z_BUFL
]);
262 USERD_get_sol_times(int timeset_number
,
263 float *solution_times
);
265 USERD_set_time_set_and_step(int timeset_number
,
268 USERD_get_num_of_time_steps(int timeset_number
);
271 USERD_get_border_availability(int part_number
,
272 int number_of_elements
[Z_MAXTYPE
]);
275 USERD_get_border_elements_by_type(int part_number
,
278 short *parent_element_type
,
279 int *parent_element_num
);
282 USERD_set_server_number(int serv_num
,
288 /*----------------------
289 * New For Version 2.010
290 *----------------------*/
291 #if defined USERD_API_201 || defined USERD_API_202 || defined USERD_API_203
293 USERD_get_ghosts_in_model_flag( void );
296 USERD_get_ghosts_in_block_flag(int block_number
);
299 USERD_get_block_ghost_flags(int block_number
,
303 /*--------------------------
304 * Modified at Version 2.030
305 *--------------------------*/
306 #if defined USERD_API_201 || defined USERD_API_202
309 USERD_get_gold_part_build_info(int *part_id
,
311 char *part_descriptions
[Z_BUFL
],
312 int *number_of_nodes
,
313 int *number_of_elements
[Z_MAXTYPE
],
314 int *ijk_dimensions
[3],
315 int *iblanking_options
[6]);
318 #if defined USERD_API_203
320 USERD_get_gold_part_build_info(int *part_id
,
322 char *part_descriptions
[Z_BUFL
],
323 int *number_of_nodes
,
324 int *number_of_elements
[Z_MAXTYPE
],
325 int *ijk_dimensions
[9],
326 int *iblanking_options
[6]);
330 /*----------------------
331 * New For Version 2.030
332 *----------------------*/
333 #if defined USERD_API_203
335 USERD_get_number_of_material_sets( void );
338 USERD_get_matf_set_info(int *mat_set_ids
,
339 char **mat_set_name
);
342 USERD_get_number_of_materials( int set_index
);
345 USERD_get_matf_var_info(int set_index
,
350 USERD_size_matf_data(int set_index
,
357 USERD_load_matf_data( int set_index
,
365 USERD_get_nsided_conn( int part_number
,
366 int *nsided_conn_array
);
369 USERD_get_nfaced_nodes_per_face( int part_number
,
370 int *nfaced_npf_array
);
373 USERD_get_nfaced_conn( int part_number
,
374 int *nfaced_conn_array
);
380 /*--------------------------------------------------------------------*/
381 #endif /*GLOBAL_EXTERN_PROTO_H*/