Skip to content
Snippets Groups Projects
Commit cd7b885c authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL/THM] Use current solid state for C_el eval

parent 2d3ddc58
No related branches found
No related tags found
No related merge requests found
...@@ -98,10 +98,6 @@ struct IntegrationPointData final ...@@ -98,10 +98,6 @@ struct IntegrationPointData final
MPL::VariableArray variable_array; MPL::VariableArray variable_array;
MPL::VariableArray variable_array_prev; MPL::VariableArray variable_array_prev;
auto const null_state = solid_material.createMaterialStateVariables();
solid_material.initializeInternalStateVariables(t, x_position,
*null_state);
using KV = MathLib::KelvinVector::KelvinVectorType<DisplacementDim>; using KV = MathLib::KelvinVector::KelvinVectorType<DisplacementDim>;
variable_array.stress.emplace<KV>(KV::Zero()); variable_array.stress.emplace<KV>(KV::Zero());
...@@ -112,9 +108,9 @@ struct IntegrationPointData final ...@@ -112,9 +108,9 @@ struct IntegrationPointData final
variable_array_prev.mechanical_strain.emplace<KV>(KV::Zero()); variable_array_prev.mechanical_strain.emplace<KV>(KV::Zero());
variable_array_prev.temperature = temperature; variable_array_prev.temperature = temperature;
auto&& solution = auto&& solution = solid_material.integrateStress(
solid_material.integrateStress(variable_array_prev, variable_array, variable_array_prev, variable_array, t, x_position, dt,
t, x_position, dt, *null_state); *material_state_variables);
if (!solution) if (!solution)
{ {
......
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