1ea10196cSJeremy L Thompson## libCEED: Navier-Stokes Example 2ea10196cSJeremy L Thompson 3ea10196cSJeremy L ThompsonThis page provides a description of the Navier-Stokes example for the libCEED library, based on PETSc. 4b9842f74SJeremy L ThompsonPETSc v3.17 or a development version of PETSc at commit 0e95d842 or later is required. 5ea10196cSJeremy L Thompson 6a515125bSLeila GhaffariThe Navier-Stokes problem solves the compressible Navier-Stokes equations in three dimensions using an explicit time integration. 7a515125bSLeila GhaffariThe state variables are mass density, momentum density, and energy density. 8ea10196cSJeremy L Thompson 9a515125bSLeila GhaffariThe main Navier-Stokes solver for libCEED is defined in [`navierstokes.c`](navierstokes.c) with different problem definitions according to the application of interest. 10ea10196cSJeremy L Thompson 11575f8106SLeila GhaffariBuild by using: 12ea10196cSJeremy L Thompson 13ea10196cSJeremy L Thompson`make` 14ea10196cSJeremy L Thompson 15575f8106SLeila Ghaffariand run with: 16ea10196cSJeremy L Thompson 17575f8106SLeila Ghaffari``` 18575f8106SLeila Ghaffari./navierstokes -ceed [ceed] -problem [problem type] -degree [degree] 19575f8106SLeila Ghaffari``` 20ea10196cSJeremy L Thompson 21575f8106SLeila Ghaffari## Runtime options 22ea10196cSJeremy L Thompson 23575f8106SLeila Ghaffari% inclusion-fluids-marker 24ea10196cSJeremy L Thompson 25575f8106SLeila GhaffariThe Navier-Stokes mini-app is controlled via command-line options. 26575f8106SLeila GhaffariThe following options are common among all problem types: 27ea10196cSJeremy L Thompson 28575f8106SLeila Ghaffari:::{list-table} Common Runtime Options 29575f8106SLeila Ghaffari:header-rows: 1 30ea10196cSJeremy L Thompson 31575f8106SLeila Ghaffari* - Option 32575f8106SLeila Ghaffari - Description 33575f8106SLeila Ghaffari - Default value 34ea10196cSJeremy L Thompson 35575f8106SLeila Ghaffari* - `-ceed` 36575f8106SLeila Ghaffari - CEED resource specifier 37575f8106SLeila Ghaffari - `/cpu/self/opt/blocked` 38ea10196cSJeremy L Thompson 39575f8106SLeila Ghaffari* - `-test` 40575f8106SLeila Ghaffari - Run in test mode 41575f8106SLeila Ghaffari - `false` 42ea10196cSJeremy L Thompson 43575f8106SLeila Ghaffari* - `-compare_final_state_atol` 44575f8106SLeila Ghaffari - Test absolute tolerance 45575f8106SLeila Ghaffari - `1E-11` 46ea10196cSJeremy L Thompson 47575f8106SLeila Ghaffari* - `-compare_final_state_filename` 48575f8106SLeila Ghaffari - Test filename 49575f8106SLeila Ghaffari - 50ea10196cSJeremy L Thompson 51575f8106SLeila Ghaffari* - `-problem` 52575f8106SLeila Ghaffari - Problem to solve (`advection`, `advection2d`, `density_current`, or `euler_vortex`) 53575f8106SLeila Ghaffari - `density_current` 54ea10196cSJeremy L Thompson 55575f8106SLeila Ghaffari* - `-implicit` 56575f8106SLeila Ghaffari - Use implicit time integartor formulation 57575f8106SLeila Ghaffari - 58ea10196cSJeremy L Thompson 59575f8106SLeila Ghaffari* - `-degree` 60575f8106SLeila Ghaffari - Polynomial degree of tensor product basis (must be >= 1) 61575f8106SLeila Ghaffari - `1` 62ea10196cSJeremy L Thompson 63c1680e98SJeremy L Thompson* - `-q_extra` 64575f8106SLeila Ghaffari - Number of extra quadrature points 651219168aSLeila Ghaffari - `0` 66ea10196cSJeremy L Thompson 67852e5969SJed Brown* - `-ts_monitor_solution` 68852e5969SJed Brown - PETSc output format, such as `cgns:output-%d.cgns` (requires PETSc `--download-cgns`) 69852e5969SJed Brown - 70ea10196cSJeremy L Thompson 71852e5969SJed Brown* - `-ts_monitor_solution_interval` 72852e5969SJed Brown - Number of time steps between visualization output frames. 73852e5969SJed Brown - `1` 74852e5969SJed Brown 75852e5969SJed Brown* - `-viewer_cgns_batch_size` 76852e5969SJed Brown - Number of frames written per CGNS file if the CGNS file name includes a format specifier (`%d`). 77852e5969SJed Brown - `20` 78852e5969SJed Brown 79852e5969SJed Brown* - `-checkpoint_interval` 80852e5969SJed Brown - Number of steps between writing binary checkpoints. `0` has no output, `-1` outputs final state only 81575f8106SLeila Ghaffari - `10` 82ea10196cSJeremy L Thompson 83852e5969SJed Brown* - `-checkpoint_vtk` 84852e5969SJed Brown - Checkpoints include VTK (`*.vtu`) files for visualization. Consider `-ts_monitor_solution`instead. 85852e5969SJed Brown - `false` 86852e5969SJed Brown 87852e5969SJed Brown* - `-viz_refine` 88852e5969SJed Brown - Use regular refinement for VTK visualization 89852e5969SJed Brown - `0` 90852e5969SJed Brown 91575f8106SLeila Ghaffari* - `-output_dir` 92852e5969SJed Brown - Output directory for binary checkpoints and VTK files (if enabled). 93575f8106SLeila Ghaffari - `.` 94ea10196cSJeremy L Thompson 9591a36801SJames Wright* - `-output_add_stepnum2bin` 9691a36801SJames Wright - Whether to add step numbers to output binary files 9791a36801SJames Wright - `false` 9891a36801SJames Wright 9991a36801SJames Wright* - `-continue` 10091a36801SJames Wright - Continue from previous solution (input is step number of previous solution) 10191a36801SJames Wright - `0` 10291a36801SJames Wright 10391a36801SJames Wright* - `-continue_filename` 10491a36801SJames Wright - Path to solution binary file from which to continue from 10591a36801SJames Wright - `[output_dir]/ns-solution.bin` 10691a36801SJames Wright 10791a36801SJames Wright* - `-continue_time_filename` 108*9293eaa1SJed Brown - Path to time stamp binary file (only for legacy checkpoints) 10991a36801SJames Wright - `[output_dir]/ns-time.bin` 11091a36801SJames Wright 111f4277be3SLeila Ghaffari* - `-bc_wall` 112f4277be3SLeila Ghaffari - Use wall boundary conditions on this list of faces 113f4277be3SLeila Ghaffari - 114f4277be3SLeila Ghaffari 115f4277be3SLeila Ghaffari* - `-wall_comps` 116f4277be3SLeila Ghaffari - An array of constrained component numbers for wall BCs 117f4277be3SLeila Ghaffari - 118f4277be3SLeila Ghaffari 119f4277be3SLeila Ghaffari* - `-bc_slip_x` 120f4277be3SLeila Ghaffari - Use slip boundary conditions, for the x component, on this list of faces 121f4277be3SLeila Ghaffari - 122f4277be3SLeila Ghaffari 123f4277be3SLeila Ghaffari* - `-bc_slip_y` 124f4277be3SLeila Ghaffari - Use slip boundary conditions, for the y component, on this list of faces 125f4277be3SLeila Ghaffari - 126f4277be3SLeila Ghaffari 127f4277be3SLeila Ghaffari* - `-bc_slip_z` 128f4277be3SLeila Ghaffari - Use slip boundary conditions, for the z component, on this list of faces 129f4277be3SLeila Ghaffari - 130f4277be3SLeila Ghaffari 131f4277be3SLeila Ghaffari* - `-bc_inflow` 132f4277be3SLeila Ghaffari - Use inflow boundary conditions on this list of faces 133f4277be3SLeila Ghaffari - 134f4277be3SLeila Ghaffari 135f4277be3SLeila Ghaffari* - `-bc_outflow` 136f4277be3SLeila Ghaffari - Use outflow boundary conditions on this list of faces 137f4277be3SLeila Ghaffari - 1388ef11c93SLeila Ghaffari 13979b17980SJames Wright* - `-bc_freestream` 14079b17980SJames Wright - Use freestream boundary conditions on this list of faces 14179b17980SJames Wright - 14279b17980SJames Wright 143575f8106SLeila Ghaffari* - `-snes_view` 144575f8106SLeila Ghaffari - View PETSc `SNES` nonlinear solver configuration 145575f8106SLeila Ghaffari - 1468ef11c93SLeila Ghaffari 147575f8106SLeila Ghaffari* - `-log_view` 148575f8106SLeila Ghaffari - View PETSc performance log 149575f8106SLeila Ghaffari - 150ea10196cSJeremy L Thompson 151575f8106SLeila Ghaffari* - `-help` 152575f8106SLeila Ghaffari - View comprehensive information about run-time options 153575f8106SLeila Ghaffari - 154575f8106SLeila Ghaffari::: 155ea10196cSJeremy L Thompson 15679b17980SJames WrightFor the case of a square/cubic mesh, the list of face indices to be used with `-bc_wall`, `bc_inflow`, `bc_outflow`, `bc_freestream` and/or `-bc_slip_x`, `-bc_slip_y`, and `-bc_slip_z` are: 157f4277be3SLeila Ghaffari 158bb8a0c61SJames Wright:::{list-table} 2D Face ID Labels 159bb8a0c61SJames Wright:header-rows: 1 160bb8a0c61SJames Wright* - PETSc Face Name 161bb8a0c61SJames Wright - Cartesian direction 162bb8a0c61SJames Wright - Face ID 163bb8a0c61SJames Wright 164bb8a0c61SJames Wright* - faceMarkerBottom 165bb8a0c61SJames Wright - -z 166bb8a0c61SJames Wright - 1 167bb8a0c61SJames Wright 168bb8a0c61SJames Wright* - faceMarkerRight 169bb8a0c61SJames Wright - +x 170bb8a0c61SJames Wright - 2 171bb8a0c61SJames Wright 172bb8a0c61SJames Wright* - faceMarkerTop 173bb8a0c61SJames Wright - +z 174bb8a0c61SJames Wright - 3 175bb8a0c61SJames Wright 176bb8a0c61SJames Wright* - faceMarkerLeft 177bb8a0c61SJames Wright - -x 178bb8a0c61SJames Wright - 4 179bb8a0c61SJames Wright::: 180bb8a0c61SJames Wright 181bb8a0c61SJames Wright:::{list-table} 2D Face ID Labels 182bb8a0c61SJames Wright:header-rows: 1 183bb8a0c61SJames Wright* - PETSc Face Name 184bb8a0c61SJames Wright - Cartesian direction 185bb8a0c61SJames Wright - Face ID 186bb8a0c61SJames Wright 187bb8a0c61SJames Wright* - faceMarkerBottom 188bb8a0c61SJames Wright - -z 189bb8a0c61SJames Wright - 1 190bb8a0c61SJames Wright 191bb8a0c61SJames Wright* - faceMarkerTop 192bb8a0c61SJames Wright - +z 193bb8a0c61SJames Wright - 2 194bb8a0c61SJames Wright 195bb8a0c61SJames Wright* - faceMarkerFront 196bb8a0c61SJames Wright - -y 197bb8a0c61SJames Wright - 3 198bb8a0c61SJames Wright 199bb8a0c61SJames Wright* - faceMarkerBack 200bb8a0c61SJames Wright - +y 201bb8a0c61SJames Wright - 4 202bb8a0c61SJames Wright 203bb8a0c61SJames Wright* - faceMarkerRight 204bb8a0c61SJames Wright - +x 205bb8a0c61SJames Wright - 5 206bb8a0c61SJames Wright 207bb8a0c61SJames Wright* - faceMarkerLeft 208bb8a0c61SJames Wright - -x 209bb8a0c61SJames Wright - 6 210bb8a0c61SJames Wright::: 211f4277be3SLeila Ghaffari 212af8870a9STimothy Aiken### Advection 213af8870a9STimothy Aiken 214b46bfc5eSJeremy L ThompsonFor testing purposes, there is a reduced mode for pure advection, which holds density $\rho$ and momentum density $\rho \bm u$ constant while advecting "total energy density" $E$. 215b46bfc5eSJeremy L ThompsonThese are available in 2D and 3D. 216af8870a9STimothy Aiken 217af8870a9STimothy Aiken#### 2D advection 218af8870a9STimothy Aiken 219575f8106SLeila GhaffariFor the 2D advection problem, the following additional command-line options are available: 220ea10196cSJeremy L Thompson 221575f8106SLeila Ghaffari:::{list-table} Advection2D Runtime Options 222575f8106SLeila Ghaffari:header-rows: 1 2238ef11c93SLeila Ghaffari 224575f8106SLeila Ghaffari* - Option 225575f8106SLeila Ghaffari - Description 226575f8106SLeila Ghaffari - Default value 227575f8106SLeila Ghaffari - Unit 2288ef11c93SLeila Ghaffari 229575f8106SLeila Ghaffari* - `-rc` 230575f8106SLeila Ghaffari - Characteristic radius of thermal bubble 231575f8106SLeila Ghaffari - `1000` 232575f8106SLeila Ghaffari - `m` 2338ef11c93SLeila Ghaffari 234575f8106SLeila Ghaffari* - `-units_meter` 235575f8106SLeila Ghaffari - 1 meter in scaled length units 236575f8106SLeila Ghaffari - `1E-2` 237575f8106SLeila Ghaffari - 2388ef11c93SLeila Ghaffari 239575f8106SLeila Ghaffari* - `-units_second` 240575f8106SLeila Ghaffari - 1 second in scaled time units 241575f8106SLeila Ghaffari - `1E-2` 242575f8106SLeila Ghaffari - 2438ef11c93SLeila Ghaffari 244575f8106SLeila Ghaffari* - `-units_kilogram` 245575f8106SLeila Ghaffari - 1 kilogram in scaled mass units 246575f8106SLeila Ghaffari - `1E-6` 247575f8106SLeila Ghaffari - 248a515125bSLeila Ghaffari 249575f8106SLeila Ghaffari* - `-strong_form` 250575f8106SLeila Ghaffari - Strong (1) or weak/integrated by parts (0) residual 251575f8106SLeila Ghaffari - `0` 252575f8106SLeila Ghaffari - 253a515125bSLeila Ghaffari 254575f8106SLeila Ghaffari* - `-stab` 255575f8106SLeila Ghaffari - Stabilization method (`none`, `su`, or `supg`) 256575f8106SLeila Ghaffari - `none` 257575f8106SLeila Ghaffari - 258a515125bSLeila Ghaffari 259575f8106SLeila Ghaffari* - `-CtauS` 260575f8106SLeila Ghaffari - Scale coefficient for stabilization tau (nondimensional) 261575f8106SLeila Ghaffari - `0` 262575f8106SLeila Ghaffari - 263a515125bSLeila Ghaffari 264575f8106SLeila Ghaffari* - `-wind_type` 265575f8106SLeila Ghaffari - Wind type in Advection (`rotation` or `translation`) 266575f8106SLeila Ghaffari - `rotation` 267575f8106SLeila Ghaffari - 268a515125bSLeila Ghaffari 269575f8106SLeila Ghaffari* - `-wind_translation` 270575f8106SLeila Ghaffari - Constant wind vector when `-wind_type translation` 271575f8106SLeila Ghaffari - `1,0,0` 272575f8106SLeila Ghaffari - 2738ef11c93SLeila Ghaffari 274575f8106SLeila Ghaffari* - `-E_wind` 275575f8106SLeila Ghaffari - Total energy of inflow wind when `-wind_type translation` 276575f8106SLeila Ghaffari - `1E6` 277575f8106SLeila Ghaffari - `J` 278575f8106SLeila Ghaffari::: 279268c6924SLeila Ghaffari 280575f8106SLeila GhaffariAn example of the `rotation` mode can be run with: 281268c6924SLeila Ghaffari 282575f8106SLeila Ghaffari``` 283f4277be3SLeila Ghaffari./navierstokes -problem advection2d -dm_plex_box_faces 20,20 -dm_plex_box_lower 0,0 -dm_plex_box_upper 1000,1000 -bc_wall 1,2,3,4 -wall_comps 4 -wind_type rotation -implicit -stab supg 284575f8106SLeila Ghaffari``` 285268c6924SLeila Ghaffari 286575f8106SLeila Ghaffariand the `translation` mode with: 287268c6924SLeila Ghaffari 288575f8106SLeila Ghaffari``` 289f4277be3SLeila Ghaffari./navierstokes -problem advection2d -dm_plex_box_faces 20,20 -dm_plex_box_lower 0,0 -dm_plex_box_upper 1000,1000 -units_meter 1e-4 -wind_type translation -wind_translation 1,-.5 -bc_inflow 1,2,3,4 290575f8106SLeila Ghaffari``` 291f4277be3SLeila GhaffariNote the lengths in `-dm_plex_box_upper` are given in meters, and will be nondimensionalized according to `-units_meter`. 292268c6924SLeila Ghaffari 293af8870a9STimothy Aiken#### 3D advection 294af8870a9STimothy Aiken 295575f8106SLeila GhaffariFor the 3D advection problem, the following additional command-line options are available: 296268c6924SLeila Ghaffari 297575f8106SLeila Ghaffari:::{list-table} Advection3D Runtime Options 298575f8106SLeila Ghaffari:header-rows: 1 299268c6924SLeila Ghaffari 300575f8106SLeila Ghaffari* - Option 301575f8106SLeila Ghaffari - Description 302575f8106SLeila Ghaffari - Default value 303575f8106SLeila Ghaffari - Unit 304268c6924SLeila Ghaffari 305575f8106SLeila Ghaffari* - `-rc` 306575f8106SLeila Ghaffari - Characteristic radius of thermal bubble 307575f8106SLeila Ghaffari - `1000` 308575f8106SLeila Ghaffari - `m` 309268c6924SLeila Ghaffari 310575f8106SLeila Ghaffari* - `-units_meter` 311575f8106SLeila Ghaffari - 1 meter in scaled length units 312575f8106SLeila Ghaffari - `1E-2` 313575f8106SLeila Ghaffari - 314268c6924SLeila Ghaffari 315575f8106SLeila Ghaffari* - `-units_second` 316575f8106SLeila Ghaffari - 1 second in scaled time units 317575f8106SLeila Ghaffari - `1E-2` 318575f8106SLeila Ghaffari - 319268c6924SLeila Ghaffari 320575f8106SLeila Ghaffari* - `-units_kilogram` 321575f8106SLeila Ghaffari - 1 kilogram in scaled mass units 322575f8106SLeila Ghaffari - `1E-6` 323575f8106SLeila Ghaffari - 324268c6924SLeila Ghaffari 325575f8106SLeila Ghaffari* - `-strong_form` 326575f8106SLeila Ghaffari - Strong (1) or weak/integrated by parts (0) residual 327575f8106SLeila Ghaffari - `0` 328575f8106SLeila Ghaffari - 329268c6924SLeila Ghaffari 330575f8106SLeila Ghaffari* - `-stab` 331575f8106SLeila Ghaffari - Stabilization method (`none`, `su`, or `supg`) 332575f8106SLeila Ghaffari - `none` 333575f8106SLeila Ghaffari - 334268c6924SLeila Ghaffari 335575f8106SLeila Ghaffari* - `-CtauS` 336575f8106SLeila Ghaffari - Scale coefficient for stabilization tau (nondimensional) 337575f8106SLeila Ghaffari - `0` 338575f8106SLeila Ghaffari - 339268c6924SLeila Ghaffari 340575f8106SLeila Ghaffari* - `-wind_type` 341575f8106SLeila Ghaffari - Wind type in Advection (`rotation` or `translation`) 342575f8106SLeila Ghaffari - `rotation` 343575f8106SLeila Ghaffari - 344268c6924SLeila Ghaffari 345575f8106SLeila Ghaffari* - `-wind_translation` 346575f8106SLeila Ghaffari - Constant wind vector when `-wind_type translation` 347575f8106SLeila Ghaffari - `1,0,0` 348575f8106SLeila Ghaffari - 349268c6924SLeila Ghaffari 350575f8106SLeila Ghaffari* - `-E_wind` 351575f8106SLeila Ghaffari - Total energy of inflow wind when `-wind_type translation` 352575f8106SLeila Ghaffari - `1E6` 353575f8106SLeila Ghaffari - `J` 354268c6924SLeila Ghaffari 355575f8106SLeila Ghaffari* - `-bubble_type` 356575f8106SLeila Ghaffari - `sphere` (3D) or `cylinder` (2D) 357575f8106SLeila Ghaffari - `shpere` 358575f8106SLeila Ghaffari - 359268c6924SLeila Ghaffari 360575f8106SLeila Ghaffari* - `-bubble_continuity` 361575f8106SLeila Ghaffari - `smooth`, `back_sharp`, or `thick` 362575f8106SLeila Ghaffari - `smooth` 363575f8106SLeila Ghaffari - 364575f8106SLeila Ghaffari::: 365ea10196cSJeremy L Thompson 366575f8106SLeila GhaffariAn example of the `rotation` mode can be run with: 367ea10196cSJeremy L Thompson 368575f8106SLeila Ghaffari``` 369f4277be3SLeila Ghaffari./navierstokes -problem advection -dm_plex_box_faces 10,10,10 -dm_plex_dim 3 -dm_plex_box_lower 0,0,0 -dm_plex_box_upper 8000,8000,8000 -bc_wall 1,2,3,4,5,6 -wall_comps 4 -wind_type rotation -implicit -stab su 370575f8106SLeila Ghaffari``` 371ea10196cSJeremy L Thompson 372575f8106SLeila Ghaffariand the `translation` mode with: 373ea10196cSJeremy L Thompson 374575f8106SLeila Ghaffari``` 375f4277be3SLeila Ghaffari./navierstokes -problem advection -dm_plex_box_faces 10,10,10 -dm_plex_dim 3 -dm_plex_box_lower 0,0,0 -dm_plex_box_upper 8000,8000,8000 -wind_type translation -wind_translation .5,-1,0 -bc_inflow 1,2,3,4,5,6 376575f8106SLeila Ghaffari``` 377ea10196cSJeremy L Thompson 378af8870a9STimothy Aiken### Inviscid Ideal Gas 379af8870a9STimothy Aiken 380af8870a9STimothy Aiken#### Isentropic Euler vortex 381af8870a9STimothy Aiken 382575f8106SLeila GhaffariFor the Isentropic Vortex problem, the following additional command-line options are available: 383ea10196cSJeremy L Thompson 384575f8106SLeila Ghaffari:::{list-table} Isentropic Vortex Runtime Options 385575f8106SLeila Ghaffari:header-rows: 1 386ea10196cSJeremy L Thompson 387575f8106SLeila Ghaffari* - Option 388575f8106SLeila Ghaffari - Description 389575f8106SLeila Ghaffari - Default value 390575f8106SLeila Ghaffari - Unit 391ea10196cSJeremy L Thompson 392575f8106SLeila Ghaffari* - `-center` 393575f8106SLeila Ghaffari - Location of vortex center 394575f8106SLeila Ghaffari - `(lx,ly,lz)/2` 395575f8106SLeila Ghaffari - `(m,m,m)` 396ea10196cSJeremy L Thompson 397575f8106SLeila Ghaffari* - `-units_meter` 398575f8106SLeila Ghaffari - 1 meter in scaled length units 399575f8106SLeila Ghaffari - `1E-2` 400575f8106SLeila Ghaffari - 401ea10196cSJeremy L Thompson 402575f8106SLeila Ghaffari* - `-units_second` 403575f8106SLeila Ghaffari - 1 second in scaled time units 404575f8106SLeila Ghaffari - `1E-2` 405575f8106SLeila Ghaffari - 406ea10196cSJeremy L Thompson 407575f8106SLeila Ghaffari* - `-mean_velocity` 408575f8106SLeila Ghaffari - Background velocity vector 409575f8106SLeila Ghaffari - `(1,1,0)` 410575f8106SLeila Ghaffari - 411ea10196cSJeremy L Thompson 412575f8106SLeila Ghaffari* - `-vortex_strength` 413575f8106SLeila Ghaffari - Strength of vortex < 10 414575f8106SLeila Ghaffari - `5` 415575f8106SLeila Ghaffari - 416d8a22b9eSJed Brown 417d8a22b9eSJed Brown* - `-c_tau` 418d8a22b9eSJed Brown - Stabilization constant 419f821ee77SLeila Ghaffari - `0.5` 420d8a22b9eSJed Brown - 421575f8106SLeila Ghaffari::: 422ea10196cSJeremy L Thompson 423575f8106SLeila GhaffariThis problem can be run with: 424ea10196cSJeremy L Thompson 425575f8106SLeila Ghaffari``` 426f4277be3SLeila Ghaffari./navierstokes -problem euler_vortex -dm_plex_box_faces 20,20,1 -dm_plex_box_lower 0,0,0 -dm_plex_box_upper 1000,1000,50 -dm_plex_dim 3 -bc_inflow 4,6 -bc_outflow 3,5 -bc_slip_z 1,2 -mean_velocity .5,-.8,0. 427575f8106SLeila Ghaffari``` 428ea10196cSJeremy L Thompson 429af8870a9STimothy Aiken#### Sod shock tube 430af8870a9STimothy Aiken 431af8870a9STimothy AikenFor the Shock Tube problem, the following additional command-line options are available: 432af8870a9STimothy Aiken 433af8870a9STimothy Aiken:::{list-table} Shock Tube Runtime Options 434af8870a9STimothy Aiken:header-rows: 1 435af8870a9STimothy Aiken 436af8870a9STimothy Aiken* - Option 437af8870a9STimothy Aiken - Description 438af8870a9STimothy Aiken - Default value 439af8870a9STimothy Aiken - Unit 440af8870a9STimothy Aiken 441af8870a9STimothy Aiken* - `-units_meter` 442af8870a9STimothy Aiken - 1 meter in scaled length units 443af8870a9STimothy Aiken - `1E-2` 444af8870a9STimothy Aiken - 445af8870a9STimothy Aiken 446af8870a9STimothy Aiken* - `-units_second` 447af8870a9STimothy Aiken - 1 second in scaled time units 448af8870a9STimothy Aiken - `1E-2` 449af8870a9STimothy Aiken - 450af8870a9STimothy Aiken 451af8870a9STimothy Aiken* - `-yzb` 452af8870a9STimothy Aiken - Use YZB discontinuity capturing 453af8870a9STimothy Aiken - `none` 454af8870a9STimothy Aiken - 455af8870a9STimothy Aiken 456af8870a9STimothy Aiken* - `-stab` 457af8870a9STimothy Aiken - Stabilization method (`none`, `su`, or `supg`) 458af8870a9STimothy Aiken - `none` 459af8870a9STimothy Aiken - 460af8870a9STimothy Aiken::: 461af8870a9STimothy Aiken 462af8870a9STimothy AikenThis problem can be run with: 463af8870a9STimothy Aiken 464af8870a9STimothy Aiken``` 465af8870a9STimothy Aiken./navierstokes -problem shocktube -yzb -stab su -bc_slip_z 3,4 -bc_slip_y 1,2 -bc_wall 5,6 -dm_plex_dim 3 -dm_plex_box_lower 0,0,0 -dm_plex_box_upper 1000,100,100 -dm_plex_box_faces 200,1,1 -units_second 0.1 466af8870a9STimothy Aiken``` 467af8870a9STimothy Aiken 468af8870a9STimothy Aiken### Newtonian viscosity, Ideal Gas 469af8870a9STimothy Aiken 470bb8a0c61SJames WrightFor the Density Current, Channel, and Blasius problems, the following common command-line options are available: 471ea10196cSJeremy L Thompson 472bb8a0c61SJames Wright:::{list-table} Newtonian Ideal Gas problems Runtime Options 473575f8106SLeila Ghaffari:header-rows: 1 474ea10196cSJeremy L Thompson 475575f8106SLeila Ghaffari* - Option 476575f8106SLeila Ghaffari - Description 477575f8106SLeila Ghaffari - Default value 478575f8106SLeila Ghaffari - Unit 479ea10196cSJeremy L Thompson 480575f8106SLeila Ghaffari* - `-units_meter` 481575f8106SLeila Ghaffari - 1 meter in scaled length units 482bb8a0c61SJames Wright - `1` 483575f8106SLeila Ghaffari - 484ea10196cSJeremy L Thompson 485575f8106SLeila Ghaffari* - `-units_second` 486575f8106SLeila Ghaffari - 1 second in scaled time units 487bb8a0c61SJames Wright - `1` 488575f8106SLeila Ghaffari - 489ea10196cSJeremy L Thompson 490575f8106SLeila Ghaffari* - `-units_kilogram` 491575f8106SLeila Ghaffari - 1 kilogram in scaled mass units 492bb8a0c61SJames Wright - `1` 493575f8106SLeila Ghaffari - 494ea10196cSJeremy L Thompson 495575f8106SLeila Ghaffari* - `-units_Kelvin` 496575f8106SLeila Ghaffari - 1 Kelvin in scaled temperature units 497575f8106SLeila Ghaffari - `1` 498575f8106SLeila Ghaffari - 499ea10196cSJeremy L Thompson 500575f8106SLeila Ghaffari* - `-stab` 501575f8106SLeila Ghaffari - Stabilization method (`none`, `su`, or `supg`) 502575f8106SLeila Ghaffari - `none` 503575f8106SLeila Ghaffari - 504ea10196cSJeremy L Thompson 505d8a22b9eSJed Brown* - `-c_tau` 506bb8a0c61SJames Wright - Stabilization constant, $c_\tau$ 507f821ee77SLeila Ghaffari - `0.5` 508d8a22b9eSJed Brown - 509d8a22b9eSJed Brown 510bb8a0c61SJames Wright* - `-Ctau_t` 511bb8a0c61SJames Wright - Stabilization time constant, $C_t$ 512bb8a0c61SJames Wright - `1.0` 513bb8a0c61SJames Wright - 514ea10196cSJeremy L Thompson 515bb8a0c61SJames Wright* - `-Ctau_v` 516bb8a0c61SJames Wright - Stabilization viscous constant, $C_v$ 517b5786772SLeila Ghaffari - `36, 60, 128 for degree = 1, 2, 3` 518bb8a0c61SJames Wright - 519ea10196cSJeremy L Thompson 520bb8a0c61SJames Wright* - `-Ctau_C` 521bb8a0c61SJames Wright - Stabilization continuity constant, $C_c$ 522bb8a0c61SJames Wright - `1.0` 523bb8a0c61SJames Wright - 524ea10196cSJeremy L Thompson 525bb8a0c61SJames Wright* - `-Ctau_M` 526bb8a0c61SJames Wright - Stabilization momentum constant, $C_m$ 527bb8a0c61SJames Wright - `1.0` 528bb8a0c61SJames Wright - 529bb8a0c61SJames Wright 530bb8a0c61SJames Wright* - `-Ctau_E` 531bb8a0c61SJames Wright - Stabilization energy constant, $C_E$ 532bb8a0c61SJames Wright - `1.0` 533bb8a0c61SJames Wright - 534ea10196cSJeremy L Thompson 535575f8106SLeila Ghaffari* - `-cv` 536575f8106SLeila Ghaffari - Heat capacity at constant volume 537575f8106SLeila Ghaffari - `717` 538575f8106SLeila Ghaffari - `J/(kg K)` 539ea10196cSJeremy L Thompson 540575f8106SLeila Ghaffari* - `-cp` 541575f8106SLeila Ghaffari - Heat capacity at constant pressure 542575f8106SLeila Ghaffari - `1004` 543575f8106SLeila Ghaffari - `J/(kg K)` 544ea10196cSJeremy L Thompson 545575f8106SLeila Ghaffari* - `-g` 546575f8106SLeila Ghaffari - Gravitational acceleration 547575f8106SLeila Ghaffari - `9.81` 548575f8106SLeila Ghaffari - `m/s^2` 549ea10196cSJeremy L Thompson 550575f8106SLeila Ghaffari* - `-lambda` 551575f8106SLeila Ghaffari - Stokes hypothesis second viscosity coefficient 552575f8106SLeila Ghaffari - `-2/3` 553575f8106SLeila Ghaffari - 554ea10196cSJeremy L Thompson 555575f8106SLeila Ghaffari* - `-mu` 556575f8106SLeila Ghaffari - Shear dynamic viscosity coefficient 557575f8106SLeila Ghaffari - `75` 558575f8106SLeila Ghaffari - `Pa s` 559a515125bSLeila Ghaffari 560575f8106SLeila Ghaffari* - `-k` 561575f8106SLeila Ghaffari - Thermal conductivity 562575f8106SLeila Ghaffari - `0.02638` 563575f8106SLeila Ghaffari - `W/(m K)` 564edd152dcSJed Brown 565edd152dcSJed Brown* - `-newtonian_unit_tests` 566edd152dcSJed Brown - Developer option to test properties 567edd152dcSJed Brown - `false` 568edd152dcSJed Brown - boolean 569aa61a79eSJames Wright 570ba952bfeSJames Wright* - `-state_var` 571ba952bfeSJames Wright - State variables to solve solution with. `conservative` ($\rho, \rho \bm{u}, \rho e$) or `primitive` ($P, \bm{u}, T$) 572ba952bfeSJames Wright - `conservative` 573ba952bfeSJames Wright - string 574575f8106SLeila Ghaffari::: 575a515125bSLeila Ghaffari 57679b17980SJames Wright#### Newtonian Wave 57779b17980SJames Wright 57883c686feSJames WrightThe newtonian wave problem has the following command-line options in addition to the Newtonian Ideal Gas options: 57979b17980SJames Wright 580ff82278dSJames Wright:::{list-table} Newtonian Wave Runtime Options 58179b17980SJames Wright:header-rows: 1 58279b17980SJames Wright 58379b17980SJames Wright* - Option 58479b17980SJames Wright - Description 58579b17980SJames Wright - Default value 58679b17980SJames Wright - Unit 58779b17980SJames Wright 588edf614b5SJed Brown* - `-freestream_riemann` 589edf614b5SJed Brown - Riemann solver for boundaries (HLL or HLLC) 590edf614b5SJed Brown - `hllc` 591edf614b5SJed Brown - 592edf614b5SJed Brown 593edf614b5SJed Brown* - `-freestream_velocity` 59479b17980SJames Wright - Freestream velocity vector 59579b17980SJames Wright - `0,0,0` 59679b17980SJames Wright - `m/s` 59779b17980SJames Wright 598edf614b5SJed Brown* - `-freestream_temperature` 59979b17980SJames Wright - Freestream temperature 60079b17980SJames Wright - `288` 60179b17980SJames Wright - `K` 60279b17980SJames Wright 603edf614b5SJed Brown* - `-freestream_pressure` 604ff82278dSJames Wright - Freestream pressure 60579b17980SJames Wright - `1.01e5` 60679b17980SJames Wright - `Pa` 60779b17980SJames Wright 60879b17980SJames Wright* - `-epicenter` 60979b17980SJames Wright - Coordinates of center of perturbation 61079b17980SJames Wright - `0,0,0` 61179b17980SJames Wright - `m` 61279b17980SJames Wright 61379b17980SJames Wright* - `-amplitude` 61479b17980SJames Wright - Amplitude of the perturbation 61579b17980SJames Wright - `0.1` 61679b17980SJames Wright - 61779b17980SJames Wright 61879b17980SJames Wright* - `-width` 61979b17980SJames Wright - Width parameter of the perturbation 62079b17980SJames Wright - `0.002` 62179b17980SJames Wright - `m` 62279b17980SJames Wright 62379b17980SJames Wright::: 62479b17980SJames Wright 62579b17980SJames WrightThis problem can be run with the `newtonianwave.yaml` file via: 62679b17980SJames Wright 62779b17980SJames Wright``` 62879b17980SJames Wright./navierstokes -options_file newtonianwave.yaml 62979b17980SJames Wright``` 63079b17980SJames Wright 63179b17980SJames Wright```{literalinclude} ../../../../../examples/fluids/newtonianwave.yaml 63279b17980SJames Wright:language: yaml 63379b17980SJames Wright``` 634edd152dcSJed Brown 635b8fb7609SAdeleke O. Bankole#### Vortex Shedding - Flow past Cylinder 636b8fb7609SAdeleke O. Bankole 637b8fb7609SAdeleke O. BankoleThe vortex shedding, flow past cylinder problem has the following command-line options in addition to the Newtonian Ideal Gas options: 638b8fb7609SAdeleke O. Bankole 639b8fb7609SAdeleke O. Bankole:::{list-table} Vortex Shedding Runtime Options 640b8fb7609SAdeleke O. Bankole:header-rows: 1 641b8fb7609SAdeleke O. Bankole 642b8fb7609SAdeleke O. Bankole* - Option 643b8fb7609SAdeleke O. Bankole - Description 644b8fb7609SAdeleke O. Bankole - Default value 645b8fb7609SAdeleke O. Bankole - Unit 646b8fb7609SAdeleke O. Bankole 647b8fb7609SAdeleke O. Bankole* - `-freestream_velocity` 648b8fb7609SAdeleke O. Bankole - Freestream velocity vector 649b8fb7609SAdeleke O. Bankole - `0,0,0` 650b8fb7609SAdeleke O. Bankole - `m/s` 651b8fb7609SAdeleke O. Bankole 652b8fb7609SAdeleke O. Bankole* - `-freestream_temperature` 653b8fb7609SAdeleke O. Bankole - Freestream temperature 654b8fb7609SAdeleke O. Bankole - `288` 655b8fb7609SAdeleke O. Bankole - `K` 656b8fb7609SAdeleke O. Bankole 657b8fb7609SAdeleke O. Bankole* - `-freestream_pressure` 658b8fb7609SAdeleke O. Bankole - Freestream pressure 659b8fb7609SAdeleke O. Bankole - `1.01e5` 660b8fb7609SAdeleke O. Bankole - `Pa` 661b8fb7609SAdeleke O. Bankole 662b8fb7609SAdeleke O. Bankole::: 663b8fb7609SAdeleke O. Bankole 664b8fb7609SAdeleke O. BankoleThe initial condition is taken from `-reference_temperature` and `-reference_pressure`. 665b8fb7609SAdeleke O. BankoleTo run this problem, first generate a mesh: 666b8fb7609SAdeleke O. Bankole 667b8fb7609SAdeleke O. Bankole```console 668b8fb7609SAdeleke O. Bankole$ make -C examples/fluids/meshes 669b8fb7609SAdeleke O. Bankole``` 670b8fb7609SAdeleke O. Bankole 671b8fb7609SAdeleke O. BankoleThen run by building the executable and running: 672b8fb7609SAdeleke O. Bankole 673b8fb7609SAdeleke O. Bankole```console 674b8fb7609SAdeleke O. Bankole$ make build/fluids-navierstokes 675b8fb7609SAdeleke O. Bankole$ mpiexec -n 6 build/fluids-navierstokes -options_file vortexshedding.yaml 676b8fb7609SAdeleke O. Bankole``` 677b8fb7609SAdeleke O. Bankole 678b8fb7609SAdeleke O. BankoleThe vortex shedding period is roughly 6 and this problem runs until time 100 (2000 time steps). 679b8fb7609SAdeleke O. Bankole 680b8fb7609SAdeleke O. Bankole```{literalinclude} ../../../../../examples/fluids/vortexshedding.yaml 681b8fb7609SAdeleke O. Bankole:language: yaml 682b8fb7609SAdeleke O. Bankole``` 683b8fb7609SAdeleke O. Bankole 684af8870a9STimothy Aiken#### Density current 685af8870a9STimothy Aiken 68683c686feSJames WrightThe Density Current problem has the following command-line options in addition to the Newtonian Ideal Gas options: 687bb8a0c61SJames Wright 688bb8a0c61SJames Wright:::{list-table} Density Current Runtime Options 689bb8a0c61SJames Wright:header-rows: 1 690bb8a0c61SJames Wright 691bb8a0c61SJames Wright* - Option 692bb8a0c61SJames Wright - Description 693bb8a0c61SJames Wright - Default value 694bb8a0c61SJames Wright - Unit 695bb8a0c61SJames Wright 696bb8a0c61SJames Wright* - `-center` 697bb8a0c61SJames Wright - Location of bubble center 698bb8a0c61SJames Wright - `(lx,ly,lz)/2` 699bb8a0c61SJames Wright - `(m,m,m)` 700bb8a0c61SJames Wright 701bb8a0c61SJames Wright* - `-dc_axis` 702bb8a0c61SJames Wright - Axis of density current cylindrical anomaly, or `(0,0,0)` for spherically symmetric 703bb8a0c61SJames Wright - `(0,0,0)` 704bb8a0c61SJames Wright - 705bb8a0c61SJames Wright 706bb8a0c61SJames Wright* - `-rc` 707bb8a0c61SJames Wright - Characteristic radius of thermal bubble 708bb8a0c61SJames Wright - `1000` 709bb8a0c61SJames Wright - `m` 710bb8a0c61SJames Wright 711bb8a0c61SJames Wright* - `-theta0` 712bb8a0c61SJames Wright - Reference potential temperature 713bb8a0c61SJames Wright - `300` 714bb8a0c61SJames Wright - `K` 715bb8a0c61SJames Wright 716bb8a0c61SJames Wright* - `-thetaC` 717bb8a0c61SJames Wright - Perturbation of potential temperature 718bb8a0c61SJames Wright - `-15` 719bb8a0c61SJames Wright - `K` 720bb8a0c61SJames Wright 721bb8a0c61SJames Wright* - `-P0` 722bb8a0c61SJames Wright - Atmospheric pressure 723bb8a0c61SJames Wright - `1E5` 724bb8a0c61SJames Wright - `Pa` 725bb8a0c61SJames Wright 726bb8a0c61SJames Wright* - `-N` 727bb8a0c61SJames Wright - Brunt-Vaisala frequency 728bb8a0c61SJames Wright - `0.01` 729bb8a0c61SJames Wright - `1/s` 730bb8a0c61SJames Wright::: 731bb8a0c61SJames Wright 732575f8106SLeila GhaffariThis problem can be run with: 733ea10196cSJeremy L Thompson 734575f8106SLeila Ghaffari``` 735bb8a0c61SJames Wright./navierstokes -problem density_current -dm_plex_box_faces 16,1,8 -degree 1 -dm_plex_box_lower 0,0,0 -dm_plex_box_upper 2000,125,1000 -dm_plex_dim 3 -rc 400. -bc_wall 1,2,5,6 -wall_comps 1,2,3 -bc_slip_y 3,4 -mu 75 736bb8a0c61SJames Wright``` 737bb8a0c61SJames Wright 738af8870a9STimothy Aiken#### Channel flow 739af8870a9STimothy Aiken 74083c686feSJames WrightThe Channel problem has the following command-line options in addition to the Newtonian Ideal Gas options: 741bb8a0c61SJames Wright 742bb8a0c61SJames Wright:::{list-table} Channel Runtime Options 743bb8a0c61SJames Wright:header-rows: 1 744bb8a0c61SJames Wright 745bb8a0c61SJames Wright* - Option 746bb8a0c61SJames Wright - Description 747bb8a0c61SJames Wright - Default value 748bb8a0c61SJames Wright - Unit 749bb8a0c61SJames Wright 750bb8a0c61SJames Wright* - `-umax` 751bb8a0c61SJames Wright - Maximum/centerline velocity of the flow 752bb8a0c61SJames Wright - `10` 753bb8a0c61SJames Wright - `m/s` 754bb8a0c61SJames Wright 755bb8a0c61SJames Wright* - `-theta0` 756bb8a0c61SJames Wright - Reference potential temperature 757bb8a0c61SJames Wright - `300` 758bb8a0c61SJames Wright - `K` 759bb8a0c61SJames Wright 760bb8a0c61SJames Wright* - `-P0` 761bb8a0c61SJames Wright - Atmospheric pressure 762bb8a0c61SJames Wright - `1E5` 763bb8a0c61SJames Wright - `Pa` 764edd152dcSJed Brown 765edd152dcSJed Brown* - `-body_force_scale` 766edd152dcSJed Brown - Multiplier for body force (`-1` for flow reversal) 767edd152dcSJed Brown - 1 768edd152dcSJed Brown - 769bb8a0c61SJames Wright::: 770bb8a0c61SJames Wright 771bb8a0c61SJames WrightThis problem can be run with the `channel.yaml` file via: 772bb8a0c61SJames Wright 773bb8a0c61SJames Wright``` 774bb8a0c61SJames Wright./navierstokes -options_file channel.yaml 775bb8a0c61SJames Wright``` 776bb8a0c61SJames Wright```{literalinclude} ../../../../../examples/fluids/channel.yaml 777bb8a0c61SJames Wright:language: yaml 778bb8a0c61SJames Wright``` 779bb8a0c61SJames Wright 780af8870a9STimothy Aiken#### Blasius boundary layer 781af8870a9STimothy Aiken 78283c686feSJames WrightThe Blasius problem has the following command-line options in addition to the Newtonian Ideal Gas options: 783bb8a0c61SJames Wright 784bb8a0c61SJames Wright:::{list-table} Blasius Runtime Options 785bb8a0c61SJames Wright:header-rows: 1 786bb8a0c61SJames Wright 787bb8a0c61SJames Wright* - Option 788bb8a0c61SJames Wright - Description 789bb8a0c61SJames Wright - Default value 790bb8a0c61SJames Wright - Unit 791bb8a0c61SJames Wright 792aef1eb53SLeila Ghaffari* - `-velocity_infinity` 793bb8a0c61SJames Wright - Freestream velocity 794bb8a0c61SJames Wright - `40` 795bb8a0c61SJames Wright - `m/s` 796bb8a0c61SJames Wright 797aef1eb53SLeila Ghaffari* - `-temperature_infinity` 798aef1eb53SLeila Ghaffari - Freestream temperature 799bb8a0c61SJames Wright - `288` 800bb8a0c61SJames Wright - `K` 801bb8a0c61SJames Wright 802aef1eb53SLeila Ghaffari* - `-temperature_wall` 803aef1eb53SLeila Ghaffari - Wall temperature 8040d850f2eSLeila Ghaffari - `288` 805aef1eb53SLeila Ghaffari - `K` 806aef1eb53SLeila Ghaffari 807aef1eb53SLeila Ghaffari* - `-delta0` 808aef1eb53SLeila Ghaffari - Boundary layer height at the inflow 809aef1eb53SLeila Ghaffari - `4.2e-3` 810aef1eb53SLeila Ghaffari - `m` 811aef1eb53SLeila Ghaffari 812bb8a0c61SJames Wright* - `-P0` 813bb8a0c61SJames Wright - Atmospheric pressure 814bb8a0c61SJames Wright - `1.01E5` 815bb8a0c61SJames Wright - `Pa` 816bb8a0c61SJames Wright 81798b448e2SJames Wright* - `-platemesh_refine_height` 81898b448e2SJames Wright - Height at which `-platemesh_Ndelta` number of elements should refined into 819bb8a0c61SJames Wright - `5.9E-4` 820bb8a0c61SJames Wright - `m` 821bb8a0c61SJames Wright 82298b448e2SJames Wright* - `-platemesh_Ndelta` 82398b448e2SJames Wright - Number of elements to keep below `-platemesh_refine_height` 824bb8a0c61SJames Wright - `45` 825bb8a0c61SJames Wright - 826bb8a0c61SJames Wright 82798b448e2SJames Wright* - `-platemesh_growth` 828bb8a0c61SJames Wright - Growth rate of the elements in the refinement region 829bb8a0c61SJames Wright - `1.08` 830bb8a0c61SJames Wright - 831bb8a0c61SJames Wright 83298b448e2SJames Wright* - `-platemesh_top_angle` 833bb8a0c61SJames Wright - Downward angle of the top face of the domain. This face serves as an outlet. 834bb8a0c61SJames Wright - `5` 835bb8a0c61SJames Wright - `degrees` 836493642f1SJames Wright 837493642f1SJames Wright* - `-stg_use` 838493642f1SJames Wright - Whether to use stg for the inflow conditions 839493642f1SJames Wright - `false` 840493642f1SJames Wright - 84198b448e2SJames Wright 84298b448e2SJames Wright* - `-platemesh_y_node_locs_path` 84398b448e2SJames Wright - Path to file with y node locations. If empty, will use mesh warping instead. 84498b448e2SJames Wright - `""` 84598b448e2SJames Wright - 846aef1eb53SLeila Ghaffari 8470d850f2eSLeila Ghaffari* - `-n_chebyshev` 848aef1eb53SLeila Ghaffari - Number of Chebyshev terms 849aef1eb53SLeila Ghaffari - `20` 850aef1eb53SLeila Ghaffari - 851aef1eb53SLeila Ghaffari 8520d850f2eSLeila Ghaffari* - `-chebyshev_` 8530d850f2eSLeila Ghaffari - Prefix for Chebyshev snes solve 8540d850f2eSLeila Ghaffari - 8550d850f2eSLeila Ghaffari - 8560d850f2eSLeila Ghaffari 857bb8a0c61SJames Wright::: 858bb8a0c61SJames Wright 859bb8a0c61SJames WrightThis problem can be run with the `blasius.yaml` file via: 860bb8a0c61SJames Wright 861bb8a0c61SJames Wright``` 862bb8a0c61SJames Wright./navierstokes -options_file blasius.yaml 863bb8a0c61SJames Wright``` 864bb8a0c61SJames Wright 865bb8a0c61SJames Wright```{literalinclude} ../../../../../examples/fluids/blasius.yaml 866bb8a0c61SJames Wright:language: yaml 867575f8106SLeila Ghaffari``` 868493642f1SJames Wright 869493642f1SJames Wright#### STG Inflow for Flat Plate 870493642f1SJames Wright 871b46bfc5eSJeremy L ThompsonUsing the STG Inflow for the blasius problem adds the following command-line options: 872493642f1SJames Wright 873493642f1SJames Wright:::{list-table} Blasius Runtime Options 874493642f1SJames Wright:header-rows: 1 875493642f1SJames Wright 876493642f1SJames Wright* - Option 877493642f1SJames Wright - Description 878493642f1SJames Wright - Default value 879493642f1SJames Wright - Unit 880493642f1SJames Wright 881493642f1SJames Wright* - `-stg_inflow_path` 882493642f1SJames Wright - Path to the STGInflow file 883493642f1SJames Wright - `./STGInflow.dat` 884493642f1SJames Wright - 885493642f1SJames Wright 886493642f1SJames Wright* - `-stg_rand_path` 887493642f1SJames Wright - Path to the STGRand file 888493642f1SJames Wright - `./STGRand.dat` 889493642f1SJames Wright - 890493642f1SJames Wright 891493642f1SJames Wright* - `-stg_alpha` 892493642f1SJames Wright - Growth rate of the wavemodes 893493642f1SJames Wright - `1.01` 894493642f1SJames Wright - 895493642f1SJames Wright 896493642f1SJames Wright* - `-stg_u0` 897493642f1SJames Wright - Convective velocity, $U_0$ 898493642f1SJames Wright - `0.0` 899493642f1SJames Wright - `m/s` 900493642f1SJames Wright 901493642f1SJames Wright* - `-stg_mean_only` 902493642f1SJames Wright - Only impose the mean velocity (no fluctutations) 903493642f1SJames Wright - `false` 904493642f1SJames Wright - 905493642f1SJames Wright 90629ea39e3SJames Wright* - `-stg_strong` 90729ea39e3SJames Wright - Strongly enforce the STG inflow boundary condition 90829ea39e3SJames Wright - `false` 90929ea39e3SJames Wright - 91029ea39e3SJames Wright 911d4e0f297SJames Wright* - `-stg_fluctuating_IC` 912d4e0f297SJames Wright - "Extrude" the fluctuations through the domain as an initial condition 913d4e0f297SJames Wright - `false` 914d4e0f297SJames Wright - 915d4e0f297SJames Wright 916493642f1SJames Wright::: 917493642f1SJames Wright 918493642f1SJames WrightThis problem can be run with the `blasius.yaml` file via: 919493642f1SJames Wright 920493642f1SJames Wright``` 921493642f1SJames Wright./navierstokes -options_file blasius.yaml -stg_use true 922493642f1SJames Wright``` 923493642f1SJames Wright 924b46bfc5eSJeremy L ThompsonNote the added `-stg_use true` flag 925b46bfc5eSJeremy L ThompsonThis overrides the `stg: use: false` setting in the `blasius.yaml` file, enabling the use of the STG inflow. 926