git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@6836 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2011-08-27 20:08:16 +00:00
parent 3179014485
commit 91f4940250
11 changed files with 32261 additions and 0 deletions

1
examples/USER/sph/README Normal file
View File

@ -0,0 +1 @@
see the USER-SPH user's guide for a detailed explanation of these examples.

View File

@ -0,0 +1,63 @@
dimension 2
units si
atom_style meso
# create simulation box
region box block -0.050e-3 1.044e-3 -0.05e-3 1.044e-3 -1.0e-6 1.0e-6 units box
create_box 3 box
# create fluid particles
region fluid block 0.0001e-3 0.999e-3 0.0001e-3 0.999e-3 EDGE EDGE side in units box
lattice sq 0.025e-3
create_atoms 1 region fluid
# create bottom, left, and right wall
region walls block 0.0001e-3 0.999e-3 0.0001e-3 EDGE EDGE EDGE side out units box
lattice sq2 0.025e-3
create_atoms 2 region walls
# create a driver strip of particles, which exerts shear forces on the fluid
region driver block EDGE EDGE 0.999e-3 EDGE EDGE EDGE side in units box
create_atoms 3 region driver
group fluid type 1
group walls type 2
group driver type 3
group integrate_full union fluid driver
mass 3 2.0e-7
mass 2 2.0e-7
mass 1 4.0e-7
set group all meso_rho 1000.0
# use Tait's EOS in combination with Morris' laminar viscosity.
# We set rho_0 = 1000 kg/m^3, c = 0.1 m/s, h = 6.5e-5 m.
# The dynamic viscosity is set to 1.0e-3 Pa s, corresponding to a kinematic viscosity of 1.0e-6 m^2/s
pair_style hybrid sph/taitwater/morris
pair_coeff * * sph/taitwater/morris 1000 0.1 1.0e-3 6.5e-5
pair_coeff 2 3 none # exclude interaction between walls and shear driver
compute rho_peratom all meso_rho/atom
compute e_peratom all meso_e/atom
compute ke_peratom all ke/atom
compute esph all reduce sum c_e_peratom
compute ke all ke
variable etot equal c_ke+c_esph
# assign a constant velocity to shear driver
velocity driver set 0.001 0.0 0.0 units box
fix freeze_fix driver setforce 0.0 0.0 0.0
# do full time integration for shear driver and fluid, but keep walls stationary
fix integrate_fix_full integrate_full meso
fix integrate_fix_stationary walls meso/stationary
dump dump_id all custom 100 dump.lammpstrj id type xs ys zs vx vy c_rho_peratom c_e_peratom
dump_modify dump_id first yes
thermo 100
thermo_style custom step c_esph v_etot
thermo_modify norm no
neighbor 3.0e-6 bin
timestep 5.0e-5
run 4000

View File

@ -0,0 +1,24 @@
#!/usr/bin/gnuplot
# compare sph/heatconduction output with analytic solution to diffusion equation
alpha = 1.0e-4
time = 4.0
analytic_profile(x) = 1.5 + 0.5*erf((x-49.5e-2)/sqrt(4.0*alpha*time))
set ylabel "internal energy per particle"
set xlabel "x position [m]"
plot [][0.5:2.5]'dump.last' u 3:6 ti "SPH simulation", analytic_profile(x) ti "analytic solution"
pause -1
#set terminal postscript color enhanced lw 2
#set out "heat_profile.ps"
set table "simu.dat"
plot [0:1][0.5:2.5]'dump.last' u 3:6
set table "analytic.dat"
set samples 1000
plot [0:1][0.5:2.5] analytic_profile(x)
#replot

View File

