HP-HEM  1.0.2
High Performance implementation of the Hybrid Electromagnetic Model
Data Structures | Functions
grid.h File Reference
#include <complex.h>
#include <stdlib.h>
#include <stdbool.h>
#include "electrode.h"

Go to the source code of this file.

Data Structures

struct  Grid
 

Functions

int number_segments (const Grid grid)
 
int number_nodes (const Grid grid)
 
int electrode_grid (const Grid grid, Electrode *electrodes, double *nodes)
 

Function Documentation

◆ electrode_grid()

int electrode_grid ( const Grid  grid,
Electrode electrodes,
double *  nodes 
)

Populates electrodes and nodes arrays given a Grid structure.

Parameters
gridstructure
electrodesarray to be filled
nodesarray to be filled
Returns
0 on success
See also
number_segments for the minimum size of the array electrodes
number_nodes for the minimum size of the array nodes

◆ number_nodes()

int number_nodes ( const Grid  grid)

Returns how many nodes the grid has.

◆ number_segments()

int number_segments ( const Grid  grid)

Returns how many segments the Grid has.