-
Notifications
You must be signed in to change notification settings - Fork 248
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
[GeoMechanicsApplication] Revisit and document test element lab #11975
[GeoMechanicsApplication] Revisit and document test element lab #11975
Conversation
Not all codacy issues make sense to fix. There are some that change how the md is rendered, and the current layout is as intended |
...ations/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/ProjectParameters.json
Show resolved
Hide resolved
...oMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/Stage_1/ProjectParameters.json
Outdated
Show resolved
Hide resolved
...oMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/Stage_1/ProjectParameters.json
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/README.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having a description that includes pictures of the mesh and boundary conditions is very illustrative
applications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/README.md
Outdated
Show resolved
Hide resolved
|
||
## Assertions | ||
In this test, there are two results checks: | ||
1. It is asserted that the effective stress is -1000000 kPa (?) in the integration points of both elements in the y direction and 0 in the other directions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and on line 16 the (?) can be removed.
0. stress in other directions must be a result of a 0. Poisson's ratio.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! And added the bit about the Poisson ratio to clarify this.
applications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
...ications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM_diff_order/README.md
Outdated
Show resolved
Hide resolved
...ications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM_diff_order/README.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WPK4FEM Thanks for your thorough review, I processed most, there are a few discussion points left and the matter of moving part of the descriptions to the image
applications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/README.md
Outdated
Show resolved
Hide resolved
...ications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM_diff_order/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/triaxial_comp_6n/README.md
Outdated
Show resolved
Hide resolved
…est_element_lab' into geo/11969-revisit-and-document-test_element_lab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Done.
applications/GeoMechanicsApplication/custom_strategies/schemes/README.md
Outdated
Show resolved
Hide resolved
...ications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM_diff_order/README.md
Outdated
Show resolved
Hide resolved
...ications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM_diff_order/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/README.md
Outdated
Show resolved
Hide resolved
applications/GeoMechanicsApplication/tests/test_element_lab/oedometer_ULFEM/README.md
Outdated
Show resolved
Hide resolved
- The X and Y displacement in the bottom two nodes (3 and 4) are fixed. | ||
- The X displacement in all nodes is fixed. | ||
- Material: | ||
- The material is described using a linear elastic material with a GeoLinearElasticPlaneStrain2DLaw. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add the Young's Modulus here, E, here, as this will enable users to assert the displacement below. Due to being Linear Elastic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indeed clarifies a lot, added, thanks for the suggestion!
1. It is asserted that the effective stress is -1000000 kPa in the integration points of both elements in the y | ||
direction and 0.0 in the other directions, due to the Poisson ration being 0.0. | ||
2. It is asserted that the displacement of one of the top nodes (1) is close to -0.0909090909516868 as a result of the | ||
applied line load. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you could add the displacement calculation due to Youngs Modulus, E.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it for the diff order, for this one, we'll first check if we can get this to linear elastic behavior
|
||
1. It is asserted that the effective stress is -1000000 kPa in the integration points of both elements in the y | ||
direction and 0.0 in the other directions, due to the Poisson ration being 0.0. | ||
2. It is asserted that the displacement of one of the top nodes (1) is close to -0.0909090909516868 as a result of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure this is correct -0.0909090909516868 (I think it should be -0.1 = -1.e6/1.e7)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did a bit more digging here and it turns out it is due to the non-linear behavior of the geometry. Here we have a plot of displacement vs time, where the load ramps up from 0 to -100000000 in this time interval. Since we are using the updatedlagrange element, we see that the displacement is non-linear.
When setting the move_mesh flag to false (making the geometry more linear) we get the following graph:
The reason the diff order element approximately behaved as it should, was because the load was a lot smaller, meaning the displacement was still in the linear region.
For now we propose to keep the result like it is now. I added a line to explain this in the README.md to explain the number.
FYI @WPK4FEM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Measurements should be added to the diagrams or it should be clearly stated as a unit square in the README.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion, added to the diagrams!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the result variables from the ProjectParameters.json in oedometer_ULFEM test + oedometer_ULFEM_diff_order test (well in one of them !)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, I indeed missed one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to tick request changes
…stic material displacement and the actual displacement for the larger applied load
📝 Description
This PR aims to clean up and add documentation regarding the three tests in the test_element_lab folder. The activities here include:
I recommend to look at the rendered versions of the READMEs: