pyHarm¶
The pyHarm package is the core of pyHarm. It contains every modules and subpackages for pyHarm to be runnning an analysis.
Submodules¶
- pyHarm.Analysis
- pyHarm.BaseUtilFuncs
- pyHarm.CoordinateSystem
- pyHarm.Correctors
- pyHarm.DofGrabber
- pyHarm.DynamicOperator
- pyHarm.Elements
- pyHarm.Exporter
- pyHarm.KinematicConditions
- pyHarm.Logger
- pyHarm.Maestro
- pyHarm.NonLinearSolver
- pyHarm.Predictors
- pyHarm.Reductors
- pyHarm.Solver
- pyHarm.StepSizeRules
- pyHarm.StopCriterion
- pyHarm.Substructures
- pyHarm.Systems
- pyHarm._admin_funcs
- pyHarm._config
- pyHarm._kernel_state
- pyHarm._version
Attributes¶
Classes¶
Class that reads and launches the pyHarm analysis contained in the provided input file. |
Functions¶
|
|
|
|
|
Package Contents¶
- pyHarm.__version__¶
- pyHarm.__package_name__ = 'pyHarm'¶
- pyHarm.init_kernel_state(pid, uuid: str, datetime: init_kernel_state.datetime)¶
- pyHarm.add_extension_to_kernel_state(pid, loaded_ext)¶
- pyHarm.read_extension_from_kernel_state(pid)¶
- pyHarm._load_extensions(extension_config: dict[str, list[str]], verbose: bool = True)¶
- pyHarm.__pyHarm_kernel_PID__¶
- pyHarm.__pyHarm_kernel_UUID__ = ''¶
- pyHarm.__pyHarm_kernel_DATETIME__¶
- pyHarm.__pyHarm_kernel_config__¶
- class pyHarm.Maestro(idata: dict)¶
Class that reads and launches the pyHarm analysis contained in the provided input file.
The class is in charge of reading the input file and build the system and the analysis that are requested by the input file. The class is in charge of loading the plugins beforehand if some plugins are requested by the input file. When operated, the class runs a loop over the analysis required and solve them.
- Parameters:
idata (dict) – input dictionary describing all the necessary component (analysis, system composition).
- default¶
- uuid = ''¶
- inputData¶
- exporter¶
- system¶
- nls¶
- operate(x0=None, **kwargs)¶
Loops over the analysis and runs the Solve method associated with the analysis.
- Parameters:
x0 (None | np.ndarray | str) – initial point from which running the analysis.
kwargs – additional keyword arguments.
- getIndex(sub: str, node: int, dir_num: int) numpy.ndarray¶
From a substructure name, a node number, and a direction; returns the index of the required dof into the explicit dof vector of the system.
- Parameters:
sub (str) – name of the substructure.
node (int) – node number.
dir_num (int) – direction number.
- Returns :
np.ndarray : sorted array of the dof index associated with the input in the explicit dof DataFrame of the system.