StackingFaultStatic
Calculation class
- class StackingFaultStatic(model=None, name=None, params=None, **kwargs)
Bases:
iprPy.calculation.Calculation.Calculation
Class for managing stacking fault energy calculations
- cdcsquery(**kwargs)
Builds a CDCS-style query based on kwargs values for the record style.
- Parameters
**kwargs (any) – Any extra query terms that are universal for all calculations or associated with one of the calculation’s subsets.
- Returns
The CDCS-style query.
- Return type
- property gsf_displacement
Difference in planar displacement between reference and defect systems
- Type
- isvalid()
Looks at the set atttributes to determine if the associated calculation would be a valid one to run.
- Returns
True if element combinations are valid, False if not.
- Return type
- master_prepare_inputs(branch='main', **kwargs)
Utility method that build input parameters for prepare according to the workflows used by the NIST Interatomic Potentials Repository. In other words, transforms inputs from master_prepare into inputs for prepare.
- Parameters
branch (str, optional) – Indicates the workflow branch to prepare calculations for. Default value is ‘main’.
**kwargs (any) – Any parameter modifications to make to the standard workflow prepare scripts.
- Returns
params – The full set of prepare parameters based on the workflow branch
- Return type
- metadata()
Generates a dict of simple metadata values associated with the record. Useful for quickly comparing records and for building pandas.DataFrames for multiple records of the same style.
- mongoquery(**kwargs)
Builds a Mongo-style query based on kwargs values for the record style.
- Parameters
**kwargs (any) – Any extra query terms that are universal for all calculations or associated with one of the calculation’s subsets.
- Returns
The Mongo-style query.
- Return type
- pandasfilter(dataframe, **kwargs)
Parses a pandas dataframe containing the subset’s metadata to find entries matching the terms and values given. Ideally, this should find the same matches as the mongoquery and cdcsquery methods for the same search parameters.
- Parameters
dataframe (pandas.DataFrame) – The metadata dataframe to filter.
kwargs (any) – Any extra query terms that are universal for all calculations or associated with one of the calculation’s subsets.
- Returns
True for each entry where all filter terms+values match, False for all other entries.
- Return type
pandas.Series of bool
- process_results(results_dict)
Processes calculation results and saves them to the object’s results attributes.
- Parameters
results_dict (dict) – The dictionary returned by the calc() method.
- set_values(name=None, **kwargs)
Set calculation values directly. Any terms not given will be set or reset to the calculation’s default values.
- Parameters
name (str, optional) – The name to assign to the calculation. By default, this is set as the calculation’s key.
a1 (float, optional) – The fractional shift to make along the a1 shift vector.
a2 (float, optional) – The fractional shift to make along the a2 shift vector.
**kwargs (any, optional) – Any keyword parameters supported by the set_values() methods of the parent Calculation class and the subset classes.