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

Instability issue after long time #167

Closed
jf-huang opened this issue Mar 8, 2023 · 10 comments
Closed

Instability issue after long time #167

jf-huang opened this issue Mar 8, 2023 · 10 comments

Comments

@jf-huang
Copy link
Contributor

jf-huang commented Mar 8, 2023

Hi, I created a 5km(x)×3km(y)×6km(z) domain in SW4 with a 1D layered velocity model and a point source located at depth. The base grid spacing is 16m with a mesh refinement at 408m; the number of grid points in the supergrid is set to 30 (default). The solution looks fine during the first 9s, after which the domain should be essentially silent. However, the motions in the top grid grow to very large values very rapidly and propagate to the bottom grid, as shown in the following movie (star is the hypocenter; the dashed white line delineates the boundary between the half-space below and the overlying layers):
output
This instability issue also happens in another larger domain with mesh refinements. Do you know where this issue come from and how I can resolve it?

Many thanks.

@andersp
Copy link
Contributor

andersp commented Mar 8, 2023

Please provide your input file. Which version of SW4 are you using? If Vp/Vs is very large, it is necessary to reduce the CFL number to get a stable evolution.

@jf-huang
Copy link
Contributor Author

jf-huang commented Mar 8, 2023

Hi Dr. Petersson @andersp, thanks for looking into this. Attached please find the sw4input file and pfile that I used. I am using a recent SW4 version in the developer branch (after this PR #137). The Poisson's ratio is 0.32 (Vp/Vs=1.9) throughout the whole domain. Let me know if you need anything else.
testModel.zip

@andersp
Copy link
Contributor

andersp commented Mar 8, 2023

Thanks @jf-huang . Can you also provide the output that sw4 generates when you run this case?

@jf-huang
Copy link
Contributor Author

jf-huang commented Mar 8, 2023

Sure @andersp , the output file is attached (output for the time step phase is truncated).
sw4out.txt

@andersp
Copy link
Contributor

andersp commented Mar 11, 2023

When defining a background material, you should not specify z1=0.0. The reason is that there are ghost points just above the free surface with z-coordinate less than 0.
I ran your case after removing the z1=0 keyword in the block command, i.e.,

block vp=3600.0 vs=1900.0 rho=2178.0 qp=200.0 qs=100.0

Now sw4 remains stable. Here are the ux, uy and uz images
ux
uy
uz

@jf-huang
Copy link
Contributor Author

Hi Dr. Petersson @andersp, thanks for the check! I have observed similar instability in one of our generic model consisting of a 1D layered crust (created with the block command; similar to the example above, the top block is specified with z1=0.0), and a wedge basin on the right side. Snapshots (local surface region) of the vecocity magnitude (ux & uy & uz) are shown below:
image
At t=16.2s, the fault rupture process is essentially finished, while snapshots at t=24.3s and t=40.5s show the buildup of the large motions. Different than the previous model where the instability first happened at the surface, the instability in this model happened at the second mesh refinement below the free surface and the large motions were mostly confined to the rock side (left). Unfortunately, I am not able to rerun this model in the coming days. Do you think this phenomenon is also caused by the fact that z1=0.0 is specified in the top block? Since the input files are relatively large, I can email them to you if necessary. Thanks again for the help.

@andersp
Copy link
Contributor

andersp commented Mar 13, 2023

I suggest you rerun your case after removing the z1=0 keyword from the background material model. I don't have the time to rerun your case.

@jf-huang
Copy link
Contributor Author

Thanks for the suggestion @andersp , I will report back here when I have new results.

@jf-huang
Copy link
Contributor Author

Hi Dr. Petersson @andersp, I encountered this instability issue in another run I have, please see the wavefield plots and the velocity model I used (all cross sections along the y-axis are the same).
image
image
In this run, I did not use the z1=0 keyword in the first block command. For reference, the block commands I used are shown below.

block             z2=10.0    vp=1600.0 vs=425.0   rho=2000.0 qp=42.5  qs=21.2
block  z1=10.0    z2=30.0    vp=1700.0 vs=538.0   rho=2050.0 qp=53.8  qs=26.9
block  z1=30.0    z2=100.0   vp=1900.0 vs=650.0   rho=2100.0 qp=65.0  qs=32.5
block  z1=100.0   z2=200.0   vp=2100.0 vs=800.0   rho=2200.0 qp=80.0  qs=40.0
block  z1=200.0   z2=500.0   vp=2500.0 vs=1200.0  rho=2300.0 qp=120.0 qs=60.0
block  z1=500.0   z2=1000.0  vp=3600.0 vs=1900.0  rho=2450.0 qp=190.0 qs=95.0
block  z1=1000.0  z2=1500.0  vp=4400.0 vs=2500.0  rho=2575.0 qp=250.0 qs=125.0
block  z1=1500.0  z2=2500.0  vp=4800.0 vs=2800.0  rho=2600.0 qp=280.0 qs=140.0
block  z1=2500.0  z2=3500.0  vp=5250.0 vs=3100.0  rho=2620.0 qp=310.0 qs=155.0
block  z1=3500.0  z2=5000.0  vp=5500.0 vs=3250.0  rho=2650.0 qp=325.0 qs=162.5
block  z1=5000.0  z2=7000.0  vp=5600.0 vs=3350.0  rho=2700.0 qp=335.0 qs=167.5
block  z1=7000.0  z2=9000.0  vp=5750.0 vs=3450.0  rho=2720.0 qp=345.0 qs=172.5
block  z1=9000.0             vp=6100.0 vs=3600.0  rho=2750.0 qp=360.0 qs=180.0

In this model, I have set three mesh refinements (z=150m, 700m, 1500m), and it looks like the instability initiated at the first mesh refinement level (z=150m), which also happened in my previous model (this thread, first mesh refinement set at z=600m). Attached is the output file from SW4. Please let me know if you need more information about the model I used.
output.txt

@jf-huang
Copy link
Contributor Author

Hi Dr. Petersson @andersp, just wanted to report back that the issue is resolved by setting cfl to 1.0. Thanks for the input! Closing now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants