Numerical Simulation of an Enclosed Flare