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

Added nonequilibrium_stress to ThermoMechanics process #2544

Merged
merged 4 commits into from
Jul 5, 2019

Conversation

zhangning737
Copy link
Contributor

I did't create a new test prj file, but it has been tested with old salt cavern model.

Please check the quality of code, also only several lines, thinks.

@zhangning737
Copy link
Contributor Author

Hi, I think there should be no conflict, but the check results seem not look so good.
Anything else needs be done to fix that?

@@ -76,6 +78,7 @@ struct ThermoMechanicsProcessData
ParameterLib::Parameter<double> const& reference_solid_density;
ParameterLib::Parameter<double> const& linear_thermal_expansion_coefficient;
ParameterLib::Parameter<double> const& specific_heat_capacity;
ParameterLib::Parameter<double> const* const nonequilibrium_stress;
Copy link
Member

Choose a reason for hiding this comment

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

Move this line one lower, after the thermal_conductivity. This causes warnings otherwise: https://jenkins.opengeosys.org/job/ufz/job/ogs/job/PR-2544/3/gcc/

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, changed.

@zhangning737
Copy link
Contributor Author

@endJunction Last push fix #2412 , please check the codes.

@endJunction
Copy link
Member

@zhangning737 I've opened another PR (#2549) for the vtk fix. Please don't mix up topics in the PRs.

Also it would be better to create so-called topic branches for the PR's instead of working on your master branch.

@endJunction
Copy link
Member

On this branch I have pushed more changes including docu. Your original code is formatted and squashed into single commit.

: material_ids(material_ids_),
solid_materials{std::move(solid_materials_)},
reference_solid_density(reference_solid_density_),
linear_thermal_expansion_coefficient(
linear_thermal_expansion_coefficient_),
specific_heat_capacity(specific_heat_capacity_),
thermal_conductivity(thermal_conductivity_),
nonequilibrium_stress(nonequilibrium_stress_),
Copy link
Member

Choose a reason for hiding this comment

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

Please move nonequilibrium_stress(nonequilibrium_stress_) after specific_body_force(specific_body_force_). The appearance order of members in the initializer list must be the same as that of members in the class declaration.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, has been changed...

@wenqing
Copy link
Member

wenqing commented Jul 1, 2019

ProcessLib/ThermoMechanics/ThermoMechanicsProcessData.h:53: trailing whitespace (blank space after the end of the line).
thermal_conductivity(thermal_conductivity_),

@endJunction
Copy link
Member

endJunction commented Jul 1, 2019

@zhangning737 Please restore the original branch 2d7e717 https://github.com/endJunction/ogs/tree/ZN_TmNeqStress, then rebase to the current github.com/ufz/ogs/master. I've fixed already the errors Wenqing is pointing out and several more. Don't throw them away.

@zhangning737
Copy link
Contributor Author

@endJunction I think I did something not right, I force-pushed 2d7e717 to 2d6d00a. The problem is before my force-push, I didn't fetch 2d7e717. Apologize!!!
Is there any possibility to restore the branch 2d7e717?

@wenqing
Copy link
Member

wenqing commented Jul 1, 2019

@zhangning737 I just sent you an email about how to restore to Dima's branch.

@zhangning737
Copy link
Contributor Author

@wenqing thanks for your explanation, updated.

Copy link
Member

@endJunction endJunction left a comment

Choose a reason for hiding this comment

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

I copied tests from SD, but they need verification before merge.

@endJunction endJunction merged commit 29ce4b5 into ufz:master Jul 5, 2019
<linear_thermal_expansion_coefficient>alpha</linear_thermal_expansion_coefficient>
<specific_heat_capacity>cs</specific_heat_capacity>
<thermal_conductivity>lambda</thermal_conductivity>
<specific_body_force>0 -9.81</specific_body_force>
Copy link
Member

@wenqing wenqing Jul 5, 2019

Choose a reason for hiding this comment

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

Merged but these values have to be set as 0.0 0.0

<linear_thermal_expansion_coefficient>alpha</linear_thermal_expansion_coefficient>
<specific_heat_capacity>cs</specific_heat_capacity>
<thermal_conductivity>lambda</thermal_conductivity>
<specific_body_force>0 -9.81</specific_body_force>
Copy link
Member

Choose a reason for hiding this comment

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

Merged but these values have to be set as 0.0 0.0

Copy link
Member

Choose a reason for hiding this comment

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

I don't think so. It's only in the non-equilibrium restart, where the stresses due to gravity are included in the initial non-equilibrium stress. But in the forward tests the gravity is present.
Compare with the SD tests: https://github.com/ufz/ogs/blob/master/Tests/Data/Mechanics/InitialStates/into_initial_state.prj#L21

Copy link
Member

Choose a reason for hiding this comment

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

I see.

@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