-
Notifications
You must be signed in to change notification settings - Fork 63
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
Dem volume insertion initial velocities #1078
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure there are no examples that use this ? I am thinking about the particle bouncing on a wall one. Can you double check that no examples are affected? Otherwise, all good for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Only one comment about the insertion_info, but nothing special.
double vel_x = dem_parameters.insertion_info.initial_vel[0]; | ||
double vel_y = dem_parameters.insertion_info.initial_vel[1]; | ||
double vel_z = dem_parameters.insertion_info.initial_vel[2]; | ||
double omega_x = dem_parameters.insertion_info.initial_ang_vel[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the new parameter name, but I think I would rather keep dem_parameters.insertion_info.omega[0]
, because the rest of the code uses omega. Otherwise it is all clear to me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, and you don't need initial
, since this is insertion info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the initial
is useful. This way, there's not confusion with the velocity at a given time step.
I can do initial_omega
. I agree, omega
is more coherent with the rest of code.
What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I tend to prefer long meaningful names instead of confusing abbreviations, but in this case I found it slightly redundant, hence, not necessary. This is not a strong opinion, though. So this is really up to you :)
Ohh shoot, did not see the comments before the merge. You can fix them in a secondary quick PR @OGaboriault |
Description of the problem This is a follow up from Victor's comment from PR [Dem volume insertion box parameters chaos-polymtl#1074 The initial velocity and initial angular velocity are now define with one parameter each. Really quick PR. No example or application test (except for one) was using those parameters. Former-commit-id: 698b063
Follow-up to PR chaos-polymtl#1078 ... Former-commit-id: 13e9dcb
Description of the problem This is a follow up from Victor's comment from PR [Dem volume insertion box parameters #1074 The initial velocity and initial angular velocity are now define with one parameter each. Really quick PR. No example or application test (except for one) was using those parameters. Former-commit-id: 698b063
Description of the problem
The initial velocity and initial angular velocity are now define with one parameter each.
Really quick PR.
No example or application test (except for one) was using those parameters.