|
GPLIB++
|
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>

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) | |
| SeismicModel & | operator= (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... | |
A model for forward calculations with a wavenumber integration code, currently not in use and might be removed in a later version.
| gplib::FkModel::FkModel | ( | ) |
Definition at line 8 of file FkModel.cpp.
|
virtual |
Definition at line 12 of file FkModel.cpp.
|
inline |
Read-only access to the vector of receiver distances.
Definition at line 18 of file FkModel.h.
Referenced by WriteModel().
|
virtual |
Read the model in its native format from a file.
Implements gplib::SeismicModel.
Definition at line 66 of file FkModel.cpp.
References gplib::SeismicModel::Init(), gplib::SeismicModel::SetDensity(), gplib::SeismicModel::SetDt(), gplib::SeismicModel::SetNpts(), gplib::SeismicModel::SetPVelocity(), gplib::SeismicModel::SetQp(), gplib::SeismicModel::SetQs(), SetRecDist(), gplib::SeismicModel::SetSourceDepth(), gplib::SeismicModel::SetSVelocity(), and gplib::SeismicModel::SetThickness().
|
inline |
Read-write access to the vector of receiver distances.
Definition at line 23 of file FkModel.h.
Referenced by ReadModel().
|
virtual |
Write the model in its native format to a file.
Implements gplib::SeismicModel.
Definition at line 16 of file FkModel.cpp.
References gplib::SeismicModel::FindLayer(), gplib::SeismicModel::GetDensity(), gplib::SeismicModel::GetDt(), gplib::SeismicModel::GetNpts(), gplib::SeismicModel::GetPVelocity(), gplib::SeismicModel::GetQp(), gplib::SeismicModel::GetQs(), GetRecDist(), gplib::SeismicModel::GetSourceDepth(), gplib::SeismicModel::GetSVelocity(), and gplib::SeismicModel::GetThickness().
1.8.6