The main theoretical studies of the process involved in solar flares have been made in the two-dimensional approximation. However, the preliminary studies made with three field components suggest that reconnection could take place in the separatrices, the separator (intersection of separatrices) being a privileged location for this process. As a consequence the sites of flare kernels must be located on the intersections of the separatrices with the photosphere. Therefore, in order to understand the role of interacting large-scale structures in solar flares, we have analysed the topology of three-dimensional potential and linear force-free fields. The magnetic field has been modelled by a distribution of charges or dipoles located below the photosphere. This modelling permits us to define the field connectivity by the charges or the dipoles at both ends of every field line. We found that the appearance of a separator above the photosphere is more likely when a parasitic bipole emerges outside the axis that joins the main polarities and when the field lines are characteristic of a field created by dipoles. The separatrices derived in the potential and force-free hypothesis have different shapes. However, in the strong field regions where flares usually occur, the separatrices of the potential and force-free field models become closer. This property makes possible the use of the potential field, as a first estimate, for computing the location in the photosphere of the separatrices and for comparing this location with the position of observed H-alpha kernels. Displacements of the separatrices of a force-free field result from modifications of the free energy of the field. Then force-free fields have the further capability of predicting the kernel displacement. In all cases a configuration suitable for prominence support is found above the separator.