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

Contact 1 of 3 #197

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 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
94 changes: 94 additions & 0 deletions single-node-refactor/contact_test.geo
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
Description line 1
Description line 2
node id assign
element id assign
part
1
Mesh
coordinates
26
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
-1.00000e+00
-1.00000e+00
-1.00000e+00
-1.00000e+00
-1.00000e+00
-1.00000e+00
-2.50000e-01
-2.50000e-01
-2.50000e-01
-2.50000e-01
2.50000e-01
2.50000e-01
2.50000e-01
2.50000e-01
-1.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
-1.00000e+00
-1.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
-1.00000e+00
-1.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
-1.00000e+00
-2.50000e-01
2.50000e-01
2.50000e-01
-2.50000e-01
-2.50000e-01
2.50000e-01
2.50000e-01
-2.50000e-01
0.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.50000e+00
1.50000e+00
1.00000e+00
1.00000e+00
1.50000e+00
1.50000e+00
hexa8
5
7 8 11 12 1 2 5 6
8 9 10 11 2 3 4 5
13 14 17 18 7 8 11 12
14 15 16 17 8 9 10 11
19 20 21 22 23 24 25 26
100 changes: 100 additions & 0 deletions single-node-refactor/contact_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# num_dims: 3

dynamic_options:
time_final: 1.0
dt_min: 0.5
dt_max: 0.5
dt_start: 1.e-2
cycle_stop: 300000


mesh_options:
source: file
file_path: contact_test.geo

#mesh_options:
# source: generate
# num_dims: 3
# type: Box
# origin: [0.0, 0.0, 0.0]
# length: [1.2, 1.2, 1.2]
# num_elems: [12, 12, 12]


output_options:
timer_output_level: thorough
output_file_format: ensight
graphics_time_step: 0.5
# graphics_iteration_step: 10

solver_options:
- solver:
method: SGH
# solver_vars:
# - blah
# - blah
# - blah

boundary_conditions:

# Tag Z plane
- boundary_condition:
solver: SGH
geometry: z_plane
direction: z_dir
value: 0.0
type: reflected

# global contact condition (this should be used when it is not clear what the contact surface(s) will be)
- boundary_condition:
solver: SGH
geometry: global
type: contact

materials:
- material:
id: 0
eos_model: ideal_gas
# strength_model: none
elastic_modulus: 10
poisson_ratio: 0.3
q1: 1.0
q2: 1.333
q1ex: 1.0
q2ex: 1.333
eos_global_vars:
- 3
- 1.0E-14
- 1.0

regions:
- fill_volume:
type: global
material_id: 0
den: 1.0
sie: 1.e-10
velocity: cartesian
u: 0.0
v: 0.0
w: 0.0



# top block initial velocity conditions
- fill_volume:
type: box
origin: [0.0, 0.0, 0.0]
x1: -0.25
x2: 0.25
y1: -0.25
y2: 0.25
z1: 1
z2: 1.5
material_id: 0
den: 1.0
# ie: 0.25833839995946534
sie: 1.e-10
velocity: cartesian
u: 0.0
v: 0.0
w: -0.5
189 changes: 189 additions & 0 deletions single-node-refactor/contact_test2.geo
Original file line number Diff line number Diff line change
@@ -0,0 +1,189 @@
Description line 1
Description line 2
node id assign
element id assign
part
1
Mesh
coordinates
54
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
1.00000e+00
5.00000e-01
0.00000e+00
0.00000e+00
1.00000e+00
5.00000e-01
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
0.00000e+00
5.00000e-01
5.00000e-01
1.00000e+00
5.00000e-01
0.00000e+00
5.00000e-01
5.00000e-01
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
1.00000e+00
5.00000e-01
0.00000e+00
0.00000e+00
1.00000e+00
5.00000e-01
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
0.00000e+00
5.00000e-01
5.00000e-01
1.00000e+00
5.00000e-01
0.00000e+00
5.00000e-01
5.00000e-01
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
1.00000e+00
5.00000e-01
0.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
5.00000e-01
1.00000e+00
1.00000e+00
5.00000e-01
5.00000e-01
0.00000e+00
5.00000e-01
1.00000e+00
5.00000e-01
5.00000e-01
5.00000e-01
1.00000e+00
1.00000e+00
2.00000e+00
2.00000e+00
1.00000e+00
1.00000e+00
2.00000e+00
2.00000e+00
1.00000e+00
1.50000e+00
2.00000e+00
1.50000e+00
1.00000e+00
1.00000e+00
1.00000e+00
2.00000e+00
1.50000e+00
2.00000e+00
2.00000e+00
1.50000e+00
1.50000e+00
1.00000e+00
1.50000e+00
2.00000e+00
1.50000e+00
1.50000e+00
1.50000e+00
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
5.00000e-01
5.00000e-01
1.00000e+00
5.00000e-01
1.00000e+00
5.00000e-01
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
5.00000e-01
5.00000e-01
5.00000e-01
1.00000e+00
5.00000e-01
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
1.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
0.00000e+00
5.00000e-01
5.00000e-01
1.00000e+00
5.00000e-01
1.00000e+00
5.00000e-01
1.00000e+00
1.00000e+00
0.00000e+00
5.00000e-01
5.00000e-01
5.00000e-01
5.00000e-01
1.00000e+00
5.00000e-01
hexa8
16
1 9 21 12 13 22 27 25
13 22 27 25 5 15 26 20
9 2 10 21 22 14 23 27
22 14 23 27 15 6 17 26
12 21 11 4 25 27 24 18
25 27 24 18 20 26 19 8
21 10 3 11 27 23 16 24
27 23 16 24 26 17 7 19
28 36 48 39 40 49 54 52
40 49 54 52 32 42 53 47
36 29 37 48 49 41 50 54
49 41 50 54 42 33 44 53
39 48 38 31 52 54 51 45
52 54 51 45 47 53 46 35
48 37 30 38 54 50 43 51
54 50 43 51 53 44 34 46
Loading