Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dust coagulation #25

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 146 additions & 0 deletions inputs/dust/SI_strat1_amr_BA.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# ========================================================================================
# (C) (or copyright) 2023-2024. Triad National Security, LLC. All rights reserved.
#
# This program was produced under U.S. Government contract 89233218CNA000001 for Los
# Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC
# for the U.S. Department of Energy/National Nuclear Security Administration. All rights
# in the program are reserved by Triad National Security, LLC, and the U.S. Department
# of Energy/National Nuclear Security Administration. The Government is granted for
# itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide
# license in this material to reproduce, prepare derivative works, distribute copies to
# the public, perform publicly and display publicly, and to permit others to do so.
# ========================================================================================

<artemis>
problem = SI_strat # name of the pgen
coordinates = cartesian

<parthenon/job>
problem_id = runBA # problem ID: basename of output filenames

<parthenon/output0>
file_type = hst
dt = 0.01

<parthenon/output1>
variables = gas.prim.density, &
gas.prim.velocity, &
dust.prim.density, &
dust.prim.velocity

file_type = hdf5 # HDF5 data dump
dt = 2.0 # time increment between outputs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

align comments here and elsewhere.


<parthenon/output2>
file_type = rst
dt = 100.0

<parthenon/time>
nlim = -1 # cycle limit
tlim = 400.0 # time limit
integrator = rk2 # time integration algorithm
ncycle_out = 100 # interval for stdout summary info

<parthenon/mesh>
nx1 = 1024 # Number of zones in X1-direction
x1min = -0.4 # minimum value of X1
x1max = 0.4 # maximum value of X1
ix1_bc = extrapolate # Inner-X1 boundary condition flag
ox1_bc = extrapolate # Outer-X1 boundary condition flag

nx2 = 512 # Number of zones in X2-direction
x2min = -0.2 # minimum value of X2
x2max = 0.2 # maximum value of X2
ix2_bc = extrapolate # Inner-X2 boundary condition flag
ox2_bc = extrapolate # Outer-X2 boundary condition flag

nx3 = 1 # Number of zones in X3-direction
x3min = -0.5 # minimum value of X3
x3max = 0.5 # maximum value of X3
ix3_bc = periodic # Inner-X3 boundary condition flag
ox3_bc = periodic # Outer-X3 boundary condition flag

# nghost = 2
refinement = static
numlevel = 2 #3

<parthenon/static_refinement1>
x1min = -0.3
x1max = 0.3
x2min = -0.02
x2max = 0.02
level = 1


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove extraneous whitespace here and elsewhere.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this input is removed in the new code


<parthenon/meshblock>
nx1 = 16 # Number of cells in each MeshBlock, X1-dir
nx2 = 16 # Number of cells in each MeshBlock, X2-dir
nx3 = 16 # Number of cells in each MeshBlock, X3-dir

<physics>
gas = true
gravity = false
rotating_frame = true
dust = true

<gas>
cfl = 0.6
gamma = 1.000001
reconstruct = plm
riemann = hlle
dfloor = 1.0e-10
siefloor = 1.0e-10
refine_field = density
refine_type = magnitude
refine_thr = 3.0
deref_thr = 0.8

<dust>
reconstruct = plm
riemann = hlle
nspecies = 1
const_stopping_time = true
size_input = none
stopping_time = 0.3
Hratio = 0.1

hst_out_d2g = true
Kai0 = 0.1 #2*etaVk*iso_cs

enable_dust_drag = true
enable_dust_feedback = true
drag_method = implicit
#rho_p = 1.25
#rho_g0 = 0.3555 #g/cm^2, code-to-physical convert
#user_input_size = true
#Size_1 = 10.0 # dust size


<gravity>
#type = uniform
#gx1 = 0.1 # 2*etaVk*Ome0
#gx2 = 0.0
#gx3 = 0.0

#type = point
#gm = 1e-5
#soft = .03
#x = 0
#y = 0
#z = 0

<rotating_frame>
omega = 1.0
qshear = 1.5
shboxcoord = 2 # 1=xy; 2=xz
stratified_flag = true

