Added pore network preprocessing tool

This commit is contained in:
James E McClure committed 2018-03-19 14:03:11 -04:00
1 parent 8f20ca3946
commit 36fc913ee7
1 file changed
+12 -2
+12 -2
View File
@@ -152,8 +152,18 @@ int main(int argc, char **argv)
int ncyl = 20;
int nsph = 8;
cylinders = DoubleArray(7,ncyl); // (x, y, z, X, Y, Z, radius)
spheres = DoubleArray(4,nsph); // ( x, y, z, radius)
DoubleArray cylinders(7,ncyl); // (x, y, z, X, Y, Z, radius)
DoubleArray spheres(4,nsph); // ( x, y, z, radius)
// Read from text file
ifstream SPHERES ( "spheres.csv" ); // declare file stream: http://www.cplusplus.com/reference/iostream/ifstream/
string value;
while ( SPHERES.good() )
{
printf("Reading spheres \n");
getline ( SPHERES, value, ',' ); // read a string until next comma: http://www.cplusplus.com/reference/string/getline/
cout << string( value, 1, value.length()-2 ); // display value removing the first and the last character from it
}
sum=0;
for (k=0;k<Nz;k++){