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

schwarz inclined explicit contact bugfix + tests #47

Merged
merged 7 commits into from
Feb 4, 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
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test1-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test1-1.g
output mesh file: cube-test1-1.e
model:
type: solid mechanics
material:
blocks:
fine: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "-1.0e-04 * 1.0"
- node set: nsall
component: y
function: "-1.0e-04 * 0.0"
velocity:
- node set: nsall
component: x
function: "100.0 * 1.0"
- node set: nsall
component: y
function: "100.0 * 0.0"
boundary conditions:
Schwarz contact:
- side set: ssx+
source: "cube-test1-2.yaml"
source block: coarse
source side set: ssx-
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test1-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test1-2.g
output mesh file: cube-test1-2.e
model:
type: solid mechanics
material:
blocks:
coarse: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "1.0e-04 * 1.0"
- node set: nsall
component: y
function: "1.0e-04 * 0.0"
velocity:
- node set: nsall
component: x
function: "-100.0 * 1.0"
- node set: nsall
component: y
function: "-100.0 * 0.0"
boundary conditions:
Schwarz contact:
- side set: ssx-
source: "cube-test1-1.yaml"
source block: fine
source side set: ssx+
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test2-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test2-1.g
output mesh file: cube-test2-1.e
model:
type: solid mechanics
material:
blocks:
fine: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "-1.0e-04 * 0.9238795325112867"
- node set: nsall
component: y
function: "-1.0e-04 * 0.3826834323650898"
velocity:
- node set: nsall
component: x
function: "100.0 * 0.9238795325112867"
- node set: nsall
component: y
function: "100.0 * 0.3826834323650898"
boundary conditions:
Schwarz contact:
- side set: ssx+
source: "cube-test2-2.yaml"
source block: coarse
source side set: ssx-
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test2-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test2-2.g
output mesh file: cube-test2-2.e
model:
type: solid mechanics
material:
blocks:
coarse: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "1.0e-04 * 0.9238795325112867"
- node set: nsall
component: y
function: "1.0e-04 * 0.3826834323650898"
velocity:
- node set: nsall
component: x
function: "-100.0 * 0.9238795325112867"
- node set: nsall
component: y
function: "-100.0 * 0.3826834323650898"
boundary conditions:
Schwarz contact:
- side set: ssx-
source: "cube-test2-1.yaml"
source block: fine
source side set: ssx+
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test3-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test3-1.g
output mesh file: cube-test3-1.e
model:
type: solid mechanics
material:
blocks:
fine: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "-1.0e-04 * 0.7071067811865476"
- node set: nsall
component: y
function: "-1.0e-04 * 0.7071067811865475"
velocity:
- node set: nsall
component: x
function: "100.0 * 0.7071067811865476"
- node set: nsall
component: y
function: "100.0 * 0.7071067811865475"
boundary conditions:
Schwarz contact:
- side set: ssx+
source: "cube-test3-2.yaml"
source block: coarse
source side set: ssx-
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test3-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test3-2.g
output mesh file: cube-test3-2.e
model:
type: solid mechanics
material:
blocks:
coarse: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "1.0e-04 * 0.7071067811865476"
- node set: nsall
component: y
function: "1.0e-04 * 0.7071067811865475"
velocity:
- node set: nsall
component: x
function: "-100.0 * 0.7071067811865476"
- node set: nsall
component: y
function: "-100.0 * 0.7071067811865475"
boundary conditions:
Schwarz contact:
- side set: ssx-
source: "cube-test3-1.yaml"
source block: fine
source side set: ssx+
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test4-1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test4-1.g
output mesh file: cube-test4-1.e
model:
type: solid mechanics
material:
blocks:
fine: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "-1.0e-04 * 6.123233995736766e-17"
- node set: nsall
component: y
function: "-1.0e-04 * 1.0"
velocity:
- node set: nsall
component: x
function: "100.0 * 6.123233995736766e-17"
- node set: nsall
component: y
function: "100.0 * 1.0"
boundary conditions:
Schwarz contact:
- side set: ssx+
source: "cube-test4-2.yaml"
source block: coarse
source side set: ssx-
solver:
type: explicit solver
step: explicit
Binary file not shown.
44 changes: 44 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cube-test4-2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
type: single
input mesh file: cube-test4-2.g
output mesh file: cube-test4-2.e
model:
type: solid mechanics
material:
blocks:
coarse: elastic
elastic:
model: linear elastic
elastic modulus: 1.0e+09
Poisson's ratio: 0.25
density: 1000.0
time integrator:
type: central difference
initial time: 0.0
final time: 1
time step: 0.01
CFL: 0.1
γ: 0.5
initial conditions:
displacement:
- node set: nsall
component: x
function: "1.0e-04 * 6.123233995736766e-17"
- node set: nsall
component: y
function: "1.0e-04 * 1.0"
velocity:
- node set: nsall
component: x
function: "-100.0 * 6.123233995736766e-17"
- node set: nsall
component: y
function: "-100.0 * 1.0"
boundary conditions:
Schwarz contact:
- side set: ssx-
source: "cube-test4-1.yaml"
source block: fine
source side set: ssx+
solver:
type: explicit solver
step: explicit
14 changes: 14 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cubes-test1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: multi
domains: ["cube-test1-1.yaml", "cube-test1-2.yaml"]
Exodus output interval: 1
CSV output interval: 0
initial time: -1.0e-06
time step: 1.e-06
final time: .001
same time step for domains: true
relaxation parameter: 1.0
naive stabilized: true
minimum iterations: 1
maximum iterations: 16
relative tolerance: 1.0e-12
absolute tolerance: 1.0e-08
14 changes: 14 additions & 0 deletions examples/contact/explicit-dynamic/inclined-cubes/cubes-test2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: multi
domains: ["cube-test2-1.yaml", "cube-test2-2.yaml"]
Exodus output interval: 1
CSV output interval: 0
initial time: -1.0e-06
time step: 1.e-06
final time: .001
same time step for domains: true
relaxation parameter: 1.0
naive stabilized: true
minimum iterations: 1
maximum iterations: 16
relative tolerance: 1.0e-12
absolute tolerance: 1.0e-08
Loading