Skip to content
Snippets Groups Projects
Commit f6652582 authored by renchao.lu's avatar renchao.lu
Browse files

[PL/CT] compute temperature at the integration point.

parent 1e38155c
No related branches found
No related tags found
No related merge requests found
...@@ -750,6 +750,13 @@ public: ...@@ -750,6 +750,13 @@ public:
auto const local_pdot = auto const local_pdot =
local_xdot.segment<pressure_size>(pressure_index); local_xdot.segment<pressure_size>(pressure_index);
NodalVectorType local_T;
if (_process_data.temperature)
{
local_T =
_process_data.temperature->getNodalValuesOnElement(_element, t);
}
auto local_M = MathLib::createZeroedMatrix<LocalBlockMatrixType>( auto local_M = MathLib::createZeroedMatrix<LocalBlockMatrixType>(
local_M_data, concentration_size, concentration_size); local_M_data, concentration_size, concentration_size);
auto local_K = MathLib::createZeroedMatrix<LocalBlockMatrixType>( auto local_K = MathLib::createZeroedMatrix<LocalBlockMatrixType>(
...@@ -800,6 +807,13 @@ public: ...@@ -800,6 +807,13 @@ public:
vars[static_cast<int>( vars[static_cast<int>(
MaterialPropertyLib::Variable::phase_pressure)] = p_int_pt; MaterialPropertyLib::Variable::phase_pressure)] = p_int_pt;
if (_process_data.temperature)
{
vars[static_cast<int>(
MaterialPropertyLib::Variable::temperature)] =
N.dot(local_T);
}
// porosity // porosity
{ {
vars_prev[static_cast<int>( vars_prev[static_cast<int>(
......
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