itasca Module

Itasca module.

itasca Module Functions

itasca.command(command: string) → None.

Issue a command.

itasca.cycle() → int.

Get the cycle number.

itasca.deterministic() → bool.

Get the deterministic mode. In deterministic mode, all model runs starting with identical initial conditions result in identical solutions at the cost of a > 20% reduction in performance. In nondeterministic mode, on the other hand, identical initial conditions may lead to divergent solutions. The divergence is due only to the order of summation, and all solutions are equally valid to machine precision.

itasca.dim() → int.

Get the code dimensionality.

itasca.dockWidget(window name: string, dock location: string, add close controls: bool) → Pointer to QDockWidget.

Return a pointer to an empty QDockWidget with the specified attributes. One must use shiboken.wrapInstance to access the QDockWidget class through PySide bindings.

itasca.domain_condition(value: string) → string.

Get the domain condition given a domain direction. Acceptable values are {‘x’ or ‘y’ in 2D; ‘x’, ‘y’ or ‘z’ in 3D}.

itasca.domain_max() → vec.

Get domain upper bound (vector).

itasca.domain_max_x() → float.

Get the x-component of domain upper bound.

itasca.domain_max_y() → float.

Get the y-component of domain upper bound.

itasca.domain_max_z() → float.

Get the z-component of domain upper bound.

itasca.domain_min() → vec.

Get domain lower bound (vector).

itasca.domain_min_x() → float.

Get the x-component of domain lower bound.

itasca.domain_min_y() → float.

Get the y-component of domain lower bound.

itasca.domain_min_z() → float.

Get the z-component of domain lower bound.

itasca.domain_srate() → vec.

Get domain strain rate (vector).

itasca.domain_srate_x() → float.

Get the x-component of domain strain rate.

itasca.domain_srate_y() → float.

Get the y-component of domain strain rate.

itasca.domain_srate_z() → float.

Get the z-component of domain strain rate.

itasca.fos() → float.

Get the factor of safety.

itasca.gravity() → vec.

Get the gravity (vector).

itasca.gravity_x() → float.

Get the x-component of the gravity.

itasca.gravity_y() → float.

Get the y-component of the gravity.

itasca.gravity_z() → float.

Get the z-component of the gravity.

itasca.mainWindow() → QMainWindow.

Get the string pointer address of the QMainWindow.

itasca.mech_age() → float.

Return the accumulated mechanical time.

itasca.remove_callback(function_name: str, call_point: float or str) → None.

Remove a python function from the callback system. The first argument is the string name of a function and the second argument can either be a float (which gives the location in the cycling sequence) or a string corresponding to one of the pre-defined callback events.

itasca.set_callback(function_name: str, call_point: float or str) → None.

Register a python function to be called during the cycling sequence. The first argument is the string name of a function and the second argument can either be a float (which gives the location in the cycling sequence) or a string corresponding to one of the pre-defined callback events. A function of the given name should exist in the __main__ python namespace and should be callable with any number of arguments.

itasca.set_deterministic(value: bool) → None.

Set the deterministic mode. In deterministic mode, all model runs starting with identical initial conditions result in identical solutions at the cost of a > 20% reduction in performance. In nondeterministic mode, on the other hand, identical initial conditions may lead to divergent solutions. The divergence is due only to the order of summation, and all solutions are equally valid to machine precision.

itasca.set_domain_condition(direction: string, condition: string) → None.

Set the domain condition for a given domain direction. Acceptable values of the domain direction are {‘x’ or ‘y’ in 2D; ‘x’, ‘y’ or ‘z’ in 3D}. Acceptable conditions are ‘destroy’, ‘periodic’, ‘reflect’ and ‘stop’.

itasca.set_domain_max(value: vec) → None.

Set domain upper bound (vector).

itasca.set_domain_max_x(value: float) → None.

Set the x-component of domain upper bound.

itasca.set_domain_max_y(value: float) → None.

Set the y-component of domain upper bound.

itasca.set_domain_max_z(value: float) → None.

Set the y-component of domain upper bound.

itasca.set_domain_min(value: vec) → None.

Set domain lower bound (vector).

itasca.set_domain_min_x(value: float) → None.

Set the x-component of domain lower bound.

itasca.set_domain_min_y(value: float) → None.

Set the y-component of domain lower bound.

itasca.set_domain_min_z(value: float) → None.

Set the y-component of domain lower bound.

itasca.set_domain_srate(value: vec) → None.

Set domain strain rate (vector).

itasca.set_domain_srate_x(value: float) → None.

Set the x-component of domain strain rate.

itasca.set_domain_srate_y(value: float) → None.

Set the y-component of domain strain rate.

itasca.set_domain_srate_z(value: float) → None.

Set the y-component of domain strain rate.

itasca.set_gravity(value: vec) → None.

Set the gravity (vector).

itasca.set_gravity_x(value: float) → None.

Set the x-component of the gravity.

itasca.set_gravity_y(value: float) → None.

Set the y-component of the gravity.

itasca.set_gravity_z(value: float) → None.

Set the y-component of the gravity.

itasca.set_threads(value: int) → None.

Set the number of threads.

itasca.state_callbacks() → dict {any: tuple of str}.

Return a dictionary of the currently defined Python new, save and restore callback events. The return value is a dictionary, the keys are the callback points and the values are tuples of Python function names given as strings.

itasca.threads() → int.

Get the number of threads.

itasca.timestep() → float.

Get the global timestep.

Sub-modules