Git Product home page Git Product logo

pythinfilm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

calculatechen

pythinfilm's Issues

Using solvent_delete error

[INFO] - Running solvent_evaporation simulation #1
Traceback (most recent call last):
File "/root/anaconda3/bin/pytf", line 8, in
sys.exit(cli())
^^^^^
File "/root/anaconda3/lib/python3.11/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.11/site-packages/PyThinFilm/pytf.py", line 30, in cli
main(config, debug)
File "/root/anaconda3/lib/python3.11/site-packages/PyThinFilm/pytf.py", line 17, in main
while deposition.cycle():
^^^^^^^^^^^^^^^^^^
File "/root/anaconda3/lib/python3.11/site-packages/PyThinFilm/deposition.py", line 195, in cycle
self.solvent_delete()
File "/root/anaconda3/lib/python3.11/site-packages/PyThinFilm/deposition.py", line 561, in solvent_delete
thresh = del_config["density_thresh"]
~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'density_thresh'

Overhead distance warning

Add a warning that the specified over-head void space is insufficient based on: overhead void hight < insertion hight + (molecule's longest dimension) / 2

Centralise rotation origin of inserted molecules

When molecules are inserted, they are rotated to a random orientation around their origin, but that origin could be anywhere relative to the molecule, leading to the possibility that it overlaps the z boundary and clips into the electrode, and also making it more difficult to place multiple molecules in such a way that they don't overlap.

This can be fixed by shifting the origin of inserted molecules to be their geometric centre before they are inserted and rotated. Doing this calculation would also give the spatial extents of the molecule with little extra effort, meaning the z dimension of the simulation box could be set automatically based on a "minimum gap between the highest possible inserted atom and the top of the box" parameter, which can probably be given a sane default. A manual override for the z dimension would also be useful in some cases though (eg. simulations where some deposited molecules could bounce back up, or solvent evaporation simulations).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.