Skip to content
Snippets Groups Projects
Commit cedc8d1d authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Dmitri Naumov
Browse files

[PL] Added constitutive model/data: EqT

parent ad27a619
No related branches found
No related tags found
No related merge requests found
/**
* \file
* \copyright
* Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "EqT.h"
namespace ProcessLib::ThermoRichardsMechanics
{
template <int DisplacementDim>
void EqTModel<DisplacementDim>::eval(
TRMHeatStorageAndFluxData<DisplacementDim> const& heat_data,
TRMVaporDiffusionData<DisplacementDim> const& vap_data,
EqTData<DisplacementDim>& out) const
{
out.M_TT_X_NTN = heat_data.M_TT_X_NTN + vap_data.M_TT_X_NTN;
out.K_TT_NT_V_dN =
heat_data.advective_heat_flux_contribution_to_K_liquid +
vap_data.vapor_velocity * vap_data.volumetric_heat_capacity_vapor;
}
template struct EqTModel<2>;
template struct EqTModel<3>;
} // namespace ProcessLib::ThermoRichardsMechanics
/**
* \file
* \copyright
* Copyright (c) 2012-2022, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include "TRMHeatStorageAndFlux.h"
#include "TRMVaporDiffusion.h"
namespace ProcessLib::ThermoRichardsMechanics
{
template <int DisplacementDim>
struct EqTData
{
GlobalDimVector<DisplacementDim> K_TT_NT_V_dN = DVnan<DisplacementDim>();
double M_TT_X_NTN = nan;
};
template <int DisplacementDim>
struct EqTModel
{
void eval(TRMHeatStorageAndFluxData<DisplacementDim> const& heat_data,
TRMVaporDiffusionData<DisplacementDim> const& vap_data,
EqTData<DisplacementDim>& out) const;
};
extern template struct EqTModel<2>;
extern template struct EqTModel<3>;
} // namespace ProcessLib::ThermoRichardsMechanics
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