Derived Results commands#
This module contains all functions related to derived load cases and results in NaxToView.
- n2vscripting.derived.create_derived_component(name: str, formula: str, result: str) None #
Create a new derived component in the active scene.
- Parameters:
name (str) – Name of the new derived component.
formula (str) – Formula of the derived component.
result (str) – Result from which the components in the formula are taken.
Examples
>>> # Create a new derived stresses component >>> n2v.create_derived_component('MyDerivedStress', '<CMPT_STRESSES:XX>+<CMPT_STRESSES:YY>', 'STRESSES')
- n2vscripting.derived.create_derived_lc(name: str, formula: str) None #
Create a new derived load case in the active scene.
- Parameters:
name (str) – Name of the new load case.
formula (str) – Formula of the derived load case. Must follow the syntax detailed in the user’s manual.
Examples
>>> n2v.create_derived_lc('MyDerivedLC', '<LC1:FR1>+<LC2:FR1>')
- n2vscripting.derived.create_envelope(name: str, list_lcs_incr: list[tuple[int, int]], criterion: str = 'Max', all_incr: bool = False) None #
Create an envelope load case in the current view.
- Parameters:
name (str) – Name of the created envelope load case.
list_lcs_incr (list[tuple(int, int)]) – A list of load case ids to include in the envelope.
criterion (str, optional) – Criterion to use for calculating the envelope. Options available are: ‘Max’, ‘Min’, ‘ExtremeMax’, ‘ExtremeMin’ and ‘Range’. Default is ‘Max’.
all_incr (bool, optional) – Include all increments from the selected load cases in the envelope. Default: False.
Examples
>>> # Create an envelope lc from load cases 1, 2 and 3 using the Max criterion >>> n2v.create_envelope('Envelope_max', [(1, 1), (2, 1), (3, 1)], 'Max')