GX_Simulator is an interactive IDL widget application intended to provide a flexible tool that allows the user to generate spatially resolved radio and/or X-ray spectra. The object-based architecture of this application provides full interaction with local 3D magnetic field extrapolation models that may be embedded in a global coronal model. By the use of various mouse tools provided, the user is allowed to explore the magnetic connectivity of the model by generating magnetic field lines originating in user-specified volume voxels. Such lines may be selected to create magnetic flux tubes, which are further populated with user-defined analytical thermal/non thermal particle distribution models. By default, the application integrates IDL callable DLL and Shared libraries containing fast GS emission codes developed in FORTRAN and C++ based on the newly developed Fleishman–Kuznetsov approximation, and IDL X-ray codes developed by Eduard Kontar. However, the interactive interface allows interchanging these default libraries with any user-defined IDL or external callable codes designed to solve the radiation transfer equation in the same or other wavelength ranges of interest.
- All OS platforms: IDL 8.2 or later
- All OS platforms: SSWIDL installed from https://www.lmsal.com/solarsoft/ with the following list of required instruments included: ontology vso sdo aia hessi chianti hxt spex xray norh gx_simulator
- Linux/Mac platforms: gcc 4.8 or later
Here are the steps needed to download the latest version of the package, including the linked external submodule dependencies
rm -rf gx_simulator
git clone https://github.com/Gelu-Nita/GX_SIMULATOR gx_simulator
cd gx_simulator
git submodule update --init --recursive --remote
- if not already installed, install libomp via homebrew:
brew install libomp
- add to your shell startup script (.cshrc) this instruction:
setenv,'CPATH=/opt/homebrew/opt/libomp/include/'
- if already existent, remove the previous version of RenderIrregular.so
rm /Users/#your name#/gx_binaries/RenderIrregular.so
- start an IDL session
sswidl
- verify that GX_SIMULATOR ia ready to be launched:
print, gx_libpath('grid')
- if succesfull, the console should display:
/Users/#your name#/gx_binaries/RenderIrregular.so