DCGunProblem:
{
  RunId: test3
  SymmetryFactor: 4
  //JustGenerateTreecotree: On

  ElectricAbsoluteTolerance: 0.
  ElectricRelativeTolerance: 1.00e-06
  ElectricAbsoluteTolerance2: 0.
  ElectricRelativeTolerance2: 1.00e-06
  MagneticAbsoluteTolerance: 0.
  MagneticRelativeTolerance: 1.00e-05
  MaxIterations: 0
  FirstIterationForMagnetostaticProblem: 10
  Save iteration data: On
}

ElectrostaticProblem:
{
  AnodeBoundaryId: 6
  MeshFile: ./Coax-gun3p.ncdf 
  BasisOrder: 2
  CurvedSurfaces: on

  Initial charge multiplicative factor: 1.
  Delta law for charge multiplicative factor: 0.
  Parameter for charge multiplicative factor: 0.
  Charge averaging factor: 0.1

  VolumeMaterial:
  {
    Id: 1
    MediumName: Vacuum
    PhysicalParameter:
    {
      // Permittivity
      // Permeability
      // Sigma
      // ThermalConductivity
      // FilmConductance
      // MassDensity
      // SpecificHeatCapacity
      // ElasticMu
      // ElasticLambda
      // ElasticAlpha
      Name: Permittivity
      ConstantValue: 1.
    }
  }

  VolumeMaterial:
  {
    Id: 2
    MediumName: Vacuum
    PhysicalParameter:
    {
      // Permittivity
      // Permeability
      // Sigma
      // ThermalConductivity
      // FilmConductance
      // MassDensity
      // SpecificHeatCapacity
      // ElasticMu
      // ElasticLambda
      // ElasticAlpha
      Name: Permittivity
      ConstantValue: 9.
    }
  }

  Write dofs to disk: On
  Use reduced solver: On
  Debug bd dofs mapping: On
  Debug matrix assembly: On

  Outputs:
  {
    //Matrices and vectors: On
    //Dofs for tracker: Off
    Dofs for vizualization: On
    //Dofs diff for vizualization: On
    ElectrostaticFieldToken: On
    FileName: test-101.txt
    Nx: 101
    Ny: 101
    Nz: 201

  }

  //Monitor:
  //{
  //  Type: Segment
  //  Name: seg1
  //  InitialPoint: 0., 0., 0.
  //  Direction: 0., 0., 1.
  //  Length: 0.16
  //  Number of points: 16001
  //}

  //Monitor:
  //{
  //  Type: Line
  //  Name: line1
  //  Only on post process: On
  //  Only on first iteration and post process: Off
  //  Meshline input file: ../rectf-110kbench.ml
  //  Number of points: 5001
  //}

  //Monitor:
  //{
  //  Type: Equipotentials
  //  Name: equipot1
  //  Only on post process: On
  //  Only on first iteration and post process: Off
  //  Iteration frequency: 5
  //  Potential values: 2.5, 7.5, 12.5, 17.5, 22.5, 27.5, 32.5, 37.5, 42.5, 47.5
  //  Point A: 1.0e-8, 1.0e-4, 1.0e-4
  //  Point B: 1.0e-8, 0.0199, 1.0e-4
  //  Number of points: 51
  //  Search direction: 0., 0., 1.
  //  Maximum search distance: 0.050
  //}

  // HERE
  Boundary:
  {
    Id: 1
    ConditionType: Neumann
    NeumannValue: 0.
  }

  Boundary:
  {
    Id: 2
    ConditionType: Neumann
    NeumannValue: 0.
  }

  Boundary:
  {
    Id: 3
    ConditionType: Neumann
    NeumannValue: 0.
  }

  Boundary:
  {
    Id: 4
    ConditionType: Neumann
    NeumannValue: 0.
  }

  Boundary:
  {
    Id: 5
    ConditionType: Dirichlet
    DirichletValue: 0.
  }

  Boundary:
  {
    Id: 6
    ConditionType: Dirichlet
    DirichletValue: 500.
  }

  Compute non zero initial guess: On
  LinearSolver:
  {
    Solver:            CG
    Preconditioner:    CHOLESKY
    PrintFrequency:    50
    QuietMode:         0
    AbsoluteTolerance: 1.00e-99
    Tolerance:         1.00e-16
    MaxIterations:     5000
  }
}

//END
