diff --git a/_data/results.yml b/_data/results.yml
index 8ccb70c5..1bbcf364 100644
--- a/_data/results.yml
+++ b/_data/results.yml
@@ -2,5 +2,6 @@
results:
- transport-properties
- thermodynamic-properties
+ - vacuum-properties
- equilibrium-@-constant-t-p
diff --git a/_results/vacuum-properties.md b/_results/vacuum-properties.md
new file mode 100644
index 00000000..02c09e34
--- /dev/null
+++ b/_results/vacuum-properties.md
@@ -0,0 +1,35 @@
+---
+permalink: /results/vacuum-properties/
+---
+
Vacuum properties
+Operating conditions and composition
+
+
+
+ Temperature |
+ |
+ K |
+
+
+ Pressure |
+ |
+ Pa |
+
+
+ Name |
+ Mole fraction |
+ Mass fraction |
+
+
+
+
+Properties
+
+
+
+ Property name |
+ Value |
+ Unit dimension |
+
+
+
\ No newline at end of file
diff --git a/assets/js/calculator.js b/assets/js/calculator.js
index 3f0c2368..b22b67b0 100644
--- a/assets/js/calculator.js
+++ b/assets/js/calculator.js
@@ -1,6 +1,7 @@
var transportPageUrl = "/ASALI/results/transport-properties/";
var thermoPageUrl = "/ASALI/results/thermodynamic-properties/";
var eqTPPageUrl = "/ASALI/results/equilibrium-@-constant-t-p/";
+var vacuumPageUrl = "/ASALI/results/vacuum-properties/"
var webAppPageUrl = "/ASALI/pages/webapp/";
var resultsPageUrl = "/ASALI/results/";
@@ -222,6 +223,10 @@ function estimateMixtureProperties() {
{ "name": "Gibbs free energy", "value": mixture.getMassGibbsFreeEnergy(), "ud": "J/kg" },
{ "name": "Internal energy", "value": mixture.getMassInternalEnergy(), "ud": "J/kg" }
],
+ "vacuum": [
+ { "name": "Mean gas velocity", "value": mixture.getArithmeticMeanGasVelocity(), "ud": "m/s"},
+ { "name": "Mean free path", "value": mixture.getMeanFreePath(), "ud": "m"}
+ ],
"temperature": T,
"pressure": P,
"composition": {
@@ -324,6 +329,24 @@ function showThermoProperties(results, doc) {
}
}
+function showVacuumProperties(results, doc) {
+ /**
+ * Show the vacuum properties in the results page
+ */
+ let properties = results["vacuum"];
+ let outputTable = doc.getElementById("output-table")
+
+ for (let i = 0; i < properties.length; i++) {
+ let newRow = outputTable.insertRow(-1);
+ let nameCell = newRow.insertCell(0);
+ let valueCell = newRow.insertCell(1);
+ let udCell = newRow.insertCell(2);
+ nameCell.innerHTML = properties[i]["name"];
+ valueCell.innerHTML = parseFloat(properties[i]["value"]).toExponential(3);
+ udCell.innerHTML = properties[i]["ud"];
+ }
+}
+
function showEquilibrium(results, doc) {
/**
* Show the equilibrium in the results page
@@ -384,6 +407,9 @@ function showResults(destinationPageUrl) {
else if (destinationPageUrl.includes(thermoPageUrl)) {
showThermoProperties(results, document);
}
+ else if (destinationPageUrl.includes(vacuumPageUrl)) {
+ showVacuumProperties(results, document);
+ }
else if (destinationPageUrl.includes(eqTPPageUrl)) {
showEquilibrium(results, document);
}