Skip to content

Commit

Permalink
[PL/TM] Remove unnecessary .eval() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
endJunction committed Aug 4, 2023
1 parent 93f3440 commit 699ef8d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ProcessLib/ThermoMechanics/ThermoMechanicsFEM-impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ void ThermoMechanicsLocalAssembler<ShapeFunction, DisplacementDim>::
.value(variables, x_position, t, dt));

MathLib::KelvinVector::KelvinVectorType<DisplacementDim> const
dthermal_strain = solid_linear_thermal_expansivity_vector.eval() *
(T_ip - T_prev_ip);
dthermal_strain =
solid_linear_thermal_expansivity_vector * (T_ip - T_prev_ip);

//
// displacement equation, displacement part
Expand Down Expand Up @@ -275,8 +275,8 @@ void ThermoMechanicsLocalAssembler<ShapeFunction, DisplacementDim>::
// The computation of KuT can be ignored.
auto const alpha_T_tensor =
MathLib::KelvinVector::kelvinVectorToSymmetricTensor(
solid_linear_thermal_expansivity_vector.eval());
KuT.noalias() += B.transpose() * (C * alpha_T_tensor.eval()) * N * w;
solid_linear_thermal_expansivity_vector);
KuT.noalias() += B.transpose() * (C * alpha_T_tensor) * N * w;

if (_ip_data[ip].solid_material.getConstitutiveModel() ==
MaterialLib::Solids::ConstitutiveModel::CreepBGRa)
Expand Down Expand Up @@ -436,8 +436,7 @@ void ThermoMechanicsLocalAssembler<ShapeFunction, DisplacementDim>::
.value(variables, x_position, t, dt));

MathLib::KelvinVector::KelvinVectorType<DisplacementDim> const
dthermal_strain =
solid_linear_thermal_expansivity_vector.eval() * dT_ip;
dthermal_strain = solid_linear_thermal_expansivity_vector * dT_ip;

eps_m.noalias() = eps_m_prev + eps - eps_prev - dthermal_strain;

Expand Down

0 comments on commit 699ef8d

Please sign in to comment.