gstlearn  1.0.0
CCC
FracFault Class Reference

#include <FracFault.hpp>

Inheritance diagram for FracFault:
AStringable ASerializable

Public Member Functions

 FracFault (double coord=0., double orient=0.)
 
 FracFault (const FracFault &r)
 
FracFaultoperator= (const FracFault &r)
 
virtual ~FracFault ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable. More...
 
double getCoord () const
 
double getOrient () const
 
VectorDouble getRangel () const
 
VectorDouble getRanger () const
 
VectorDouble getThetal () const
 
VectorDouble getThetar () const
 
double getRangel (int i) const
 
double getRanger (int i) const
 
double getThetal (int i) const
 
double getThetar (int i) const
 
int getNFamilies () const
 
double faultAbscissae (double cote) const
 
void addFaultPerFamily (double thetal, double thetar, double rangel, double ranger)
 
void setRangel (const VectorDouble &rangel)
 
void setRanger (const VectorDouble &ranger)
 
void setThetal (const VectorDouble &thetal)
 
void setThetar (const VectorDouble &thetar)
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)
 
ASerializableoperator= (const ASerializable &r)
 
virtual ~ASerializable ()
 
bool deserialize (std::istream &is, bool verbose=true)
 
bool serialize (std::ostream &os, bool verbose=true) const
 
bool dumpToNF (const String &neutralFilename, bool verbose=false) const
 

Protected Member Functions

virtual bool _deserialize (std::istream &is, bool verbose=false) override
 Interface for ASerializable. More...
 
virtual bool _serialize (std::ostream &os, bool verbose=false) const override
 
String _getNFName () const override
 
- Protected Member Functions inherited from ASerializable
bool _fileOpenWrite (const String &filename, std::ofstream &os, bool verbose=false) const
 
bool _fileOpenRead (const String &filename, std::ifstream &is, bool verbose=false) const
 

Private Attributes

double _coord
 Abscissas of the first Fault point. More...
 
double _orient
 Fault orientation. More...
 
VectorDouble _thetal
 Maximum density on left. More...
 
VectorDouble _thetar
 Maximum density on right. More...
 
VectorDouble _rangel
 Decrease range on left. More...
 
VectorDouble _ranger
 Decrease range on right. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ASerializable
static String buildFileName (int status, const String &filename, bool ensureDirExist=false)
 
static String getHomeDirectory (const String &sub="")
 
static String getWorkingDirectory ()
 
static String getTestData (const String &subdir, const String &filename)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setContainerName (bool useDefault, const String &containerName="", bool verbose=false)
 
static void unsetContainerName ()
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetContainerName ()
 
static const StringgetPrefixName ()
 
static bool createDirectory (const String &dir)
 
static String getExecDirectory ()
 
static String getDirectory (const String &path)
 
- Static Protected Member Functions inherited from ASerializable
static bool _commentWrite (std::ostream &os, const String &comment)
 
template<typename T >
static bool _recordWrite (std::ostream &os, const String &title, const T &val)
 
template<typename T >
static bool _recordWriteVec (std::ostream &os, const String &title, const VectorT< T > &vec)
 
template<typename T >
static bool _recordRead (std::istream &is, const String &title, T &val)
 
template<typename T >
static bool _recordReadVec (std::istream &is, const String &title, VectorT< T > &vec, int nvalues)
 
static bool _onlyBlanks (char *string)
 
static bool _tableRead (std::istream &is, const String &string, int ntab, double *tab)
 
static bool _tableWrite (std::ostream &os, const String &string, int ntab, const VectorDouble &tab)
 

Constructor & Destructor Documentation

◆ FracFault() [1/2]

FracFault::FracFault ( double  coord = 0.,
double  orient = 0. 
)

◆ FracFault() [2/2]

FracFault::FracFault ( const FracFault r)

◆ ~FracFault()

FracFault::~FracFault ( )
virtual

Member Function Documentation

◆ _deserialize()

bool FracFault::_deserialize ( std::istream &  is,
bool  verbose = false 
)
overrideprotectedvirtual

Interface for ASerializable.

Implements ASerializable.

◆ _getNFName()

String FracFault::_getNFName ( ) const
inlineoverrideprotectedvirtual

Implements ASerializable.

◆ _serialize()

bool FracFault::_serialize ( std::ostream &  os,
bool  verbose = false 
) const
overrideprotectedvirtual

Implements ASerializable.

◆ addFaultPerFamily()

void FracFault::addFaultPerFamily ( double  thetal,
double  thetar,
double  rangel,
double  ranger 
)

◆ faultAbscissae()

double FracFault::faultAbscissae ( double  cote) const

Calculate the abscissae of a fault at a given elevation

Returns
The fault abscissae
Parameters
[in]coteOrdinate of the fracture starting point

◆ getCoord()

double FracFault::getCoord ( ) const
inline

◆ getNFamilies()

int FracFault::getNFamilies ( ) const
inline

◆ getOrient()

double FracFault::getOrient ( ) const
inline

◆ getRangel() [1/2]

VectorDouble FracFault::getRangel ( ) const
inline

◆ getRangel() [2/2]

double FracFault::getRangel ( int  i) const
inline

◆ getRanger() [1/2]

VectorDouble FracFault::getRanger ( ) const
inline

◆ getRanger() [2/2]

double FracFault::getRanger ( int  i) const
inline

◆ getThetal() [1/2]

VectorDouble FracFault::getThetal ( ) const
inline

◆ getThetal() [2/2]

double FracFault::getThetal ( int  i) const
inline

◆ getThetar() [1/2]

VectorDouble FracFault::getThetar ( ) const
inline

◆ getThetar() [2/2]

double FracFault::getThetar ( int  i) const
inline

◆ operator=()

FracFault & FracFault::operator= ( const FracFault r)

◆ setRangel()

void FracFault::setRangel ( const VectorDouble rangel)
inline

◆ setRanger()

void FracFault::setRanger ( const VectorDouble ranger)
inline

◆ setThetal()

void FracFault::setThetal ( const VectorDouble thetal)
inline

◆ setThetar()

void FracFault::setThetar ( const VectorDouble thetar)
inline

◆ toString()

String FracFault::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from AStringable.

Member Data Documentation

◆ _coord

double FracFault::_coord
private

Abscissas of the first Fault point.

◆ _orient

double FracFault::_orient
private

Fault orientation.

◆ _rangel

VectorDouble FracFault::_rangel
private

Decrease range on left.

◆ _ranger

VectorDouble FracFault::_ranger
private

Decrease range on right.

◆ _thetal

VectorDouble FracFault::_thetal
private

Maximum density on left.

◆ _thetar

VectorDouble FracFault::_thetar
private

Maximum density on right.


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