Working bcc crystal structure when viewing in .lmp or .vtk format
This commit is contained in:
parent
acd902db4b
commit
3a59b23be7
2 changed files with 14 additions and 6 deletions
|
@ -92,14 +92,15 @@ module elements
|
|||
0.5_dp, -0.5_dp, 0.5_dp, &
|
||||
1.0_dp, 0.0_dp, 1.0_dp, &
|
||||
0.5_dp, 0.5_dp, 0.5_dp, &
|
||||
0.5_dp, 0.5_dp, -0.5_dp, &
|
||||
-0.5_dp, 0.5_dp, 0.5_dp, &
|
||||
0.0_dp, 0.0_dp, 1.0_dp, &
|
||||
0.5_dp, 0.5_dp, 1.5_dp /), &
|
||||
0.5_dp, 0.5_dp, 1.5_dp, &
|
||||
0.0_dp, 1.0_dp, 1.0_dp /), &
|
||||
shape(bcc_cell))
|
||||
|
||||
bcc_mat = reshape((/ 0.5_dp, 0.5_dp, -0.5_dp, &
|
||||
-0.5_dp, 0.5_dp, 0.5_dp, &
|
||||
0.5_dp, 0.5_dp, 0.5_dp /), &
|
||||
bcc_mat = reshape((/ 0.5_dp, -0.5_dp, 0.5_dp, &
|
||||
0.5_dp, 0.5_dp, 0.5_dp, &
|
||||
-0.5_dp, 0.5_dp, 0.5_dp /), &
|
||||
shape(bcc_mat))
|
||||
|
||||
|
||||
|
@ -148,6 +149,9 @@ module elements
|
|||
end if
|
||||
cell_mat(:, 1:8) = fcc_cell + adjustVar(:,1:8)
|
||||
cell_mat(:,1:8) = lapa * ((esize-1)*matmul(orient_mat, cell_mat(:,1:8)))
|
||||
case('bcc')
|
||||
cell_mat(:,1:8) = bcc_cell
|
||||
cell_mat(:,1:8) = lapa* ((esize-1)*matmul(orient_mat, cell_mat(:,1:8)))
|
||||
case default
|
||||
print *, "Element type ", trim(ele_type), " currently not accepted"
|
||||
stop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue