  In this work we study the synchronization of Kuramoto oscillators driven by
external forces in complex modular networks. The motivation is the neuronal
dynamics that takes place during information processing in the neural cortex.
The neuron organization is modular, with clusters associated to different
functions and brain structures, and need to constantly respond to external
stimuli. We study the behavior of forced Kuramoto oscillators where only a
fraction of them is subjected to a periodic external force. When all
oscillators receive the external drive the system always synchronize with the
periodic force if its intensity is sufficiently large. We show that the
conditions for global synchronization depend on the fraction of nodes being
forced and on network topology, strength of internal couplings and intensity of
external forcing. We develop numerical and analytical calculations for the
critical force for global synchronization as a function of the fraction of
forced oscillators. As an application we study the response of the electric
junction \textit{C. elegans} network to external stimuli using the partially
forced Kuramoto model. Stimuli were applied to topological modules, to ganglia,
specified by their anatomical localization, and to the functional groups
(sensory and motoneurons). We found that topological modules do not contain
purely anamotical groups or functional classes, and that stimulating different
classes of neurons lead to very different responses, measured in terms of
synchronization and phase velocity correlations. In all cases the modular
structure hindered full synchronization, protecting the system from seizures.
The responses to stimuli applied to topological and functional modules showed
pronounced patterns of correlation or anti-correlation with other modules that
were not observed when the stimulus was applied to a ganglion with mixed
functional neurons.
