Dear all,
When i do a simple practice on ATC, using my own python script to create Non-orthogonal mesh, the problem occur.
Here is part of my in.* file, before using fix atc command, i create atoms with read_data Be84_B16.dat command and it’s a Hexagonal structure(30x30x30 suppercell contains 54000 atoms) :
# Create region for ATC
variable tmp1 equal (${xhi_final}-${xlo_final})/30
variable tmp2 equal (${yhi_final}-${ylo_final})/30
variable tmp3 equal (${zhi_final}-${zlo_final})/30
variable tmp4 equal ${xy_final}/30
variable tmp5 equal ${xz_final}/30
variable tmp6 equal ${yz_final}/30
region BOx prism ${xlo_final} ${xhi_final} ${ylo_final} ${yhi_final} ${zlo_final} ${zhi_final} ${xy_final} ${xz_final} ${yz_final} units box
lattice custom 1.0 a1 ${tmp1} 0.0 0.0 a2 ${tmp4} ${tmp2} 0.0 &
a3 ${tmp5} ${tmp6} ${tmp3} basis 0.33333 0.666667 0.25 basis 0.666667 0.333333 0.75
#ID group atc PhysicsType ParameterFile
fix AtC all atc field
#fix_modify AtC mesh create 15 15 15 BOx p p p
fix_modify AtC atom_weight element
fix_modify AtC mesh read data.mesh p p p
fix_modify AtC fields none
fix_modify AtC fields add displacement
fix_modify AtC fields add internal_energy stress cauchy_born_energy cauchy_born_stress
fix_modify AtC gradients add displacement
fix_modify AtC set reference_potential_energy 0.
And I got the error from log file:
Lattice spacing in x,y,z = 3.3897385 1.9570665 3.5698780
ATC: constructing shape function field estimate
ATC: version 2.0
ATC: peratom PE compute created with ID: 3
ATC: read 2816 nodes
ATC: read 2250 HEX8 elements
ATC: condensed 256 periodic nodes in the 3 direction
ATC: P12, ERROR: can't match periodic nodes with tolerance 1.12991
ATC: P14, ERROR: can't match periodic nodes with tolerance 1.12991
ATC: P1, ERROR: can't match periodic nodes with tolerance 1.12991
I would appreciate it if someone could help .I also upload my script and mesh file.
8HEX.py (3.9 KB)
data.mesh (182.8 KB)