-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
698 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Methane | ||
======== | ||
|
||
.. doxygenclass:: fprops::Methane | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Methane | ||
======= | ||
|
||
Range of validity: | ||
|
||
- Temperature: `54 - 625 K` | ||
- Pressure: to `1000 MPa` | ||
|
||
Computation of thermodynamic properties is based on :cite:t:`10.1063/1.555898`. | ||
Viscosity and thermal conductivity is based on :cite:t:`10.1063/1.555828` and cite:t:`doi:10.1021/jp0618577`, respectively. | ||
|
||
Verification against CoolProp package | ||
------------------------------------- | ||
|
||
.. image:: ../pyplots/ch4_err_rho.png | ||
|
||
.. image:: ../pyplots/ch4_err_u.png | ||
|
||
.. image:: ../pyplots/ch4_err_h.png | ||
|
||
.. image:: ../pyplots/ch4_err_s.png | ||
|
||
.. image:: ../pyplots/ch4_err_w.png | ||
|
||
.. image:: ../pyplots/ch4_err_c_p.png | ||
|
||
.. image:: ../pyplots/ch4_err_c_v.png | ||
|
||
.. image:: ../pyplots/ch4_err_mu.png | ||
|
||
.. image:: ../pyplots/ch4_err_k.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
fprops: | ||
name: ch4 | ||
coolprop: methane | ||
fprops: Methane | ||
p: [ | ||
0.1, 0.2, | ||
0.5, 1, 2, 5, 10, 20, 50, 100, | ||
200, 500, 1000, 2000 | ||
] | ||
T: [ | ||
60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, | ||
160, 170, 180, 190, | ||
200, 210, 220, 230, 240, 250, 260, 270, 280, 290, | ||
300, 310, 320, 330, 340, 350, 360, 370, 380, 390, | ||
400, 450, 500, 550, 600, 6250 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// SPDX-FileCopyrightText: 2024 David Andrs <andrsd@gmail.com> | ||
// SPDX-License-Identifier: MIT | ||
|
||
#pragma once | ||
|
||
#include "fprops/helmholtz.h" | ||
#include "fprops/transport_models.h" | ||
|
||
namespace fprops { | ||
|
||
/// Methane fluid properties | ||
/// | ||
/// Reference: | ||
/// | ||
class Methane : public Helmholtz { | ||
public: | ||
Methane(); | ||
|
||
private: | ||
[[nodiscard]] double alpha(double delta, double tau) const override; | ||
[[nodiscard]] double dalpha_ddelta(double delta, double tau) const override; | ||
[[nodiscard]] double dalpha_dtau(double delta, double tau) const override; | ||
[[nodiscard]] double d2alpha_ddelta2(double delta, double tau) const override; | ||
[[nodiscard]] double d2alpha_dtau2(double delta, double tau) const override; | ||
[[nodiscard]] double d2alpha_ddeltatau(double delta, double tau) const override; | ||
[[nodiscard]] double mu_from_rho_T(double rho, double T) const override; | ||
[[nodiscard]] double k_from_rho_T(double rho, double T) const override; | ||
|
||
IdealGasLead<double> lead; | ||
IdealGasLogTau<double> log_tau; | ||
IdealGasPlanckEinsteinFunctionT<double> pefnt; | ||
IdealEnthalpyEntropyOffset<double> offset; | ||
ResidualPower<double> power_r; | ||
ResidualPowerExp<double, unsigned int> power_exp_r; | ||
ResidualGaussian<double> gauss; | ||
|
||
PowersOfTemperature<double> eta_0; | ||
FrictionTheory<double> eta_f; | ||
}; | ||
|
||
} // namespace fprops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.