-
Notifications
You must be signed in to change notification settings - Fork 0
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
Include mass weigthing for VP for average mapping scheme #1
base: main
Are you sure you want to change the base?
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.
I added a few things such as inclusion of masses into the routine. Also changed the variable names to resemble more physical quantities.
The biggest thing is if the masses need to be weighted by their mapping_matrix component. I added a new commit to do this but see if it makes sense
@@ -26,6 +26,7 @@ def __init__( | |||
n_beads: int = 2, | |||
volume: float = 10, | |||
mapping: str = "slice", | |||
masses: np.ndarray = None, |
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 it would be appropriate to have a mass index in case beads are not all the same
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 agree. I just find it confusing, that they keyword "None" actually corresponds to an array of ones.
I was a little distracted the last few days. Sorry about that. I agree with most of the changes you made. I also made a little adjustment to the mass calculation of a CG bead. I used the one defined by Noid in Eq. 29 in the MS-CG I paper. They write that this equation has to be fulfilled by a CG model which is consistent with a refrence model. Having said that, it changes the absolute value of the vibrational power, but the same optimal mapping scheme gets identified as with your previous calculation. |
Title says it all