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

Some improvement in SolidModels #2160

Merged
merged 3 commits into from
Jul 11, 2018
Merged

Some improvement in SolidModels #2160

merged 3 commits into from
Jul 11, 2018

Conversation

wenqing
Copy link
Member

@wenqing wenqing commented Jul 10, 2018

  • Moved createNewtonRaphsonSolverParameters to new files to avoid code duplication.
  • Introduced createConstitutiveRelation to remove code duplication.
  • Removed three unnecessarily defined -impl.h files.

Copy link
Collaborator

@chleh chleh left a comment

Choose a reason for hiding this comment

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

Only minor things. I assume, the last commit only moves code.

BaseLib::ConfigTree const& config)
{
// Constitutive relation.
// read type;
Copy link
Collaborator

Choose a reason for hiding this comment

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

not necessary.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed.

constitutive_relation_config.peekConfigParameter<std::string>("type");

std::unique_ptr<MaterialLib::Solids::MechanicsBase<DisplacementDim>>
material = nullptr;
Copy link
Collaborator

Choose a reason for hiding this comment

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

nullptr as already the default.

material = nullptr;
if (type == "Ehlers")
{
material = MaterialLib::Solids::Ehlers::createEhlers<DisplacementDim>(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor: You could just return MaterialLib::Solids::Ehlers::createEhlers<DisplacementDim>(...

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed according by amending the second commit.

"Cannot construct constitutive relation of given type \'%s\'.",
type.c_str());
}
return nullptr;
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's never reached.

Copy link
Member Author

Choose a reason for hiding this comment

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

@chleh Yes, the last commit just moves code and dumps three -impl.h files.

@wenqing wenqing force-pushed the m_solid branch 4 times, most recently from 7549882 to 54c3419 Compare July 10, 2018 14:05
@@ -0,0 +1,49 @@
/**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
Copy link
Member

Choose a reason for hiding this comment

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

2018

Copy link
Member Author

Choose a reason for hiding this comment

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

Corrected by amending the 2nd commit.

@@ -0,0 +1,28 @@
/**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
Copy link
Member

Choose a reason for hiding this comment

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

18

Copy link
Member Author

Choose a reason for hiding this comment

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

Corrected by amending the 1st commit

@wenqing wenqing force-pushed the m_solid branch 2 times, most recently from fa8520f to fb0e86d Compare July 11, 2018 08:54
@endJunction endJunction merged commit 078f26c into ufz:master Jul 11, 2018
@ogsbot
Copy link
Member

ogsbot commented Jun 19, 2020

OpenGeoSys development has been moved to GitLab.

See this pull request on GitLab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants