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

Vector direction #20

Open
mlund opened this issue May 12, 2021 · 0 comments
Open

Vector direction #20

mlund opened this issue May 12, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@mlund
Copy link
Owner

mlund commented May 12, 2021

If I get it correctly, with the current definition of r, the function returns the force acting on charge "b". Perhaps we could change to @brief force on charge a due to charge b? Due to a lucky cancellation of signs, we got the right force in Faunus, but it's quite easy to make mistakes. I renamed distance vectors to a_towards_b to make it very explicit what is expected.

* @param r distance-vector between charges, @f$ {\bf r} = {\bf r}_{z_B} - {\bf r}_{z_A} @f$, UNIT: [ input length ]

@mlund mlund added the enhancement New feature or request label May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant