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

refactoring BCs #253

Merged
merged 4 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
28 changes: 18 additions & 10 deletions single-node-refactor/input-impact-erosion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,27 @@ boundary_conditions:

# Tag Y plane
- boundary_condition:
solver: SGH3D
geometry: y_plane
direction: y_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: y_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 1 # y
- 0 # z

# Tag z plane
- boundary_condition:
solver: SGH3D
geometry: z_plane
direction: z_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: z_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 0 # y
- 1 # z

materials:

Expand Down
81 changes: 56 additions & 25 deletions single-node-refactor/input-lattice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ mesh_options:
num_dims: 3
type: box
origin: [0.0, 0.0, 0.0]
length: [1, 1, 1]
num_elems: [64, 64, 64]
length: [0.5, 0.5, 1]
num_elems: [32, 32, 64]


output_options:
Expand All @@ -34,28 +34,60 @@ solver_options:
boundary_conditions:
# Tag X plane
- boundary_condition:
solver: SGH3D
geometry: x_plane
direction: x_dir
value: 0.0
type: reflected_velocity

solver_id: 0
surface:
type: x_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 1 # x
- 0 # y
- 0 # z

# Tag Y plane
- boundary_condition:
solver: SGH3D
geometry: y_plane
direction: y_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: y_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 1 # y
- 0 # z

# Tag Z plane
- boundary_condition:
solver_id: 0
surface:
type: z_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 0 # y
- 1 # z

# Tag z plane
- boundary_condition:
solver: SGH3D
geometry: z_plane
direction: z_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: z_plane
plane_position: 1.0
velocity_model: time_varying
velocity_bc_global_vars:
- 0 # x
- 0 # y
- 1 # z
- -0.1
- 2
- 0
- 10
# V = V0 exp (-V1 * (t-t_start))
# vel_0: -0.1
# vel_1: 2
# vel_t_start: 0
# vel_t_end: 10

materials:
- material:
Expand Down Expand Up @@ -106,20 +138,19 @@ regions:
w: 0.0



- fill_volume:
type: voxel_file
file_path: ../../VTK_Geometry_lattice.vtk
material_id: 1
den: 2.0
sie: 0.001
den: 7.86
sie: 1.e-10
velocity: cartesian
u: 0.0
v: 0.0
w: 0.0
scale_x: 0.01
scale_y: 0.01
scale_z: 0.01
origin: [0.3, 0.3, 0.3]
scale_x: 0.02
scale_y: 0.02
scale_z: 0.040635127
origin: [-0.5, -0.5, 0.]


28 changes: 18 additions & 10 deletions single-node-refactor/input-noh-rz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,28 @@ solver_options:
boundary_conditions:
# Tag X plane
- boundary_condition:
solver: SGHRZ
geometry: x_plane
direction: x_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: x_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 1 # x
- 0 # y
- 0 # z


# Tag Y plane
- boundary_condition:
solver: SGHRZ
geometry: y_plane
direction: y_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: y_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 1 # y
- 0 # z



Expand Down
47 changes: 29 additions & 18 deletions single-node-refactor/input-noh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,39 @@ solver_options:
boundary_conditions:
# Tag X plane
- boundary_condition:
solver: SGH3D
geometry: x_plane
direction: x_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: x_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 1 # x
- 0 # y
- 0 # z


# Tag Y plane
- boundary_condition:
solver: SGH3D
geometry: y_plane
direction: y_dir
value: 0.0
type: reflected_velocity

# Tag z plane
solver_id: 0
surface:
type: y_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 1 # y
- 0 # z

# Tag Z plane
- boundary_condition:
solver: SGH3D
geometry: z_plane
direction: z_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: z_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 0 # y
- 1 # z



Expand Down
58 changes: 35 additions & 23 deletions single-node-refactor/input-origin-erosion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,47 @@ solver_options:
boundary_conditions:
# Tag X plane
- boundary_condition:
solver: SGH3D
geometry: x_plane
direction: x_dir
value: 0.0
u: 0.0
v: 0.0
w: 1.0
type: reflected_velocity

solver_id: 0
surface:
type: x_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 1 # x
- 0 # y
- 0 # z

# Tag Y plane
- boundary_condition:
solver: SGH3D
geometry: y_plane
direction: y_dir
value: 0.0
type: reflected_velocity

# Tag z plane
solver_id: 0
surface:
type: y_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 1 # y
- 0 # z

# Tag Z plane
- boundary_condition:
solver: SGH3D
geometry: z_plane
direction: z_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: z_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 0 # y
- 1 # z

materials:
- material:
id: 0
eos_model_type: decoupled
eos_model: gamma_law_gas
# strength_model: none
dissipation_model: MARS
dissipation_global_vars:
- 1.0 # q1
- 1.0 # q1ex
Expand All @@ -91,11 +100,14 @@ materials:
eos_model_type: decoupled
eos_model: gamma_law_gas
# strength_model: none
dissipation_model: MARS
dissipation_global_vars:
- 1.0 # q1
- 1.333 # q1ex
- 1.0 # q2
- 1.0 # q1ex
- 1.333 # q2
- 1.333 # q2ex
- 0.0 # phi_min
- 1.0 # phi_curl_min
eos_global_vars:
- 1.666666666666667
- 1.0E-14
Expand Down
49 changes: 29 additions & 20 deletions single-node-refactor/input-rz-polar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,34 +43,43 @@ solver_options:
boundary_conditions:
# Tag X plane
- boundary_condition:
solver: SGHRZ
geometry: x_plane
direction: x_dir
value: 0.0
type: reflected_velocity


solver_id: 0
surface:
type: x_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 1 # x
- 0 # y
- 0 # z

# Tag Y plane
- boundary_condition:
solver: SGHRZ
geometry: y_plane
direction: y_dir
value: 0.0
type: reflected_velocity
solver_id: 0
surface:
type: y_plane
plane_position: 0.0
velocity_model: reflected
velocity_bc_global_vars:
- 0 # x
- 1 # y
- 0 # z

# Tag inner circle
- boundary_condition:
solver: SGHRZ
geometry: cylinder
value: 0.025
type: zero_velocity
solver_id: 0
surface:
type: cylinder
radius: 0.025
velocity_model: fixed

# Tag outer circle
- boundary_condition:
solver: SGHRZ
geometry: cylinder
value: 1.2
type: zero_velocity
solver_id: 0
surface:
type: cylinder
radius: 1.2
velocity_model: fixed

materials:
- material:
Expand Down
Loading