Geophysical Inversion and Modelling Library v1.5.4
Loading...
Searching...
No Matches
GIMLI::DataMap Class Reference

#include <datamap.h>

+ Collaboration diagram for GIMLI::DataMap:

Public Member Functions

 DataMap ()
 
 DataMap (const std::string &filename)
 
 DataMap (const DataMap &map)
 
DataMapoperator= (const DataMap &map)
 
bool isComplex () const
 
int save (const std::string &filename)
 
int load (const std::string &filename)
 
void collect (const std::vector< ElectrodeShape * > &electrodes, const RMatrix &sol, bool isCEM=false)
 
RVector data (const DataContainerERT &dat, bool reciprocity=false, bool imag=false)
 
void setElectrodes (const std::vector< RVector3 > &elecs)
 
const std::vector< RVector3 > & electrodes () const
 
const RMatrixmap () const
 

Protected Member Functions

void copy_ (const DataMap &map)
 

Protected Attributes

std::vector< RVector3elecs_
 
RMatrix map_
 
bool complex_
 

Detailed Description

Potential matrix for BERT. Stores the potential values for every current injection at every electrode positions. Filtering a specific data configuration is done by the data call. In generall, the map size is equal to the amount of electrodes. There are exceptions: Dipol-Pattern sources, Dipol-Sources against a reference Electrode.

Constructor & Destructor Documentation

◆ DataMap() [1/3]

GIMLI::DataMap::DataMap ( )

Default contructor, builds an empty map

Referenced by copy_(), DataMap(), and operator=().

◆ DataMap() [2/3]

GIMLI::DataMap::DataMap ( const std::string & filename)

Contructs a map and load content from a file

References load().

◆ DataMap() [3/3]

GIMLI::DataMap::DataMap ( const DataMap & map)

Copyconstructor

References copy_(), DataMap(), and map().

Member Function Documentation

◆ collect()

void GIMLI::DataMap::collect ( const std::vector< ElectrodeShape * > & electrodes,
const RMatrix & sol,
bool isCEM = false )

Fill the map. Collect potential values from complete mesh related solution matrix and a vector of assiciated electrodes.

References GIMLI::Matrix< ValueType >::cols(), elecs_, electrodes(), map_, and GIMLI::Matrix< ValueType >::rows().

Referenced by GIMLI::DCMultiElectrodeModelling::calculate().

◆ copy_()

void GIMLI::DataMap::copy_ ( const DataMap & map)
protected

Internal copy function

References DataMap(), elecs_, map(), and map_.

Referenced by DataMap(), and operator=().

◆ data()

RVector GIMLI::DataMap::data ( const DataContainerERT & dat,
bool reciprocity = false,
bool imag = false )

Returns RVector of power values corresponding to the DataConatiner, Return reciprocity values if reciprocity set to True. In the case of reciprocity, a <-> m and b <-> n are swapped.

** probably measured agains last electrode as current and power reference

References data(), elecs_, and map_.

Referenced by data(), and GIMLI::DCMultiElectrodeModelling::response().

◆ electrodes()

const std::vector< RVector3 > & GIMLI::DataMap::electrodes ( ) const
inline

Return a reference to the electrode positions

References elecs_.

Referenced by collect().

◆ isComplex()

bool GIMLI::DataMap::isComplex ( ) const
inline

Complex valued entries.

◆ load()

int GIMLI::DataMap::load ( const std::string & filename)

Load a collect matrix

References elecs_, and map_.

Referenced by DataMap().

◆ map()

const RMatrix & GIMLI::DataMap::map ( ) const
inline

Return a reference to the potential matrix

References map_.

Referenced by copy_(), DataMap(), and operator=().

◆ operator=()

DataMap & GIMLI::DataMap::operator= ( const DataMap & map)

Assignment operator

References copy_(), DataMap(), and map().

◆ save()

int GIMLI::DataMap::save ( const std::string & filename)

Save the collect matrix

References elecs_, and map_.

◆ setElectrodes()

void GIMLI::DataMap::setElectrodes ( const std::vector< RVector3 > & elecs)
inline

Set the electrode positions

References elecs_.

Member Data Documentation

◆ elecs_

std::vector< RVector3 > GIMLI::DataMap::elecs_
protected

Hold electrode positions

Referenced by collect(), copy_(), data(), electrodes(), load(), save(), and setElectrodes().

◆ map_

RMatrix GIMLI::DataMap::map_
protected

Hold potential map

Referenced by collect(), copy_(), data(), load(), map(), and save().