Skip to content

Commit 02ccd6c

Browse files
committed
Enable mean free path output in mppequil.
Enable the output of mean free path in `mppequil`. It was there but commented out, probably because it was broken. See #239.
1 parent fdf63ab commit 02ccd6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/apps/mppequil.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct OutputQuantity {
6161
};
6262

6363
// List of all mixture output quantities
64-
#define NMIXTURE 45
64+
#define NMIXTURE 46
6565
OutputQuantity mixture_quantities[NMIXTURE] = {
6666
OutputQuantity("Th", "K", "heavy particle temperature"),
6767
OutputQuantity("P", "Pa", "pressure"),
@@ -110,8 +110,8 @@ OutputQuantity mixture_quantities[NMIXTURE] = {
110110
OutputQuantity("a_f", "m/s", "frozen speed of sound"),
111111
OutputQuantity("a_eq", "m/s", "equilibrium speed of sound"),
112112
OutputQuantity("Eam", "V/K", "ambipolar electric field (SM Ramshaw)"),
113-
OutputQuantity("drho/dP", "kg/J", "equilibrium density derivative w.r.t pressure")
114-
// OutputQuantity("l", "m", "mean free path"),
113+
OutputQuantity("drho/dP", "kg/J", "equilibrium density derivative w.r.t pressure"),
114+
OutputQuantity("l", "m", "mean free path")
115115
// OutputQuantity("le", "m", "mean free path of electrons"),
116116
// OutputQuantity("Vh", "m/s", "average heavy particle thermal speed"),
117117
// OutputQuantity("Ve", "m/s", "electron thermal speed"),
@@ -834,8 +834,8 @@ int main(int argc, char** argv)
834834
mix.stefanMaxwell(temp, temp2, value);
835835
} else if (name == "drho/dP")
836836
value = mix.dRhodP();
837-
// else if (name == "l")
838-
// value = mix.meanFreePath();
837+
else if (name == "l")
838+
value = mix.meanFreePath();
839839
// else if (name == "le")
840840
// value = mix.electronMeanFreePath();
841841
// else if (name == "Vh")

0 commit comments

Comments
 (0)