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

Dem dmt force model #1045

Merged
merged 26 commits into from
Mar 8, 2024
Merged

Dem dmt force model #1045

merged 26 commits into from
Mar 8, 2024

Conversation

OGaboriault
Copy link
Collaborator

New feature

  • New DMT contact force model.

How Has This Been Tested?

  • Application test need to be added. I think I'm just going to use the same test as the JKR model. Coming soon

Documentation

  • Theory has been refactor.

@OGaboriault OGaboriault added Enhancement New feature or request Ready for review labels Feb 27, 2024
@OGaboriault OGaboriault self-assigned this Feb 27, 2024
@acdaigneault acdaigneault self-requested a review February 29, 2024 19:24
Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

fiest batch

doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@acdaigneault acdaigneault left a comment

Choose a reason for hiding this comment

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

This is the first batch because I saw Bruno posted a review.

doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@acdaigneault acdaigneault left a comment

Choose a reason for hiding this comment

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

Nice model! Some comments for the doc. Also, I think you did update the theory guide, but not the parameter guide.

doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@acdaigneault acdaigneault left a comment

Choose a reason for hiding this comment

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

Nothing else to say except that p-w contact models really need a refactor as p-p contact, lots of copy and paste

source/dem/particle_wall_dmt_force.cc Show resolved Hide resolved
Copy link
Contributor

@blaisb blaisb left a comment

Choose a reason for hiding this comment

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

Some more comments. I will finish the rest tomorrow

doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
include/dem/particle_wall_dmt_force.h Outdated Show resolved Hide resolved
@blaisb
Copy link
Contributor

blaisb commented Mar 3, 2024

@voferreira could y ou also give it a look?

@voferreira
Copy link
Collaborator

@blaisb Absolutely. I will start looking into it Today and finish Tomorrow or so.

@voferreira voferreira self-requested a review March 3, 2024 16:31
Copy link
Collaborator

@acdaigneault acdaigneault left a comment

Choose a reason for hiding this comment

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

I reviewed everything and compared the much I could with the code. I would say maybe make sure it fits, but it's a pretty good work with the references. (I like to check the equation haha)
I have another comment, we can discuss it in person, but since you use many time variables store (i.e. surface energy, young modulus, ...) in tables, use variables so you prevent many access to the value and also it helps to read the code. I can help you with refactoring if you want (for another PR)

@@ -28,7 +28,7 @@ subsection model parameters
set neighborhood threshold = 20
end
subsection load balancing
set load balance method = once
set load balance method = none
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can remove the load balancing for all test

doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Show resolved Hide resolved
source/dem/particle_particle_contact_force.cc Show resolved Hide resolved
Copy link
Collaborator

@voferreira voferreira left a comment

Choose a reason for hiding this comment

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

Good job! Nice that you implemented the models separately (2 prs) and also took the time to do a theory guide on it. I would change a bit the architecture here to reduce the amount of repeated code, but we already talked about this. Let me know what you have decided and I will give it a read again when you have the final version.

doc/source/theory/dem/dem.rst Show resolved Hide resolved
doc/source/theory/dem/dem.rst Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
doc/source/theory/dem/dem.rst Outdated Show resolved Hide resolved
include/dem/particle_particle_contact_force.h Show resolved Hide resolved
include/dem/particle_particle_contact_force.h Show resolved Hide resolved
include/dem/particle_wall_contact_force.h Show resolved Hide resolved
source/core/parameters_lagrangian.cc Show resolved Hide resolved
source/dem/particle_wall_dmt_force.cc Show resolved Hide resolved
@OGaboriault OGaboriault force-pushed the dem_DMT_force_model branch from 09c280f to 100de8a Compare March 6, 2024 20:31
OGaboriault and others added 4 commits March 6, 2024 15:45
Applying comments

Co-authored-by: Audrey Collard-Daigneault <[email protected]>
Co-authored-by: Victor Oliveira Ferreira <[email protected]>
@blaisb blaisb requested a review from voferreira March 7, 2024 21:35
@blaisb blaisb merged commit d3ef43a into master Mar 8, 2024
8 checks passed
@blaisb blaisb deleted the dem_DMT_force_model branch March 8, 2024 22:30
M-Badri pushed a commit to M-Badri/lethe that referenced this pull request Sep 29, 2024
New feature
New DMT contact force model.
How Has This Been Tested?
Application test need to be added. I think I'm just going to use the same test as the JKR model. Coming soon
Documentation
Theory has been refactor.
Co-authored-by: Audrey Collard-Daigneault <[email protected]>
Co-authored-by: Victor Oliveira Ferreira <[email protected]>
Former-commit-id: d3ef43a
blaisb pushed a commit that referenced this pull request Sep 30, 2024
New feature
New DMT contact force model.
How Has This Been Tested?
Application test need to be added. I think I'm just going to use the same test as the JKR model. Coming soon
Documentation
Theory has been refactor.
Co-authored-by: Audrey Collard-Daigneault <[email protected]>
Co-authored-by: Victor Oliveira Ferreira <[email protected]>
Former-commit-id: d3ef43a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants