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

New contact module, Surface base class and tests #281

Merged
merged 33 commits into from
Aug 7, 2023

Conversation

Ali-7800
Copy link
Collaborator

@Ali-7800 Ali-7800 commented Jul 18, 2023

First contact module PR. Contact module will be used for contact between system_type objects (rods and rigid bodies) and allowed_contact_type objects (rods, rigid bodies and surfaces). This PR includes:

  • Surface base class, which will be used to derive planes and mesh surfaces.
  • NoContact base class, which will be used to derive all the other contact classes.
  • Contact module, as described before.
  • Contact module Tests, based on connections module test.
  • Small correction to connections module test.

dependabot bot and others added 3 commits May 23, 2023 07:13
Bumps [requests](https://github.com/psf/requests) from 2.30.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](psf/requests@v2.30.0...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
…ced to check whether the default connection indices are None
@Ali-7800 Ali-7800 added enhancement New feature or request prio:high Priority level: high labels Jul 18, 2023
@Ali-7800 Ali-7800 self-assigned this Jul 18, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Patch coverage: 94.64% and project coverage change: +0.11% 🎉

Comparison is base (7c6a2a3) 93.60% compared to head (44942a7) 93.71%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@               Coverage Diff                @@
##           update-0.3.2     #281      +/-   ##
================================================
+ Coverage         93.60%   93.71%   +0.11%     
================================================
  Files                44       48       +4     
  Lines              3000     3055      +55     
  Branches            347      354       +7     
================================================
+ Hits               2808     2863      +55     
  Misses              155      155              
  Partials             37       37              
Files Changed Coverage Δ
elastica/modules/__init__.py 100.00% <ø> (ø)
elastica/contact_forces.py 87.50% <87.50%> (ø)
elastica/modules/contact.py 95.23% <95.23%> (ø)
elastica/modules/base_system.py 94.11% <100.00%> (ø)
elastica/surface/__init__.py 100.00% <100.00%> (ø)
elastica/surface/surface_base.py 100.00% <100.00%> (ø)
elastica/typing.py 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@armantekinalp armantekinalp left a comment

Choose a reason for hiding this comment

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

Some minor changes.

elastica/modules/contact.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Show resolved Hide resolved
tests/test_modules/test_contact.py Outdated Show resolved Hide resolved
@armantekinalp
Copy link
Contributor

  • correction in test_connections

@Ali-7800 also can you improve the PR description. It is not clear right now.

Copy link
Contributor

@armantekinalp armantekinalp left a comment

Choose a reason for hiding this comment

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

Some comments

elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
poetry.lock Outdated Show resolved Hide resolved
tests/test_modules/test_contact.py Outdated Show resolved Hide resolved
tests/test_modules/test_contact.py Outdated Show resolved Hide resolved
Copy link
Contributor

@armantekinalp armantekinalp left a comment

Choose a reason for hiding this comment

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

Just one small comment. looks good

elastica/contact_forces.py Outdated Show resolved Hide resolved
@bhosale2 bhosale2 added this to the Version 0.3.2 milestone Aug 1, 2023
elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
tests/test_modules/test_connections.py Outdated Show resolved Hide resolved
tests/test_modules/test_contact.py Outdated Show resolved Hide resolved
@Ali-7800 Ali-7800 requested a review from bhosale2 August 2, 2023 08:14
elastica/contact_forces.py Outdated Show resolved Hide resolved
@Ali-7800 Ali-7800 requested a review from skim0119 August 6, 2023 02:38
Copy link
Collaborator

@bhosale2 bhosale2 left a comment

Choose a reason for hiding this comment

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

Minor stuff

elastica/contact_forces.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
elastica/modules/contact.py Outdated Show resolved Hide resolved
@Ali-7800 Ali-7800 requested a review from bhosale2 August 7, 2023 02:44
Copy link
Collaborator

@bhosale2 bhosale2 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@skim0119 skim0119 left a comment

Choose a reason for hiding this comment

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

LGTM

@armantekinalp armantekinalp merged commit fd62afa into GazzolaLab:update-0.3.2 Aug 7, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request prio:high Priority level: high
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants