{"id":19,"date":"2016-10-20T09:55:41","date_gmt":"2016-10-20T09:55:41","guid":{"rendered":"https:\/\/sparx.tiara.sinica.edu.tw\/?page_id=19"},"modified":"2018-03-23T04:21:27","modified_gmt":"2018-03-23T04:21:27","slug":"code","status":"publish","type":"page","link":"https:\/\/sparx.tiara.sinica.edu.tw\/code\/","title":{"rendered":"Code"},"content":{"rendered":"

The code is open source, visit our github page<\/a>.<\/p>\n

\n

Installation<\/h4>\n

For single-machine usage, we have ported SPARX on both Fedora and Ubuntu system
\nDownload from the repository by using git.<\/p>\n

git clone https:\/\/github.com\/itahsieh\/sparx-alpha.git<\/code><\/p><\/blockquote>\n

To enter the directory, the default branch is the latest stable version 3.<\/p>\n

cd sparx-alpha<\/code><\/p><\/blockquote>\n

If you are using Fedora 22\/24, execute the installing script<\/p>\n

.\/fedora-install.sh<\/code><\/p><\/blockquote>\n

If you are using Ubuntu 14.04\/16.04, execute the installing script<\/p>\n

.\/ubuntu-install.sh<\/code><\/p><\/blockquote>\n<\/div>\n

\n

Testing<\/h4>\n

After the installation finishes, test to create a Shu(1977)’s 1D model<\/p>\n

.\/test.sh SHU1D<\/code><\/p><\/blockquote>\n

test the non-LTE solver (AMC)<\/p>\n

.\/test.sh AMC<\/code><\/p><\/blockquote>\n

test to make the line image<\/p>\n

.\/test.sh LINE<\/code><\/p><\/blockquote>\n<\/div>\n

\n

Benchmark<\/h4>\n

SPARX can reproduce the benchmark in van Zadelhoff et. al. 2002<\/a>, of which the setups of problem-2a and problem-2b were built in SPARX. Just use the command to run it<\/p>\n

# Problem 2a
\n.\/test.sh P2A
\n# Problem 2b
\n.\/test.sh P2B<\/code><\/p><\/blockquote>\n

The figure shows The setting of the physical profile
\n\"\"<\/p>\n

The comparison, to Ratran, by the solution of the level populations of\u00a0HCO+.
\n\"\"<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

The code is open source, visit our github page. Installation For single-machine usage, we have ported SPARX on both Fedora and Ubuntu system Download from the repository by using git. git clone https:\/\/github.com\/itahsieh\/sparx-alpha.git To enter the directory, the default branch… <\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false},"_links":{"self":[{"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/pages\/19"}],"collection":[{"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":43,"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/pages\/19\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/pages\/19\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/sparx.tiara.sinica.edu.tw\/wp-json\/wp\/v2\/media?parent=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}