Skip to content

Commit

Permalink
Simplified tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit-Kakodkar committed Sep 22, 2023
1 parent 5c87f0e commit 350f3d5
Show file tree
Hide file tree
Showing 11 changed files with 86 additions and 7 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ number-of-sources: 1
sources:
- force:
x : 1575.0
z : 2405.0
z : 2420.0
source_surf: false
angle : 0.0
vx : 0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
## Coupling interfaces have code flow that is dependent on orientation of the interface.
## This test is to check the code flow for horizontal acoustic-elastic interface with acoustic domain on top.

parameters:

header:
## Header information is used for logging. It is good practice to give your simulations explicit names
title: Heterogeneous acoustic-elastic medium with 1 acoustic-elastic interface # name for your simulation
title: Heterogeneous acoustic-elastic medium with 1 acoustic-elastic interface (orientation horizontal) # name for your simulation
# A detailed description for your simulation
description: |
Material systems : Elastic domain (1), Acoustic domain (1)
Interfaces : Acoustic-elastic interface (1)
Interfaces : Acoustic-elastic interface (1) (orientation horizontal with acoustic domain on top)
Sources : Force source (1)
Boundary conditions : Neumann BCs on all edges
Expand All @@ -24,8 +27,8 @@ parameters:
type-of-simulation: forward
time-scheme:
type: Newmark
dt: 0.85e-3
nstep: 500
dt: 1.90e-3
nstep: 100

receivers:
stations-file: "../DATA/STATIONS"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
number-of-sources: 1
sources:
- force:
x : 1575.0
z : 2420.0
source_surf: false
angle : 0.0
vx : 0.0
vz : 0.0
Ricker:
factor: 1e9
tshift: 0.0
f0: 10.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## Coupling interfaces have code flow that is dependent on orientation of the interface.
## This test is to check the code flow for horizontal acoustic-elastic interface with acoustic domain on bottom.

parameters:

header:
## Header information is used for logging. It is good practice to give your simulations explicit names
title: Heterogeneous acoustic-elastic medium with 1 acoustic-elastic interface (orientation horizontal) # name for your simulation
# A detailed description for your simulation
description: |
Material systems : Elastic domain (1), Acoustic domain (1)
Interfaces : Acoustic-elastic interface (1) (orientation horizontal with acoustic domain on bottom)
Sources : Force source (1)
Boundary conditions : Neumann BCs on all edges
simulation-setup:
## quadrature setup
quadrature:
alpha: 0.0
beta: 0.0
ngllx: 5
ngllz: 5

## Solver setup
solver:
time-marching:
type-of-simulation: forward
time-scheme:
type: Newmark
dt: 1.90e-3
nstep: 100

receivers:
stations-file: "../DATA/STATIONS"
angle: 0.0
seismogram-type:
- displacement
- velocity
nstep_between_samples: 1

## Runtime setup
run-setup:
number-of-processors: 1
number-of-runs: 1

## databases
databases:
mesh-database: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test4/database.bin"
source-file: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test4/sources.yaml"

seismogram:
seismogram-format: ascii
output-folder: "."
14 changes: 12 additions & 2 deletions tests/unit-tests/displacement_tests/Newmark/test_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ Tests:
specfem_config: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test2/specfem_config.yaml"
acoustic_domain_field: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test2/potential_acoustic.bin"

- name : "SerialTest3 : Acoustic-Elastic coupled domain"
- name : "SerialTest3 : Acoustic-Elastic coupled domain (Test 1/2)"
description: >
Testing newmark time-marching solver on a coupled acoustic-elastic domain with 1 elastic-acoustic interface. Test is run on a single MPI process.
Testing newmark time-marching solver on a coupled acoustic-elastic domain with 1 elastic-acoustic interface. The orientation of the interface is horizontal with acoustic domain on top. Test is run on a single MPI process.
config:
nproc : 1
databases:
specfem_config: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test3/specfem_config.yaml"
acoustic_domain_field: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test3/potential_acoustic.bin"
elastic_domain_field: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test3/displacement.bin"

- name : "SerialTest4 : Acoustic-Elastic coupled domain (Test 2/2)"
description: >
Testing newmark time-marching solver on a coupled acoustic-elastic domain with 1 elastic-acoustic interface. The orientation of the interface is horizontal with acoustic domain on bottom. Test is run on a single MPI process.
config:
nproc : 1
databases:
specfem_config: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test4/specfem_config.yaml"
acoustic_domain_field: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test4/potential_acoustic.bin"
elastic_domain_field: "../../../tests/unit-tests/displacement_tests/Newmark/serial/test4/displacement.bin"

0 comments on commit 350f3d5

Please sign in to comment.