Two Parameters Used for Modeling Solar Wind Speed
May 6, 2026 · View on GitHub
Arge (2003) found the solar wind speed at the first Lagrangian point can be roughly modeled by and two parameters in this formula are defined as:
- Magnetic field expansion factor where are the target coordinates traced from to the inner boundary of , and are the target coordinates traced from to the outer boundary of .
- , the minimum angular distance of an open-field footpoint from a coronal hole boundary.
- For a closed field line, its rboundary is 11, its is set to 1000., its is set to 0., these default values can be adjusted in par2solarwind.pro (par2solarwind.py)
This program can be downloaded with the command
git clone https://github.com/el2718/par2solarwind
And FastQSL2 should be downloaded first
git clone https://github.com/el2718/FastQSL2
Please address comments and suggestions to Dr. Chen, Jun (陈俊)
If your markdown reader can not can not render the formulae in README.md, please read README.html directly.
This program is licensed under a CC BY-NC-SA 4.0 License.
Cite as
- Jun Chen*, Thomas Wiegelmann, Li Feng*, Chaowei Jiang, and Rui Liu. FastQSL 2: A Comprehensive Toolkit for Magnetic Connectivity Analysis. 2026, SCIENCE CHINA Physics, Mechanics & Astronomy, submitted
Computation of theta_b.f90 with Fortran
- For Linux and macOS (either by ifx/ifort or gfortran):
ifx -o theta_b.x theta_b.f90 -fopenmp -O3 -xHost -ipoifort -o theta_b.x theta_b.f90 -fopenmp -O3 -xHost -ipogfortran -o theta_b.x theta_b.f90 -fopenmp -O3 -march=native - For Windows (either by ifort or gfortran):
executing "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" in cmd first would be necessary
ifort /o theta_b.exe theta_b.f90 /Qopenmp /O3 /QxHost /Qipogfortran -o theta_b.exe theta_b.f90 -fopenmp -O3 -march=native- In Windows 11, also in some upgraded Windows 10, the pop-up window for theta_b.exe can not be closed automatically, please uncomment this line in theta_b.f90 to kill the pop-up window (delete !):
! call system('taskkill /im theta_b.exe /f') - for ifx, the compilation should be the same as ifort, while I have not tested it
- In Windows 11, also in some upgraded Windows 10, the pop-up window for theta_b.exe can not be closed automatically, please uncomment this line in theta_b.f90 to kill the pop-up window (delete !):
Path of theta_b.x
- please specify the path of theta_b.x,
- in par2solarwind.pro, please correct the line of
spawn, '/path/of/theta_b.x' - in par2solarwind.py, please correct the line of
subprocess.run(r'/path/of/theta_b.x', shell=True)
- in par2solarwind.pro, please correct the line of
- or move theta_b.x to the
$PATH(e.g./usr/local/bin/) of the system and delete the text/path/of/- you can append this line to
~/.bashrc
thenexport PATH=$HOME/bin:$PATH$HOME/binis a$PATHof the system
- you can append this line to
- For Windows, use theta_b.exe instead of theta_b.x
Parameters
-
b_lon, b_lat, b_r, lon_rad, lat_rad, radius have same meaning of Bz, By, Bx, xa, ya, za in FastQSL2 when spherical is invoked
-
RK4Flag, step, tol, maxsteps, nthreads, silent, preview, qsl are the same as those in FastQSL2
-
bottomFlag: to compute only at the bottom layer
- default is 0 (the whole 3D domain)
Products
If use par2solarwind.pro, the results are returned by the keywords fs, theta_b, qsl
If use par2solarwind.py, the results are returned by the tuple (fs, theta_b, qsl), see the example of demo_par2_charge4.py
Demos
If use fastqsl.pro
IDL> .r demo_par2_charge4.pro
If use fastqsl.py
python3 demo_par2_charge4.py
History
- Feb 26, 2026 Jun Chen, version 1.0, suggested by Chaowei Jiang