A method and a program for converting boundary data into cell inner shape
data, includes a division step (A) of dividing external data (12)
constituted of the boundary data of an object into cells (13) in an
orthogonal grid, a cutting point deciding step (B) of deciding an
intersection point of the boundary data and a cell edge as a cell edge
cutting point, a boundary deciding step (C) of deciding a boundary formed
by connecting the cell edge cutting points as the cell inner shape data,
a cell classification step (D) of classifying the divided cells into a
nonboundary cell (13a) including no boundary surface and a boundary cell
(13b) including a boundary surface, and a boundary cell data
classification step (E) of classifying cell data constituting the
boundary cell into internal cell data inside the cell inner shape data
and external cell data outside the cell inner shape data.