@ -0,0 +1,51 @@
# mesoscopic heat conduction
# heat flow from hot right region to cold left region
# compare the temperature profile at the end opf the simulation,
# contained in file dump.last, to analytic solution.
#
#
dimension 2
units si
atom_style meso
boundary f p p
lattice sq 0.01
region box block 0 100 0 10 0 0.1
create_box 1 box
create_atoms 1 box
mass 1 1.0e-5
region left block EDGE 49.9 EDGE EDGE EDGE EDGE
region right block 50 EDGE EDGE EDGE EDGE EDGE
set region left meso_e 1.0 # internal energies
set region right meso_e 2.0
set group all meso_rho 0.1 # mesoscopic density is also needed for this pair style
# For correct temperature profiles, mescoscopic density and mass * number density must coincide!
pair_style sph/heatconduction
# i j diffusion coeff. cutoff
pair_coeff 1 1 1.0e-4 2.0e-2
compute ie_atom all meso_e/atom
compute ie all reduce sum c_ie_atom
thermo 10
thermo_style custom step temp c_ie
timestep 0.25e-1
neighbor 0.2e-2 bin
fix integrate_fix all meso/stationary
dump dump_fix all custom 10 dump.heat id type x y z c_ie_atom
dump_modify dump_fix first yes
run 160
undump dump_fix
dump dump_fix all custom 10 dump.last id type x y z c_ie_atom
dump_modify dump_fix first yes
run 0
undump dump_fix
dump dump_fix all custom 10 dump.last.xs id type xs ys zs c_ie_atom
dump_modify dump_fix first yes
run 0
undump dump_fix

View File

@ -0,0 +1,49 @@
# mesoscopic heat conduction
# heat flow from hot right region to cold left region
# compare the temperature profile at the end opf the simulation,
# contained in file dump.last, to analytic solution.
#
#
units si
atom_style meso
newton on
boundary f p p
lattice sc 0.01
region box block 0 100 0 10 0 10
create_box 1 box
create_atoms 1 box
mass 1 1.0e-5
region left block EDGE 49.9 EDGE EDGE EDGE EDGE
region right block 50 EDGE EDGE EDGE EDGE EDGE
set region left meso_e 1.0 # internal energies
set region right meso_e 2.0
set group all meso_rho 10.0 # mesoscopic density is also needed for this pair style
# For correct temperature profiles, mescoscopic density and mass * number density must coincide!
pair_style sph/heatconduction
# i j diffusion coeff. cutoff
pair_coeff 1 1 1.0e-4 2.0e-2
neighbor 0.2e-2 bin
neigh_modify every 20 delay 0 check no
compute ie_atom all meso_e/atom
compute ie all reduce sum c_ie_atom
thermo_style custom step temp c_ie
thermo_modify norm no
fix integrate_fix all meso/stationary
thermo 10
timestep 0.25e-1
dump dump_fix all custom 10 dump.heat id type x y z c_ie_atom
dump_modify dump_fix first yes
run 160
undump dump_fix
dump dump_fix all custom 10 dump.last id type x y z c_ie_atom
dump_modify dump_fix first yes
run 0

View File

@ -0,0 +1,6 @@
#!/usr/bin/gnuplot
# compare SPH shock output with exact solution
plot 'dump.3d.last' u 3:6, "exact_solution.dat" w l
pause -1

View File

