forked from AMReX-Codes/amrex-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
118 additions
and
40 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,50 @@ | ||
n_cell = 32 | ||
max_grid_size = 16 | ||
|
||
nsteps = 5 | ||
plot_int = 5 | ||
dt = 1.e-4 | ||
|
||
#nsteps = 10 | ||
#plot_int = 10 | ||
#dt = 5.e-5 | ||
|
||
#nsteps = 20 | ||
#plot_int = 20 | ||
#dt = 2.5e-5 | ||
|
||
adapt_dt = true | ||
|
||
# INTEGRATION | ||
## integration.type can take on the following values: | ||
## 0 or "ForwardEuler" => Native AMReX Forward Euler integrator | ||
## 1 or "RungeKutta" => Native AMReX Explicit Runge Kutta controlled by integration.rk.type | ||
## 2 or "SUNDIALS" => SUNDIALS backend controlled by integration.sundials.strategy | ||
integration.type = ForwardEuler | ||
#integration.type = RungeKutta | ||
#integration.type = SUNDIALS | ||
|
||
## Native AMReX Explicit Runge-Kutta parameters | ||
# | ||
## integration.rk.type can take the following values: | ||
### 0 = User-specified Butcher Tableau | ||
### 1 = Forward Euler | ||
### 2 = Trapezoid Method | ||
### 3 = SSPRK3 Method | ||
### 4 = RK4 Method | ||
integration.rk.type = 1 | ||
|
||
# Set the SUNDIALS method type: | ||
# ERK = Explicit Runge-Kutta method | ||
# DIRK = Diagonally Implicit Runge-Kutta method | ||
# | ||
# Optionally select a specific SUNDIALS method by name, see the SUNDIALS | ||
# documentation for the supported method names | ||
|
||
# Use forward Euler (fixed step sizes only) | ||
integration.sundials.type = ERK | ||
integration.sundials.method = ARKODE_FORWARD_EULER_1_1 | ||
|
||
# Use backward Euler (fixed step sizes only) | ||
#integration.sundials.type = DIRK | ||
#integration.sundials.method = ARKODE_BACKWARD_EULER_1_1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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,52 @@ | ||
n_cell = 32 | ||
max_grid_size = 16 | ||
|
||
nsteps = 5 | ||
plot_int = 5 | ||
dt = 1.e-4 | ||
|
||
#nsteps = 10 | ||
#plot_int = 10 | ||
#dt = 5.e-5 | ||
|
||
#nsteps = 20 | ||
#plot_int = 20 | ||
#dt = 2.5e-5 | ||
|
||
# INTEGRATION | ||
## integration.type can take on the following values: | ||
## 0 or "ForwardEuler" => Native AMReX Forward Euler integrator | ||
## 1 or "RungeKutta" => Native AMReX Explicit Runge Kutta --- controlled by integration.rk.type | ||
## 2 or "SUNDIALS" => SUNDIALS backend --- controlled by integration.sundials.type | ||
integration.type = ForwardEuler | ||
integration.type = RungeKutta | ||
integration.type = SUNDIALS | ||
|
||
## Native AMReX Explicit Runge-Kutta parameters | ||
# | ||
## integration.rk.type can take the following values: | ||
### 0 = User-specified Butcher Tableau | ||
### 1 = Forward Euler | ||
### 2 = Trapezoid Method | ||
### 3 = SSPRK3 Method | ||
### 4 = RK4 Method | ||
integration.rk.type = 1 | ||
|
||
# Set the SUNDIALS method type: | ||
# ERK = Explicit Runge-Kutta method | ||
# DIRK = Diagonally Implicit Runge-Kutta method | ||
# IMEX-RK = Implicit-Explicit Additive Runge-Kutta method | ||
# EX-MRI = Explicit Multirate Infatesimal method | ||
# IM-MRI = Implicit Multirate Infatesimal method | ||
# IMEX-MRI = Implicit-Explicit Multirate Infatesimal method | ||
# | ||
# Optionally select a specific SUNDIALS method by name, see the SUNDIALS | ||
# documentation for the supported method names | ||
|
||
# Use forward Euler (fixed step sizes only) | ||
integration.sundials.type = ERK | ||
integration.sundials.method = ARKODE_FORWARD_EULER_1_1 | ||
|
||
# Use backward Euler (fixed step sizes only) | ||
#integration.sundials.type = DIRK | ||
#integration.sundials.method = ARKODE_BACKWARD_EULER_1_1 |