Skip to content
Snippets Groups Projects
Commit b487b5a5 authored by wenqing's avatar wenqing
Browse files

[FL] Changed one class name and some comments

parent 1afdb903
No related branches found
No related tags found
No related merge requests found
......@@ -53,14 +53,16 @@ public:
std::move(thermal_conductivity)}}
{
}
virtual ~FluidProperties(){};
/**
* Get the value of a Property.
* \param property_type Property type.
* \param variable_values An array of variables. The order of its elements
* is temperature, pressure, concentration, which is
* defined in enum class PropertyVariableType.
* \param variable_values An array of the primary variables. The order of
* its elements is temperature, pressure,
* concentration, which is defined in enum class
* PropertyVariableType.
*/
virtual double getValue(const FluidPropertyType property_type,
const ArrayType& variable_values) const = 0;
......@@ -68,9 +70,10 @@ public:
/**
* Get the partial differential of a property.
* \param property_type Property type.
* \param variable_values An array of variables. The order of its elements
* is temperature, pressure, concentration, which is
* defined in enum class PropertyVariableType.
* \param variable_values An array of the primary variables. The order of
* its elements is temperature, pressure,
* concentration, which is defined in enum class
* PropertyVariableType.
* \param variable_type Variable type
*/
virtual double getdValue(
......
......@@ -5,13 +5,13 @@
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
* \file TemperaturePressureConcentrationDependentFluidProperties.h
* \file PrimaryVariableDependentFluidProperties.h
*
* Created on November 29, 2016, 3:19 PM
*/
#ifndef OGS_TEMPERATURE_PRESSURE_CONCENTRATION_DEPENDENT_FLUID_PROPERTIES_H
#define OGS_TEMPERATURE_PRESSURE_CONCENTRATION_DEPENDENT_FLUID_PROPERTIES_H
#ifndef OGS_PRIMARY_VARIABLE_DEPENDENT_FLUIDPROPERTIES_H
#define OGS_PRIMARY_VARIABLE_DEPENDENT_FLUIDPROPERTIES_H
#include "FluidProperties.h"
#include "MaterialLib/Fluid/FluidProperty.h"
......@@ -24,11 +24,10 @@ class FluidProperty;
/// A class contains density, viscosity, heat_capacity and thermal_conductivity
/// models, which are all functions of temperature, pressure and concentration.
class TemperaturePressureConcentrationDependentFluidProperties final
: public FluidProperties
class PrimaryVariableDependentFluidProperties final : public FluidProperties
{
public:
TemperaturePressureConcentrationDependentFluidProperties(
PrimaryVariableDependentFluidProperties(
std::unique_ptr<MaterialLib::Fluid::FluidProperty>&& density,
std::unique_ptr<MaterialLib::Fluid::FluidProperty>&& viscosity,
std::unique_ptr<MaterialLib::Fluid::FluidProperty>&& heat_capacity,
......@@ -43,9 +42,10 @@ public:
/**
* Get the value of a Property.
* \param property_type Property type.
* \param variable_values An array of variables. The order of its elements
* is temperature, pressure, concentration, which is
* defined in enum class PropertyVariableType.
* \param variable_values An array of the primary variables. The order of
* its elements is temperature, pressure,
* concentration, which is defined in enum class
* PropertyVariableType.
*/
double getValue(const FluidPropertyType property_type,
const ArrayType& variable_values) const override
......@@ -57,9 +57,10 @@ public:
/**
* Get the partial differential of a property.
* \param property_type Property type.
* \param variable_values An array of variables. The order of its elements
* is temperature, pressure, concentration, which is
* defined in enum class PropertyVariableType.
* \param variable_values An array of the primary variables. The order of
* its elements is temperature, pressure,
* concentration, which is defined in enum class
* PropertyVariableType.
* \param variable_type Variable type
*/
double getdValue(const FluidPropertyType property_type,
......@@ -73,5 +74,4 @@ public:
} // end namespace
} // end namespace
#endif /* OGS_TEMPERATURE_PRESSURE_CONCENTRATION_DEPENDENT_FLUID_PROPERTIES_H \
*/
#endif /* OGS_PRIMARY_VARIABLE_DEPENDENT_FLUIDPROPERTIES_H */
......@@ -21,7 +21,7 @@
#include "MaterialLib/Fluid/Density/createFluidDensityModel.h"
#include "MaterialLib/Fluid/Viscosity/createViscosityModel.h"
#include "MaterialLib/Fluid/FluidProperties/FluidProperties.h"
#include "MaterialLib/Fluid/FluidProperties/TemperaturePressureConcentrationDependentFluidProperties.h"
#include "MaterialLib/Fluid/FluidProperties/PrimaryVariableDependentFluidProperties.h"
using namespace MaterialLib;
using namespace MaterialLib::Fluid;
......@@ -61,7 +61,7 @@ TEST(MaterialFluidModel, checkCompositeDensityViscosityModel)
std::unique_ptr<FluidProperties> fluid_model =
std::unique_ptr<FluidProperties>(
new TemperaturePressureConcentrationDependentFluidProperties(
new PrimaryVariableDependentFluidProperties(
std::move(rho), std::move(mu), nullptr, nullptr));
ArrayType vars;
......
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