volumeOfFluids/waterGravity.yaml

---
test:
  # a unique test name for this integration tests
  name: waterGravity
  # create a default assert that compares the log file
  assert: "inputs/volumeOfFluids/waterGravity.txt"

environment:
  title: WaterWG_50
  tagDirectory: true
arguments: { }
timestepper:
  name: theMainTimeStepper
  arguments:
    ts_type: rk
    ts_max_time: 1.0
    ts_max_steps: 10
    ts_dt: 1e-10
  domain: !ablate::domain::BoxMeshBoundaryCells
    name: simpleBoxField
    faces: [ 50 ]
    lower: [ 0 ]
    upper: [ 1 ]
    preModifiers:
      - !ablate::domain::modifiers::DistributeWithGhostCells
    postModifiers:
      - !ablate::domain::modifiers::GhostBoundaryCells
    fields:
      - !ablate::finiteVolume::CompressibleFlowFields
        eos: !ablate::eos::PerfectGas
          parameters:
            gamma: 0
            Rgas: 0
        region:
          name: domain
      - name: densityvolumeFraction
        type: FVM
        region:
          name: domain
      - name: volumeFraction
        type: FVM
        region:
          name: domain
      - name: pressure
        location: AUX
        type: FVM
        region:
          name: domain
  initialization:
    - fieldName: "euler" # T=300K, v=0m/s, p=100,000Pa
      field: >-
        994.0897497618486,
        2414070815.450644,
        0.0
    - fieldName: densityvolumeFraction
      field: "0.0"
    - fieldName: volumeFraction
      field: "0.0"
solvers:
  - !ablate::finiteVolume::FiniteVolumeSolver
    id: flow solvers
    region:
      name: interiorCells
    processes:
      - !ablate::finiteVolume::processes::TwoPhaseEulerAdvection
        eos: !ablate::eos::TwoPhase
          eos1: !ablate::eos::PerfectGas &eosAir
            parameters: # air
              gamma: 1.4
              Rgas: 287.0
          eos2: !ablate::eos::StiffenedGas &eosWater
            parameters: # water
              gamma: 1.932
              Cp: 8095.08
              p0: 1164500000.0
        fluxCalculatorGasGas: !ablate::finiteVolume::fluxCalculator::RiemannStiff
          eosL: *eosAir
          eosR: *eosAir
        fluxCalculatorGasLiquid: !ablate::finiteVolume::fluxCalculator::RiemannStiff
          eosL: *eosAir
          eosR: *eosWater
        fluxCalculatorLiquidGas: !ablate::finiteVolume::fluxCalculator::RiemannStiff
          eosL: *eosWater
          eosR: *eosAir
        fluxCalculatorLiquidLiquid: !ablate::finiteVolume::fluxCalculator::RiemannStiff
          eosL: *eosWater
          eosR: *eosWater
      - !ablate::finiteVolume::processes::Gravity
        vector: [ -9.81 ]
    monitors:
      - !ablate::monitors::TimeStepMonitor
        log: !ablate::monitors::logs::CsvLog
          name: time.csv
      - !ablate::monitors::CurveMonitor
        interval: 1000
  - !ablate::boundarySolver::BoundarySolver
    id: openBoundary
    region:
      name: boundaryCellsRight
    fieldBoundary:
      name: boundaryFaces
    processes:
      - !ablate::boundarySolver::lodi::OpenBoundary
        eos: *eosWater
        reflectFactor: 0.0
        referencePressure: 100000
        maxAcousticsLength: 1
  - !ablate::boundarySolver::BoundarySolver
    id: isothermalWall
    region:
      name: boundaryCellsLeft
    fieldBoundary:
      name: boundaryFaces
    processes:
      - !ablate::boundarySolver::lodi::IsothermalWall
        eos: *eosWater