Physical model;
Automation/Control model;
Initial Conditions model;
Boundary Conditions model;
Energy model.
In order to ascertain which collection of model
instances a given simulation will be (or it was) based
upon, model instances corresponding to the different
parts (topology, physics, etc.) must have distinct
identities (name, version). Model instances
corresponding to a given part generally evolve
independently from the other parts.
The global model instance being used for grid
simulations in a specific context or at a given time is
therefore the composition of several sub-domain
model instances. As a most obvious example: the
same grid topology and physical model instances
may be employed in many simulations with different
initial and boundary conditions.
The following section illustrates application
scenarios from the “WATERGRID research project”
providing motivations for the proposed modelling of
the problem domain.
Software engineering aspects of GMOS
development are discussed in the central section of
this paper which deals with partial models, cross-
references, model authoring and domain specific
languages.
2 APPLICATION SCENARIOS
This section illustrates two use cases from the
WATERGRID project providing motivations for the
proposed modelling of the problem domain.
2.1 Calibration of the Hydraulic Model
Calibration is the process by which the hydraulic
model parameters (generally the pipe roughness) are
estimated by using the available sensor data. The
simplest method is to calculate the covariance and
the sensitivity matrix of the state parameters by
assuming a preliminary estimate of the roughness,
which can be assigned according to the pipe material
and coating, age and water and soil characteristics.
The optimal sensor location problem (sampling
design) can be solved by running a simulation based
on the current estimate of the hydraulic parameters
and different boundary conditions e.g. corresponding
to minimum, maximum and average demand
patterns (Yu and Powell, 1994; Bush and Uber,
1998; Del Giudice and Di Cristo, 2003). Other
approaches (i.e. shortest path algorithms) calculate
the optimal location based on the network topology
(de Schaetzen et al., 2000). In this case, no initial
estimate of the parameters is required, and the sensor
location can be obtained without running any
simulation. Nevertheless, a certain objective
function has to be maximized (or minimized) and
optimization algorithms should be used. Data
collected from the sensors are then used to find the
best estimates for the unknown parameters
(roughness coefficients). To this aim, optimization-
based, explicit or implicit methods can be used
(Savic et al., 2009).
In summary, the calibration scenario is one
where simulations need to be repeatedly run for
different purposes. Model instances representing the
grid topology and initial conditions may be reused
without changes in these simulations with boundary
conditions chosen from a representative set of model
instances. Finally, the physical model is typically
updated at each step of an iterative process.
2.2 Running Predictive Simulations
In this scenario, the validated topology and physical
models are used with newly created models for the
initial and boundary conditions. The latter must be
created from field sensor data in order to support
reliable predictive simulations under new operating
conditions. For example, this is necessary when
analysing abnormal operating conditions which may
occur in a water distribution system in case of break
of transmission mains, for fire hydrant service, for
simulating the travel times of a pollutant
accidentally or intentionally injected into the system.
Moreover, predictive simulations can be used for
design of extension and/or rehabilitation of existing
water distribution networks.
3 PARTIAL MODELS, CROSS-
REFERENCES, AUTHORING
Cross-referencing across models is required to
combine the information contained in models of the
physics, energy, initial and boundary conditions of
grid objects with their topological relationships.
Simulation codes typically need to process all
this information at once in each run. Therefore, one
must always provide an exporter where cross-model
references are resolved and information is produced
in the format required for running the simulation. A
similar situation arises with authoring tools, because
different aspect of the same grid must be handled
together in a given authoring sessions.
Model Driven Software Engineering for Grid Modeling, Optimization and Simulation
325