ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
viennashe::util::device_from_flat_array_generator< IndexT > Struct Template Reference

A device generator to generate a device from flat C-Arrays (DOES NOT TAKE OWNERSHIP) More...

#include <generate_device.hpp>

Public Member Functions

 device_from_flat_array_generator (double *vertices, IndexT *cells, IndexT *segmentation, IndexT num_vertices, IndexT num_cells)
 
template<typename MeshT , typename SegmentationT >
void operator() (MeshT &mesh, SegmentationT &seg) const
 Functor interface. The mesh and the segmentation need to be given. More...
 

Detailed Description

template<typename IndexT = unsigned long>
struct viennashe::util::device_from_flat_array_generator< IndexT >

A device generator to generate a device from flat C-Arrays (DOES NOT TAKE OWNERSHIP)

Parameters
verticesA 1d array: vertices[num_vertices * dimension]
cellsA 1d array: cells[num_cells * number_of_vertices_per_cell]
num_verticesThe number of vertices in the domain
num_cellsThe number of cells in the domain

Definition at line 549 of file generate_device.hpp.

Constructor & Destructor Documentation

◆ device_from_flat_array_generator()

template<typename IndexT = unsigned long>
viennashe::util::device_from_flat_array_generator< IndexT >::device_from_flat_array_generator ( double *  vertices,
IndexT *  cells,
IndexT *  segmentation,
IndexT  num_vertices,
IndexT  num_cells 
)
inline

Definition at line 551 of file generate_device.hpp.

Member Function Documentation

◆ operator()()

template<typename IndexT = unsigned long>
template<typename MeshT , typename SegmentationT >
void viennashe::util::device_from_flat_array_generator< IndexT >::operator() ( MeshT &  mesh,
SegmentationT &  seg 
) const
inline

Functor interface. The mesh and the segmentation need to be given.

Definition at line 562 of file generate_device.hpp.


The documentation for this struct was generated from the following file: