Skip to content

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