DFNgen  2.0
DFN Model Generator
Shape Struct Reference

#include <structures.h>

Public Member Functions

 Shape ()
 

Public Attributes

short shapeFamily
 
short distributionType
 
short numPoints
 
float * thetaList
 
unsigned int radiiIdx
 
std::vector< double > radiiList
 
short layer
 
float aspectRatio
 
float p32Target
 
float currentP32
 
bool angleOption
 
bool betaDistribution
 
float beta
 
double theta
 
double phi
 
double kappa
 
double minDistInput
 
double maxDistInput
 
float expMean
 
float expLambda
 
float expMin
 
float expMax
 
float mean
 
float sd
 
float logMin
 
float logMax
 
float constRadi
 
float min
 
float max
 
float alpha
 

Detailed Description

Shape is used to hold varibales for all types of stochastic shapes. During getInput(), all stochastic families for both recaangles and ellipses are parsed from the user input and are placed in a Shape structure array.

Definition at line 390 of file structures.h.

Constructor & Destructor Documentation

§ Shape()

Shape::Shape ( )

Initializes p32Target, currentP32, and radiiIdx to zero.

Definition at line 106 of file structures.cpp.

Member Data Documentation

§ alpha

float Shape::alpha

Alpha. Used in truncated power-law distribution calculations.

Definition at line 505 of file structures.h.

§ angleOption

bool Shape::angleOption

True = degrees, False = radians. This variable is set while readin the user's input file. After reading in the users input file, any input in degrees will be changed to radians.

Definition at line 426 of file structures.h.

§ aspectRatio

float Shape::aspectRatio

Aspect ratio for family.

Definition at line 415 of file structures.h.

§ beta

float Shape::beta

'beta' is the rotation, or twist, around z normal before 3d rotation in radians or degrees depending on 'angleOption'.

Definition at line 435 of file structures.h.

§ betaDistribution

bool Shape::betaDistribution

'betaOption' is the rotation about the polygon's normal vector True - User Specified Rotation False - Uniform Distribution

Definition at line 431 of file structures.h.

§ constRadi

float Shape::constRadi

Constant distribution. Constant radii size for all fractures in the family.

Definition at line 496 of file structures.h.

§ currentP32

float Shape::currentP32

Current P32 value for this family.

Definition at line 421 of file structures.h.

§ distributionType

short Shape::distributionType

1: Lognormal, 2: truncated power-law, 3: exponential, 4: constant

Definition at line 396 of file structures.h.

§ expLambda

float Shape::expLambda

Exponential distribution option. Lambda value for exponential distibution. This value is set by using 1/'expMean' while reading the user's input file.

Definition at line 470 of file structures.h.

§ expMax

float Shape::expMax

Exponential distribution option. User's chosen minimum value for the distribution. The distribution will never return a value larger than this.

Definition at line 478 of file structures.h.

§ expMean

float Shape::expMean

Exponential distribution option. Mean value for exponential distribution.

Definition at line 466 of file structures.h.

§ expMin

float Shape::expMin

Exponential distribution option. User's chosen minimum value for the distribution. The distribution will never return a value smaller than this.

Definition at line 474 of file structures.h.

§ kappa

double Shape::kappa

Parameter for fisher distributions. The bigger, the more similar (less diverging) are the rectangular familiy's normal vectors.

Definition at line 448 of file structures.h.

§ layer

short Shape::layer

Layer the family belongs to. 0 is entire domain, greater than 0 is a layer. e.g. 2 would be the second layer listed in the input file under "layers:".

Definition at line 412 of file structures.h.

§ logMax

float Shape::logMax

Log-normal distribution option. User's chosen maximum value for the distribution. The distribution will never return a value smaller than this.

Definition at line 493 of file structures.h.

§ logMin

float Shape::logMin

Log-normal distribution option. User's chosen minimum value for the distribution. The distribution will never return a value smaller than this.

Definition at line 490 of file structures.h.

§ max

float Shape::max

Truncated power-law option. Maximum radius for power-law distribution.

Definition at line 502 of file structures.h.

§ maxDistInput

double Shape::maxDistInput

Value between 0 and 1. Input to distrubution which will generate the user's defined maximum value from the distribution. Currently used only for exponential distrubution in the Distributions class. Value is set during Distributions constructor.

Definition at line 463 of file structures.h.

§ mean

float Shape::mean

Log-normal distribution option. Mean of underlying normal distribution from which the log-normal distribution is created.

Definition at line 482 of file structures.h.

§ min

float Shape::min

Truncated power-law option. Minimum radius for power-law distribution.

Definition at line 499 of file structures.h.

§ minDistInput

double Shape::minDistInput

Value between 0 and 1. Input to distrubution which will generate the user's defined minimum value from the distribution. Currently used only for exponential distrubution in the Distributions class. Value is set during Distributions constructor.

Definition at line 457 of file structures.h.

§ numPoints

short Shape::numPoints

Number of vertices used to create the polygon. Ellipse families only.

Definition at line 399 of file structures.h.

§ p32Target

float Shape::p32Target

Target p32 (fracture intensity) for the family when using p32 program-stopping option.

Definition at line 418 of file structures.h.

§ phi

double Shape::phi

Phi value for fisher disturbutions (angle the projection of the polygon's normal makes with the x-y planel). Used to generate stochastic normal vectors.

Definition at line 443 of file structures.h.

§ radiiIdx

unsigned int Shape::radiiIdx

Current index to the radii list 'radiiList'.

Definition at line 405 of file structures.h.

§ radiiList

std::vector<double> Shape::radiiList

Initial list of fracture/polygon radii, sorted largest to smallest.

Definition at line 408 of file structures.h.

§ sd

float Shape::sd

Log-normal distribution option. Standard deviation of the underlying normal distribution from which the log-normal distribution is created.

Definition at line 486 of file structures.h.

§ shapeFamily

short Shape::shapeFamily

0 = ellipse, 1 = rectangle

Definition at line 393 of file structures.h.

§ theta

double Shape::theta

Theta value for fisher disturbutions (angle between z axis and polygon's normal). Used to generate stochastic normal vectors.

Definition at line 439 of file structures.h.

§ thetaList

float* Shape::thetaList

Array of thetas to build poly from, initialized while reading input and building shape structures

Definition at line 402 of file structures.h.


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