HP-HEM  1.0.2
High Performance implementation of the Hybrid Electromagnetic Model
grid.h
Go to the documentation of this file.
1 /* High Performance implementation of the Hybrid Electromagnetic Model
2 Released under the General Public License 3 (GPLv3).
3 All parameters' units are in the SI base if omitted.
4 
5 Routines to manipulate the Grid (of Electrodes) structure and do calculations,
6 i.e., numerical integration and impedances calculation for this specialized case.
7 */
8 #ifndef GRID_H_
9 #define GRID_H_
10 
11 #include <complex.h>
12 #include <stdlib.h>
13 #include <stdbool.h>
14 #include "electrode.h"
15 
35 typedef struct {
37  unsigned int vertices_x;
39  unsigned int vertices_y;
41  double length_x;
43  double length_y;
45  unsigned int edge_segments_x;
47  unsigned int edge_segments_y;
49  double radius;
51  double depth;
52 } Grid;
53 
55 int
56 number_segments (const Grid grid);
57 
59 int
60 number_nodes (const Grid grid);
61 
70 int
71 electrode_grid (const Grid grid, Electrode* electrodes, double* nodes);
72 
73 #endif /* GRID_H_ */
unsigned int edge_segments_x
Definition: grid.h:45
Definition: grid.h:35
double depth
Definition: grid.h:51
int number_nodes(const Grid grid)
double radius
Definition: grid.h:49
int number_segments(const Grid grid)
unsigned int vertices_x
Definition: grid.h:37
double length_y
Definition: grid.h:43
int electrode_grid(const Grid grid, Electrode *electrodes, double *nodes)
unsigned int edge_segments_y
Definition: grid.h:47
double length_x
Definition: grid.h:41
unsigned int vertices_y
Definition: grid.h:39