N2PReport#
- class NaxToPy.Core.Classes.N2PReport.N2PReport(vz_model, lc_incr: str, allincr: bool, result: str, componentssections: str, ifenvelope: bool, selection: list[N2PNode, N2PElement], sortby: str, aveSections=-1, cornerData=False, aveNodes=-1, variation=100, realPolar=0, coordsys: int = -1000, v1: tuple | ndarray = (1, 0, 0), v2: tuple | ndarray = (0, 1, 0))[source]#
Bases:
object
Class that contains the data of a report. It includes the input data: load cases, the selection (that could be a list of N2PNode or N2PElement), if envelope,… and the output data: results array asked
To create a
N2PReport
use the methodnew_report()
from theN2PModelContent
class.Example
>>> # report1 is a N2PReport >>> report1 = model.new_report("<LC1:FR1>,<LC2:FR1>", False, "DISPLACEMENTS", "<X:NONE#>,<Y:NONE#>", False, list_n2pnodes, "LC") >>> report1.calculate() >>> headers = report1.Headers >>> body = report1.Body
- to_csv(path: str) None [source]#
Method that saves the report in a csv text format in the document specified in the argument. It uses the current delimiter specified in the Windows Regional Setting.
- Parameters:
path (str) – path of the text file
- property Body: ndarray#
Returns a ndarray of strings with the results of the report asked
- property CompSections: str#
Formula with the components and it sections
- property Envelope: bool#
True if the envelope of the elements/nodes is asked
- property Headers: ndarray#
Returns a ndarray of strings with the headers
- property LC_FR: str#
Formula with the load cases and increments/frames
- property OptianlArgs: dict#
Dictionary with the values of the optional arguments: “aveSections”, “cornerData”, “aveNodes”, “variation”, “realPolar”, “coordsys”, “v1”, “v2”
- property Result: str#
Result where de components are asked
- property Selection: list[N2PNode | N2PElement]#
List of N2PNodes or N2PElement where the results for the report is asked
- property SortBy: str#
Can be “LC” if is load case shorted or “IDS” if is by id of the element/node. (“LC” means all the elements for LC1, then all elements for LC2… While “IDS” is for element1 all LC, then element2 for all LC…)