From e30b94b385d30f2fbef90aa27f71437e25dde35c Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 13 Aug 2013 23:22:21 +0100 Subject: [PATCH] thermophysicalModels: Removed redundant H function --- .../solidProperties/solidProperties/solidProperties.H | 3 --- .../solidProperties/solidProperties/solidPropertiesI.H | 6 ------ src/thermophysicalModels/specie/thermo/thermo/thermo.H | 3 --- src/thermophysicalModels/specie/thermo/thermo/thermoI.H | 8 -------- 4 files changed, 20 deletions(-) diff --git a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H index 3d77628cfa..6ae416d8c8 100644 --- a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H +++ b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidProperties.H @@ -173,9 +173,6 @@ public: //- Heat of formation [J/kg] inline scalar Hf() const; - //- Total enthalpy - reference to Tstd [J/kg] - inline scalar H(const scalar T) const; - //- Sensible enthalpy - reference to Tstd [J/kg] inline scalar Hs(const scalar T) const; diff --git a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H index 11f6c79e02..05b6ad9c94 100644 --- a/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H +++ b/src/thermophysicalModels/properties/solidProperties/solidProperties/solidPropertiesI.H @@ -51,12 +51,6 @@ inline Foam::scalar Foam::solidProperties::Hf() const } -inline Foam::scalar Foam::solidProperties::H(const scalar T) const -{ - return Hs(T) + Hf_; -} - - inline Foam::scalar Foam::solidProperties::Hs(const scalar T) const { return Cp_*(T - specie::Tstd); diff --git a/src/thermophysicalModels/specie/thermo/thermo/thermo.H b/src/thermophysicalModels/specie/thermo/thermo/thermo.H index bacceb36bc..974582b529 100644 --- a/src/thermophysicalModels/specie/thermo/thermo/thermo.H +++ b/src/thermophysicalModels/specie/thermo/thermo/thermo.H @@ -217,9 +217,6 @@ public: //- Enthalpy/Internal energy [J/kg] inline scalar HE(const scalar p, const scalar T) const; - //- Enthalpy [J/kg] - inline scalar H(const scalar p, const scalar T) const; - //- Sensible enthalpy [J/kg] inline scalar Hs(const scalar p, const scalar T) const; diff --git a/src/thermophysicalModels/specie/thermo/thermo/thermoI.H b/src/thermophysicalModels/specie/thermo/thermo/thermoI.H index ab19475eda..1de3149916 100644 --- a/src/thermophysicalModels/specie/thermo/thermo/thermoI.H +++ b/src/thermophysicalModels/specie/thermo/thermo/thermoI.H @@ -215,14 +215,6 @@ Foam::species::thermo::HE(const scalar p, const scalar T) const } -template class Type> -inline Foam::scalar -Foam::species::thermo::H(const scalar p, const scalar T) const -{ - return this->h(p, T)/this->W(); -} - - template class Type> inline Foam::scalar Foam::species::thermo::Hs(const scalar p, const scalar T) const