10 for (
unsigned int i = 0; i < acceptedPoly.size(); i++) {
11 std::cout <<
"\nPoly " <<i<<
"\n";
19 std::cout <<
"\nTriple Points:\n";
20 for (
unsigned int i = 0; i < triplePoints.size(); i++) {
21 std::cout <<
"{" <<triplePoints[i].x<<
"," <<triplePoints[i].y<<
"," <<triplePoints[i].z<<
"}\n";
30 std::cout <<
"\nIntersections:\n";
31 for (
unsigned int i = 0; i < intPts.size(); i++) {
32 std::cout <<
"Fractures: " << intPts[i].fract1+1 <<
", " <<intPts[i].fract2+1<<
"\n";
33 std::cout <<
"Line: {" <<intPts[i].x1<<
"," <<intPts[i].y1<<
"," <<intPts[i].z1
34 <<
"} {" <<intPts[i].x2<<
"," <<intPts[i].y2<<
"," <<intPts[i].z2<<
"}\n";
35 std::cout <<
"Trip pts size = " <<intPts[i].triplePointsIdx.size()<<
"\n";
36 std::cout <<
"Triple Pts Index: ";
37 for (
unsigned int k = 0; k < intPts[i].triplePointsIdx.size(); k++) {
38 std::cout <<intPts[i].triplePointsIdx[k]<<
" ";
50 for (
unsigned int i = 0; i < pstats.
fractGroup.size(); i++) {
51 std::cout <<
"\nfracture group[" << i <<
"]:\n";
52 std::cout <<
"Group number = " <<pstats.
fractGroup[i].groupNum<<std::endl;
53 std::cout <<
"List of Polys:\n";
54 for(
unsigned int k= 0; k<pstats.
fractGroup[i].polyList.size(); k++) {
55 std::cout <<pstats.
fractGroup[i].polyList[k] <<
" ";
58 std::cout <<
"\nintersections on poly:\n";
59 for (
unsigned int k= 0; k < pstats.
fractGroup[i].polyList.size(); k++) {
60 std::cout << fractList[pstats.
fractGroup[i].polyList[k]].intersectionIndex.size() <<
", ";
61 std::cout <<std::endl;
65 for (
unsigned int i=0; i<pstats.
groupData.size(); i++) {
66 std::cout <<
"groupData[" << i <<
"]: {" 69 <<
"," << pstats.
groupData[i].faces[4] <<
"," << pstats.
groupData[i].faces[5] <<
"}\n";
71 std::cout <<
"size: " <<pstats.
groupData[i].size <<
"\n";
72 std::cout <<
"valid: " <<pstats.
groupData[i].valid <<
"\n";
80 std::cout <<
"numberOfNodes = " << poly.
numberOfNodes << std::endl;
81 std::cout <<
"intersectionCount = " << poly.
intersectionIndex.size() << std::endl;
82 std::cout <<
"Truncated = " << poly.
truncated<<
"\n";
83 std::cout <<
"groupNum = " << poly.
groupNum << std::endl;
84 std::cout <<
"familyNum = " << poly.
familyNum << std::endl;
85 std::cout <<
"Faces = {" << poly.
faces[0] <<
"," << poly.
faces[1] <<
"," 86 << poly.
faces[2] <<
"," << poly.
faces[3] <<
"," 87 << poly.
faces[4] <<
"," << poly.
faces[5] <<
"}\n";
88 std::cout <<
"area = " << poly.
area << std::endl;
89 std::cout <<
"aperture = " << poly.
aperture << std::endl;
90 std::cout <<
"xradius = " << poly.
xradius << std::endl;
91 std::cout <<
"yradius = " << poly.
yradius << std::endl;
92 std::cout <<
"aspectRatio = " << poly.
aspectRatio << std::endl;
93 std::cout <<
"aperture = " << poly.
aperture << std::endl;
94 std::cout <<
"normal = {" << poly.
normal[0] <<
"," << poly.
normal[1] <<
"," << poly.
normal[2] <<
"}\n";
96 std::cout <<
"permeability = " << poly.
permeability<<
"\n";
100 std::cout <<
"IntPts indices: ";
107 std::cout <<
"Vertices:\n";
122 double radToDeg = 180 / M_PI;
124 cout <<
"\nShape Families:\n";
126 for(
unsigned int i = 0; i < shapeFamilies.size(); i++) {
128 cout <<
shapeType(shapeFamilies[i]) <<
" Family " 132 if (shapeFamilies[i].shapeFamily == 0) {
133 cout <<
"Number of Vertices: " << shapeFamilies[i].numPoints << endl;
136 cout <<
"Number of Vertices: 4" << endl;
140 cout <<
"Aspect Ratio: " << shapeFamilies[i].aspectRatio << endl;
144 cout <<
"P32 (Fracture Intensity) Target: " 145 << shapeFamilies[i].p32Target << endl;
149 if (shapeFamilies[i].betaDistribution == 0) {
150 cout <<
"Beta Distribution (Rotation Around Normal Vector): [0, 2PI)" << endl;
153 cout <<
"Beta (Rotation Around Normal Vector): " 154 << shapeFamilies[i].beta <<
" rad, " 155 << shapeFamilies[i].beta * radToDeg <<
" deg" << endl;
159 cout <<
"Theta: " << shapeFamilies[i].theta <<
" rad, " 160 << shapeFamilies[i].theta * radToDeg <<
" deg" << endl;
163 cout <<
"Phi: " << shapeFamilies[i].phi <<
" rad, " 164 << shapeFamilies[i].phi * radToDeg <<
" deg " << endl;
167 cout <<
"Kappa: " << shapeFamilies[i].kappa << endl;
171 if (shapeFamilies[i].layer == 0) {
172 cout <<
"Layer: Entire domain" << endl;
175 int idx = (shapeFamilies[i].layer - 1) * 2;
176 cout <<
"Layer: " << shapeFamilies[i].layer <<
" {" <<
layers[idx]
182 switch (shapeFamilies[i].distributionType) {
184 cout <<
"Distrubution: Lognormal\n";
185 cout <<
"Mean: " << shapeFamilies[i].mean << endl;
186 cout <<
"Standard Deviation: " << shapeFamilies[i].sd << endl;
187 cout <<
"Minimum Radius: " << shapeFamilies[i].logMin <<
"m" << endl;
188 cout <<
"Maximum Radius: " << shapeFamilies[i].logMax <<
"m" << endl;
192 cout <<
"Distribution: Truncated Power-Law\n";
193 cout <<
"Alpha: " << shapeFamilies[i].alpha << endl;
194 cout <<
"Minimum Radius: " << shapeFamilies[i].min <<
"m" << endl;
195 cout <<
"Maximum Radius: " << shapeFamilies[i].max <<
"m" << endl;
199 cout <<
"Distribution: Exponential\n";
200 cout <<
"Mean: " << shapeFamilies[i].expMean << endl;
201 cout <<
"Lambda: " << shapeFamilies[i].expLambda << endl;
202 cout <<
"Minimum Radius: " << shapeFamilies[i].expMin <<
"m" << endl;
203 cout <<
"Maximum Radius: " << shapeFamilies[i].expMax <<
"m" << endl;
207 cout <<
"Distribution: Constant\n";
208 cout <<
"Radius: " << shapeFamilies[i].constRadi <<
"m" << endl;
210 cout <<
"Family Insertion Probability: " <<
famProb[i] <<
"\n\n";
void printIntersectionData(std::vector< IntPoints > &intPts)
std::string shapeType(struct Shape &shapeFam)
std::vector< struct FractureGroups > fractGroup
int getFamilyNumber(int familyIndex, int familyShape)
void printAllPolys(std::vector< Poly > &acceptedPoly)
void printPolyData(struct Poly &poly)
std::vector< struct GroupData > groupData
std::vector< unsigned int > intersectionIndex
void printGroupData(Stats &pstats, std::vector< Poly > &fractList)
void printShapeFams(std::vector< Shape > &shapeFamilies)
void printAllTriplePts(std::vector< Point > &triplePoints)