FrontISTR  5.7.0
Large-scale structural analysis program with finit element method
hecmw_vis_resampling.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2019 FrontISTR Commons
3  * This software is released under the MIT License, see LICENSE.txt
4  *****************************************************************************/
5 
6 #ifndef HECMW_VIS_RESAMPLING_H_INCLUDED
7 #define HECMW_VIS_RESAMPLING_H_INCLUDED
8 /*
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <math.h>
12 #include <string.h>
13 #include <memory.h>
14 #include "hecmw_struct.h"
15 #include "hecmw_util.h"
16 #include "hecmw_io.h"
17 */
18 #define MASTER_PE 0
19 
20 #define PI 3.1415926
21 #define HEX_N_NODE 8
22 #define HEX_N_FACE 6
23 #define HEX_NODE_INDEX 255 /* 2^8 */
24 #define HEX_FACE_INDEX 63 /* 2^6 */
25 
26 #define MAX_LINE_LEN 256
27 
28 typedef struct surfacep_info {
29  double vertex[9];
30  double color[3];
33 
34 typedef struct head_surface_info {
38 
39 typedef struct in_surface {
40  int n_vertex;
41  int n_patch;
42  double *vertex;
43  int *patch;
44  double *color;
45 } In_surface;
46 
47 typedef struct voxel_info {
48  double dx;
49  double dy;
50  double dz;
51  double orig_x;
52  double orig_y;
53  double orig_z;
54  int level[3];
57 } Voxel_info;
58 
59 typedef struct voxel_data {
60  int n_voxel;
62 } Voxel_data;
63 
64 typedef struct extent_data {
65  double x_min;
66  double x_max;
67  double y_min;
68  double y_max;
69  double z_min;
70  double z_max;
71 } Extent_data;
72 
73 typedef struct cube_pointer_struct {
74  int code[3];
75  double field;
76  double grad[3];
78 
79 } Cube_point;
80 
81 typedef struct cube_head_struct {
82  int point_num;
84 } Cube_head;
85 typedef struct pvr_data {
86  int myID;
87  int parentID;
88  int level;
89  int flag;
90  double field;
91  double grad[3];
92 } PVR_data;
93 
94 typedef struct cont_data {
95  int n_var;
96  char **name;
97 } Cont_data;
98 #endif /* HECMW_VIS_RESAMPLING_H_INCLUDED */
voxel_info
Definition: hecmw_vis_resampling.h:47
Cube_head
struct cube_head_struct Cube_head
Extent_data
struct extent_data Extent_data
cube_head_struct::cube_link
struct cube_pointer_struct * cube_link
Definition: hecmw_vis_resampling.h:83
cube_head_struct
Definition: hecmw_vis_resampling.h:81
extent_data::y_min
double y_min
Definition: hecmw_vis_resampling.h:67
In_surface
struct in_surface In_surface
extent_data::x_min
double x_min
Definition: hecmw_vis_resampling.h:65
in_surface::color
double * color
Definition: hecmw_vis_resampling.h:44
voxel_info::dz
double dz
Definition: hecmw_vis_resampling.h:50
extent_data::y_max
double y_max
Definition: hecmw_vis_resampling.h:68
pvr_data::myID
int myID
Definition: hecmw_vis_resampling.h:86
voxel_info::orig_x
double orig_x
Definition: hecmw_vis_resampling.h:51
in_surface::n_vertex
int n_vertex
Definition: hecmw_vis_resampling.h:40
surfacep_info
Definition: hecmw_vis_resampling.h:28
Cont_data
struct cont_data Cont_data
in_surface
Definition: hecmw_vis_resampling.h:39
PVR_data
struct pvr_data PVR_data
surfacep_info::vertex
double vertex[9]
Definition: hecmw_vis_resampling.h:29
extent_data::x_max
double x_max
Definition: hecmw_vis_resampling.h:66
cont_data::name
char ** name
Definition: hecmw_vis_resampling.h:96
in_surface::n_patch
int n_patch
Definition: hecmw_vis_resampling.h:41
Surfacep_info
struct surfacep_info Surfacep_info
in_surface::patch
int * patch
Definition: hecmw_vis_resampling.h:43
voxel_data::info
Voxel_info * info
Definition: hecmw_vis_resampling.h:61
cont_data::n_var
int n_var
Definition: hecmw_vis_resampling.h:95
extent_data
Definition: hecmw_vis_resampling.h:64
voxel_info::dx
double dx
Definition: hecmw_vis_resampling.h:48
voxel_info::dy
double dy
Definition: hecmw_vis_resampling.h:49
voxel_info::orig_y
double orig_y
Definition: hecmw_vis_resampling.h:52
head_surface_info
Definition: hecmw_vis_resampling.h:34
head_surface_info::num_of_patch
int num_of_patch
Definition: hecmw_vis_resampling.h:35
voxel_info::neighbor_pe
int * neighbor_pe
Definition: hecmw_vis_resampling.h:56
cube_pointer_struct::grad
double grad[3]
Definition: hecmw_vis_resampling.h:76
voxel_data::n_voxel
int n_voxel
Definition: hecmw_vis_resampling.h:60
extent_data::z_max
double z_max
Definition: hecmw_vis_resampling.h:70
voxel_info::level
int level[3]
Definition: hecmw_vis_resampling.h:54
cube_pointer_struct::field
double field
Definition: hecmw_vis_resampling.h:75
pvr_data::field
double field
Definition: hecmw_vis_resampling.h:90
pvr_data::flag
int flag
Definition: hecmw_vis_resampling.h:89
surfacep_info::next_patch
struct surfacep_info * next_patch
Definition: hecmw_vis_resampling.h:31
cube_pointer_struct
Definition: hecmw_vis_resampling.h:73
Voxel_info
struct voxel_info Voxel_info
pvr_data::grad
double grad[3]
Definition: hecmw_vis_resampling.h:91
Cube_point
struct cube_pointer_struct Cube_point
pvr_data::level
int level
Definition: hecmw_vis_resampling.h:88
pvr_data::parentID
int parentID
Definition: hecmw_vis_resampling.h:87
cube_pointer_struct::code
int code[3]
Definition: hecmw_vis_resampling.h:74
Voxel_data
struct voxel_data Voxel_data
head_surface_info::next_patch
Surfacep_info * next_patch
Definition: hecmw_vis_resampling.h:36
cube_head_struct::point_num
int point_num
Definition: hecmw_vis_resampling.h:82
voxel_info::n_neighbor_pe
int n_neighbor_pe
Definition: hecmw_vis_resampling.h:55
surfacep_info::color
double color[3]
Definition: hecmw_vis_resampling.h:30
extent_data::z_min
double z_min
Definition: hecmw_vis_resampling.h:69
voxel_data
Definition: hecmw_vis_resampling.h:59
pvr_data
Definition: hecmw_vis_resampling.h:85
cube_pointer_struct::next_point
struct cube_pointer_struct * next_point
Definition: hecmw_vis_resampling.h:77
in_surface::vertex
double * vertex
Definition: hecmw_vis_resampling.h:42
Head_surfacep_info
struct head_surface_info Head_surfacep_info
voxel_info::orig_z
double orig_z
Definition: hecmw_vis_resampling.h:53
cont_data
Definition: hecmw_vis_resampling.h:94