compressibleFlow/steadyCompressibleFlowLodiTest.yaml
---
test:
# a unique test name for this integration tests
name: steadyCompressibleFlowLodiTest
# run mpi with two ranks
ranks: 2
# create a default assert that compares the log file
assert: "inputs/compressibleFlow/steadyCompressibleFlowLodiTest.txt"
# This is the lodi validation for what should be uniform flow
environment:
title: _uniformFlow
tagDirectory: false
arguments:
petsclimiter_type: none
dm_plex_periodic_cut: true
timestepper:
name: theMainTimeStepper
arguments:
ts_type: rk
ts_adapt_type: physics # overwrite and set the time step based upon the CFL constraint
ts_max_steps: 2500000
ts_max_time: 0.00271837
ts_adapt_safety: 1.0
domain: !ablate::domain::BoxMeshBoundaryCells
name: simpleBoxField
faces: [ 10, 10 ]
lower: [ 0.0, -.5 ]
upper: [ 1.0, .5 ]
# pass in these options to petsc when setting up the domain. Using an option list here prevents command line arguments from being seen.
options:
dm_refine: 0 # must be zero when using the BoxMeshBoundaryCells
preModifiers:
- !ablate::domain::modifiers::DistributeWithGhostCells
postModifiers:
- !ablate::domain::modifiers::MergeLabels
mergedRegion:
name: openBoundaryLabel
regions:
- name: boundaryCellsRight
- name: boundaryCellsTop
- name: boundaryCellsBottom
- !ablate::domain::modifiers::GhostBoundaryCells
fields:
- !ablate::finiteVolume::CompressibleFlowFields
eos: !ablate::eos::PerfectGas &eos
parameters:
gamma: 1.4
Rgas : 287.0
region:
name: domain
initialization:
- !ablate::finiteVolume::fieldFunctions::Euler
state:
eos: *eos
pressure:
!ablate::mathFunctions::Formula
formula: pinf
constants:
# define the constants used by the formulas
&constants
pinf: 101325.0
rho: 1.0
gamma: 1.4
Rgas: 287.0
Rc: 0.075
C: -0.09415446086
uo: 414.2796277878
l: .5
temperature:
!ablate::mathFunctions::Formula
formula: 1/(Rgas*rho) * (pinf)
constants: *constants
velocity:
!ablate::mathFunctions::Formula
formula: uo, 0.0
constants: *constants
solvers:
- !ablate::finiteVolume::CompressibleFlowSolver
id: vortexFlowField
region:
name: interiorCells
fluxCalculator: !ablate::finiteVolume::fluxCalculator::AusmpUp
mInf: .3
parameters:
cfl: 0.5
transport:
mu: 0.02071398139
monitors:
- !ablate::monitors::MaxMinAverage
field: euler
- !ablate::monitors::MaxMinAverage
field: temperature
eos: *eos
- !ablate::boundarySolver::BoundarySolver
id: inlet
region:
name: boundaryCellsLeft
fieldBoundary:
name: boundaryFaces
processes:
- !ablate::boundarySolver::lodi::Inlet
eos: *eos
- !ablate::boundarySolver::BoundarySolver
id: openBoundary
region:
name: openBoundaryLabel
fieldBoundary:
name: boundaryFaces
processes:
- !ablate::boundarySolver::lodi::OpenBoundary
eos: *eos
reflectFactor: 0.0
referencePressure: 101325.0
maxAcousticsLength: 1