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
Carvallo whipple doc example #442
Merged
moorepants
merged 36 commits into
pydy:master
from
moorepants:carvallo-whipple-doc-example
Oct 22, 2020
Merged
Carvallo whipple doc example #442
moorepants
merged 36 commits into
pydy:master
from
moorepants:carvallo-whipple-doc-example
Oct 22, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I found one major error in the definition of the rear wheel center velocity. I was using the same definition from my dissertation which assumed that no is the origin and dn is moving wrt to no through q1 and q2. But I think, not quite sure, that when you set the rear wheel contact point as the origin you have to account for the velocity components due to rear wheel rate and pitch rate. Making that change, which matches Gilbert's version, gets the ode eval very close to Basu-Mandal numbers. I just have a small error at this point. I'm also still getting a singular matrix on the ode function generator (this may be a larger problem or misunderstanding as I see it too often in other problems).
Conflicts: examples/bicycle/whipple.py
…the final equations of motion.
…results as KanesMethod.
…effs is equivalent.
… and calling numpy 's solver.
This is based off the whipple.py. The simulation works and is stable. I get divide by zeros and nan's if the initial conditions are zero. The small epsilon I added in place of the zero initial conditions worked for 1e-12 but not 1e-10 and 1e-14. Not sure why either of these issues occur. But at least this is a basic working example and a starting point for investigating more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is the same as #122 but extracts the new documentation example from the old style example. I wanted to maintain the commits and separate from the other example that needs more work for its purpose. Both PRs will eventually be merged.
Example
notebooks, the version information
extension is helpful
for this.)
run.py
file that executes the example is included.