Skip to content
Snippets Groups Projects
Commit 673f9917 authored by Tom Fischer's avatar Tom Fischer
Browse files

Merge branch 'saturation_dependent_thermal_conductivity' into 'master'

[MPL] rename HeatConduction -> ThermalConductivity

See merge request ogs/ogs!3651
parents 334069ce bf4e1cd5
No related branches found
No related tags found
No related merge requests found
Showing
with 32 additions and 32 deletions
\copydoc MaterialPropertyLib::SaturationDependentHeatConduction
\copydoc MaterialPropertyLib::SaturationDependentHeatConduction::K_dry_
\copydoc MaterialPropertyLib::SaturationDependentHeatConduction::K_wet_
\copydoc MaterialPropertyLib::SaturationDependentThermalConductivity
\copydoc MaterialPropertyLib::SaturationDependentThermalConductivity::K_dry_
\copydoc MaterialPropertyLib::SaturationDependentThermalConductivity::K_wet_
...@@ -210,9 +210,9 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty( ...@@ -210,9 +210,9 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty(
return createRelPermUdellNonwettingPhase(config); return createRelPermUdellNonwettingPhase(config);
} }
if (boost::iequals(property_type, "SaturationDependentHeatConduction")) if (boost::iequals(property_type, "SaturationDependentThermalConductivity"))
{ {
return createSaturationDependentHeatConduction(config); return createSaturationDependentThermalConductivity(config);
} }
if (boost::iequals(property_type, "SaturationDependentSwelling")) if (boost::iequals(property_type, "SaturationDependentSwelling"))
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include "CreateOrthotropicEmbeddedFracturePermeability.h" #include "CreateOrthotropicEmbeddedFracturePermeability.h"
#include "CreatePermeabilityOrthotropicPowerLaw.h" #include "CreatePermeabilityOrthotropicPowerLaw.h"
#include "CreatePorosityFromMassBalance.h" #include "CreatePorosityFromMassBalance.h"
#include "CreateSaturationDependentHeatConduction.h" #include "CreateSaturationDependentThermalConductivity.h"
#include "CreateSaturationDependentSwelling.h" #include "CreateSaturationDependentSwelling.h"
#include "CreateStrainDependentPermeability.h" #include "CreateStrainDependentPermeability.h"
#include "CreateTransportPorosityFromMassBalance.h" #include "CreateTransportPorosityFromMassBalance.h"
......
...@@ -8,15 +8,15 @@ ...@@ -8,15 +8,15 @@
*/ */
#include "BaseLib/ConfigTree.h" #include "BaseLib/ConfigTree.h"
#include "SaturationDependentHeatConduction.h" #include "SaturationDependentThermalConductivity.h"
namespace MaterialPropertyLib namespace MaterialPropertyLib
{ {
std::unique_ptr<SaturationDependentHeatConduction> std::unique_ptr<SaturationDependentThermalConductivity>
createSaturationDependentHeatConduction(BaseLib::ConfigTree const& config) createSaturationDependentThermalConductivity(BaseLib::ConfigTree const& config)
{ {
//! \ogs_file_param{properties__property__type} //! \ogs_file_param{properties__property__type}
config.checkConfigParameter("type", "SaturationDependentHeatConduction"); config.checkConfigParameter("type", "SaturationDependentThermalConductivity");
// Second access for storage. // Second access for storage.
//! \ogs_file_param{properties__property__name} //! \ogs_file_param{properties__property__name}
...@@ -26,15 +26,15 @@ createSaturationDependentHeatConduction(BaseLib::ConfigTree const& config) ...@@ -26,15 +26,15 @@ createSaturationDependentHeatConduction(BaseLib::ConfigTree const& config)
property_name); property_name);
auto const K_dry = auto const K_dry =
//! \ogs_file_param{properties__property__SaturationDependentHeatConduction__dry} //! \ogs_file_param{properties__property__SaturationDependentThermalConductivity__dry}
config.getConfigParameter<double>("dry"); config.getConfigParameter<double>("dry");
auto const K_wet = auto const K_wet =
//! \ogs_file_param{properties__property__SaturationDependentHeatConduction__wet} //! \ogs_file_param{properties__property__SaturationDependentThermalConductivity__wet}
config.getConfigParameter<double>("wet"); config.getConfigParameter<double>("wet");
return std::make_unique< return std::make_unique<
MaterialPropertyLib::SaturationDependentHeatConduction>( MaterialPropertyLib::SaturationDependentThermalConductivity>(
std::move(property_name), K_dry, K_wet); std::move(property_name), K_dry, K_wet);
} }
} // namespace MaterialPropertyLib } // namespace MaterialPropertyLib
...@@ -18,11 +18,11 @@ class ConfigTree; ...@@ -18,11 +18,11 @@ class ConfigTree;
namespace MaterialPropertyLib namespace MaterialPropertyLib
{ {
class SaturationDependentHeatConduction; class SaturationDependentThermalConductivity;
} }
namespace MaterialPropertyLib namespace MaterialPropertyLib
{ {
std::unique_ptr<SaturationDependentHeatConduction> std::unique_ptr<SaturationDependentThermalConductivity>
createSaturationDependentHeatConduction(BaseLib::ConfigTree const& config); createSaturationDependentThermalConductivity(BaseLib::ConfigTree const& config);
} // namespace MaterialPropertyLib } // namespace MaterialPropertyLib
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
#include "RelativePermeability/RelPermUdell.h" #include "RelativePermeability/RelPermUdell.h"
#include "RelativePermeability/RelPermUdellNonwettingPhase.h" #include "RelativePermeability/RelPermUdellNonwettingPhase.h"
#include "RelativePermeability/RelPermVanGenuchten.h" #include "RelativePermeability/RelPermVanGenuchten.h"
#include "SaturationDependentHeatConduction.h" #include "SaturationDependentThermalConductivity.h"
#include "SaturationDependentSwelling.h" #include "SaturationDependentSwelling.h"
#include "ThermalConductivity/SoilThermalConductivitySomerton.h" #include "ThermalConductivity/SoilThermalConductivitySomerton.h"
#include "TransportPorosityFromMassBalance.h" #include "TransportPorosityFromMassBalance.h"
......
...@@ -7,30 +7,30 @@ ...@@ -7,30 +7,30 @@
* http://www.opengeosys.org/project/license * http://www.opengeosys.org/project/license
*/ */
#include "SaturationDependentHeatConduction.h" #include "SaturationDependentThermalConductivity.h"
#include "MaterialLib/MPL/Medium.h" #include "MaterialLib/MPL/Medium.h"
namespace MaterialPropertyLib namespace MaterialPropertyLib
{ {
SaturationDependentHeatConduction::SaturationDependentHeatConduction( SaturationDependentThermalConductivity::SaturationDependentThermalConductivity(
std::string name, double const K_dry, double const K_wet) std::string name, double const K_dry, double const K_wet)
: K_dry_(K_dry), K_wet_(K_wet) : K_dry_(K_dry), K_wet_(K_wet)
{ {
name_ = std::move(name); name_ = std::move(name);
} }
void SaturationDependentHeatConduction::checkScale() const void SaturationDependentThermalConductivity::checkScale() const
{ {
if (!std::holds_alternative<Medium*>(scale_)) if (!std::holds_alternative<Medium*>(scale_))
{ {
OGS_FATAL( OGS_FATAL(
"The property 'SaturationDependentHeatConduction' is " "The property 'SaturationDependentThermalConductivity' is "
"implemented on the 'medium' scale only."); "implemented on the 'medium' scale only.");
} }
} }
PropertyDataType SaturationDependentHeatConduction::value( PropertyDataType SaturationDependentThermalConductivity::value(
VariableArray const& variable_array, VariableArray const& variable_array,
ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/, ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
double const /*dt*/) const double const /*dt*/) const
...@@ -41,14 +41,14 @@ PropertyDataType SaturationDependentHeatConduction::value( ...@@ -41,14 +41,14 @@ PropertyDataType SaturationDependentHeatConduction::value(
return K_dry_ * (1 - S_L) + K_wet_ * S_L; return K_dry_ * (1 - S_L) + K_wet_ * S_L;
} }
PropertyDataType SaturationDependentHeatConduction::dValue( PropertyDataType SaturationDependentThermalConductivity::dValue(
VariableArray const& /*variable_array*/, Variable const variable, VariableArray const& /*variable_array*/, Variable const variable,
ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/, ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
double const /*dt*/) const double const /*dt*/) const
{ {
(void)variable; (void)variable;
assert((variable == Variable::liquid_saturation) && assert((variable == Variable::liquid_saturation) &&
"SaturationDependentHeatConduction::dvalue is implemented for " "SaturationDependentThermalConductivity::dvalue is implemented for "
"derivatives with respect to liquid saturation only."); "derivatives with respect to liquid saturation only.");
return K_wet_ - K_dry_; return K_wet_ - K_dry_;
......
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
namespace MaterialPropertyLib namespace MaterialPropertyLib
{ {
/// Saturation dependent model for effective heat conduction /// Saturation dependent model for effective heat conduction
/// \details This model is for the porous media with isotropic heat conductivity. This property must be a medium property, it /// \details This model is for the porous media with isotropic thermal conductivity. This property must be a medium property, it
/// computes the effetive heat conductivity based on a wet /// computes the effective thermal conductivity based on a wet
/// and a dry value /// and a dry value
/// \f$ K_{\mathrm{eff}} = S K_{\mathrm{wet}} + (1-S) K_{\mathrm{dry}} \f$ /// \f$ K_{\mathrm{eff}} = S K_{\mathrm{wet}} + (1-S) K_{\mathrm{dry}} \f$
class SaturationDependentHeatConduction final : public Property class SaturationDependentThermalConductivity final : public Property
{ {
public: public:
SaturationDependentHeatConduction(std::string name, SaturationDependentThermalConductivity(std::string name,
double const K_dry, double const K_dry,
double const K_wet); double const K_wet);
......
...@@ -15,19 +15,19 @@ ...@@ -15,19 +15,19 @@
#include <boost/math/constants/constants.hpp> #include <boost/math/constants/constants.hpp>
#include "MaterialLib/MPL/Medium.h" #include "MaterialLib/MPL/Medium.h"
#include "MaterialLib/MPL/Properties/CreateSaturationDependentHeatConduction.h" #include "MaterialLib/MPL/Properties/CreateSaturationDependentThermalConductivity.h"
#include "MaterialLib/MPL/Properties/SaturationDependentHeatConduction.h" #include "MaterialLib/MPL/Properties/SaturationDependentThermalConductivity.h"
#include "MaterialLib/MPL/Utils/FormEigenTensor.h" #include "MaterialLib/MPL/Utils/FormEigenTensor.h"
#include "ParameterLib/ConstantParameter.h" #include "ParameterLib/ConstantParameter.h"
#include "TestMPL.h" #include "TestMPL.h"
#include "Tests/TestTools.h" #include "Tests/TestTools.h"
TEST(MaterialPropertyLib, SaturationDependentHeatConduction) TEST(MaterialPropertyLib, SaturationDependentThermalConductivity)
{ {
double const k_dry = 0.2; double const k_dry = 0.2;
double const k_wet = 1.5; double const k_wet = 1.5;
auto const k_model_eff = MPL::SaturationDependentHeatConduction( auto const k_model_eff = MPL::SaturationDependentThermalConductivity(
"thermal_conductivity", k_dry, k_wet); "thermal_conductivity", k_dry, k_wet);
ParameterLib::SpatialPosition const pos; ParameterLib::SpatialPosition const pos;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment