It is organized as follows. Section 2 presents the
related work. In Section 3, the main basis of proto-
typing with a rule-based language using the JERBOA
software (Belhaouari et al., 2014) is detailed. In Sec-
tion 4, the physical simulation of 2D and 3D objects
with different types of meshes and physical models
using rule-based language are described. Finally, im-
plementation details are given in Section 5.
2 PREVIOUS WORK
Several previous studies have shown the advantages
of using a topological model for simulation. Meseure
et al. (Meseure et al., 2010) use G-maps to simu-
late the deformation and the topological changes of
soft bodies. Their approach is restricted to tetrahe-
dral meshes and mass/spring systems. Moreover, they
have used only stretching springs, associated to edges.
Nevertheless, due to the G-maps engine used, they re-
quired external arrays to allow a fast access to cells
(vertices, edges, volumes...). These arrays must be
updated after any topological change.
Fl
´
echon et al. (Fl
´
echon et al., 2013) have used a
derivation of combinatorial maps, namely 3D Linear
Cell Complex (LCC) as a topological model to sim-
ulate mass/spring systems based on 2D rectangular
and 3D hexahedral meshes. In this model, stretch-
ing springs are also associated to edges. Unfortu-
nately, shear springs (placed along diagonals of each
element) require an external structure. Golec et al.
(Golec et al., 2015) extend this model to allow the
simulation of 3D tetrahedral and hexahedral meshes
using not only mass/spring but also mass/tensor mod-
els. They claim not to rely on any additional struc-
tures but each face/volume is associated with an array
of darts that allow the numbering of each vertex. Ac-
tually, this array implicitly includes neighboring rela-
tionships so appears as redundant with the LCC.
The real weakness of all these approaches is the
use of external structures to store information re-
quired by the simulation. After a topological mod-
ification, the external structure can be rebuilt from
scratch or be modified incrementally. The first so-
lution guarantees correctness but is costly, while the
second is a tedious process that can lead to inconsis-
tencies. On the contrary, maps ensure their own con-
sistency using constraints that can easily be verified.
It seems that the limitation of element types in
(Meseure et al., 2010) and the use of external struc-
tures in (Fl
´
echon et al., 2013) and (Golec et al.,
2015) is due to an unsuitable modeling of interac-
tions. Indeed, these approaches search for topolog-
ical elements that could support both the origin of
the forces (e.g. a link between two particles) and
the vertices associated with the concerned particles.
Concerning stretching springs, the solution is simple
and immediate, since these topological elements are
edges of the mesh. But the other kinds of springs
do not directly correspond to topological elements
(for instance, diagonals of faces). We therefore pro-
pose a new paradigm to model springs and other me-
chanical components in general, that could be called
“topology-based force field”. Force modeling pro-
cess should focus only on the origin of each force and
store the mechanical parameters on related topologi-
cal elements. Thus, if these elements are modified by
topological modifications, the resulting forces should
be automatically altered. The (two or more) involved
particles should therefore be identified from the stor-
age place, while computing interaction forces.
To sum up, our method overcomes the limitation
of the approaches listed above as it proposes:
• a framework with multi-physical, multidimen-
sional and multi-element simulation;
• a new paradigm to model interactions, by both
considering their physical origin and identifying
the (two or more) involved particles;
• a storage for all the mechanical information in the
topological model (no other additional structure is
necessary).
To simulate deformable bodies using a physical
model and a topological one, a rule-based language
is used which exploits graph transformations for pro-
totyping. This language offers the opportunity to test
the capability of our model to simulate different types
of meshes in different dimensions with different phys-
ical models and different properties (homogeneity,
isotropy) in a little time. Note that a lot of languages
are dedicated to physical modeling, such as (Kjolstad
et al., 2016) among others. These languages often
propose to describe the simulated objects, including
their topology, but contrary to our approach, they do
not aim at programming the simulation itself nor do
they allow the design of new interactions.
3 PROTOTYPING USING RULE
BASED-LANGUAGE
The JERBOA rule-based language (Belhaouari et al.,
2014) is dedicated to geometric modeling. It is based
on the topological model of G-maps (Damiand and
Lienhardt, 2014). The representation of an object us-
ing a G-map is defined from its successive subdivi-
sion into topological cells (vertices, edges, faces, vol-
umes, etc.) and appears as a graph (Figure 1b). The
A General Physical-topological Framework using Rule-based Language for Physical Simulation
221