Source author record

Daniele Viganò

Daniele Viganò appears in the imported research catalog. Authorship, coauthor and topic links are available while profile ownership is still unclaimed.

ResearcherUnclaimed source record

Catalog footprint

What is connected

23works
5topics
4close collaborators

Actions

Connect this record

Log in to claim

Research graph

See the researcher in context

Open full explorer

Inspect adjacent papers, topics, institutions and collaborators without losing the researcher page.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Published work

23 published item(s)

preprint2023arXiv

How bright can old magnetars be? Assessing the impact of magnetized envelopes and field topology on neutron star cooling

Neutron stars cool down during their lifetime through the combination of neutrino emission from the interior and photon cooling from the surface. Strongly magnetised neutron stars, called magnetars, are no exception, but the effect of their strong fields adds further complexities to the cooling theory. Besides other factors, modelling the outermost hundred meters (the envelope) plays a crucial role in predicting their surface temperatures. In this letter, we revisit the influence of envelopes on the cooling properties of neutron stars, with special focus on the critical effects of the magnetic field. We explore how our understanding of the relation between the internal and surface temperatures has evolved over the past two decades, and how different assumptions about the neutron star envelope and field topology lead to radically different conclusions on the surface temperature and its cooling with age. In particular, we find that relatively old magnetars with core-threading magnetic fields are actually much cooler than a rotation-powered pulsar of the same age. This is at variance with what is typically observed in crustal-confined models. Our results have important implications for the estimates of the X-ray luminosities of aged magnetars, and the subsequent population study of the different neutron star classes.

preprint2022arXiv

Inferring pulsar periods from synchro-curvature spectra

The period and the period derivative of a pulsar are critical magnitudes for defining the properties of the magnetospheric size and plasma dynamics. The pulsar light cylinder, the magnetic field intensity nearby it, and the curvature radius all depend on these timing properties, and shape the observed high-energy synchro-curvature emission. Therefore, the radiative properties of pulsars are inextricably linked to them. This fact poses the question of how well does a given pulsar's spectral energy distribution embeds information of the timing parameters, and if so, whether we can deduce them if they have not been measured directly. This is relevant to possibly constrain the timing properties of potential pulsar candidates among unidentified $γ$-ray sources. We consider well-measured pulsar spectra blinding us from the knowledge of their timing properties, and address this question by using our radiative synchro-curvature model that was proven able to fit the observed spectra of the pulsar population. We find that in the majority of the cases studied (8/13), the spin period is constrained within a range of about one order of magnitude, within which the real period lies. In the other cases, there is degeneracy and no period range can be constrained. This can be used to facilitate the blind search of pulsed signals.

preprint2022arXiv

Universality of the turbulent magnetic field in hypermassive neutron stars produced by binary mergers

The detection of a binary neutron star merger in 2017 through both gravitational waves and electromagnetic emission opened a new era of multimessenger astronomy. The understanding of the magnetic field amplification triggered by the Kelvin-Helmholtz instability during the merger is still a numerically unresolved problem because of the relevant small scales involved. One of the uncertainties comes from the simplifications usually assumed in the initial magnetic topology of merging neutron stars. We perform high-resolution, convergent large-eddy simulations of binary neutron star mergers, following the newly formed remnant for up to $30$ milliseconds. Here we specifically focus on the comparison between simulations with different initial magnetic configurations, going beyond the widespread-used aligned dipole confined within each star. The results obtained show that the initial topology is quickly forgotten, in a timescale of few miliseconds after the merger. Moreover, at the end of the simulations, the average intensity ($B\sim 10^{16}$ G) and the spectral distribution of magnetic energy over spatial scales barely depend on the initial configuration. This is expected due to the small-scale efficient dynamo involved, and thus it holds as long as: (i) the initial large-scale magnetic field is not unrealistically high (as often imposed in mergers studies); (ii) the turbulent instability is numerically (at least partially) resolved, so that the amplified magnetic energy is distributed across a wide range of scales and becomes orders-of-magnitude larger than the initial one.

preprint2020arXiv

A chemically etched corrugated feedhorn array for D-band CMB observations

We present the design, manufacturing, and testing of a 37-element array of corrugated feedhorns for Cosmic Microwave Background (CMB) measurements between $140$ and $170$ GHz. The array was designed to be coupled to Kinetic Inductance Detector arrays, either directly (for total power measurements) or through an orthomode transducer (for polarization measurements). We manufactured the array in platelets by chemically etching aluminum plates of $0.3$ mm and $0.4$ mm thickness. The process is fast, low-cost, scalable, and yields high-performance antennas compared to other techniques in the same frequency range. Room temperature electromagnetic measurements show excellent repeatability with an average cross polarization level about $-20$ dB, return loss about $-25$ dB, first sidelobes below $-25$ dB and far sidelobes below $-35$ dB. Our results qualify this process as a valid candidate for state-of-the-art CMB experiments, where large detector arrays with high sensitivity and polarization purity are of paramount importance in the quest for the discovery of CMB polarization $B$-modes.

preprint2020arXiv

Gradient sub-grid-scale model for relativistic MHD Large Eddy Simulations

MHD turbulence is likely to play an important role in several astrophysical scenarios where the magnetic Reynolds is very large. Numerically, these cases can be studied efficiently by means of Large Eddy Simulations, in which the computational resources are used to evolve the system only up to a finite grid size. The resolution is not fine enough to capture all the relevant small-scale physics at play, which is instead effectively modeled by a set of additional terms in the evolution equations, dubbed as sub-grid-scale model. Here we extend such approach, commonly used in non-relativistic/non-magnetic/incompressible fluid dynamics, applying the so-called gradient model to a general set of balance-law equations, that includes the relevant case in which a non-trivial inversion of conserved to primitive fields is needed. In particular, we focus on the relativistic compressible ideal MHD scenario, providing for the first time (and for any equation of state) all the additional sub-grid-scale terms. As an application, we consider box simulations of the relativistic Kelvin-Helmholtz instability, which is also the first mechanism responsible for the magnetic field amplification in binary neutron star mergers and cannot yet be fully captured by the finest-grid and longest simulations available. The performance of our model is numerically assessed by comparing it to the residuals arising from the filtering of high-resolution simulations. We find that the model can fit very well those residuals from resolutions a few times higher. Although the application shown here explicitly considers the Minkowski metric, it can be directly extended to general relativity, thus settling the basis to implement the gradient sub-grid model in a GRMHD binary merger. Our results suggest that this approach will be potentially able to unveil much better the small-scale dynamics achievable in full GRMHD simulations.

preprint2020arXiv

GRMHD large eddy simulations with gradient subgrid-scale model

The detection of binary neutron star mergers represents one of the most important astrophysical discoveries of the recent years. Due to the extreme matter and gravity conditions and the rich dynamics developed, it becomes a tremendous challenge to accurately simulate numerically all the scales present during the collision. Here we present how to study such systems by using large eddy simulations with a self-consistent subgrid-scale gradient model, that we generalized to the special relativistic case in a previous work and now extend to the general relativistic case. Adapted from nonrelativistic scenarios, the so-called gradient model allows to capture part of the effects of the hidden dynamics on the resolved scales, by means of a physically-agnostic, mathematically-based Taylor expansion of the nonlinear terms in the conservative evolution equations' fluxes. We assess the validity of this approach in bounding-box simulations of the magnetic Kelvin-Helmholtz instability. Several resolutions and a broad range of scenarios are considered in order to carefully test the performance of the model under three crucial aspects: (i) highly curved backgrounds, (ii) jumps on the fluid density profiles and (iii) strong shocks. The results suggest our extension of the gradient subgrid-scale model to general relativistic magnetohydrodynamics is a promising approach for studying binary neutron stars mergers, and potentially to other relevant astrophysical scenarios.

preprint2019arXiv

The long-term enhanced brightness of the magnetar 1E 1547.0-5408

We present the evolution of the X-ray emission properties of the magnetar 1E 1547.0-5408 since February 2004 over a time period covering three outbursts. We analyzed new and archival observations taken with the Swift, NuSTAR, Chandra and XMM-Newton X-ray satellites. The source has been observed at a relatively steady soft X-ray flux of $\approx$ 10$^{-11}$ erg cm$^{-2}$ s$^{-1}$ (0.3-10 keV) over the last 9 years, which is about an order of magnitude fainter than the flux at the peak of the last outburst in 2009, but a factor of $\sim$ 30 larger than the level in 2006. The broad-band spectrum extracted from two recent NuSTAR observations in April 2016 and February 2019 showed a faint hard X-ray emission up to $\sim$ 70 keV. Its spectrum is adequately described by a flat power law component, and its flux is $\sim$ $7 \times 10^{-12}$ erg cm$^{-2}$ s$^{-1}$ (10-70 keV), that is a factor of $\sim$ 20 smaller than at the peak of the 2009 outburst. The hard X-ray spectral shape has flattened significantly in time, which is at variance with the overall cooling trend of the soft X-ray component. The pulse profile extracted from these NuSTAR pointings displays variability in shape and amplitude with energy (up to $\approx$ 25 keV). Our analysis shows that the flux of 1E 1547.0-5408 is not yet decaying to the 2006 level and that the source has been lingering in a stable, high-intensity state for several years. This might suggest that magnetars can hop among distinct persistent states that are probably connected to outburst episodes and that their persistent thermal emission can be almost entirely powered by the dissipation of currents in the corona.

