WAVES-TUTORIAL CLI
abaqus
rectangle_geometry.py
Create a simple rectangle geometry and write an output_file
.cae Abaqus model file.
usage: abaqus cae -noGui rectangle_geometry.py -- [-h]
[--output-file OUTPUT_FILE]
[--model-name MODEL_NAME]
[--part-name PART_NAME]
[--width WIDTH]
[--height HEIGHT]
Named Arguments
- --output-file
The output file for the Abaqus model without extension. Will be appended with the required extension, e.g.
output_file
.caeDefault: “rectangle_geometry”
- --model-name
The name of the Abaqus model
Default: “rectangle”
- --part-name
The name of the Abaqus part
Default: “rectangle”
- --width
The rectangle width
Default: 1.0
- --height
The rectangle height
Default: 1.0
rectangle_partition.py
Partition the simple rectangle geometry created by rectangle_geometry.py
and write an output_file
.cae Abaqus model file.
usage: abaqus cae -noGui rectangle_partition.py -- [-h]
[--input-file INPUT_FILE]
[--output-file OUTPUT_FILE]
[--model-name MODEL_NAME]
[--part-name PART_NAME]
[--width WIDTH]
[--height HEIGHT]
Named Arguments
- --input-file
The Abaqus model file created by
rectangle_geometry.py
without extension. Will be appended with the required extension, e.g.input_file
.caeDefault: “rectangle_geometry”
- --output-file
The output file for the Abaqus model without extension. Will be appended with the required extension, e.g.
output_file
.caeDefault: “rectangle_partition”
- --model-name
The name of the Abaqus model
Default: “rectangle”
- --part-name
The name of the Abaqus part
Default: “rectangle”
- --width
The rectangle width
Default: 1.0
- --height
The rectangle height
Default: 1.0
rectangle_mesh.py
Mesh the simple rectangle geometry partitioned by rectangle_partition.py
and write an output_file
.cae Abaqus model file and output_file
.inp orphan mesh file.
usage: abaqus cae -noGui rectangle_mesh.py -- [-h] [--input-file INPUT_FILE]
[--output-file OUTPUT_FILE]
[--model-name MODEL_NAME]
[--part-name PART_NAME]
[--global-seed GLOBAL_SEED]
Named Arguments
- --input-file
The Abaqus model file created by
rectangle_geometry.py
without extension. Will be appended with the required extension, e.g.input_file
.caeDefault: “rectangle_partition”
- --output-file
The output file for the Abaqus model without extension. Will be appended with the required extension, e.g.
output_file
.caeDefault: “rectangle_mesh”
- --model-name
The name of the Abaqus model
Default: “rectangle”
- --part-name
The name of the Abaqus part
Default: “rectangle”
- --global-seed
The global mesh seed size
Default: 1.0
cubit
rectangle_geometry.py
Create a simple rectangle geometry and write an output_file
.cub Cubit model file.
usage: python rectangle_geometry.py [-h] [--output-file OUTPUT_FILE]
[--width WIDTH] [--height HEIGHT]
Named Arguments
- --output-file
The output file for the Cubit model without extension. Will be appended with the required extension, e.g.
output_file
.cubDefault: “rectangle_geometry”
- --width
The rectangle width
Default: 1.0
- --height
The rectangle height
Default: 1.0
rectangle_partition.py
Partition the simple rectangle geometry created by rectangle_geometry.py
and write an output_file
.cub Cubit model file.
usage: python rectangle_partition.py [-h] [--input-file INPUT_FILE]
[--output-file OUTPUT_FILE]
[--width WIDTH] [--height HEIGHT]
Named Arguments
- --input-file
The Cubit model file created by
rectangle_geometry.py
without extension. Will be appended with the required extension, e.g.input_file
.cubDefault: “rectangle_geometry”
- --output-file
The output file for the Cubit model without extension. Will be appended with the required extension, e.g.
output_file
.cubDefault: “rectangle_partition”
- --width
The rectangle width
Default: 1.0
- --height
The rectangle height
Default: 1.0
rectangle_mesh.py
Mesh the simple rectangle geometry partitioned by rectangle_partition.py
and write an output_file
.cub Cubit model file and output_file
.inp orphan mesh file.
usage: python rectangle_mesh.py [-h] [--input-file INPUT_FILE]
[--output-file OUTPUT_FILE]
[--global-seed GLOBAL_SEED]
[--element-type ELEMENT_TYPE]
[--solver {abaqus,sierra,adagio}]
Named Arguments
- --input-file
The Cubit model file created by
rectangle_geometry.py
without extension. Will be appended with the required extension, e.g.input_file
.cub (default: “rectangle_partition”)Default: “rectangle_partition”
- --output-file
The output file for the Cubit model without extension. Will be appended with the required extension, e.g.
output_file
.cub (default: “rectangle_mesh”)Default: “rectangle_mesh”
- --global-seed
The global mesh seed size (default: 1.0)
Default: 1.0
- --element-type
The model element type. Must be a supported Cubit 4 node element type. (default: “QUAD”)
Default: “QUAD”
- --solver
Possible choices: abaqus, sierra, adagio
The target solver for the mesh file. (default: “abaqus”)
Default: “abaqus”
python
post_processing.py
Read Xarray Datasets and plot stress-strain comparisons as a function of parameter set name. Save to output_file
.
usage: python post_processing.py [-h] -i INPUT_FILE [INPUT_FILE ...]
--x-units X_UNITS --y-units Y_UNITS
[-o OUTPUT_FILE] [-g GROUP_PATH] [-x X_VAR]
[-y Y_VAR] [-s SELECTION_DICT]
[-p PARAMETER_STUDY_FILE]
[--csv-regression-file CSV_REGRESSION_FILE]
Named Arguments
- -o, --output-file
The output file for the stress-strain comparison plot with extension, e.g.
output_file.pdf
. Extension must be supported by matplotlib. File stem is also used for the CSV table output, e.g.output_file.csv
. (default: “post_processing.pdf”)Default: “post_processing.pdf”
- -g, --group-path
The h5py group path to the dataset object (default: “RECTANGLE/FieldOutputs/ALL_ELEMENTS”)
Default: “RECTANGLE/FieldOutputs/ALL_ELEMENTS”
- -x, --x-var
The independent (x-axis) variable name (default: “E”)
Default: “E”
- -y, --y-var
The dependent (y-axis) variable name (default: “S”)
Default: “S”
- -s, --selection-dict
The YAML formatted dictionary file to define the down selection of data to be plotted. Dictionary key: value pairs must match the data variables and coordinates of the expected Xarray Dataset object. If no file is provided, the a default selection dict will be used (default: {‘E values’: ‘E22’, ‘S values’: ‘S22’, ‘elements’: 1, ‘step’: ‘Step-1’, ‘integration point’: 0})
- -p, --parameter-study-file
An optional h5 file with a WAVES parameter study Xarray Dataset (default: None)
- --csv-regression-file
An optional CSV file to compare with the current plot data. If the CSV file data and the current plot data do not match, a non-zero exit code is returned (default: None)
required named arguments
- -i, --input-file
The Xarray Dataset file(s)
- --x-units
The dependent (x-axis) units string.
- --y-units
The independent (y-axis) units string.