Geophysical Inversion and Modelling Library  v1.5.0
GIMLI::TravelTimeDijkstraModelling Class Reference

Modelling class for travel time problems using the Dijkstra algorithm. More...

+ Inheritance diagram for GIMLI::TravelTimeDijkstraModelling:
+ Collaboration diagram for GIMLI::TravelTimeDijkstraModelling:

Public Member Functions

 TravelTimeDijkstraModelling (bool verbose=false)
 
 TravelTimeDijkstraModelling (Mesh &mesh, DataContainer &dataContainer, bool verbose=false)
 
virtual RVector createDefaultStartModel ()
 
RVector createGradientModel (double lBound, double uBound)
 
virtual RVector response (const RVector &slowness)
 
virtual void createJacobian (const RVector &slowness)
 
virtual void initJacobian ()
 
Graph createGraph (const RVector &slownessPerCell) const
 
double findMedianSlowness () const
 
RVector getApparentSlowness () const
 
void createJacobian (RSparseMapMatrix &jacobian, const RVector &slowness)
 
const IndexArrayway (Index sht, Index rec) const
 
const Dijkstradijkstra () const
 
- Public Member Functions inherited from GIMLI::ModellingBase
 ModellingBase (bool verbose=false)
 
 ModellingBase (DataContainer &dataContainer, bool verbose=false)
 
 ModellingBase (const Mesh &mesh, bool verbose=false)
 
 ModellingBase (const Mesh &mesh, DataContainer &dataContainer, bool verbose=false)
 
void setVerbose (bool verbose)
 
bool verbose () const
 
virtual RVector response_mt (const RVector &model, Index i=0) const
 
RVector operator() (const RVector &model)
 
void setData (DataContainer &data)
 
DataContainerdata () const
 
virtual RVector startModel ()
 
virtual void setStartModel (const RVector &startModel)
 
void setMesh (const Mesh &mesh, bool ignoreRegionManager=false)
 
Meshmesh ()
 
void createRefinedForwardMesh (bool refine=true, bool pRefine=false)
 
void deleteMesh ()
 
virtual void setJacobian (MatrixBase *J)
 
virtual void createJacobian (const RVector &model, const RVector &resp)
 
virtual void createJacobian_mt (const RVector &model, const RVector &resp)
 
MatrixBasejacobian ()
 
MatrixBasejacobian () const
 
virtual RMatrixjacobianRef () const
 
virtual RMatrixjacobianRef ()
 
virtual void clearJacobian ()
 
RVector createMappedModel (const RVector &model, double background=-9e99) const
 
void setRegionManager (RegionManager *reg)
 
const RegionManagerregionManager () const
 
RegionManagerregionManager ()
 
RegionManagerregionManagerRef ()
 
bool verbose ()
 
Regionregion (int marker)
 
RVector createStartModel ()
 
RVector createStartVector ()
 
void initRegionManager ()
 
void setThreadCount (Index nThreads)
 
Index threadCount ()
 
void setMultiThreadJacobian (Index nThreads)
 
Index multiThreadJacobian () const
 

Protected Member Functions

virtual void updateMeshDependency_ ()
 
- Protected Member Functions inherited from GIMLI::ModellingBase
virtual void init_ ()
 
virtual void deleteMeshDependency_ ()
 
virtual void updateDataDependency_ ()
 
void setMesh_ (const Mesh &mesh, bool update=true)
 

Protected Attributes

Dijkstra dijkstra_
 
double background_
 
IndexArray shotNodeId_
 
std::map< Index, Index > shotsInv_
 
IndexArray receNodeId_
 
std::map< Index, Index > receiInv_
 
std::vector< std::vector< IndexArray > > wayMatrix_
 
- Protected Attributes inherited from GIMLI::ModellingBase
Meshmesh_
 
DataContainerdataContainer_
 
MatrixBasejacobian_
 
bool ownJacobian_
 
MatrixBaseconstraints_
 
bool ownConstraints_
 
RMatrix solutions_
 
RVector startModel_
 
bool verbose_
 
bool regionManagerInUse_
 
bool ownRegionManager_
 
Index nThreads_
 
Index nThreadsJacobian_
 

Detailed Description

Modelling class for travel time problems using the Dijkstra algorithm.

TravelTimeDijkstraModelling(mesh, datacontainer)

Member Function Documentation

◆ createDefaultStartModel()

RVector GIMLI::TravelTimeDijkstraModelling::createDefaultStartModel ( )
virtual

Interface to define custom start model generators.

Reimplemented from GIMLI::ModellingBase.

Reimplemented in GIMLI::TTModellingWithOffset.

Referenced by GIMLI::TTModellingWithOffset::createDefaultStartModel().

◆ createJacobian()

void GIMLI::TravelTimeDijkstraModelling::createJacobian ( const RVector slowness)
virtual

Interface.

Reimplemented from GIMLI::ModellingBase.

Reimplemented in GIMLI::TTModellingWithOffset.

Referenced by GIMLI::TTModellingWithOffset::createJacobian().

◆ dijkstra()

const Dijkstra& GIMLI::TravelTimeDijkstraModelling::dijkstra ( ) const
inline

Read only access to the recent dijktra.

◆ initJacobian()

void GIMLI::TravelTimeDijkstraModelling::initJacobian ( )
virtual

Interface.

Reimplemented from GIMLI::ModellingBase.

Reimplemented in GIMLI::TTModellingWithOffset.

◆ response()

RVector GIMLI::TravelTimeDijkstraModelling::response ( const RVector slowness)
virtual

◆ updateMeshDependency_()

void GIMLI::TravelTimeDijkstraModelling::updateMeshDependency_ ( )
protectedvirtual

◆ way()

const IndexArray & GIMLI::TravelTimeDijkstraModelling::way ( Index  sht,
Index  rec 
) const

Returns the mesh node indieces for the way from shot to receiver, respective the data for the last Jacobian calculation. If you want further infos about the way element. You can ask the Dijkstra about the graph infos.

References receiInv_, shotsInv_, and wayMatrix_.

Member Data Documentation

◆ receiInv_

std::map< Index, Index > GIMLI::TravelTimeDijkstraModelling::receiInv_
protected

Map receiver id to sequential receiver node number of receNodeId_

Referenced by response(), updateMeshDependency_(), and way().

◆ receNodeId_

IndexArray GIMLI::TravelTimeDijkstraModelling::receNodeId_
protected

Nearest nodes for the current mesh for all receiver points.

Referenced by response(), and updateMeshDependency_().

◆ shotNodeId_

IndexArray GIMLI::TravelTimeDijkstraModelling::shotNodeId_
protected

Nearest nodes for the current mesh for all shot points.

Referenced by response(), and updateMeshDependency_().

◆ shotsInv_

std::map< Index, Index > GIMLI::TravelTimeDijkstraModelling::shotsInv_
protected

Map shot id to sequential shot node number of shotNodeId_

Referenced by response(), updateMeshDependency_(), and way().

◆ wayMatrix_

std::vector< std::vector < IndexArray > > GIMLI::TravelTimeDijkstraModelling::wayMatrix_
protected

Way matrix of the last full jacobian generation.

Referenced by way().