DislocationSDVPN
Calculation class
- class DislocationSDVPN(model=None, name=None, params=None, **kwargs)
Bases:
iprPy.calculation.Calculation.Calculation
Class for managing semi-discrete variational Peierls-Nabarro calcuations
- 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
- 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
- property normalizedisreg
Flag indicating if the total cumulative disregistry is normalized to the Burgers vector
- 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.
xnum (int, optional) – The number of x coordinates to use.
xmax (flaot, optional) – The maximum x coordinate to use.
xstep (float, optional) – The step size to use between the x coordinates.
xscale (bool, optional) – Flag indicating if xmax and/or xstep values are to be taken as absolute or relative to ucell’s a lattice parameter.
minimize_style (str, optional) – The scipy.minimize style to use.
minimize_options (dict, optional) – kwarg options to pass to scipy.minimize.
minimize_cycles (int, optional) – The number of mimimization cycles to perform.
cutofflongrange (float, optional) – The cutoff to use for the longrange energy term.
tau (array-like object, optional) – The applied stress values to use.
alpha (list, optional) – The non-local correction parameters to use.
beta (array-like object, optional) – The surface correction parameters to use.
cdiffelastic (bool, optional) – Flag if central difference is used for the elastic term.
cdiffsurface (bool, optional) – Flag if central difference is used for the surface term.
cdiffstress (bool, optional) – Flag if central difference is used for the stress term.
halfwidth (float, optional) – An initial arctan halfwidth guess.
normalizedisreg (bool, optional) – Flag indicating if the disregistry is normalized to the Burgers vector.
fullstress (bool, optional) – Flag that determines which stress term expression is used.
**kwargs (any, optional) – Any keyword parameters supported by the set_values() methods of the parent Calculation class and the subset classes.