Results of a new relativistic two-dimensional particle-in-cell code for simulation of laser-driven ion acceleration are presented. It is shown that a complex electric field structure arose during the laser-target interaction as well as the evolution of the ion and electron concentration for the laser-induced cavity pressure acceleration scheme took place. During computation the influence of parameters such as target thickness and width, target starting position inside cavity and its atomic composition, as well as laser pulse length and beam width are examined. Values adopted for the calculation reflect the experimental conditions.