MHD simulation on magnetic compression of field reversed configurations with NIMROD