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

Unit tests #2

Open
drladiges opened this issue Sep 30, 2019 · 3 comments
Open

Unit tests #2

drladiges opened this issue Sep 30, 2019 · 3 comments

Comments

@drladiges
Copy link
Contributor

drladiges commented Sep 30, 2019

Tests can be found under /exec/tests subdir.
RFD (/tests/RFDanalysis):
Run with rfd_tog on and off, analyse particle distribution using Mathematica file. PASSED.

periodic electrostatic (/tests/electroPeriodic):
Run using input file and results for various particle positions will print out

  • force between two particles across x boundary between two boxes, within p3m range: PASSED
  • force between two particles across x boundary in same box, within p3m range: PASSED
  • force between two particles in opposite periodic corners, within p3m range: MAYBE, ~6% error?
  • force between two particles across x boundary between two boxes, outside p3m range: PASSED, ~2.3% error
@drladiges
Copy link
Contributor Author

drladiges commented Oct 1, 2019

electrostatic with zero potential walls on y boundaries (/tests/electroTwoWall):
Run using input file and results for various particle positions will print out

-force between two particles across x boundary between two boxes, outside p3m range: MAYBE, 4% error.
-force between two particles across x boundary between two boxes, within p3m range of each other, marginally outside p3m range of wall: MAYBE, 5.1% error in component pointing to wall.
-force between two particles across x boundary between two boxes, within p3m range of each other, further outside p3m range of wall: PASSED, 2.4% error in component pointing to wall.
-force between two particles across x boundary between two boxes, within p3m range of each other and wall, but not with partner's image charge: PASSED, 2.4% error.
-force between two particles across x boundary between two boxes, within p3m range of each other and wall, including partner's image charge: PASSED, 2.4% error.
-force between two particles across periodic, within p3m range of each other and wall, including partner's image charge: PASSED, 2.4% error.
-force between two particles across periodic, within p3m range of each other and wall, but not with partner's image charge: PASSED, 1.6% error.

@drladiges
Copy link
Contributor Author

force spreading with slip and no slip y boundaries (/tests/boundarySpreading):
Run using slip and no slip input files, total force in valid regions is printed out and compared to expected result.

-force spread in free space - PASSED
-force spread in center of box face near y=0 wall - PASSED
-force spread on box edge near y=0 wall, z=0 periodic - PASSED
-force spread on box corner near y=0 wall, z=0 periodic, and x=dom/2 box interface - PASSED

@drladiges
Copy link
Contributor Author

NEED TO UPDATE THESE TO USE NEW PARTICLE INDEXING!

drladiges pushed a commit that referenced this issue Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant