SearcharxivSearch

arXiv subjects

J. Bao

Publications and source records attributed to J. Bao.

At least 19 recordsLinked to original sources

Test-time Controllable Image Generation by Explicit Spatial Constraint Enforcement

Recent text-to-image generation favors various forms of spatial conditions, e.g., masks, bounding boxes, and key points. However, the majority of the prior art requires form-specific annotations to fine-tune the original model, leading to poor test-time generalizability. Meanwhile, existing training-free methods work well only with simplified prompts and spatial conditions. In this work, we propose a novel yet generic test-time controllable generation method that aims at natural text prompts and complex conditions. Specifically, we decouple spatial conditions into semantic and geometric conditions and then enforce their consistency during the image-generation process individually. As for the former, we target bridging the gap between the semantic condition and text prompts, as well as the gap between such condition and the attention map from diffusion models. To achieve this, we propose to first complete the prompt w.r.t. semantic condition, and then remove the negative impact of distracting prompt words by measuring their statistics in attention maps as well as distances in word space w.r.t. this condition. To further cope with the complex geometric conditions, we introduce a geometric transform module, in which Region-of-Interests will be identified in attention maps and further used to translate category-wise latents w.r.t. geometric condition. More importantly, we propose a diffusion-based latents-refill method to explicitly remove the impact of latents at the RoI, reducing the artifacts on generated images. Experiments on Coco-stuff dataset showcase 30$\%$ relative boost compared to SOTA training-free methods on layout consistency evaluation metrics.

cs.CV

Global destabilization of drift-tearing mode with coupling to discretized electron drift-wave instability

The global linear behaviors of 2/1 DTM in the collisional regime are investigated based on a concisely resistive drift-MHD model. Besides DTM, extra normal modes including EDW and SAW are coupled together and destabilized in different parameter regimes by considering resistivity in this system. The EVP approach is applied for solving the eigenstate spectra with the distribution of all unstable solutions. It is found that in the small EDD frequency (omega_*e) regime, DTM growth rate agrees well with local theory that is reduced with increasing omega_*e. However, when omega_*e exceeds a critical threshold omega_*crit, the strongly linear coupling between DTM and other discretized EDW instabilities happens so that the free energies from current and pressure channels can be released together and thus enhance the DTM, of which growth rate increases with increasing omega_*e and deviates from local theory results qualitatively. Correspondingly, a cross-scale mode structure forms with mixed polarization, namely, phi perturbation is dominated by electrostatic polarized short-wavelength oscillation as EDW instability character, and A_para perturbation remains typical tearing mode solution of Alfvenic polarized macroscopic structure. Within omega_*e > omega_*crit, the additional IDD causes phi oscillating structure to shift towards small density gradient domain, which cancels the extra drive from ion channel and thus DTM growth rate is insensitive to IDD frequency. Compared to EDD effects, the IDD effect alone with zero-omega_*e only leads to the stabilization of RTM that shows agreements between global simulation and local theory, which is no longer the condition for DTM regime. These results are useful for clarifying the DTM global properties with underlying physics mechanisms, which occurs in the regime of omega_*e >> gamma_c that is relevant to nowadays tokamak discharges with hot plasmas.

physics.plasm-ph

Development of a gyrokinetic-MHD energetic particle simulation code Part I: MHD version

A new magnetohydrodynamics (MHD) code based on initial value approach, GMEC_I, has been developed for simulating various MHD physics in tokamak plasmas, as the MHD foundation of the gyrokinetic-MHD energetic particle simulation code (GMEC) family. GMEC_I solves multi-level reduced-MHD models that form a hierarchy of physics complexity, which provide conveniences for the cross-code verification and the identification of key physics effect in tokamak geometry. The field-aligned coordinates are used to represent mode structure efficiently. High-order finite difference methods are used for spatial discretization. The shifted metric methods are used for numerical stability. The discrete expansion forms of physics equations in the code are generated symbolically using the compile-time symbolic solver (CSS), which is specifically developed to reduce the complexity of the high-order finite difference form of the MHD equations. Advanced computational techniques have been implemented for optimizing memory access and code parallelization that show a good efficiency using both Thread Building Block (TBB) and Message Passing Interface (MPI). Benchmarks between GMEC_I and the eigenvalue code MAS are presented for ballooning modes without and with diamagnetic drift effects, and tearing modes, which show excellent agreements.

