pencil-code

A high-order finite-difference code for compressible hydrodynamic flows with magnetic fields and particles

  • Owner: pencil-code/pencil-code
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

The Pencil Code

The Pencil Code moved to
GitHub
on 19 April 2015. It was previously hosted at
Google Code.

In order to checkout the code with
Subversion, use the command

svn checkout https://github.com/pencil-code/pencil-code/trunk pencil-code --username <github-username>

where <github-username> is your GitHub username.

To get started, run one of the samples:

unix>  cd pencil-code
unix>  source sourceme.csh  [or . sourceme.sh]
unix>  cd samples/conv-slab
unix>  mkdir data

To set up the symbolic links and compile the code:

unix>  pc_setupsrc
unix>  pc_build  [ -f /path/to/config/file.conf ]

To create the initial condition and run the code:

unix>  pc_start  [ -f /path/to/config/file.conf ]
unix>  pc_run    [ -f /path/to/config/file.conf ]

See pencil-code/config/hosts/*/*.conf for sample config files. For more
details, see the manual in the doc/ directory (also available
here).


If you are using bash and you do not want to "source sourceme.sh" on each
session, you can insert the following into your .bashrc and/or .bash_profile:

export PENCIL_HOME=$HOME/pencil-code  [or wherever you have the code]
_sourceme_quiet=1; . $PENCIL_HOME/sourceme.sh; unset _sourceme_quiet

If you are using csh insert the following into your .cshrc:

setenv PENCIL_HOME $HOME/pencil-code  [or wherever you have the code]
source $PENCIL_HOME/sourceme.csh

Main metrics

Overview
Name With Ownerpencil-code/pencil-code
Primary LanguageFortran
Program languagePerl (Language Count: 20)
Platform
License:
所有者活动
Created At2015-04-19 07:26:57
Pushed At2025-06-02 08:12:20
Last Commit At2025-06-02 08:12:12
Release Count5
Last Release Namev2021.02.20 (Posted on )
First Release Namer23175 (Posted on )
用户参与
Stargazers Count208
Watchers Count93
Fork Count102
Commits Count40k
Has Issues Enabled
Issues Count35
Issue Open Count3
Pull Requests Count6
Pull Requests Open Count0
Pull Requests Close Count8
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private