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 a separate function for the influence function #143

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

kaipartmann
Copy link
Owner

This does not solve #98 but makes it much easier to add a public API in the future. And for now, the function influence function can be redefined manually:

using Peridynamics

# redefinition of the internal function for OSBMaterial
@inline function Peridynamics.influence_function(::OSBMaterial, params::OSBPointParameters, L::Float64)
    return 1 + params.δ / L
end

# run a simulation with OSBMaterial here will use the redefined influence function

@kaipartmann kaipartmann added the enhancement New feature or request label Jul 4, 2024
@kaipartmann kaipartmann added this to the v0.3.0 milestone Jul 4, 2024
Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.33%. Comparing base (bc81309) to head (abbd71f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #143   +/-   ##
=======================================
  Coverage   90.32%   90.33%           
=======================================
  Files          43       43           
  Lines        3991     3995    +4     
=======================================
+ Hits         3605     3609    +4     
  Misses        386      386           

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

@kaipartmann kaipartmann merged commit ba1ab04 into main Jul 4, 2024
8 checks passed
@kaipartmann kaipartmann deleted the influence_function branch July 4, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant