use compliant box creation for 2d

This commit is contained in:
Axel Kohlmeyer
2024-08-12 21:25:42 -04:00
parent 8a77949db2
commit 2115ac8971
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ variable mass equal $a*$a*$a*${rho_0}
variable dt equal 1e-3 # timestep microseconds variable dt equal 1e-3 # timestep microseconds
variable skin equal 0.2*$h variable skin equal 0.2*$h
region box block -${Lb} ${Lb} -${Lb} ${Lb} 0 ${a} units box region box block -${Lb} ${Lb} -${Lb} ${Lb} -0.5 0.5 units box
create_box 4 box create_box 4 box
lattice sq $a lattice sq $a

View File

@ -14,7 +14,7 @@ variable mass equal $a*$a*$a*${rho_0}
variable dt equal 1e-3 # timestep microseconds variable dt equal 1e-3 # timestep microseconds
variable skin equal 0.2*$h variable skin equal 0.2*$h
region box block -$L $L -$L $L 0 $a units box region box block -$L $L -$L $L -0.5 0.5 units box
create_box 2 box create_box 2 box
lattice sq $a lattice sq $a