Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ThermoMechanics] support reloading of strains in restart #2324

Merged
merged 4 commits into from
Jan 18, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[TM] renamed to KelvinVectorIntegrationPointWriter
  • Loading branch information
norihiro-w committed Jan 18, 2019
commit dc12ec7a137267f50df2aac481034a84ae940109
4 changes: 2 additions & 2 deletions ProcessLib/ThermoMechanics/ThermoMechanicsProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ThermoMechanicsProcess<DisplacementDim>::ThermoMechanicsProcess(
_process_data(std::move(process_data))
{
_integration_point_writer.emplace_back(
std::make_unique<SigmaIntegrationPointWriter>(
std::make_unique<KelvinVectorIntegrationPointWriter>(
"sigma_ip",
static_cast<int>(mesh.getDimension() == 2 ? 4 : 6) /*n components*/,
2 /*integration order*/, [this]() {
Expand All @@ -59,7 +59,7 @@ ThermoMechanicsProcess<DisplacementDim>::ThermoMechanicsProcess(
}));

_integration_point_writer.emplace_back(
std::make_unique<SigmaIntegrationPointWriter>(
std::make_unique<KelvinVectorIntegrationPointWriter>(
"epsilon_ip",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to rename the SigmaIntegrationPointWriter in KelvinVectorIntegrationPointWriter; it looks strange to feed the sigma writer with epsilon_ip.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

static_cast<int>(mesh.getDimension() == 2 ? 4 : 6) /*n components*/,
2 /*integration order*/, [this]() {
Expand Down
4 changes: 2 additions & 2 deletions ProcessLib/ThermoMechanics/ThermoMechanicsProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ namespace ThermoMechanics
{
struct ThermoMechanicsLocalAssemblerInterface;

struct SigmaIntegrationPointWriter final : public IntegrationPointWriter
struct KelvinVectorIntegrationPointWriter final : public IntegrationPointWriter
{
explicit SigmaIntegrationPointWriter(
explicit KelvinVectorIntegrationPointWriter(
std::string const& name,
int const n_components,
int const integration_order,
Expand Down