Skip to content

Conversation

@Stephen-Armstrong
Copy link
Contributor

@Stephen-Armstrong Stephen-Armstrong commented Jan 21, 2021

Thank you for your contribution to rustBCA!

Before submitting this PR, please make sure you have:

Fixes # (issue)

Description

Please include a concise description of the change and how it addresses a relevant issue, including references, input files, and figures as relevant.

There is an added Python script called create_mesh2D.py. The script allows with simple commands to create a mesh2D object that contains all of the information required to print to a RustBCA input file and to put the information save the information in the .toml format of RustBCA. Includes functions to create N-gons, rectangles, and triangles.

Tests

Please describe how the changes in this pull request have been tested, including system information such as OS.
Windows 10. Replicated the boron nitride example with a similar number of triangles.

Stephen-Armstrong and others added 14 commits January 19, 2021 19:30
This file creates a Mesh2D set of triangles. Converts more familiar user inputs to the specific type of inputs needed for RustBCA
removed extraneous imports, made changing the number of floats displayed for numpy arrays easier
moved the commented out test code for seeing the example triangles to the bottom and wrote a description for it.
Added what is returned to each of the function descriptions
values are now output with ending zeros as RustBCA wants
added triangle and rectangle specific functions.
removed unneeded type checks in __init__.
added descriptions to triangle and rectangle functions
clarified a description
Added check that x and y min are less than x and y max
removed unnneeded import statements.
fixed misspelling of energy
tested multiploygon shapes
Added timeit to see how long it takes to create mesh.
Added a particle species creator for the input file in python.
Removed some print statements in create_mesh2D and ran tests for a copper 50x50 micron ship
Removed custom function to make everything have ending zeros for toml. Now uses the toml encoder keyword
@drobnyjt
Copy link
Collaborator

@Stephen-Armstrong I'm ready to close this and add the script if you think it's good to go

@Stephen-Armstrong
Copy link
Contributor Author

I think it's good to go!

@drobnyjt drobnyjt closed this Feb 24, 2021
@drobnyjt drobnyjt reopened this Feb 24, 2021
@drobnyjt drobnyjt merged commit 0f2c977 into lcpp-org:master Feb 24, 2021
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

Successfully merging this pull request may close these issues.

3 participants