physics.plasm-ph

Saturation of fishbone instability through zonal flows driven by energetic particle transport in tokamak plasmas

Gyrokinetic and kinetic-MHD simulations are performed for the fishbone instability in the DIII-D discharge #178631, chosen for validation of first-principles simulations to predict the energetic particle (EP) transport in an ITER prefusion baseline scenario. Fishbone modes are found to generate zonal flows, which dominate the fishbone saturation. The underlying mechanisms of the two-way fishbone-zonal flows nonlinear interplay are discussed in details. Numerical and analytical analyses identify the fishbone-induced EP redistribution as the dominant generation mechanism for zonal flows. The zonal flows modify the nonlinear dynamics of phase space zonal structures, which reduces the amount of EPs able to resonate with the mode, leading to an early fishbone saturation. Simulation results including zonal flows agree quantitatively with DIII-D experimental measurements of the fishbone saturation amplitude and EP transport, supporting this novel saturation mechanism by self-generated zonal flows. Moreover, the wave-particle mode-locking mechanism is shown to determine quantitatively the fishbone frequency down-chirping, as evident in GTC simulation results in agreement with predictions from analytical theory. Finally, the fishbone-induced zonal flows are possibly responsible for the formation of an ion-ITB in the DIII-D discharge. Based on the low EP transport and the large zonal flow shearing rates associated with the fishbone instability in gyrokinetic simulations of the ITER scenario, it is conjectured that high performance scenarios could be designed in ITER burning plasmas through fishbone-induced ITBs.

physics.plasm-ph

Global gyrokinetic simulation of magnetic island induced ion temperature gradient turbulence in toroidal plasma

The characteristics of ion temperature gradient (ITG) turbulence in the presence of a magnetic island are numerically investigated using a gyrokinetic model. We observe that in the absence of the usual ITG drive gradient, a solitary magnetic island alone can drive ITG instability. The magnetic island not only drives high-n modes of ITG instability but also induces low-n modes of vortex flow. Moreover, as the magnetic island width increases, the width of the vortex flow also increases. This implies that wider islands may more easily induce vortex flows. The study further indicates that the saturated amplitude and transport level of MI-induced ITG turbulence vary with different magnetic island widths. In general, larger magnetic islands enhance both particle and heat transport. When the magnetic island is of the order of 21 times the ion gyroradius (21\{rho}_i), the turbulence-driven transport level can reach the same level in cases where ITG is driven by pressure gradients.

physics.plasm-ph

Saturation of fishbone instability by self-generated zonal flows in tokamak plasmas

Gyrokinetic simulations of the fishbone instability in DIII-D tokamak plasmas find that self-generated zonal flows can dominate the nonlinear saturation by preventing coherent structures from persisting or drifting in the energetic particle phase space when the mode frequency down-chirps. Results from the simulation with zonal flows agree quantitatively, for the first time, with experimental measurements of the fishbone saturation amplitude and energetic particle transport. Moreover, the fishbone-induced zonal flows are likely responsible for the formation of an internal transport barrier that was observed after fishbone bursts in this DIII-D experiment. Finally, gyrokinetic simulations of a related ITER baseline scenario show that the fishbone induces insignificant energetic particle redistribution and may enable high performance scenarios in ITER burning plasma experiments.

physics.plasm-ph

Verification and validation of gyrokinetic and kinetic-MHD simulations for internal kink instability in DIII-D tokamak

Verification and validation of the internal kink instability in tokamak have been performed for both gyrokinetic (GTC) and kinetic-MHD codes (GAM-solver, M3D-C1-K, NOVA, XTOR-K). Using realistic magnetic geometry and plasma profiles from the same equilibrium reconstruction of the DIII-D shot #141216, these codes exhibit excellent agreement for the growth rate and mode structure of the internal kink mode when all kinetic effects are suppresed. The simulated radial mode structures agree quantitatively with the electron cyclotron emission measurement after adjusting, within the experimental uncertainty, the safety factor q=1 flux-surface location in the equilibrium reconstruction. Compressible magnetic perturbations strongly destabilize the kink, while poloidal variations of the equilibrium current density reduce the growth rate of the kink. Furthermore, kinetic effects of thermal ions are found to decrease the kink growth rate in kinetic-MHD simulations, but increase the kink growth rate in gyrokinetic simulations, due to the additional drive of the ion temperature gradient and parallel electric field. Kinetic thermal electrons are found to have negligible effects on the internal kink instability.

physics.plasm-ph

Kinetic particle simulations in a global toroidal geometry

The gyrokinetic toroidal code (GTC) has been upgraded for global simulations by coupling the core and scrape-off layer (SOL) regions across the separatrix with field-aligned particle-grid interpolations. A fully kinetic particle pusher for high frequency waves (ion cyclotron frequency and beyond) and a guiding center pusher for low frequency waves have been implemented using cylindrical coordinates in a global toroidal geometry. The two integrators correctly capture the particle orbits and agree well with each other, conserving energy and canonical angular momentum. As a verification and application of this new capability, ion guiding center simulations have been carried out to study ion orbit losses at the edge of the DIII-D tokamak for single null magnetic separatrix discharges. The ion loss conditions are examined as a function of the pitch angle for cases without and with a radial electric field. The simulations show good agreement with past theoretical results and with experimentally observed feature in which high energy ions flow out along the ion drift orbits and then hit the divertor plates. A measure of the ion direct orbit loss fraction shows that the loss fraction increases with the ion energy for DIII-D in the initial velocity space. Finally, as a further verification of the capability of the new code, self-consistent simulations of zonal flows in the core region of the DIII-D tokamak were carried out. All DIII-D simulations were perfomed in the absence of turbulence.

physics.plasm-ph

T0 Fan-out for Back-n White Neutron Facility at CSNS

the main physics goal for Back-n white neutron facility at China Spallation Neutron Source (CSNS) is to measure nuclear data. The energy of neutrons is one of the most important parameters for measuring nuclear data. Method of time of flight (TOF) is used to obtain the energy of neutrons. The time when proton bunches hit the thick tungsten target is considered as the start point of TOF. T0 signal, generated from the CSNS accelerator, represents this start time. Besides, the T0 signal is also used as the gate control signal that triggers the readout electronics. Obviously, the timing precision of T0 directly affects the measurement precision of TOF and controls the running or readout electronics. In this paper, the T0 fan-out for Back-n white neutron facility at CSNS is proposed. The T0 signal travelling from the CSNS accelerator is fanned out to the two underground experiment stations respectively over long cables. To guarantee the timing precision, T0 signal is conditioned with good signal edge. Furthermore, techniques of signal pre-emphasizing and equalizing are used to improve signal quality after T0 being transmitted over long cables with about 100 m length. Experiments show that the T0 fan-out works well, the T0 signal transmitted over 100 m remains a good time resolution with a standard deviation of 25 ps. It absolutely meets the required accuracy of the measurement of TOF.

physics.ins-det

Electronics of Time-of-flight Measurement for Back-n at CSNS

Back-n is a white neutron experimental facility at China Spallation Neutron Source (CSNS). The time structure of the primary proton beam make it fully applicable to use TOF (time-of-flight) method for neutron energy measuring. We implement the electronics of TOF measurement on the general-purpose readout electronics designed for all of the seven detectors in Back-n. The electronics is based on PXIe (Peripheral Component Interconnect Express eXtensions for Instrumentation) platform, which is composed of FDM (Field Digitizer Modules), TCM (Trigger and Clock Module), and SCM (Signal Conditioning Module). T0 signal synchronous to the CSNS accelerator represents the neutron emission from the target. It is the start of time stamp. The trigger and clock module (TCM) receives, synchronizes and distributes the T0 signal to each FDM based on the PXIe backplane bus. Meantime, detector signals after being conditioned are fed into FDMs for waveform digitizing. First sample point of the signal is the stop of time stamp. According to the start, stop time stamp and the time of signal over threshold, the total TOF can be obtained. FPGA-based (Field Programmable Gate Array) TDC is implemented on TCM to accurately acquire the time interval between the asynchronous T0 signal and the global synchronous clock phase. There is also an FPGA-based TDC on FDM to accurately acquire the time interval between T0 arriving at FDM and the first sample point of the detector signal, the over threshold time of signal is obtained offline. This method for TOF measurement is efficient and not needed for additional modules. Test result shows the accuracy of TOF is sub-nanosecond and can meet the requirement for Back-n at CSNS.

physics.ins-det

A conservative scheme for electromagnetic simulation of magnetized plasmas with kinetic electrons

A conservative scheme has been formulated and verified for gyrokinetic particle simulations of electromagnetic waves and instabilities in magnetized plasmas. An electron continuity equation derived from drift kinetic equation is used to time advance electron density perturbation by using the perturbed mechanical flow calculated from the parallel vector potential, and the parallel vector potential is solved by using the perturbed canonical flow from the perturbed distribution function. In gyrokinetic particle simulations using this new scheme, shear Alfvén wave dispersion relation in shearless slab and continuum damping in sheared cylinder have been recovered. The new scheme overcomes the stringent requirement in conventional perturbative simulation method that perpendicular grid size needs to be as small as electron collisionless skin depth even for the long wavelength Alfvén waves. The new scheme also avoids the problem in conventional method that an unphysically large parallel electric field arises due to the inconsistency between electrostatic potential calculated from the perturbed density and vector potential calculated from the perturbed canonical flow. Finally, the gyrokinetic particle simulations of the Alfvén waves in sheared cylinder have superior numerical properties compared with the fluid simulations, which suffer from numerical difficulties associated with singular mode structures.

physics.plasm-ph

Verification of nonlinear particle simulation of radio frequency waves in tokamak

Nonlinear simulation model for radio frequency (RF) waves in fusion plasmas has been developed and verified using fully kinetic ion and drift kinetic electron. Ion cyclotron motion in the toroidal geometry is implemented using Boris push in the Boozer coordinates. Linear dispersion relation and nonlinear particle trapping are verified for the lower hybrid (LH) wave and ion Bernstein wave (IBW). Parametric decay instability is observed where a large amplitude pump wave decays into an IBW sideband and an ion cyclotron quasimode (ICQM). The ICQM induces an ion perpendicular heating with a heating rate proportional to the pump wave intensity.

physics.plasm-ph

Gyrokinetic ion and drift kinetic electron model for electromagnetic simulation in the toroidal geometry

The kinetic effects of electrons are important to long wavelength magnetohydrodynamic(MHD)instabilities and short wavelength drift-Alfvenic instabilities responsible for turbulence transport in magnetized plasmas, since the non-adiabatic electron can interact with, modify and drive the low frequency instabilities. A novel conservative split weight scheme is proposed for the electromagnetic simulation with drift kinetic electrons in tokamak plasmas, which shows great computational advantages that there is no numerical constrain of electron skin depth on the perpendicular grid size without sacrificing any physics. Both kinetic Alfven wave and collision-less tearing mode are verified by using this model, which has already been implemented into the gyrokinetic toroidal code(GTC). This model will be used for the micro tearing mode and neoclassical tearing mode simulation based on the first principle in the future.

physics.plasm-ph

Nonlinear electromagnetic formulation for particle simulation of lower hybrid waves in toroidal geometry

Electromagnetic particle simulation model has been formulated and verified for nonlinear processes of lower hybrid (LH) waves in fusion plasmas. Electron dynamics is described by the drift kinetic equation using either kinetic momentum or canonical momentum. Ion dynamics is treated as the fluid system or by the Vlasov equation. Compressible magnetic perturbation is retained to simulate both the fast and slow LH waves. Numerical properties are greatly improved by using electron continuity equation to enforce consistency between electrostatic potential and vector potential, and by using the importance sampling technique. The simulation model has been implemented in the gyrokinetic toroidal code (GTC), and verified for the dispersion relation and nonlinear particle trapping of the electromagnetic LH waves.

physics.plasm-ph

Measurement of Leakage Neutron Spectra for Tungsten with D-T Neutrons and Validation of Evaluated Nuclear Data

Integral neutronics experiments have been investigated at Institute of Modern Physics, Chinese Academy of Sciences (IMP, CAS) in order to validate evaluated nuclear data related to the design of Chinese Initiative Accelerator Driven Systems (CIADS). In present paper, the accuracy of evaluated nuclear data for Tungsten has been examined by comparing measured leakage neutron spectra with calculated ones. Leakage neutron spectra from the irradiation of D-T neutrons on Tungsten slab sample were experimentally measured at 60$^{\circ}$ and 120$^{\circ}$ by using a time-of-flight method. Theoretical calculations are carried out by Monte Carlo neutron transport code MCNP-4C with evaluated nuclear data of the ADS-2.0, ENDF/B-VII.0, ENDF/B-VII.1, JENDL-4.0 and CENDL-3.1 libraries. From the comparisons, it is found that the calculations with ADS-2.0 and ENDF/B-VII.1 give good agreements with the experiments in the whole energy regions at 60$^{\circ}$, while a large discrepancy is observed at 120$^{\circ}$ in the elastic scattering peak, caused by a slight difference in the oscillation pattern of the elastic angular distribution at angles larger than 20$^{\circ}$. However, the calculated spectra using data from ENDF/B-VII.0, JENDL-4.0 and CENDL-3.1 libraries showed larger discrepancies with the measured ones, especially around 8.5-13.5 MeV. Further studies are presented for these disagreements.

physics.ins-det

Fast neutron scattering on Gallium target at 14.8 MeV

Benchmarking of evaluated nuclear data libraries was performed for $\sim 14.8$ MeV neutrons on Gallium targets. The experiments were performed at China Institute of Atomic Energy(CIAE). Solid samples of natural Gallium (3.2 cm and 6.4 cm thick) were bombarded by $\sim 14.8$ MeV neutrons and leakage neutron energy spectra were measured at 60$^{\circ}$ and 120$^{\circ}$. The measured spectra are rather well reproduced by MCNP-4C simulations with the CENDL-3.1, ENDF/B-VII and JENDL-4.0 evaluated nuclear data libraries, except for the inelastic contributions around $E_{n} = 10-13$ MeV. All three libraries significantly underestimate the inelastic contributions. The inelastic contributions are further studied, using the Talys simulation code and the experimental spectra are reproduced reasonably well in the whole energy range by the Talys calculation, including the inelastic contributions.

nucl-ex

Particle simulation of lower hybrid waves in tokamak plasmas

Global particle simulations of the lower hybrid waves have been carried out using fully kinetic ions and drift kinetic electrons with a realistic electron-to-ion mass ratio. The lower hybrid wave frequency, mode structure, and electron Landau damping from the electrostatic simulations agree very well with the analytic theory. Linear simulation of the propagation of a lower hybrid wave-packet in the toroidal geometry shows that the wave propagates faster in the high field side than the low field side, in agreement with a ray tracing calculation. Electromagnetic benchmarks of lower hybrid wave dispersion relation are also carried out. Electromagnetic mode conversion are observed in toroidal geometry, slow waves are launched at the plasma boundary and converts to fast waves at the mode conversion layer, which is consistent with linear theory.

physics.plasm-ph

Synthetic antiferromagnet with Heusler alloy Co2FeAl ferromagnetic layers

Heusler alloy Co2FeAl was employed as ferromagnetic layers in Co2FeAl/Ru/Co2FeAl synthetic antiferromagnet structures. The experimental results show that the structure with a Ru thickness of 0.45 nm takes on strongly antiferromagnetic coupling, which maintains up to 150 oC annealing for 1 hour. The structure has a very low saturation magnetization Ms of 425 emu/cc, a low switching field Hsw of 4.3 Oe and a high saturation field Hs of 5257 Oe at room temperature, which are favorable for application in ultrahigh density magnetic read heads or other magnetic memory devices. XRD study testifies that the as-deposited Co2FeAl film is in B2 phase. Therefore Heusler alloys can be used to fabricate SyAF and it is possible to make "all-Heusler" spin-valves or magnetic tunneling junctions with better magnetic switching properties and high magnetoresistance.

cond-mat.mtrl-sci