flow123d_version: 4.0.0a01
problem: !Coupling_Sequential
  description: Test14 - 2D transport with time variable boundary
  mesh:
    mesh_file: ../00_mesh/square_0.2x0.2.msh
  # steady velocity field, with velocity v:0.1
  flow_equation: !Flow_Darcy_LMH
    nonlinear_solver:
      linear_solver: !Petsc
        a_tol: 1.0e-12
        r_tol: 1.0e-12
    input_fields:
      - region: bulk
        conductivity: 1
      - region: .BOUNDARY
        bc_type: dirichlet
        bc_pressure: !FieldFormula
          value: 0.1*X[0]
    output:
      fields:
        - pressure_p0
        - velocity_p0
    output_stream:
      file: ./test14.pvd
      format: !vtk
        variant: ascii
  solute_equation: !Coupling_OperatorSplitting
    transport: !Solute_Advection_FV
      input_fields:
        - region: bulk
          init_conc: 0
        - region: .right
          time: 0.01
          bc_conc: 100
        - region: .right
          time: 0.02
          bc_conc: 0
        - region: .right
          time: 0.35
          bc_conc: 20
    substances:
      - A
    time:
      # test forcing smaller time step then output,
      # but still larger then 0.01 necessary for capture input
      max_dt: 0.05
      end_time: 1.0
    output_stream:
      file: ./transport.pvd
      format: !vtk
        variant: ascii
      times:
        - step: 0.1
      precision: 15
    balance:
      cumulative: true