@ -0,0 +1,501 @@
-5.000000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.980000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.960000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.940000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.920000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.900000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.880000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.860000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.840000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.820000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.800000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.780000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.760000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.740000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.720000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.700000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.680000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.660000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.640000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.620000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.600000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.580000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.560000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.540000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.520000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.500000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.480000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.460000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.440000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.420000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.400000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.380000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.360000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.340000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.320000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.300000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.280000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.260000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.240000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.220000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.200000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.180000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.160000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.140000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.120000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.100000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.080000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.060000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.040000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.020000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-4.000000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.980000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.960000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.940000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.920000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.900000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.880000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.860000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.840000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.820000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.800000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.780000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.760000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.740000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.720000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.700000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.680000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.660000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.640000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.620000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.600000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.580000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.560000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.540000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.520000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.500000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.480000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.460000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.440000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.420000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.400000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.380000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.360000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.340000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.320000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.300000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.280000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.260000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.240000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.220000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.200000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.180000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.160000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.140000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.120000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.100000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.080000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.060000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.040000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.020000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-3.000000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.980000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.960000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.940000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.920000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.900000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.880000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.860000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.840000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.820000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.800000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.780000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.760000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.740000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.720000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.700000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.680000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.660000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.640000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.620000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.600000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.580000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.560000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.540000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.520000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.500000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.480000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.460000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.440000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.420000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.400000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.380000E+01 1.000000E+00 0.000000E+00 1.000000E+00
-2.360000E+01 9.977371E-01 2.679964E-03 9.968333E-01
-2.340000E+01 9.907267E-01 1.101330E-02 9.870414E-01
-2.320000E+01 9.837557E-01 1.934663E-02 9.773321E-01
-2.300000E+01 9.768240E-01 2.767996E-02 9.677048E-01
-2.280000E+01 9.699315E-01 3.601330E-02 9.581588E-01
-2.260000E+01 9.630780E-01 4.434663E-02 9.486937E-01
-2.240000E+01 9.562632E-01 5.267996E-02 9.393088E-01
-2.220000E+01 9.494870E-01 6.101330E-02 9.300037E-01
-2.200000E+01 9.427494E-01 6.934663E-02 9.207776E-01
-2.180000E+01 9.360500E-01 7.767996E-02 9.116301E-01
-2.160000E+01 9.293888E-01 8.601330E-02 9.025607E-01
-2.140000E+01 9.227655E-01 9.434663E-02 8.935686E-01
-2.120000E+01 9.161801E-01 1.026800E-01 8.846535E-01
-2.100000E+01 9.096323E-01 1.110133E-01 8.758147E-01
-2.080000E+01 9.031220E-01 1.193466E-01 8.670517E-01
-2.060000E+01 8.966491E-01 1.276800E-01 8.583640E-01
-2.040000E+01 8.902133E-01 1.360133E-01 8.497510E-01
-2.020000E+01 8.838145E-01 1.443466E-01 8.412122E-01
-2.000000E+01 8.774525E-01 1.526800E-01 8.327470E-01
-1.980000E+01 8.711273E-01 1.610133E-01 8.243550E-01
-1.960000E+01 8.648386E-01 1.693466E-01 8.160355E-01
-1.940000E+01 8.585862E-01 1.776800E-01 8.077881E-01
-1.920000E+01 8.523701E-01 1.860133E-01 7.996123E-01
-1.900000E+01 8.461900E-01 1.943466E-01 7.915075E-01
-1.880000E+01 8.400458E-01 2.026800E-01 7.834732E-01
-1.860000E+01 8.339374E-01 2.110133E-01 7.755090E-01
-1.840000E+01 8.278645E-01 2.193466E-01 7.676142E-01
-1.820000E+01 8.218271E-01 2.276800E-01 7.597884E-01
-1.800000E+01 8.158250E-01 2.360133E-01 7.520311E-01
-1.780000E+01 8.098579E-01 2.443466E-01 7.443417E-01
-1.760000E+01 8.039259E-01 2.526800E-01 7.367199E-01
-1.740000E+01 7.980286E-01 2.610133E-01 7.291651E-01
-1.720000E+01 7.921660E-01 2.693466E-01 7.216767E-01
-1.700000E+01 7.863379E-01 2.776800E-01 7.142544E-01
-1.680000E+01 7.805442E-01 2.860133E-01 7.068976E-01
-1.660000E+01 7.747847E-01 2.943466E-01 6.996059E-01
-1.640000E+01 7.690592E-01 3.026800E-01 6.923787E-01
-1.620000E+01 7.633676E-01 3.110133E-01 6.852156E-01
-1.600000E+01 7.577098E-01 3.193466E-01 6.781161E-01
-1.580000E+01 7.520855E-01 3.276800E-01 6.710798E-01
-1.560000E+01 7.464947E-01 3.360133E-01 6.641061E-01
-1.540000E+01 7.409373E-01 3.443466E-01 6.571946E-01
-1.520000E+01 7.354129E-01 3.526800E-01 6.503449E-01
-1.500000E+01 7.299216E-01 3.610133E-01 6.435565E-01
-1.480000E+01 7.244631E-01 3.693466E-01 6.368289E-01
-1.460000E+01 7.190373E-01 3.776800E-01 6.301617E-01
-1.440000E+01 7.136441E-01 3.860133E-01 6.235544E-01
-1.420000E+01 7.082832E-01 3.943466E-01 6.170065E-01
-1.400000E+01 7.029547E-01 4.026800E-01 6.105177E-01
-1.380000E+01 6.976582E-01 4.110133E-01 6.040875E-01
-1.360000E+01 6.923938E-01 4.193466E-01 5.977154E-01
-1.340000E+01 6.871611E-01 4.276800E-01 5.914010E-01
-1.320000E+01 6.819602E-01 4.360133E-01 5.851438E-01
-1.300000E+01 6.767908E-01 4.443466E-01 5.789435E-01
-1.280000E+01 6.716528E-01 4.526800E-01 5.727996E-01
-1.260000E+01 6.665460E-01 4.610133E-01 5.667117E-01
-1.240000E+01 6.614704E-01 4.693466E-01 5.606793E-01
-1.220000E+01 6.564257E-01 4.776800E-01 5.547021E-01
-1.200000E+01 6.514118E-01 4.860133E-01 5.487795E-01
-1.180000E+01 6.464286E-01 4.943466E-01 5.429112E-01
-1.160000E+01 6.414760E-01 5.026800E-01 5.370968E-01
-1.140000E+01 6.365538E-01 5.110133E-01 5.313359E-01
-1.120000E+01 6.316618E-01 5.193466E-01 5.256280E-01
-1.100000E+01 6.268000E-01 5.276800E-01 5.199727E-01
-1.080000E+01 6.219681E-01 5.360133E-01 5.143697E-01
-1.060000E+01 6.171661E-01 5.443466E-01 5.088185E-01
-1.040000E+01 6.123938E-01 5.526800E-01 5.033187E-01
-1.020000E+01 6.076510E-01 5.610133E-01 4.978700E-01
-1.000000E+01 6.029377E-01 5.693466E-01 4.924719E-01
-9.800000E+00 5.982537E-01 5.776800E-01 4.871240E-01
-9.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-9.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-9.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-9.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-8.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-8.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-8.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-8.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-8.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-7.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-7.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-7.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-7.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-7.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-6.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-6.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-6.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-6.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-6.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-5.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-5.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-5.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-5.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-5.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-4.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-4.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-4.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-4.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-4.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-3.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-3.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-3.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-3.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-3.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-2.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-2.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-2.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-2.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-2.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-1.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-1.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-1.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-1.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-1.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
-8.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
-6.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
-4.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
-2.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
0.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
2.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
4.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
6.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
8.000000E-01 5.938536E-01 5.855558E-01 4.821156E-01
1.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
1.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
1.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
1.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
1.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
2.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
2.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
2.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
2.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
2.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
3.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
3.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
3.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
3.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
3.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
4.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
4.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
4.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
4.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
4.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
5.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
5.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
5.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
5.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
5.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
6.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
6.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
6.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
6.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
6.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
7.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
7.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
7.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
7.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
7.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
8.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
8.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
8.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
8.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
8.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
9.000000E+00 5.938536E-01 5.855558E-01 4.821156E-01
9.200000E+00 5.938536E-01 5.855558E-01 4.821156E-01
9.400000E+00 5.938536E-01 5.855558E-01 4.821156E-01
9.600000E+00 5.938536E-01 5.855558E-01 4.821156E-01
9.800000E+00 5.938536E-01 5.855558E-01 4.821156E-01
1.000000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.020000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.040000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.060000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.080000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.100000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.120000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.140000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.160000E+01 5.938536E-01 5.855558E-01 4.821156E-01
1.180000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.200000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.220000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.240000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.260000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.280000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.300000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.320000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.340000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.360000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.380000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.400000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.420000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.440000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.460000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.480000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.500000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.520000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.540000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.560000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.580000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.600000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.620000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.640000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.660000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.680000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.700000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.720000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.740000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.760000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.780000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.800000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.820000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.840000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.860000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.880000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.900000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.920000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.940000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.960000E+01 3.963812E-01 5.855558E-01 4.821156E-01
1.980000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.000000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.020000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.040000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.060000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.080000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.100000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.120000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.140000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.160000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.180000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.200000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.220000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.240000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.260000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.280000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.300000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.320000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.340000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.360000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.380000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.400000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.420000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.440000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.460000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.480000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.500000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.520000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.540000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.560000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.580000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.600000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.620000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.640000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.660000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.680000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.700000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.720000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.740000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.760000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.780000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.800000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.820000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.840000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.860000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.880000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.900000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.920000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.940000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.960000E+01 3.963812E-01 5.855558E-01 4.821156E-01
2.980000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.000000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.020000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.040000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.060000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.080000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.100000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.120000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.140000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.160000E+01 3.963812E-01 5.855558E-01 4.821156E-01
3.180000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.200000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.220000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.240000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.260000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.280000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.300000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.320000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.340000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.360000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.380000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.400000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.420000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.440000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.460000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.480000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.500000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.520000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.540000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.560000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.580000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.600000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.620000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.640000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.660000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.680000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.700000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.720000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.740000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.760000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.780000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.800000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.820000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.840000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.860000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.880000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.900000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.920000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.940000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.960000E+01 2.500000E-01 0.000000E+00 2.500000E-01
3.980000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.000000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.020000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.040000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.060000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.080000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.100000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.120000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.140000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.160000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.180000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.200000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.220000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.240000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.260000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.280000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.300000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.320000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.340000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.360000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.380000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.400000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.420000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.440000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.460000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.480000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.500000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.520000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.540000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.560000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.580000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.600000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.620000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.640000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.660000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.680000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.700000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.720000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.740000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.760000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.780000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.800000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.820000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.840000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.860000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.880000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.900000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.920000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.940000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.960000E+01 2.500000E-01 0.000000E+00 2.500000E-01
4.980000E+01 2.500000E-01 0.000000E+00 2.500000E-01
5.000000E+01 2.500000E-01 0.000000E+00 2.500000E-01

