JXLIU Blog

「离开世界之前 一切都是过程」

Greenwald density limit

density limit

Greenwald density limit 量纲分析 \[n_e = \frac{I_p}{\pi a^2}\] 左边量纲 $m^{-3}$,右边量纲 $A m^{-2}$ \[m^{-3} \ne A m^{-2}\] Gates 2012 PRL 文章中,推导得到的密度极限是 \(n_e<\sqrt{\frac{m_e}{e^2 E_{\text {eff }}} ...

Fortran precision

Fortran

Precision in Fortran test 1 A test program program test_sdprec implicit none real :: a,a0 real*8 :: b real*8 :: c,c0 a0=2.0 c0=2.D0 print*, 'a0=',a0 print*, 'a0=',c0 a = sqrt(...

Eigen Library

C++

Tensor Tensor 降阶, 切片, 转换为 Matrix 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 5...

Gnuplot scripts

Visualization

2D plot 不同 block 数据连线 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ### combine lines of different subblocks into one line reset session FILE = "test.txt" set table $Temp plot ...

Upgrade the sharelatex container

sharelatex in docker

##升级 sharelatex 升级时遇到以下错误 1 Mongo instance doesn't support transactions 通过在 docker-compose.yml 中加入 command: --replSet rs0 解决。 1 2 3 4 5 # docker-compose.yml mongo: restart: always ...

Self-hosted GitLab upgrade

docker

背景 自建 gitlab server 最近频繁遇到 500 error,网上查询到升级可能可以解决问题。 目前版本 gitlab-ce:13.12.12-ce.0 Upgrade path 了解后发现,一般来说 gitlab server 更新的越快越好,一般来说1周-1月至少更新一次,否则可能会出现问题。 以下是我的更新路径 13.12.12 -> 13.12.15 -&g...

Self-hosted GitLab pages setting

docker

修改 gitlab.rb 文件 1 2 3 4 5 pages_external_url "http://pages.bwcx.top:8980/" gitlab_pages['enable'] = true gitlab_pages['inplace_chroot'] = true gitlab_pages['env'] = {'TMPDIR' => '/opt/tmp/g...

Frequently used tools in Linux

Easies, Better, Happier

Frequently used tools on Linux screen Frequently used command 1 2 screen -S session_name # Create a new session screen -r session_name # return to an existing session Create multipl...

How long is the commercialization of fusion power away from us?

Fusion power

## References: [1] Sowder, A. Commercialization Challenges Facing Fusion: Perspectives from an Independent, Nonprofit, R&D Organization. J Fusion Energ 42, 15 (2023). https://doi.org/10.1007/s...

Bouk download of journals

Nuclear Fusion

批量下载某一杂志 PDF 文件 以下 python 脚本可以批量下载 Nuclear Fusion 某一期 PDF 文件,以第一作者命名并保存到文件夹 NF/vol/issue 中 release v1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 ...