preprint2015arXiv

A systematic synchro-curvature modelling of pulsar $γ$-ray spectra unveils hidden trends

$γ$-ray radiation from pulsars is usually thought to be mostly produced by the synchro-curvature losses of accelerated particles. Here we present a systematic study of all currently reported, good-quality Fermi-LAT pulsar spectral data. We do so by applying a model which follows the particle dynamics and consistently computes the emission of synchro-curvature radiation. By fitting observational data on a case by case basis, we are able to obtain constraints about the parallel electric field, the typical lengthscale over which particles emit the bulk of the detected radiation, and the number of involved particles. The model copes well with data of several dozens of millisecond and young pulsars. By correlating the inferred model parameters with the observed timing properties, some trends are discovered. First, a non-negligible part of the radiation comes from the loss of perpendicular momentum soon after pair creation. Second, the electric field strongly correlates with both the inverse of the emission lengthscale and the magnetic field at light cylinder, thus ruling out models with high-energy photon production close to the surface. These correlations unify young and millisecond pulsars under the same physical scenario, and predict that magnetars are intrinsically $γ$-ray quiet via syncrhro-curvature processes, since magnetospheric particles are not accelerated enough to emit a detectable $γ$-ray flux.

preprint2015arXiv

An assessment of the pulsar outer gap model. II: Implications for the predicted $γ$-ray spectra

One of the most important predictions of any gap model for pulsar magnetospheres is the predicted $γ$-ray spectra. In the outer gap model, the properties of the synchro-curvature radiation are sensitive to many parameters, whose realistic ranges have been studied in detail in an accompanying paper. There we demonstrated that the uncertainty in the radius of curvature, the magnetic field geometry, and the X-ray surface flux may affect by orders of magnitude the predicted flux and spectral peak in the $γ$-ray regime. Here, we present a systematic, numerical study of the impact of the different parameters on the particle dynamics along the gap and calculate the emitted synchro-curvature radiation along the trajectory. By integrating the emitted radiation along the gap and convolving it with a parametrized particle distribution, we discuss how the comparison with the wealth of {\em Fermi}-LAT data can be used to constrain the applicability of the model. The resulting spectra show very different energy peaks, fluxes and shapes, qualitatively matching the great variety of the observed {\em Fermi}-LAT pulsars. In particular, if we see a large fraction of photons emitted from the initial part of the trajectory, we show that the spectra will be flatter at the low-energy {\it Fermi}-LAT regime (100 MeV -- 1 GeV). This provides a solution for such observed flat spectra, while still maintain synchro-curvature radiation as the origin of these photons.

preprint2015arXiv

Magnetic fields in Neutron Stars

Isolated neutron stars show a diversity in timing and spectral properties, which has historically led to a classification in different sub-classes. The magnetic field plays a key role in many aspects of the neutron star phenomenology: it regulates the braking torque responsible for their timing properties and, for magnetars, it provides the energy budget for the outburst activity and high quiescent luminosities (usually well above the rotational energy budget). We aim at unifying this observational variety by linking the results of the state-of-the-art 2D magneto-thermal simulations with observational data. The comparison between theory and observations allows to place two strong constraints on the physical properties of the inner crust. First, strong electrical currents must circulate in the crust, rather than in the star core. Second, the innermost part of the crust must be highly resistive, which is in principle in agreement with the presence of a novel phase of matter so-called nuclear pasta phase.

preprint2015arXiv

Modeling of the gamma-ray pulsed spectra of Geminga, Crab, and Vela with synchro-curvature radiation

