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

Add helper function to generate stress vs strain data from a flowerMD tensile test simulation #87

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

chrisjonesBSU
Copy link
Member

This PR adds a function that can be used to plot stress vs strain data, and to get a Young's Modulus. I'm still a bit unsure how to best handle the averaging/sampling if the tensile test simulation involves running fo some period between box updates.

Right now, the options are to sample stress from the last half of the period, or to try some boot-strap sampling from the period.

I'm not saying either of these are correct, but I wanted to open this PR to begin a discussion on how to best get pressure/stress averages from tensile test simulations.

@chrisjonesBSU chrisjonesBSU added the WIP Work in progress label Mar 28, 2024
if bootstrap_sampling:
n_data_points = len(stress)
n_samples = 5
window_size = n_data_points // 5

Choose a reason for hiding this comment

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

probably want n_samples in our denominator here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants