Field Autocorrelation

Collapse Tensorflow Coupon Figure

Autocorrelation of Coupon Hydrodynamic Fields

Autocorrelation of Coupon Hydrodynamic Fields

Collapse Pytorch Nested Cylinder Figure

Autocorrelation of Nested Cylinder Hydrodynamic Fields

Autocorrelation of Nested Cylinder Hydrodynamic Fields


Code Documentation

Generates a heatmap plot of the 2D auto-cross-correlation-coefficients across hydrodynamic fields, averaged across multiple samples
  • Can plot all fields (-F All) or some selected fields (-F str str)

Fixed key (-XK) specifies what subset of data to consider
  • ‘None’ can be passed to consider any input with no restrictions

  • For coupon data, fixed keys must be in the form ‘tpl###’ or ‘idx#####’

  • For nested cylinder data, fixed keys must be in the form ‘id####’ or ‘idx#####’

Exports correlation coeffients as a pandas-readable .csv

Samples can be preselected and listed in a .txt file (-FL filepath) OR
Number of samples can be specified and a random selection satisfying the fixed key requirement will be made (-FL MAKE -NS #)

Input Line for Coupon Data: python field_autocorr.py -E coupon -ID ../examples/tf_coupon/data/ -F All -S ../examples/tf_coupon/figures/

Input Line for Nested Cylinder Data: python field_autocorr.py -E nestedcylinder -ID ../examples/pyt_nestedcyl/data/ -F All -S ../examples/pyt_nestedcyl/figures/

Arguments

Generates a matrix of the scalar 2D auto-cross-correlation-coefficient between hydrodymanic fields

usage: python field_autocorr.py [-h] [--EXPERIMENT] [--INPUT_DIR]
                                [--FILE_LIST] [--PRINT_FIELDS] [--PRINT_KEYS]
                                [--PRINT_SAMPLES] [--FIELDS  [...]]
                                [--FIXED_KEY] [--NUM_SAMPLES] [--SAVE_FIG]

Named Arguments

--EXPERIMENT, -E

Possible choices: coupon, nestedcylinder

Which experiment the model was trained on

Default: “coupon”

--INPUT_DIR, -ID

Directory path where all of the .npz files are stored

Default: “../examples/tf_coupon/data/”

--FILE_LIST, -FL

The .txt file containing a list of .npz file paths; use “MAKE” to generate a file list given an input directory (passed with -ID) and a number of samples (passed with -NS).

Default: “MAKE”

--PRINT_FIELDS, -PF

Prints list of hydrodynamic/radiographic fields present in a given .npz file (passed with -IN) and quits program

Default: False

--PRINT_KEYS, -PK

Prints list of choices for the fixed key avialable in a given input dirrectory (passed with -ID) and quits program

Default: False

--PRINT_SAMPLES, -PS

Prints number of samples in a directory (passed with -ID) matching a fixed key (passed with -XK) and quits program

Default: False

--FIELDS, -F

List of fields to be included; pass “none” to use an all-zero field; pass “All” to use all valid fields.

Default: [‘rho’, ‘eqps’, ‘eqps_rate’, ‘eff_stress’, ‘porosity’]

--FIXED_KEY, -XK

The identifying string for some subset of all data samples; pass “None” to consider all samples

Default: “None”

--NUM_SAMPLES, -NS

Number of samples to use; pass “All” to use all samples in a given input dirrectory (passed with -ID)

Default: “All”

--SAVE_FIG, -S

Directory to save the outputs to.

Default: “../examples/tf_coupon/figures/”