$γ$-ray spectra of pulsars have been mostly studied in a phenomenological way, by fitting them to a cut-off power-law function. Here, we analyze a model where pulsed emission comes from synchro-curvature processes in a gap. We calculate the variation of kinetic energy of magnetospheric particles along the gap and the associated radiated spectra, considering an effective particle distribution. We fit the phase-averaged and phase-resolved Fermi-LAT spectra of the three brightest gamma-ray pulsars: Geminga, Crab, and Vela, and constrain the three free parameters we leave free in the model. Our best-fit models well reproduce the observed data, apart from residuals above a few GeV in some cases, range for which the inverse Compton scattering likely becomes the dominant mechanism. In any case, the flat slope at low-energy (< GeV) seen by Fermi-LAT both in the phase-averaged and phase-resolved spectra of most pulsars, including the ones we studied, requires that most of the detected radiation below ~ GeV is produced during the beginning of the particle trajectories, when radiation mostly come from the loss of perpendicular momentum.

preprint2015arXiv

Pulse Phase-coherent Timing and Spectroscopy of CXOU J164710.2-45521 Outbursts

We present a long-term phase-coherent timing analysis and pulse-phase resolved spectroscopy for the two outbursts observed from the transient anomalous X-ray pulsar CXOU J164710.2-45521. For the first outburst we used 11 Chandra and XMM-Newton observations between September 2006 to August 2009, the longest baseline yet for this source. We obtain a coherent timing solution with $P=10.61065583(4)$ s, $\dot{P} = 9.72(1) \times 10^{-13}\;$s s$^{-1}$ and $\ddot{P} = -1.05(5)\times10^{-20}\; $s s$^{-2}$. Under the standard assumptions this implies a surface dipolar magnetic field of $\sim 10^{14}$ G, confirming this source as a standard-$B$ magnetar. We also study the evolution of the pulse profile (shape, intensity and pulsed fraction) as a function of time and energy. Using the phase-coherent timing solution we perform a phase-resolved spectroscopy analysis, following the spectral evolution of pulse-phase features, which hints at the physical processes taking place on the star. The results are discussed from the perspective of magneto-thermal evolution models and the untwisting magnetosphere model. Finally, we present similar analysis for the second, less intense, 2011 outburst. For the timing analysis we used Swift data together with 2 XMM-Newton and Chandra pointings. The results inferred for both outbursts are compared and briefly discussed in a more general framework.

preprint2014arXiv

An assessment of the pulsar outer gap model. I: Assumptions, uncertainties, and implications for the gap size and the accelerating field

The popular outer gap model of magnetospheric emission from pulsars has been widely applied to explain the properties observed in $γ$-rays. However, its quantitative predictions rely on a number of approximations and assumptions that are usually overlooked. Here we examine them, reviewing the main ingredients entering in the model, evaluating their range of uncertainties. Usually, in the quantitative applications of the model, key parameters like the radius of curvature and the energies of the interacting photons are taken to be a fixed, single value. Instead, here we explore their realistic ranges, and the impact of these on the consistency of the model itself. We conclude that the popular evaluation of the trans-field size of the gap as a function of period and period derivative, is unreliable and affected by a huge dispersion. Last, the exploration of the possible values for the radius of curvature, the local magnetic field and other quantities deserve more attention for quantitative applications of the outer gap model, like the calculation of $γ$-ray spectra, which is the subject of an accompanying paper.

preprint2014arXiv

Compact formulae, dynamics and radiation of charged particles under synchro-curvature losses

We consider the fundamental problem of charged particles moving along and around a curved magnetic field line, revising the synchro-curvature radiation formulae introduced by Cheng and Zhang (1996). We provide more compact expressions to evaluate the spectrum emitted by a single particle, identifying the key parameter that controls the transition between the curvature-dominated and the synchrotron-dominated regime. This parameter depends on the local radius of curvature of the magnetic field line, the gyration radius, and the pitch angle. We numerically solve the equations of motion for the emitting particle by considering self-consistently the radiative losses, and provide the radiated spectrum produced by a particle when an electric acceleration is balanced by its radiative losses, as it is assumed to happen in the outer gaps of pulsar's magnetospheres. We compute the average spectrum radiated throughout the particle trajectory finding that the slope of the spectrum before the peak depends on the location and size of the emission region. We show how this effect could then lead to a variety of synchro-curvature spectra. Our results reinforce the idea that the purely synchrotron or curvature losses are, in general, inadequate to describe the radiative reaction on the particle motion, and the spectrum of emitted photons. Finally, we discuss the applicability of these calculations to different astrophysical scenarios.

preprint2014arXiv

Population synthesis of isolated Neutron Stars with magneto--rotational evolution