View File

@ -0,0 +1,45 @@
atom_style meso
dimension 2
boundary s p p
region box block -100 150 -4 4 -0.1 0.1 units box
create_box 2 box
lattice sq 1.0
create_atoms 1 box
region left block EDGE 0.0 EDGE EDGE EDGE EDGE units box
region right block 1 EDGE EDGE EDGE EDGE EDGE units box
set region right type 2
mass 1 1
mass 2 0.25
set type 1 meso_e 2.5 # internal energy corresponding to p=1, rho=1
set type 2 meso_e 0.625 # internal energy corresponding to p=0.25, rho=0.25
set type 1 meso_rho 1.0
set type 2 meso_rho 0.25
pair_style hybrid/overlay sph/rhosum 1 sph/idealgas
pair_coeff * * sph/rhosum 4.0
pair_coeff * * sph/idealgas 0.75 4.0
compute rhoatom all meso_rho/atom
compute ieatom all meso_e/atom
compute emeso all reduce sum c_ieatom # total internal energy
compute ke all ke
variable etot equal c_ke+c_emeso # total energy
# dump positions and local density
dump dump_id all custom 100 dump.2d id type x z y c_rhoatom
dump_modify dump_id first yes
neighbor 0.5 bin
neigh_modify every 5 delay 0 check yes
thermo 10
thermo_style custom step c_ke c_emeso v_etot
thermo_modify norm no
fix integration_fix all meso
fix 1 all setforce NULL 0.0 0.0 # treat as a quasi 1d problem
timestep 0.05
log log.2d
run 400 # run for t=20

