Commit d49b0740 authored by Patrick Shriwise's avatar Patrick Shriwise
Browse files

Removing rescaling factors from the pebble centers entirely.

parent 44922bd7
This diff is collapsed.
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<plots> <plots>
<plot basis="xy" color_by="material" filename="plot1" id="1" type="slice"> <plot color_by="material" filename="plotv1" id="5" type="voxel">
<origin>0 0 0</origin> <origin>0 0 0</origin>
<width>30.25 30.25</width> <width>20 20 20</width>
<pixels>1000 1000</pixels> <pixels>400 400 400</pixels>
<color id="1" rgb="165 42 42" />
<color id="2" rgb="176 196 222" />
<color id="3" rgb="0 0 255" />
<color id="4" rgb="255 165 0" />
<color id="5" rgb="0 255 255" />
<color id="6" rgb="0 191 255" />
<color id="7" rgb="0 0 128" />
<color id="8" rgb="255 255 0" />
</plot>
<plot basis="xy" color_by="material" filename="plot2" id="2" type="slice">
<origin>0 0 1</origin>
<width>30.25 30.25</width>
<pixels>1000 1000</pixels>
<color id="1" rgb="165 42 42" />
<color id="2" rgb="176 196 222" />
<color id="3" rgb="0 0 255" />
<color id="4" rgb="255 165 0" />
<color id="5" rgb="0 255 255" />
<color id="6" rgb="0 191 255" />
<color id="7" rgb="0 0 128" />
<color id="8" rgb="255 255 0" />
</plot>
<plot basis="xy" color_by="material" filename="plot3" id="3" type="slice">
<origin>0 0 1</origin>
<width>30.25 30.25</width>
<pixels>1000 1000</pixels>
<color id="1" rgb="165 42 42" />
<color id="2" rgb="176 196 222" />
<color id="3" rgb="0 0 255" />
<color id="4" rgb="255 165 0" />
<color id="5" rgb="0 255 255" />
<color id="6" rgb="0 191 255" />
<color id="7" rgb="0 0 128" />
<color id="8" rgb="255 255 0" />
</plot>
<plot basis="xz" color_by="material" filename="plot4" id="4" type="slice">
<origin>0 0 5.08</origin>
<width>31.49 31.49</width>
<pixels>1000 1000</pixels>
<color id="1" rgb="165 42 42" /> <color id="1" rgb="165 42 42" />
<color id="2" rgb="176 196 222" /> <color id="2" rgb="176 196 222" />
<color id="3" rgb="0 0 255" /> <color id="3" rgb="0 0 255" />
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<domain_type>material</domain_type> <domain_type>material</domain_type>
<domain_ids>1</domain_ids> <domain_ids>1</domain_ids>
<samples>10000000</samples> <samples>10000000</samples>
<lower_left>-1.4 -1.4 -1.4</lower_left> <lower_left>-10 -10 -10</lower_left>
<upper_right>1.4 1.4 1.4</upper_right> <upper_right>10 10 10</upper_right>
</volume_calc> </volume_calc>
</settings> </settings>
...@@ -63,8 +63,6 @@ radius_pebble_flibe = radius_pebble_outer+tolerance ...@@ -63,8 +63,6 @@ radius_pebble_flibe = radius_pebble_outer+tolerance
# Pebble centers coordinates (x,y,z) # Pebble centers coordinates (x,y,z)
print("Reading pseudo-random pebble centers from file pebble_centers.txt") print("Reading pseudo-random pebble centers from file pebble_centers.txt")
pebble_centers = np.loadtxt('list_pebbles_1568.csv', delimiter=',', skiprows=1)[:, 1:] pebble_centers = np.loadtxt('list_pebbles_1568.csv', delimiter=',', skiprows=1)[:, 1:]
pebble_centers *= tamu_exp_factor # pebbles centers have cm unit and must be scaled by TAMU experiment factor
pebble_centers *= 0.5
print("File pebble_centers.txt reading completed") print("File pebble_centers.txt reading completed")
rescaled_file = 'pebble_centers_rescaled.txt' rescaled_file = 'pebble_centers_rescaled.txt'
np.savetxt(rescaled_file, pebble_centers.reshape((-1,3))) np.savetxt(rescaled_file, pebble_centers.reshape((-1,3)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment