Skip to content

About

Magboltz++ (gitlab.cern.ch/garfield/magboltzpp) with 21 defects fixed, one commit each, and reported in bugs/README.md (branch fixes)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

101 Commits

Folders and files

Repository files navigation

Magboltz++

This is a fork of garfield/magboltzpp (CERN GitLab). Branch master is upstream master at 44b54a0; branch fixes adds one commit per defect, MBPP-01 … MBPP-23. The defects, with reproducers, are described in bugs/README.md.

This project is a (prototype) C++ version of the Magboltz program, which computes transport properties of electrons in gases with applied electric and magnetic fields. See the Magboltz++ documentation for further information.

Building the project

Clone the repository.

git clone https://gitlab.cern.ch/garfield/magboltzpp.git

Create a build directory and make it your current working directory.

mkdir build
cd build

Run CMake and make.

cmake [-DCMAKE_INSTALL_PREFIX=<installdir>] <path to sources>
make [-jn]

This will create a library (libMagboltz) as well as an executable (mb). The executable takes either a Fortran-style card file or a TOML file as input.

Example

The following TOML example sets the gas mixture to Ar/CO2 (90/10), and runs Magboltz for an electric field of 500 V/cm, and zero magnetic field. The components can be either identified by number (Magboltz gas id) or by name (e. g. name = "Ar"). The fraction is in percent (rescaled to sum to 100). Adding e. g. 'penning = 0.4' to a component will set the Penning transfer efficiency for all eligible energy levels of that component.

[gas]
components = [
  { number = 2,  fraction = 90.0 },   # Ar  (equivalently  name = "Ar")
  { number = 12, fraction = 10.0 },   # CO2 (equivalently  name = "CO2")
]
temperature = 20.0     # degrees C
pressure    = 760.0    # torr

[options]
n_max      = 1         # collision-count multiplier (x 4e7)
penning    = false     # include Penning transfer or not.
thermal    = false     # include background gas motion
e_final    = 0         # energy-grid upper bound in eV; 0 = auto
anisotropy = 2         # 0 isotropic / 1 Capitelli-Longo / 2 Okhrimovskyy

# One [[run]] per field point; the [gas] and [options] above apply to all.
[[run]]
e_field = 500.0        # V/cm
b_field = 0.0          # kG
angle   = 0.0          # degrees between E and B

About

Magboltz++ (gitlab.cern.ch/garfield/magboltzpp) with 21 defects fixed, one commit each, and reported in bugs/README.md (branch fixes)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages