GPLIB++
Public Member Functions | List of all members
gplib::FkModel Class Reference

A model for forward calculations with a wavenumber integration code, currently not in use and might be removed in a later version. More...

#include <FkModel.h>

Inheritance diagram for gplib::FkModel:
Inheritance graph
[legend]

Public Member Functions

const trealdata & GetRecDist () const
 Read-only access to the vector of receiver distances. More...
 
trealdata & SetRecDist ()
 Read-write access to the vector of receiver distances. More...
 
virtual void ReadModel (const std::string filename)
 Read the model in its native format from a file. More...
 
virtual void WriteModel (const std::string filename)
 Write the model in its native format to a file. More...
 
 FkModel ()
 
virtual ~FkModel ()
 
- Public Member Functions inherited from gplib::SeismicModel
unsigned int GetNpts () const
 Get the number of points for synthetic seismogram calculation. More...
 
void SetNpts (const unsigned int s)
 Set the number of points for synthetic seismogram calculation. More...
 
double GetSourceDepth () const
 Get the depth to the seismic source that generates the wavefield. More...
 
void SetSourceDepth (const double s)
 Set the depth to the seismic source. More...
 
double GetDt () const
 Get the time between two samples in s, this is for synthetic forward calculations. More...
 
void SetDt (const double s)
 Set the time between two samples in s, this is for synthetic forward calculations. More...
 
const trealdata & GetPVelocity () const
 Read-only access to the vector of P-velocities in km/s in each layer. More...
 
trealdata & SetPVelocity ()
 Read-write access to the vector of P-velocities in km/s in each layer. More...
 
const trealdata & GetSVelocity () const
 Read-only access to the vector of S-velocities in km/s in each layer. More...
 
trealdata & SetSVelocity ()
 Read-write access to the vector of S-velocities in km/s in each layer. More...
 
const trealdata & GetDensity () const
 Read-only access to the vector of densities in g/cm^3 in each layer. More...
 
trealdata & SetDensity ()
 Read-write access to the vector of densities in g/cm^3 in each layer. More...
 
const trealdata & GetThickness () const
 Read-only access to the vector of thicknesses in km in each layer. More...
 
trealdata & SetThickness ()
 Read-write access to the vector of thicknesses in km in each layer. More...
 
const trealdata & GetQp () const
 Read-only access to the vector of P quality factors for each layer. More...
 
trealdata & SetQp ()
 Read-write access to the vector of P quality factors for each layer. More...
 
const trealdata & GetQs () const
 Read-only access to the vector of S quality factors for each layer. More...
 
trealdata & SetQs ()
 Read-write access to the vector of S quality factors for each layer. More...
 
void SetSVelErrors (const trealdata &sve)
 Set error bars on S-velocities for plotting. More...
 
void SetThickErrors (const trealdata &te)
 Set error bars on Thicknesses for plotting. More...
 
int FindLayer (const double depth)
 Returns the index of the layer that correponds to depth in km. More...
 
double MatchSlowness (const double slowness, const tArrivalType mode)
 Given a slowness in s/km and a wave type calculate the distance that matches this slowness. More...
 
double CalcArrival (const tArrivalType mode, const double recdist)
 
double CalcTravelTime (const tArrivalType mode, const double sdepth, const double rdepth, const double p)
 
virtual void WriteRunFile (const std::string &filename)=0
 Write out a script that performs a forward calculation for the current model. More...
 
void WritePlot (const std::string &filename)
 Write out an ascii file for plotting with xmgrace etc. More...
 
void PlotVelWithErrors (const std::string &filename)
 Write out an ascii file with error bars for plotting with xmgrace etc. More...
 
void Init (const int nlayers)
 Init provides a convenient way to allocate memory in all structures for a given number of layers. More...
 
 SeismicModel (const int nlayers=0)
 
 SeismicModel (const SeismicModel &source)
 
SeismicModeloperator= (const SeismicModel &source)
 
virtual ~SeismicModel ()
 

Additional Inherited Members

- Public Types inherited from gplib::SeismicModel
enum  tArrivalType { DirectS, DirectP }
 Do we want to calculate the arrival of a direct S-Wave or a P-wave. More...
 

Detailed Description

A model for forward calculations with a wavenumber integration code, currently not in use and might be removed in a later version.

Definition at line 12 of file FkModel.h.

Constructor & Destructor Documentation

gplib::FkModel::FkModel ( )

Definition at line 8 of file FkModel.cpp.

gplib::FkModel::~FkModel ( )
virtual

Definition at line 12 of file FkModel.cpp.

Member Function Documentation

const trealdata& gplib::FkModel::GetRecDist ( ) const
inline

Read-only access to the vector of receiver distances.

Definition at line 18 of file FkModel.h.

Referenced by WriteModel().

void gplib::FkModel::ReadModel ( const std::string  filename)
virtual
trealdata& gplib::FkModel::SetRecDist ( )
inline

Read-write access to the vector of receiver distances.

Definition at line 23 of file FkModel.h.

Referenced by ReadModel().

void gplib::FkModel::WriteModel ( const std::string  filename)
virtual

The documentation for this class was generated from the following files: