Skip to content

Commit cca76d0

Browse files
authored
Merge pull request #603 from bobmyhill/update_plag
print ab cell data
2 parents cc17932 + ee75b60 commit cca76d0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contrib/anisotropic_plagioclase/plagioclase_model_plots.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@
44
from plagioclase_model import make_anisotropic_model
55
from plagioclase_data import get_data
66
from burnman.minerals.SLB_2022 import plagioclase
7+
from burnman.utils.unitcell import cell_parameters_to_vectors
8+
from burnman.constants import Avogadro
9+
10+
# First, let's convert the Brown albite cell parameters into
11+
# the model cell tensor, and also calculate the volume.
12+
cell_parameters = [8.1366e-10, 12.7857e-10, 7.1582e-10, 94.253, 116.605, 87.756]
13+
Z = 4
14+
cell_vectors = np.cbrt(Avogadro / Z) * cell_parameters_to_vectors(
15+
cell_parameters, [1, 2, 0]
16+
)
17+
np.set_printoptions(precision=6)
18+
print(cell_vectors.T)
19+
print(np.linalg.det(cell_vectors.T))
720

21+
# Now load the SLB plagioclase and the one for this study
822
ss_SLB = plagioclase()
923

1024
ss = make_anisotropic_model(scalar_args, cell_args, elastic_args)

0 commit comments

Comments
 (0)