Confined layer amorphous cell energy minimize

Hello, 

I am creating a confined layer polymer box using amorphous cell. Can I use this box directly for me runs without minimizing energy. If I energy minimize using Discover, will the atoms go outside the box in the confined direction ?
Is there a way to minimize keeping the polymer confined ?

Thanks
Answers 1
CM
CM 2017-09-25
Please keep in mind that Discover is not a supported product any more.
You will need a btcl script for this.

This is from from share\Discover\data\discover\script\srforc.tcl
# "axis_restraint coeff delta axis" causes all subsequent energy calculations
# to include a E=coeff*(x+delta)^-9 restraint, where x is the distance
# from an atom to the nearest cell boundary plane not containing the
# axis'th cell vector.
proc axis_restraint {coeff delta axis} {
  global axis${axis}_restraint
  restraint create axis${axis}_restraint btcl apply_axis_restraint $coeff $delta $axis
}

axis_restraint  1e+04 1.500000 3
would add a restraint at 1.5\AA from the cell boundary along the c axis of the cell.
axis_restraint  1e+04 1.500000 2
would be the same restraint along the y axis.