Skip to content

Commit 465bd4f

Browse files
hyeoksu-leeHyeoksu LeeHyeoksu LeeHyeoksu LeeHyeoksu Lee
authored
Non-reflecting BC for linear stability analysis solvers (#560)
Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]> Co-authored-by: Hyeoksu Lee <[email protected]>
1 parent 2fb0a62 commit 465bd4f

File tree

21 files changed

+1596
-615
lines changed

21 files changed

+1596
-615
lines changed

docs/documentation/case.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -652,15 +652,17 @@ Implementation of the parameters into the model follow [Ando (2010)](references.
652652

653653
### 10. Velocity Field Setup
654654

655-
| Parameter | Type | Description |
656-
| ---: | :----: | :--- |
657-
| `perturb_flow` | Logical | Perturb the initlal velocity field by random noise |
658-
| `perturb_flow_fluid`| Integer | Fluid density whose flow is to be perturbed |
659-
| `perturb_flow_mag` | Real | Set the magnitude of flow perturbations |
660-
| `perturb_sph` | Logical | Perturb the initial partial density by random noise |
661-
| `perturb_sph_fluid` | Integer | Fluid component whose partial density is to be perturbed |
662-
| `vel_profile` | Logical | Set the mean streamwise velocity to hyperbolic tangent profile |
663-
| `instability_wave` | Logical | Perturb the initial velocity field by instability waves |
655+
| Parameter | Type | Description |
656+
| ---: | :----: | :--- |
657+
| `perturb_flow` | Logical | Perturb the initlal velocity field by random noise |
658+
| `perturb_flow_fluid` | Integer | Fluid density whose flow is to be perturbed |
659+
| `perturb_flow_mag` | Real | Set the magnitude of flow perturbations |
660+
| `perturb_sph` | Logical | Perturb the initial partial density by random noise |
661+
| `perturb_sph_fluid` | Integer | Fluid component whose partial density is to be perturbed |
662+
| `mixlayer_vel_profile` | Logical | Set the mean streamwise velocity to hyperbolic tangent profile |
663+
| `mixlayer_vel_coef` | Real | Coefficient for the hyperbolic tangent profile of a mixing layer |
664+
| `mixlayer_perturb` | Logical | Perturb the initial velocity field by instability waves |
665+
| `mixlayer_domain` | Real | Domain size of a mixing layer for the linear stability analysis |
664666

665667
The table lists velocity field parameters.
666668
The parameters are optionally used to define initial velocity profiles and perturbations.
@@ -675,9 +677,15 @@ The parameters are optionally used to define initial velocity profiles and pertu
675677

676678
- `perturb_sph_fluid` specifies the fluid component whose partial density is to be perturbed.
677679

678-
- `vel_profile` activates setting the mean streamwise velocity to hyperbolic tangent profile. This option works only for 2D and 3D cases.
680+
- `mixlayer_vel_profile` activates setting of the mean streamwise velocity to hyperbolic tangent profile. This option works only for 2D and 3D cases.
679681

680-
- `instability_wave` activates the perturbation of initial velocity by instability waves obtained from linear stability analysis for a mixing layer with hyperbolic tangent mean streamwise velocity profile. This option only works for `n > 0`, `bc_y%[beg,end] = -5`, and ``vel_profile = 'T'``.
682+
- `mixlayer_vel_coef` is a parameter for the hyperbolic tangent profile of a mixing layer when `mixlayer_vel_profile = 'T'`. The mean streamwise velocity profile is given as:
683+
684+
$$ u = patch\_icpp(1)\%vel(1) * tanh(y\_cc * mixlayer\_vel\_profile) $$
685+
686+
- `mixlayer_perturb` activates the perturbation of initial velocity by instability waves obtained from linear stability analysis for a mixing layer with hyperbolic tangent mean streamwise velocity profile. This option only works for `n > 0`, `bc_y%[beg,end] = -6`, `num_fluids = 1`, `model_eqns = 2` and `mixlayer_vel_profile = 'T'`.
687+
688+
- `mixlayer_domain` defines the domain size to compute spatial eigenvalues of the linear instability analysis when `mixlayer_perturb = 'T'`. For example, the spatial eigenvalue in `x` direction in 2D problem will be $2 \pi \alpha / (mixlayer\_domain*patch\_icpp(1)\%length\_y)$ for $\alpha = 1$, $2$ and $4$.
681689

682690
### 11. Phase Change Model
683691
| Parameter | Type | Description |

examples/2D_mixing_artificial_Ma/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
'avg_state' : 2,
9595
'bc_x%beg' : -1,
9696
'bc_x%end' : -1,
97-
'bc_y%beg' : -5,
98-
'bc_y%end' : -5,
97+
'bc_y%beg' : -6,
98+
'bc_y%end' : -6,
9999
# ==========================================================================
100100

101101
# Formatted Database Files Structure Parameters ============================

examples/3D_turb_mixing/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@
8383
'avg_state' : 2,
8484
'bc_x%beg' : -1,
8585
'bc_x%end' : -1,
86-
'bc_y%beg' : -5,
87-
'bc_y%end' : -5,
86+
'bc_y%beg' : -6,
87+
'bc_y%end' : -6,
8888
'bc_z%beg' : -1,
8989
'bc_z%end' : -1,
9090
# ==========================================================================

0 commit comments

Comments
 (0)