Skip to content

Commit 903aa93

Browse files
author
Diego Vaca
committed
Add adap_dt to bubbles_lagrange
1 parent c6b2fe0 commit 903aa93

File tree

20 files changed

+1195
-526
lines changed

20 files changed

+1195
-526
lines changed

docs/documentation/case.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ The effect and use of the source term are assessed by [Schmidmayer et al., 2019]
434434
- `time_stepper` specifies the order of the Runge-Kutta (RK) time integration scheme that is used for temporal integration in simulation, from the 1st to 5th order by corresponding integer.
435435
Note that `time_stepper = 3` specifies the total variation diminishing (TVD), third order RK scheme ([Gottlieb and Shu, 1998](references.md)).
436436

437-
- `adap_dt` activates the Strang operator splitting scheme which splits flux and source terms in time marching, and an adaptive time stepping strategy is implemented for the source term. It requires ``bubbles = 'T'``, ``polytropic = 'T'``, ``adv_n = 'T'`` and `time_stepper = 3`.
437+
- `adap_dt` activates the Strang operator splitting scheme which splits flux and source terms in time marching, and an adaptive time stepping strategy is implemented for the source term. It requires ``bubbles_euler = 'T'``, ``polytropic = 'T'``, ``adv_n = 'T'`` and `time_stepper = 3`. Additionally, it can be used with ``bubbles_lagrange = 'T'`` and `time_stepper = 3`
438438

439439
- `weno_order` specifies the order of WENO scheme that is used for spatial reconstruction of variables by an integer of 1, 3, 5, and 7, that correspond to the 1st, 3rd, 5th, and 7th order, respectively.
440440

@@ -765,8 +765,6 @@ When ``polytropic = 'F'``, the gas compression is modeled as non-polytropic due
765765
| `x0` | Real | Reference length |
766766
| `Thost` | Real | Temperature of the surrounding liquid (host) |
767767
| `diffcoefvap` | Real | Vapor diffusivity in the gas |
768-
| `rkck_adap_dt` | Logical | Activates the adaptive rkck time stepping algorithm |
769-
| `rkck_tolerance` | Real | Admissible error truncation tolerance in the rkck stepper |
770768

771769
- `nBubs_glb` Total number of bubbles. Their initial conditions need to be specified in the ./input/lag_bubbles.dat file. See the example cases for additional information.
772770

@@ -780,8 +778,6 @@ When ``polytropic = 'F'``, the gas compression is modeled as non-polytropic due
780778

781779
- `massTransfer_model` Activates the mass transfer model at the bubble's interface based on ([Preston et al., 2007](references.md)).
782780

783-
- `rkck_adap_dt` Activates the adaptive 4th/5th order Runge—Kutta–Cash–Karp (RKCK) time-stepping algorithm (requires `time_stepper ==4`). A maximum error between the 4th and 5th order Runge-Kutta-Cash-Karp solutions for the same time step size is calculated. If the error is smaller than a tolerance (`rkck_tolerance`), then the algorithm employs the 5th order solution, while if not, both eulerian/lagrangian variables are re-calculated with a smaller time step size.
784-
785781
### 10. Velocity Field Setup
786782

787783
| Parameter | Type | Description |

examples/3D_lagrange_shbubcollapse/case.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"n": Ny,
8181
"p": Nz,
8282
"dt": round(dt * c0 / x0, 6),
83+
"adap_dt": "T",
8384
"n_start": 0,
8485
"t_save": saveTime * (c0 / x0),
8586
"t_stop": stopTime * (c0 / x0),
@@ -89,7 +90,7 @@
8990
"num_patches": 1,
9091
"mpp_lim": "F",
9192
"viscous": "T",
92-
"time_stepper": 4, # 4th/5th RKCK
93+
"time_stepper": 3,
9394
"weno_order": 5,
9495
"weno_eps": 1.0e-16,
9596
"mapped_weno": "T",
@@ -141,8 +142,6 @@
141142
# Lagrangian Bubbles
142143
"bubbles_lagrange": "T",
143144
"bubble_model": 2, # Keller-Miksis model
144-
"rkck_adap_dt": "T", # Activate adaptive time stepper
145-
"rkck_tolerance": 1.0e-05,
146145
"lag_params%nBubs_glb": 1,
147146
"lag_params%solver_approach": 2, # Two-way coupled
148147
"lag_params%cluster_type": 2,

0 commit comments

Comments
 (0)