We revisit the population synthesis of isolated radio-pulsars incorporating recent advances on the evolution of the magnetic field and the angle between the magnetic and rotational axes from new simulations of the magneto-thermal evolution and magnetosphere models, respectively. An interesting novelty in our approach is that we do not assume the existence of a death line. We discuss regions in parameter space that are more consistent with the observational data. In particular, we find that any broad distribution of birth spin periods with $P_0\lesssim 0.5$ s can fit the data, and that if the alignment angle is allowed to vary consistently with the torque model, realistic magnetospheric models are favoured compared to models with classical magneto-dipolar radiation losses. Assuming that the initial magnetic field is given by a lognormal distribution, our optimal model has mean strength $\langle\log B_0{\rm [G]}\rangle \approx 13.0-13.2$ with width $σ(\log B_0) = 0.6-0.7$. However, there are strong correlations between parameters. This degeneracy in the parameter space can be broken by an independent estimate of the pulsar birth rate or by future studies correlating this information with the population in other observational bands (X-rays and $γ$-rays).

preprint2014arXiv

Spectral features in isolated neutron stars induced by inhomogeneous surface temperatures

The thermal X-ray spectra of several isolated neutron stars display deviations from a pure blackbody. The accurate physical interpretation of these spectral features bears profound implications for our understanding of the atmospheric composition, magnetic field strength and topology, and equation of state of dense matter. With specific details varying from source to source, common explanations for the features have ranged from atomic transitions in the magnetized atmospheres or condensed surface, to cyclotron lines generated in a hot ionized layer near the surface. Here we quantitatively evaluate the X-ray spectral distortions induced by inhomogeneous temperature distributions of the neutron star surface. To this aim, we explore several surface temperature distributions, we simulate their corresponding general relativistic X-ray spectra (assuming an isotropic, blackbody emission), and fit the latter with a single blackbody model. We find that, in some cases, the presence of a spurious 'spectral line' is required at a high significance level in order to obtain statistically acceptable fits, with central energy and equivalent width similar to the values typically observed. We also perform a fit to a specific object, RX J0806.4-4123, finding several surface temperature distributions able to model the observed spectrum. The explored effect is unlikely to work in all sources with detected lines, but in some cases it can indeed be responsible for the appearance of such lines. Our results enforce the idea that surface temperature anisotropy can be an important factor that should be considered and explored also in combination with more sophisticated emission models like atmospheres.

preprint2013arXiv

A highly resistive layer within the crust of X-ray pulsars limits their spin periods

The lack of X-ray pulsars with spin periods > 12 s raises the question of where the population of evolved high magnetic field neutron stars has gone. Unlike canonical radio pulsars, X-ray pulsars are not subject to physical limits to the emission mechanism nor observational biases against the detection of sources with longer periods. Here we show that a highly resistive layer in the innermost part of the crust of neutron stars naturally limits the spin period to a maximum value of about 10-20 s. This highly resistive layer is expected if the inner crust is amorphous and heterogeneous in nuclear charge, possibly due to the existence of a nuclear pasta phase. Our findings suggest that the maximum period of isolated X-ray pulsars can be the first observational evidence of an amorphous inner crust, which properties can be further constrained by future X-ray timing missions combined with more detailed models.

preprint2013arXiv

Central compact objects in magnetic lethargy

Central Compact Objects are peculiar young neutron stars, with very low external magnetic fields combined with high fluxes in the X-ray band and surface temperature anisotropies. However, in their crust the magnetic field can be strong, result of its burial during a short post-supernova hypercritical accretion episode. The implications of this latter scenario for the temperature anisotropy, pulsed fraction and luminosity are discussed.

preprint2013arXiv

Magnetic fields in neutron stars

This work aims at studying how magnetic fields affect the observational properties and the long-term evolution of isolated neutron stars, which are the strongest magnets in the universe. The extreme physical conditions met inside these astronomical sources complicate their theoretical study, but, thanks to the increasing wealth of radio and X-ray data, great advances have been made over the last years. A neutron star is surrounded by magnetized plasma, the so-called magnetosphere. Modeling its global configuration is important to understand the observational properties of the most magnetized neutron stars, magnetars. On the other hand, magnetic fields in the interior are thought to evolve on long time-scales, from thousands to millions of years. The magnetic evolution is coupled to the thermal one, which has been the subject of study in the last decades. An important part of this thesis presents the state-of-the-art of the magneto-thermal evolution models of neutron stars during the first million of years, studied by means of detailed simulations. The numerical code here described is the first one to consistently consider the coupling of magnetic field and temperature, with the inclusion of both the Ohmic dissipation and the Hall drift in the crust.

