Tools for coupled loads analysis

Collection of tools used for CLA - coupled loads analysis

Class for defining data recovery categories

DR_Def([defaults])

Data recovery definitions.

DR_Def.add(*, name, labels[, active, drms, ...])

Adds a data recovery category.

DR_Def.addcat(func)

Decorator to ensure add() is called to add category.

DR_Def.add_0rb(*args)

Add zero-rigid-body versions of selected categories.

DR_Def.amend(*, name[, overwrite_drms])

Amend a category

DR_Def.copycat(categories, name_addon, **kwargs)

Copy a category with optional modifications.

DR_Def.excel_summary([excel_file])

Make excel file with summary of data recovery information.

DR_Def.merge(first, *args)

Merge DR_Def instances together to make a new instance

Class for getting data recovery ready for running a specific event

DR_Event()

Setup data recovery for a specific event or set of modes.

DR_Event.add(nas, drdefs[, uf_reds, method])

Add data recovery definitions for an event or set of modes.

DR_Event.set_dr_order(cats, where)

Set a new data recovery order

DR_Event.prepare_results(mission, event)

Returns an instance of the DR_Results class.

DR_Event.apply_uf(sol, m, b, k, nrb, rfmodes)

Applies the uncertainty factors to the modal ODE solution

DR_Event.frf_apply_uf(sol, nrb)

Applies the uncertainty factors to the frequency response functions (FRFs).

DR_Event.get_Qs()

Get list of all unique Q's used for SRS in all categories

Class for storing and working with CLA results

DR_Results

Subclass of collections.OrderedDict that contains data recovery results

DR_Results.add_maxmin(cat, mxmn, maxcase[, ...])

Add maximum and minimum values from an external source

DR_Results.all_base_events([top_level_name])

A generator for looping over all base events

DR_Results.all_nonbase_events([top_level_name])

A generator for looping over all non-base events

DR_Results.all_categories()

A generator for looping over all data recovery categories

DR_Results.calc_ext()

Calculate the .ext attribute from the .mx and .mn attributes

DR_Results.calc_stat_ext(k)

Calculate statistical extreme response for event results

DR_Results.delete_data(attributes[, pathfunc])

Recursively deletes data from DR_Results structure

DR_Results.delete_extreme()

Delete any 'extreme' entries

DR_Results.form_extreme([ext_name, ...])

Form extreme response over sets of results

DR_Results.frf_data_recovery(sol, nas, case, ...)

Frequency response data recovery function

DR_Results.init(Info, mission, event[, cats])

Build initial results data structure.

DR_Results.init_extreme_cat(cases, oldcat[, ...])

Initialize an "extrema" data recovery category

DR_Results.merge(results_iter[, rename_dict])

Merge CLA results together into a larger DR_Results hierarchy.

DR_Results.psd_data_recovery(case, DR, n, j)

PSD data recovery function

DR_Results.resp_plots(*[, event, drms, ...])

Make time or frequency domain responses plots.

DR_Results.rptext([event, drms, direc, ...])

Writes .ext files for all max/min results.

DR_Results.rptpct(refres[, names, event, ...])

Write comparison files for all max/min data in results.

DR_Results.rpttab([event, drms, direc, ...])

Write results tables with bin count information.

DR_Results.solvepsd(nas, case, DR, fs, ...)

Solve equations of motion in frequency domain with PSD forces

DR_Results.split()

Split results apart into a new DR_Results structure

DR_Results.srs_plots(*[, event, Q, drms, ...])

Make SRS plots with optional printing to .pdf or .png files.

DR_Results.strip_hists()

Strips out response histories and non-extreme srs data

DR_Results.time_data_recovery(sol, nas, ...)

Time-domain data recovery function

Utility routines

apply_uf(sol, uf_reds, m, b, k, nrb, rfmodes)

Applies the uncertainty factors to the modal ODE solution

extrema(curext, mm, maxcase[, mincase, casenum])

Update extrema values in 'curext'

freq3_augment(freq1, lam[, tol])

Mimic Nastran's FREQ3 augmentation of a frequency vector.

get_drfunc(filename, funcname[, get_psd])

Get data recovery function(s)

get_marker_cycle()

Return an itertools.cycle of plot markers.

magpct(M1, M2, *[, Ref, ismax, symbols, ...])

Plot percent differences in two sets of values vs magnitude.

maxmin(response, x)

Compute max & min of a response matrix.

mk_plots(res, *[, event, issrs, Q, drms, ...])

Make SRS or response history plots

nan_absmax(v1, v2)

Get absolute maximum values between v1 and v2 while retaining signs and ignoring NaNs.

nan_argmax(v1, v2)

Find where v2 is greater than v1 ignoring NaNs.

nan_argmin(v1, v2)

Find where v2 is less than v1 ignoring NaNs.

PrintCLAInfo(mission, event)

Print CLA event info, typically for the log file

PSD_consistent_rss(resp, xr, yr, rr, freq, ...)

Compute phase-consistent (time-correlated) root-sum-square (RSS) responses in a PSD analysis; each RSS is of two rows.

relative_displacement_dtm(nas, node_pairs)

Form relative displacements data recovery matrix

rptext1(res, filename[, title, doabsmax, ...])

Writes .ext file for max/min results.

rptpct1(mxmn1, mxmn2, filename, *[, title, ...])

Write a percent difference report between 2 sets of max/min data

rpttab1(res, filename, title[, ...])

Write results tables with bin count information.

Notes: