Struct dim_g_t¶
Defined in File graspi_types.hpp
Struct Documentation¶
-
struct
graspi
::
dim_g_t
¶ structure storing dimensions of graph vertices
Public Functions
-
dim_g_t
(unsigned int n_phases = 2, unsigned int bulk = 0, unsigned int meta = 2)¶ constructor
- Parameters
n_phases
: is the number of phases consideredbulk
: is the number of bulk vertiecesmeta
: is the number of meta vertices associated with the {2,3}-phase morphology
-
int
n_total
() const¶ returns the total number of vertices in the graph (bulk and meta vertices)
-
int
n_meta
() const¶ returns the number of basic meta vertices (e.g., top and bottom electrode)
-
int
n_meta_int
() const¶ returns the number of interfacial meta vertices
-
int
n_meta_total
() const¶ returns the number of all meta vertices (basic and interfacial)
-
int
id
(unsigned int c) const¶ returns the index of meta vertex of color c
-
int
id_blue
() const¶ returns the index of blue meta-vertex
-
int
id_red
() const¶ returns the index of red meta-vertex
-
int
id_green
() const¶ returns the index of green meta-vertex
-
int
id_dgreen
() const¶ returns the index of dark green meta-vertex
-
int
id_lgreen
() const¶ returns the index of light green meta-vertex
Public Members
-
unsigned int
n_phases
¶ number of phases (currently 2 or 3)
-
unsigned int
n_bulk
¶ all BLACK,WHITE and GREY vertices
-
unsigned int
n_meta_basic
¶ basic meta vertices (anode, cathode)
-
unsigned int
n_meta_interfacial
¶ interfacial meta vertices between (BLACK/WHITE), (BLACK/GREY), (WHITE/GREY)
-