<problem>
rho0 = 0.3989422804 #1.0/sqrt(2*pi)
dens_min = 1.0e-10
pres_min = 1.0e-13
h = 1.0
etaVk = 0.05
amp = 0.1
dust_to_gas = 0.04
135 changes: 135 additions & 0 deletions inputs/dust/SI_strat_AB.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# ========================================================================================
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the two dust coagulation input files show be a part of this PR

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this input file is deleted in the new code

# (C) (or copyright) 2023-2024. Triad National Security, LLC. All rights reserved.
#
# This program was produced under U.S. Government contract 89233218CNA000001 for Los
# Alamos National Laboratory (LANL), which is operated by Triad National Security, LLC
# for the U.S. Department of Energy/National Nuclear Security Administration. All rights
# in the program are reserved by Triad National Security, LLC, and the U.S. Department
# of Energy/National Nuclear Security Administration. The Government is granted for
# itself and others acting on its behalf a nonexclusive, paid-up, irrevocable worldwide
# license in this material to reproduce, prepare derivative works, distribute copies to
# the public, perform publicly and display publicly, and to permit others to do so.
# ========================================================================================

<artemis>
problem = SI_strat # name of the pgen
coordinates = cartesian

<parthenon/job>
problem_id = runAB # problem ID: basename of output filenames

<parthenon/output0>
file_type = hst
dt = 0.01

<parthenon/output1>
variables = gas.prim.density, &
gas.prim.velocity, &
dust.prim.density, &
dust.prim.velocity

file_type = hdf5 # HDF5 data dump
dt = 0.5 # time increment between outputs

<parthenon/output2>
file_type = rst
dt = 20.0

<parthenon/time>
nlim = -1 # cycle limit
tlim = 40.0 # time limit
integrator = rk2 # time integration algorithm
ncycle_out = 20 # interval for stdout summary info

<parthenon/mesh>
nx1 = 512 # Number of zones in X1-direction
x1min = -0.05 # minimum value of X1
x1max = 0.05 # maximum value of X1
ix1_bc = extrapolate # Inner-X1 boundary condition flag
ox1_bc = extrapolate # Outer-X1 boundary condition flag

nx2 = 512 # Number of zones in X2-direction
x2min = -0.05 # minimum value of X2
x2max = 0.05 # maximum value of X2
ix2_bc = periodic # Inner-X2 boundary condition flag
ox2_bc = periodic # Outer-X2 boundary condition flag

nx3 = 1 # Number of zones in X3-direction
x3min = -0.5 # minimum value of X3
x3max = 0.5 # maximum value of X3
ix3_bc = periodic # Inner-X3 boundary condition flag
ox3_bc = periodic # Outer-X3 boundary condition flag

# nghost = 2
# refinement = adaptive
# numlevel = 4

<parthenon/meshblock>
nx1 = 16 # Number of cells in each MeshBlock, X1-dir
nx2 = 16 # Number of cells in each MeshBlock, X2-dir
nx3 = 1 # Number of cells in each MeshBlock, X3-dir

<physics>
gas = true
gravity = false
rotating_frame = true
dust = true

<gas>
cfl = 0.6
gamma = 1.000001
reconstruct = plm
riemann = hlle
dfloor = 1.0e-10
siefloor = 1.0e-10
refine_field = density
refine_type = magnitude
refine_thr = 3.0
deref_thr = 0.8

<dust>
reconstruct = plm
riemann = hlle
nspecies = 1
const_stopping_time = true
size_input = none
stopping_time = 0.1
hst_out_d2g = true
Kai0 = 0.1 #2*etaVk*iso_cs

enable_dust_drag = true
enable_dust_feedback = true
drag_method = explicit
#rho_p = 1.25
#rho_g0 = 0.3555 #g/cm^2, code-to-physical convert
#user_input_size = true
#Size_1 = 10.0 # dust size


<gravity>
#type = uniform
#gx1 = 0.1 # 2*etaVk*Ome0
#gx2 = 0.0
#gx3 = 0.0

#type = point
#gm = 1e-5
#soft = .03
#x = 0
#y = 0
#z = 0

<rotating_frame>
omega = 1.0
qshear = 1.5
shboxcoord = 2 # 1=xy; 2=xz
stratified_flag = false

<problem>
rho0 = 1.0
dens_min = 1.0e-10
pres_min = 1.0e-13
h = 1.0
etaVk = 0.05
amp = 0.25
dust_to_gas = 1.0
Loading
Loading