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

Easier initial guess for acceleration in dynamics. #1230

Merged
merged 5 commits into from
Sep 30, 2024

Conversation

tupek2
Copy link
Collaborator

@tupek2 tupek2 commented Sep 11, 2024

Sometimes the initial acceleration guess results in element inversion. This change defaults the guess to 0.0, which is more robust in a challenging problem, but could potentially be slower for some kinds of problems.

d2u_dt2 = state_.d2u_dt2;
d2u_dt2.SetSubVector(constrained_dofs, 0.0);
d2U_dt2_.SetSubVectorComplement(constrained_dofs, 0.0);
// d2U_dt2_.SetSubVectorComplement(constrained_dofs, 0.0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks good. Why not remove the commented line?

tests Outdated
Copy link
Collaborator Author

@tupek2 tupek2 Sep 27, 2024

Choose a reason for hiding this comment

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

@chapman39 Is there a reason why these tests need to be in a submodule? I find it nice to always have code and tests update together in the same repo, when possible. Also, I have no idea if I even did this submodule thing correctly.

Copy link
Member

Choose a reason for hiding this comment

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

The tests are in a submodule so that if the repo gets large with all the data that builds up, it can be cleaned out w/o having to alter the history of the serac repo. This has happened on all simulation codes I've been on

@tupek2
Copy link
Collaborator Author

tupek2 commented Sep 27, 2024

/style

@tupek2
Copy link
Collaborator Author

tupek2 commented Sep 27, 2024

/style

@tupek2 tupek2 added the ready for review Ready for active inspection by reviewers label Sep 30, 2024
@tupek2 tupek2 merged commit a830718 into develop Sep 30, 2024
2 checks passed
@tupek2 tupek2 deleted the tupek/initial_acceleration branch November 1, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Ready for active inspection by reviewers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants