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

This class can write files specific for the synthetic surface wave codes that are part of the computer programs in seismology. More...

#include <Sdisp96Model.h>

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

Public Member Functions

void SetSpherical (const bool s)
 Do we want a spherical model or a flat earth model. More...
 
virtual void ReadModel (const std::string &filename)
 Read the model from a file. More...
 
virtual void WriteModel (const std::string &filename) const
 Write them model to a file so that the forward codes can use it. More...
 
virtual void WriteRunFile (const std::string &filename, const std::vector< double > periods) const
 Write out a script file that when run creates synthetic data with the name filename+'.asc'. More...
 
Sdisp96Modeloperator= (const Sdisp96Model &source)
 
 Sdisp96Model (const Sdisp96Model &Old)
 
 Sdisp96Model (const SurfaceWaveModel &Old)
 
 Sdisp96Model ()
 
virtual ~Sdisp96Model ()
 
- Public Member Functions inherited from gplib::SurfaceWaveModel
const trealdata & GetPvVelocities () const
 
const trealdata & GetPhVelocities () const
 
const trealdata & GetSvVelocities () const
 
const trealdata & GetShVelocities () const
 
const trealdata & GetDensities () const
 
const trealdata & GetThicknesses () const
 
const trealdata & GetEta () const
 
const trealdata & GetQmu () const
 
const trealdata & GetQkappa () const
 
std::string GetName () const
 
trealdata & SetPvVelocities ()
 
trealdata & SetPhVelocities ()
 
trealdata & SetSvVelocities ()
 
trealdata & SetShVelocities ()
 
trealdata & SetDensities ()
 
trealdata & SetThicknesses ()
 
trealdata & SetEta ()
 
trealdata & SetQmu ()
 
trealdata & SetQkappa ()
 
double GetMaxDepth (const double depth)
 
int SplitLayer (const int index, const double maxthick)
 Splits a layer into several layers with a maximum thickness of maxthick, but otherwise identical properties. More...
 
void AddDiscontinuity (const int index)
 Insert a layer with 0 thickness to create a discontinuity for the forward code. More...
 
void MergeModel (const SurfaceWaveModel &Background)
 Merge this model with another background model, the depth range below this model will be filled with the values from the background model. More...
 
void WritePlot (const std::string &filename) const
 Write out an ascii file for plotting with xmgrace or similar programs. More...
 
SurfaceWaveModeloperator= (const SurfaceWaveModel &source)
 
 SurfaceWaveModel (const SurfaceWaveModel &Old)
 
 SurfaceWaveModel ()
 
virtual ~SurfaceWaveModel ()
 

Additional Inherited Members

- Protected Member Functions inherited from gplib::SurfaceWaveModel
void CheckConsistency () const
 

Detailed Description

This class can write files specific for the synthetic surface wave codes that are part of the computer programs in seismology.

Definition at line 12 of file Sdisp96Model.h.

Constructor & Destructor Documentation

gplib::Sdisp96Model::Sdisp96Model ( const Sdisp96Model Old)

Definition at line 31 of file Sdisp96Model.cpp.

gplib::Sdisp96Model::Sdisp96Model ( const SurfaceWaveModel Old)
inline

Definition at line 31 of file Sdisp96Model.h.

gplib::Sdisp96Model::Sdisp96Model ( )

Definition at line 13 of file Sdisp96Model.cpp.

gplib::Sdisp96Model::~Sdisp96Model ( )
virtual

Definition at line 18 of file Sdisp96Model.cpp.

Member Function Documentation

Sdisp96Model & gplib::Sdisp96Model::operator= ( const Sdisp96Model source)

Definition at line 22 of file Sdisp96Model.cpp.

References gplib::SurfaceWaveModel::operator=().

void gplib::Sdisp96Model::ReadModel ( const std::string &  filename)
virtual

Read the model from a file.

Implements gplib::SurfaceWaveModel.

Definition at line 37 of file Sdisp96Model.cpp.

void gplib::Sdisp96Model::SetSpherical ( const bool  s)
inline

Do we want a spherical model or a flat earth model.

Definition at line 18 of file Sdisp96Model.h.

void gplib::Sdisp96Model::WriteModel ( const std::string &  filename) const
virtual
void gplib::Sdisp96Model::WriteRunFile ( const std::string &  filename,
const std::vector< double >  periods 
) const
virtual

Write out a script file that when run creates synthetic data with the name filename+'.asc'.

Implements gplib::SurfaceWaveModel.

Definition at line 84 of file Sdisp96Model.cpp.

References gplib::SurfaceWaveModel::CheckConsistency().

Referenced by gplib::SurfaceWaveSynthetic::PreParallel().


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