-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added infiles for more complicated problems.
- Loading branch information
1 parent
56b80df
commit 79e42bb
Showing
3 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-title : Landau 1x3v | ||
-subtitle : adaptive sparse grid, quadratic basis | ||
|
||
# d_t f + v d_x f + E(f) d_v f= \nu C(f) | ||
# C(f) := d_v( (v-u)f + th d_v f )\ | ||
# E given by poisson solve | ||
-pde : riemann_1x3v | ||
|
||
# disctretization in space | ||
# mixed grid with level 7 full grid in x | ||
# and level 6 sparse grid in v. | ||
# quadratic basis | ||
-grid : adapt | ||
-start-levels : 5 4 4 4 | ||
-max_level : 5 | ||
-max_adapt_levels : 5 4 4 4 | ||
-thresh : 1e-8 | ||
-degree : 2 | ||
|
||
# imex timestep | ||
# CFL = dx*(1/(2k+1))*(1/|v_max|) | ||
# = (4*pi/2^5)*(1/5)*(1/6) | ||
# = 0.013089969 | ||
# dt = 0.75*CFL | ||
# T = dt*250 = 0.05 | ||
-step-method : imex | ||
-dt : 1.308997e-2 | ||
-num-steps : 3820 | ||
|
||
# solver | ||
-solver : gmres | ||
-inner_it : 25 | ||
-tol : 1e-10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
-title : Riemann 1x3v | ||
-subtitle : mixed grid, quadratic basis | ||
|
||
# df / dt + v d_x f = \nu C(f) | ||
# C(f) := d_v( (v-u)f + th d_v f ) | ||
-pde : riemann_1x3v | ||
|
||
# disctretization in space | ||
# mixed grid with level 7 full grid in x | ||
# and level 6 sparse grid in v. | ||
# quadratic basis | ||
-grid : mixed | ||
-split : 1 | ||
-start-levels : 6 6 6 6 | ||
-max_level : 6 | ||
-degree : 2 | ||
|
||
# imex timestep | ||
# CFL = dx*(1/(2k+1))*(1/|v_max|) | ||
# = (2/2^7)*(1/5)*(1/6) | ||
# = 1/1600 | ||
# dt = 0.32*CFL | ||
# T = dt*250 = 0.05 | ||
-step-method : imex | ||
-dt : 2.E-4 | ||
-num-steps : 250 | ||
|
||
# solver | ||
-solver : gmres | ||
-inner_it : 50 | ||
-tol : 1e-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-title : Two Stream 2D | ||
-subtitle : adaptive sparse grid level 7, quadratic basis | ||
|
||
# df / dt + v d_x f + E(f) d_v f = 0 | ||
# E is the electric field given by a Poisson Solve | ||
-pde : two_stream | ||
|
||
# disctretization in space | ||
# level 7 adaptive sparse grid and quadratic basis | ||
-grid : adapt | ||
-start-levels : 7 | ||
-max_level : 7 | ||
-degree : 2 | ||
-thresh : 1.E-6 | ||
|
||
# imex timestep | ||
# CFL = dx*(1/(2k+1))*(1/|v_max|) | ||
# = (4*pi/2^7)*(1/5)*1/(2*pi) | ||
# = 1/320 | ||
# dt = 3/4*CFL | ||
# T = dt*19200 = 45.0 | ||
-step-method : imex | ||
-dt : 2.34375E-3 | ||
-num-steps : 19200 |