DFNgen
2.0
DFN Model Generator
|
#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 |
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.
Shape::Shape | ( | ) |
Initializes p32Target, currentP32, and radiiIdx to zero.
Definition at line 106 of file structures.cpp.
float Shape::alpha |
Alpha. Used in truncated power-law distribution calculations.
Definition at line 505 of file structures.h.
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.
float Shape::aspectRatio |
Aspect ratio for family.
Definition at line 415 of file structures.h.
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.
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.
float Shape::constRadi |
Constant distribution. Constant radii size for all fractures in the family.
Definition at line 496 of file structures.h.
float Shape::currentP32 |
Current P32 value for this family.
Definition at line 421 of file structures.h.
short Shape::distributionType |
1: Lognormal, 2: truncated power-law, 3: exponential, 4: constant
Definition at line 396 of file structures.h.
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.
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.
float Shape::expMean |
Exponential distribution option. Mean value for exponential distribution.
Definition at line 466 of file structures.h.
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.
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.
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.
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.
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.
float Shape::max |
Truncated power-law option. Maximum radius for power-law distribution.
Definition at line 502 of file structures.h.
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.
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.
float Shape::min |
Truncated power-law option. Minimum radius for power-law distribution.
Definition at line 499 of file structures.h.
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.
short Shape::numPoints |
Number of vertices used to create the polygon. Ellipse families only.
Definition at line 399 of file structures.h.
float Shape::p32Target |
Target p32 (fracture intensity) for the family when using p32 program-stopping option.
Definition at line 418 of file structures.h.
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.
unsigned int Shape::radiiIdx |
Current index to the radii list 'radiiList'.
Definition at line 405 of file structures.h.
std::vector<double> Shape::radiiList |
Initial list of fracture/polygon radii, sorted largest to smallest.
Definition at line 408 of file structures.h.
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.
short Shape::shapeFamily |
0 = ellipse, 1 = rectangle
Definition at line 393 of file structures.h.
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.
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.