# Calculating a table of electron transport properties using Magboltz

**URL:** <https://root-forum.cern.ch/t/calculating-a-table-of-electron-transport-properties-using-magboltz/48101>\
**Category:** Garfield++\
**Created:** [December 18, 2021, 2:39am UTC](https://root-forum.cern.ch/t/calculating-a-table-of-electron-transport-properties-using-magboltz/48101 "2021-12-18T02:39:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [December 18, 2021, 2:39am UTC](https://root-forum.cern.ch/t/calculating-a-table-of-electron-transport-properties-using-magboltz/48101/1 "2021-12-18T02:39:32Z")

</div>

I have generated a N2 gas file,and now I want to plot the electron transport properties using Magboltz, the code is in the below, but there is no plot at all.

```auto
MediumMagboltz gas;
  gas.LoadGasFile("N2.gas")
  gas.PrintGas();
  ViewMedium view;
  view.SetMedium(&gas);
  view.PlotElectronVelocity('e');

```

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [December 18, 2021, 5:18am UTC](https://root-forum.cern.ch/t/calculating-a-table-of-electron-transport-properties-using-magboltz/48101/2 "2021-12-18T05:18:49Z")

</div>

I have solved the problem and get the electron velocity plot, I think the reason maybe I should rebuild a new example instead of just modify the code in the gem.c then cmake …

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 1, 2022, 5:19am UTC](https://root-forum.cern.ch/t/calculating-a-table-of-electron-transport-properties-using-magboltz/48101/3 "2022-01-01T05:19:35Z")

</div>

Closed on January 1, 2022, 5:19am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