preprint2013arXiv

Unifying the observational diversity of isolated neutron stars via magneto-thermal evolution models

Observations of magnetars and some of the high magnetic field pulsars have shown that their thermal luminosity is systematically higher than that of classical radio-pulsars, thus confirming the idea that magnetic fields are involved in their X-ray emission. Here we present the results of 2D simulations of the fully-coupled evolution of temperature and magnetic field in neutron stars, including the state-of-the-art kinetic coefficients and, for the first time, the important effect of the Hall term. After gathering and thoroughly re-analysing in a consistent way all the best available data on isolated, thermally emitting neutron stars, we compare our theoretical models to a data sample of 40 sources. We find that our evolutionary models can explain the phenomenological diversity of magnetars, high-B radio-pulsars, and isolated nearby neutron stars by only varying their initial magnetic field, mass and envelope composition. Nearly all sources appear to follow the expectations of the standard theoretical models. Finally, we discuss the expected outburst rates and the evolutionary links between different classes. Our results constitute a major step towards the grand unification of the isolated neutron star zoo.

preprint2012arXiv

A new code for the Hall-driven magnetic evolution of neutron stars

Over the past decade, the numerical modeling of the magnetic field evolution in astrophysical scenarios has become an increasingly important field. In the crystallized crust of neutron stars the evolution of the magnetic field is governed by the Hall induction equation. In this equation the relative contribution of the two terms (Hall term and Ohmic dissipation) varies depending on the local conditions of temperature and magnetic field strength. This results in the transition from the purely parabolic character of the equations to the hyperbolic regime as the magnetic Reynolds number increases, which presents severe numerical problems. Up to now, most attempts to study this problem were based on spectral methods, but they failed in representing the transition to large magnetic Reynolds numbers. We present a new code based on upwind finite differences techniques that can handle situations with arbitrary low magnetic diffusivity and it is suitable for studying the formation of sharp current sheets during the evolution. The code is thoroughly tested in different limits and used to illustrate the evolution of the crustal magnetic field in a neutron star in some representative cases. Our code, coupled to cooling codes, can be used to perform long-term simulations of the magneto-thermal evolution of neutron stars.

preprint2012arXiv

CCOs and the hidden magnetic field scenario

CCOs are X-ray sources lying close the center of supernova remnants, with inferred values of the surface magnetic fields significantly lower (less than about 1e11 G) than those of standard pulsars. In this paper, we revise the hidden magnetic field scenario, presenting the first 2D simulations of the submergence and reemergence of the magnetic field in the crust of a neutron star. A post-supernova accretion stage of about 1e-4-1e-3 solar masses over a vast region of the surface is required to bury the magnetic field into the inner crust. When accretion stops, the field reemerges on a typical timescale of 1-100 kyr, depending on the submergence conditions. After this stage, the surface magnetic field is restored close to its birth values. A possible observable consequence of the hidden magnetic field is the anisotropy of the surface temperature distribution, in agreement with observations of several of these sources. We conclude that the hidden magnetic field model is viable as alternative to the anti-magnetar scenario, and it could provide the missing link between CCOs and the other classes of isolated neutron stars.

preprint2011arXiv

Force-free twisted magnetospheres of neutron stars

The X-ray spectra observed in the persistent emission of magnetars are evidence for the existence of a magnetosphere. The high-energy part of the spectra is explained by resonant cyclotron upscattering of soft thermal photons in a twisted magnetosphere, which has motivated an increasing number of efforts to improve and generalize existing magnetosphere models. We want to build more general configurations of twisted, force-free magnetospheres as a first step to understanding the role played by the magnetic field geometry in the observed spectra. First we reviewed and extended previous analytical works to assess the viability and limitations of semi-analytical approaches. Second, we built a numerical code able to relax an initial configuration of a nonrotating magnetosphere to a force-free geometry, provided any arbitrary form of the magnetic field at the star surface. The numerical code is based on a finite-difference time-domain, divergence-free, and conservative scheme, based of the magneto-frictional method used in other scenarios. We obtain new numerical configurations of twisted magnetospheres, with distributions of twist and currents that differ from previous analytical solutions. The range of global twist of the new family of solutions is similar to the existing semi-analytical models (up to some radians), but the achieved geometry may be quite different. The geometry of twisted, force-free magnetospheres shows a wider variety of possibilities than previously considered. This has implications for the observed spectra and opens the possibility of implementing alternative models in simulations of radiative transfer aiming at providing spectra to be compared with observations.