geom.classes.input_class
Classes
Manages user-defined parameters for geometric transformations and structure generation. |
Module Contents
- class geom.classes.input_class.input_class[source]
Manages user-defined parameters for geometric transformations and structure generation.
This class stores user inputs related to translation, rotation, structure creation, and other transformations for metal nanoparticles and graphene structures.
- - Transformation Flags
Enable operations such as translation, rotation, mirroring, and structure generation.
- - Geometry Files
Stores input filenames for molecular structures.
- - Translation & Rotation
Contains direction, distances, angles, and axis information.
- - Structure Generation
Flags and parameters for generating different nanostructures.
- - Miscellaneous
Handles alloy composition, verbosity settings, and file extensions.
Notes
The full list of attributes is initialized in __init__().
Methods validate inputs, read data, and apply transformations.
- check_input_case()[source]
Validates and checks input requirements for selected operations.
- Returns:
Performs necessary checks and raises errors if conditions are not met.
- Return type:
None
Notes
Ensures input files exist before processing.
Checks file extensions for validity.
Validates direction axis input.
Ensures selected operations are correctly configured.
- read_input(what)[source]
Reads an input file containing distances or angles.
- Parameters:
what (str) – Specifies whether to read ‘distances’ or ‘angles’.
- Returns:
Populates the respective list attribute (self.distances or self.angles).
- Return type:
None
- Raises:
RuntimeError – If a blank line or multiple values are found in a single line.
Notes
Reads a file line by line and converts values to floats.
Ensures valid input formatting before processing.