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

Electrodeshape is singular source within a mesh entity (boundary or cell) More...

+ Inheritance diagram for GIMLI::ElectrodeShapeEntity:
+ Collaboration diagram for GIMLI::ElectrodeShapeEntity:

Public Member Functions

 ElectrodeShapeEntity (MeshEntity &entity, const RVector3 &pos)
 
void setEntity (MeshEntity &entity)
 
MeshEntityentity () const
 
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
 
virtual void setSingValue (RVector &sol, double scale, double k) const
 
- Public Member Functions inherited from GIMLI::ElectrodeShape
 ElectrodeShape (const RVector3 &pos)
 
virtual double domainSize () 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

MeshEntityentity_
 
- 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 singular source within a mesh entity (boundary or cell)

Member Function Documentation

◆ assembleRHS()

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

◆ geomMeanCellAttributes()

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

Default method

Reimplemented from GIMLI::ElectrodeShape.

References GIMLI::MeshEntity::parentType().

Referenced by setSingValue().

◆ pot()

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

Collect the potential value corresponding to this nodes id

Reimplemented from GIMLI::ElectrodeShape.

References GIMLI::MeshEntity::pot().

◆ setSingValue()

void GIMLI::ElectrodeShapeEntity::setSingValue ( RVector sol,
double  scale,
double  k 
) const
virtual