1.8.0
CCC
 
Loading...
Searching...
No Matches
gstlrn::FracList Class Reference

#include <FracList.hpp>

Inheritance diagram for gstlrn::FracList:
gstlrn::AStringable

Public Member Functions

 FracList (Id ndisc=1000, bool flag_check=true, double low0=EPSILON8, double low1=EPSILON6, double eps=EPSILON3)
 
 FracList (const FracList &r)
 
FracListoperator= (const FracList &r)
 
virtual ~FracList ()
 
String toString (const AStringFormat *strfmt=nullptr) const override
 Interface for AStringable.
 
Id getNFracs () const
 
Id simulate (const FracEnviron &envir, bool flag_sim_layer, bool flag_sim_fract, Id seed, bool verbose, const 1 &elevations=1())
 
void addDescription (const FracDesc &description=FracDesc())
 
MatrixDense fractureExport () const
 
MatrixDense layinfoExport () const
 
Id fractureToBlock (DbGrid *dbgrid, double xmax, 1 &permtab, double perm_mat, double perm_bench, Id ndisc=1000., bool verbose=false, const NamingConvention &namconv=NamingConvention("Fractures"))
 
 fractureToWell (Id nval, const 1 &well, double xmax, const 1 &permtab, Id *nint, Id *ncol)
 
Id fractureWellToBlock (DbGrid *dbgrid, Id col_perm, Id col_fluid, Id flag_fluid, double val_fluid, const 1 &wellout, Id nval, Id ndisc=1000., bool verbose=false)
 
 fractureExtractLength (Id ifam, double cote, double dcote)
 
 fractureExtractDist (Id ifam, double cote, double dcote)
 
void setFamily (Id i, Id ifam)
 
void setOrient (Id i, double orient)
 
void addPoint (Id i, double xx, double yy)
 
- Public Member Functions inherited from gstlrn::AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (Id level) const final
 

Static Public Member Functions

static FracListfractureImport (const 1 &frac_segs, const 1 &layinfo=1(), Id nfamilies=0)
 

Constructor & Destructor Documentation

◆ FracList() [1/2]

gstlrn::FracList::FracList ( Id  ndisc = 1000,
bool  flag_check = true,
double  low0 = EPSILON8,
double  low1 = EPSILON6,
double  eps = EPSILON3 
)

◆ FracList() [2/2]

gstlrn::FracList::FracList ( const FracList r)

◆ ~FracList()

gstlrn::FracList::~FracList ( )
virtual

Member Function Documentation

◆ addDescription()

void gstlrn::FracList::addDescription ( const FracDesc description = FracDesc())

◆ addPoint()

void gstlrn::FracList::addPoint ( Id  i,
double  xx,
double  yy 
)
inline

◆ fractureExport()

MatrixDense gstlrn::FracList::fractureExport ( ) const

Export the Fractures

◆ fractureExtractDist()

gstlrn::FracList::fractureExtractDist ( Id  ifam,
double  cote,
double  dcote 
)

Extract the fracture interdistances

Returns
The returned array
Parameters
[in]ifamRank of the family or ITEST for all
[in]coteSelected layer or TEST for all layers
[in]dcoteTolerance on the layer elevation

◆ fractureExtractLength()

gstlrn::FracList::fractureExtractLength ( Id  ifam,
double  cote,
double  dcote 
)

Extract the array of fracture lengths

Returns
The returned array
Parameters
[in]ifamRank of the family or ITEST for all
[in]coteSelected layer or TEST for all layers
[in]dcoteTolerance on the layer elevation

◆ fractureImport()

FracList * gstlrn::FracList::fractureImport ( const 1 &  frac_segs,
const 1 &  layinfo = 1(),
Id  nfamilies = 0 
)
static

Import the Fractures

Returns
Pointer to the FracList structure
Parameters
[in]frac_segsArray of fracture segments
[in]layinfoArray of layer information
[in]nfamiliesNumber of families

◆ fractureToBlock()

Id gstlrn::FracList::fractureToBlock ( DbGrid dbgrid,
double  xmax,
1 &  permtab,
double  perm_mat,
double  perm_bench,
Id  ndisc = 1000.,
bool  verbose = false,
const NamingConvention namconv = NamingConvention("Fractures") 
)

Plunge a subset of the simulated fractures into a block

Returns
Error return code
Parameters
[in,out]dbgridDb structure
[in]xmaxMaximum extension along horizontal axis
[in]permtabPermabilities per family (starting from 0)
[in]perm_matPermability for the matrix
[in]perm_benchPermability along the bench edge
[in]ndiscNumber of discretization steps
[in]verboseVerbose flag
[in]namconvNaming convention

◆ fractureToWell()

gstlrn::FracList::fractureToWell ( Id  nval,
const 1 &  well,
double  xmax,
const 1 &  permtab,
Id nint,
Id ncol 
)

Plunge a well line in a set of fractures

Returns
Array of the intersections (should be checked against NULL)
Parameters
[in]nvalNumber of well information
[in]wellArray giving the well trajectory
[in]xmaxMaximum extension along horizontal axis
[in]permtabPermabilities per family (starting from 0) Optional
[out]nintNumber of intersections
[out]ncolNumber of attributes per intersection
Remarks
Output array must be freed by the calling function

◆ fractureWellToBlock()

Id gstlrn::FracList::fractureWellToBlock ( DbGrid dbgrid,
Id  col_perm,
Id  col_fluid,
Id  flag_fluid,
double  val_fluid,
const 1 &  wellout,
Id  nval,
Id  ndisc = 1000.,
bool  verbose = false 
)

Plunge a line trajectory and the modified permeabilities within an existing block

Returns
Error return code
Parameters
[in,out]dbgridDb structure
[in]col_permExisting attribute for permeability (or ITEST)
[in]col_fluidExisting attribute for fluid (or ITEST)
[in]flag_fluid1 for performing the Fluid filling
[in]val_fluidValue assigned to the fluid
[in]welloutPointer to the new wellout information
[in]nvalNumber of values for wellout informations
[in]ndiscNumber of discretization steps
[in]verboseVerbose flag

◆ getNFracs()

Id gstlrn::FracList::getNFracs ( ) const
inline

◆ layinfoExport()

MatrixDense gstlrn::FracList::layinfoExport ( ) const
inline

◆ operator=()

FracList & gstlrn::FracList::operator= ( const FracList r)

◆ setFamily()

void gstlrn::FracList::setFamily ( Id  i,
Id  ifam 
)
inline

◆ setOrient()

void gstlrn::FracList::setOrient ( Id  i,
double  orient 
)
inline

◆ simulate()

Id gstlrn::FracList::simulate ( const FracEnviron envir,
bool  flag_sim_layer,
bool  flag_sim_fract,
Id  seed,
bool  verbose,
const 1 &  elevations = 1() 
)

Simulate a set of fractures

Parameters
[in]envirEnviron structure
[in]flag_sim_layerTRUE for simulating layers FALSE if they are read
[in]flag_sim_fractTRUE for simulating the fractures FALSE establish the layers and the main faults
[in]elevationsArray of elevations (used if flag_sim_layer=F)
[in]seedSeed for the random number generator
[in]verboseVerbose option

◆ toString()

String gstlrn::FracList::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

Interface for AStringable.

Reimplemented from gstlrn::AStringable.


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