View File

@ -0,0 +1,48 @@
atom_style meso
boundary s p p
region box block -100 150 -4 4 -4 4 units box
create_box 2 box
lattice sc 1.0
create_atoms 1 box
region left block EDGE 0.0 EDGE EDGE EDGE EDGE units box
region right block 1 EDGE EDGE EDGE EDGE EDGE units box
set region right type 2
mass 1 1
mass 2 0.25
set type 1 meso_e 2.5 # internal energy corresponding to p=1, rho=1
set type 2 meso_e 0.625 # internal energy corresponding to p=0.25, rho=0.25
set type 1 meso_rho 1.0
set type 2 meso_rho 0.25
pair_style hybrid/overlay sph/rhosum 1 sph/idealgas
pair_coeff * * sph/rhosum 4.0
pair_coeff * * sph/idealgas 0.75 4.0
compute rhoatom all meso_rho/atom
compute ieatom all meso_e/atom
compute emeso all reduce sum c_ieatom # total internal energy
compute ke all ke
variable etot equal c_ke+c_emeso # total energy
# dump positions and local density
dump dump_id all custom 100 dump.3d id type x z y c_rhoatom
dump_modify dump_id first yes
neighbor 0.5 bin
neigh_modify every 5 delay 0 check yes
thermo 10
thermo_style custom step c_ke c_emeso v_etot
thermo_modify norm no
fix integration_fix all meso
fix 1 all setforce NULL 0.0 0.0 # treat as a quasi 1d problem
timestep 0.05
log log.3d
run 400 # run for t=20
undump dump_id
dump dump_id all custom 100 dump.3d.last id type x z y c_rhoatom
run 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,49 @@
processors 4 1 1 # manually assign processors to spatial regions
atom_style meso
dimension 2
newton on
boundary f f p
units lj
read_data data.initial
variable h equal 0.03
variable c equal 10.0 # soundspeed for Tait's EOS
variable dt equal 0.1*${h}/${c} # upper limit of timestep based on CFL-like criterion
variable nrun equal 15.0/${dt} # roughly estimate number of timesteps needed for 7.5 seconds
group bc type 2 # assign group name "bc" to boundary particles (type 2)
group water type 1 # assign group name "water" to water particles (type 1)
# use hybrid pairstyle which does density summation with cutoff ${h} every timestep (1)
pair_style hybrid/overlay sph/rhosum 1 sph/taitwater
pair_coeff * * sph/taitwater 1000.0 ${c} 1.0 ${h} # use target density of 1000, soundspeed ${c} for Tait's EOS
pair_coeff 1 1 sph/rhosum ${h}
fix gfix water gravity -9.81 vector 0 1 0 # add gravity. This fix also computes potential energy of mass in gravity field.
fix 2d_fix all enforce2d
compute rho_peratom all meso_rho/atom
compute e_peratom all meso_e/atom
compute esph all reduce sum c_e_peratom
compute ke all ke
variable etot equal c_esph+c_ke+f_gfix
# adjust nevery | min. allowed dt | max. allowed dt | max. travel distance per dt # // ${dt} ~= CFL criterion 0.1*h/c
fix dtfix all dt/reset 1 NULL ${dt} 0.0005 units box # use a variable timestep
# time-integrate position, velocities, internal energy and density of water particles
fix integrate_water_fix water meso
# time-integrate only internal energy and density of boundary particles
fix integrate_bc_fix bc meso/stationary
dump dump_id all custom 100 dump.lammpstrj id type xs ys zs c_rho_peratom c_e_peratom fx fy
dump_modify dump_id first yes
thermo 10
thermo_style custom step ke c_esph v_etot f_gfix press f_dtfix[1] f_dtfix
thermo_modify norm no
neigh_modify every 5 delay 0 check no
variable skin equal 0.3*${h}
neighbor ${skin} bin # set Verlet list skin distance
run ${nrun}