&GLOBAL
  PROJECT nh3-meta-2
  RUN_TYPE md
&END GLOBAL

&MOTION
  &FREE_ENERGY
    &METADYN
      DO_HILLS
      LAGRANGE F
      NT_HILLS 3
      WW 1.0e-3
      &METAVAR
        COLVAR 1
        SCALE 0.02
        &WALL
          POSITION -0.5
          TYPE REFLECTIVE
          &REFLECTIVE
            DIRECTION WALL_PLUS
          &END REFLECTIVE
        &END WALL
        &WALL
          POSITION -1.0
          TYPE REFLECTIVE
          &REFLECTIVE
            DIRECTION WALL_MINUS
          &END REFLECTIVE
        &END WALL
      &END METAVAR
    &END METADYN
  &END FREE_ENERGY
  &MD
    ENSEMBLE NVE
    STEPS 50
    TEMPERATURE 300.0
    TEMP_TOL 10.0
    TIMESTEP 1.0
  &END MD
&END MOTION

&FORCE_EVAL
  METHOD FIST
  &MM
    &FORCEFIELD
      PARMTYPE CHM
      PARM_FILE_NAME ../sample_pot/nh3.pot
    &END FORCEFIELD
    &POISSON
      &EWALD
        ALPHA .44
        EWALD_TYPE spme
        GMAX 30
        O_SPLINE 6
      &END EWALD
    &END POISSON
  &END MM
  &SUBSYS
    &CELL
      ABC 10.0 10.0 10.0
    &END CELL
    &COLVAR
      &DISTANCE_POINT_PLANE
        ATOMS_PLANE 2 3 4
        ATOM_POINT 1
      &END DISTANCE_POINT_PLANE
    &END COLVAR
    &TOPOLOGY
      CONNECTIVITY UPSF
      CONN_FILE_NAME ../sample_psf/nh3.psf
      COORDINATE pdb
      COORD_FILE_NAME ../sample_pdb/nh3_1mol.pdb
    &END TOPOLOGY
  &END SUBSYS
&END FORCE_EVAL
