Geophysical Inversion and Modelling Library  v1.5.2-5-g042d7f36
GIMLI::ElectrodeShapeDomain Class Reference

Electrodeshape is a domain, e.g. the boundary of a complicated geoemtry for the complete electrode model. More...

+ Inheritance diagram for GIMLI::ElectrodeShapeDomain:
+ Collaboration diagram for GIMLI::ElectrodeShapeDomain:

Public Member Functions

 ElectrodeShapeDomain (const std::vector< MeshEntity * > &entities)
 
 ElectrodeShapeDomain (const std::vector< Boundary * > &entities)
 
void setEntities (std::vector< MeshEntity * > &entities)
 
virtual std::vector< MeshEntity * > entities () const
 
virtual double geomMeanCellAttributes () const
 
virtual double pot (const RVector &sol) const
 
virtual void assembleRHS (RVector &rhs, double value, uint matrixSize) const
 
- Public Member Functions inherited from GIMLI::ElectrodeShape
 ElectrodeShape (const RVector3 &pos)
 
virtual double domainSize () const
 
virtual void setSingValue (RVector &sol, double scale, double k) const
 
void setMID (uint id)
 
virtual int mID () const
 
- Public Member Functions inherited from GIMLI::Electrode
 Electrode ()
 
 Electrode (const RVector3 &pos, int id=-1)
 
 Electrode (double x, double y, double z)
 
 Electrode (const Electrode &el)
 
Electrodeoperator= (const Electrode &el)
 
bool operator== (const Electrode &e) const
 
void setPos (const RVector3 &pos)
 
const RVector3pos () const
 
- Public Member Functions inherited from GIMLI::BaseEntity
 BaseEntity (const BaseEntity &ent)
 
BaseEntityoperator= (const BaseEntity &ent)
 
virtual uint rtti () const
 
virtual bool valid () const
 
virtual void setValid (bool valid)
 
int id () const
 
void setId (int id)
 
void setMarker (int marker)
 
int marker () const
 
void setTagged (bool tagged)
 
void untag ()
 
void tag ()
 
bool tagged () const
 

Protected Attributes

std::vector< MeshEntity * > entities_
 
- Protected Attributes inherited from GIMLI::ElectrodeShape
double size_
 size of the domain
 
int mID_
 
- Protected Attributes inherited from GIMLI::Electrode
RVector3 pos_
 
- Protected Attributes inherited from GIMLI::BaseEntity
int id_
 
bool valid_
 
int marker_
 
bool tagged_
 

Detailed Description

Electrodeshape is a domain, e.g. the boundary of a complicated geoemtry for the complete electrode model.

Constructor & Destructor Documentation

◆ ElectrodeShapeDomain()

GIMLI::ElectrodeShapeDomain::ElectrodeShapeDomain ( const std::vector< Boundary * > &  entities)

Temporary for pygimli to fit: g.ElectrodeShapeDomain(mesh.findBoundaryByMarker(g.MARKER_BOUND_ELECTRODE))

References GIMLI::ElectrodeShape::size_.

Member Function Documentation

◆ assembleRHS()

void GIMLI::ElectrodeShapeDomain::assembleRHS ( RVector rhs,
double  value,
uint  matrixSize 
) const
virtual

Default method

Reimplemented from GIMLI::ElectrodeShape.

References GIMLI::BaseEntity::id().

◆ geomMeanCellAttributes()

double GIMLI::ElectrodeShapeDomain::geomMeanCellAttributes ( ) const
virtual

Default method

Reimplemented from GIMLI::ElectrodeShape.

References GIMLI::ElectrodeShape::size_.

◆ pot()

double GIMLI::ElectrodeShapeDomain::pot ( const RVector sol) const
virtual

Default method to collect to potential value corresponding to this electrode

Reimplemented from GIMLI::ElectrodeShape.