dataset_type(data::UFFDataset)
Returns the dataset type presents in a UFFDataset object.
Input
data::UFFDataset: The UFFDataset object to extract types from.
Output
Symbol: A vector containing the dataset types.
UFFFiles.jl provides several helper functions to facilitate interaction with UFF datasets.
dataset_type(data::UFFDataset)
Returns the dataset type presents in a UFFDataset object.
Input
data::UFFDataset: The UFFDataset object to extract types from.
Output
Symbol: A vector containing the dataset types.
supported_datasets()
Returns a vector of supported UFF dataset types.
supported_file_extensions()
Returns a vector of supported UFF file extensions.
This function provides an easy access to the documentation for Universal File datasets that were originally developed by the Structural Dynamics Research Corporation (SDRC) in the late 1960s and early 1970s.
srdc_doc(data::UFFDataset)
Displays the documentation developed by the SRDC (Structural Dynamics Research Corporation) for a given dataset type.
Input
data::UFFDataset: An instance of a UFF dataset type (e.g., Dataset15, Dataset18, etc.).
Output
Displays the documentation for the SRDC of the specified dataset type.
connectivity_matrix(dataset::Dataset2412)
Returns the connectivity matrix for a Dataset2412 object, where each row corresponds to an element and each column corresponds to a node. Missing values are filled with -1.
Input
dataset::Dataset2412: The Dataset2412 object to extract connectivity from.
Output
Matrix{Int}: A matrix representing the connectivity of elements to nodes.
convert_to_si!(ds)
convert_to_si!(ds, ds164)
Converts the units of the given UFF dataset ds to SI units in place. Note that the mass is defined as F/a and its units will be determined by F & a
Input
ds: A vector of UFF datasets that contains dimensional data to be converted.
ds164: A Dataset164 object that provides conversion factors (default: Dataset164() with SI units).
Notes
converttosi!(ds) reads the last encountered 164 dataset and uses its conversion factors for converting subsequent datasets.
converttosi!(ds, ds164) provides the conversion factors directly. Worth to use when ds does not contain a Dataset164 or when using broadcasting.
Output
ds: Dataset with its data converted to SI units.
using UFFFiles
# readuff returns a vector of datasets
datasets = readuff("path/to/your/file.uff")
# Convert all datasets to SI units - This assumes that a Dataset164 is present in the file. Otherwise, default SI conversion factors will be used.
convert_to_si!(datasets)
# Convert all datasets to SI units using a specific Dataset164 - Useful when no Dataset164 is present in the file
ds164 = Dataset164(9, "User Defined", 2, 0.3048, 4.44822, 1., 273.15) # Example conversion factors
convert_to_si!(datasets, ds164)
# Convert all datasets to SI units using broadcasting - Useful to convert only a subset of datasets
convert_to_si!.(datasets, Ref(ds164))No documentation found.
Binding Main.Notebook.dataset55_to_mat does not exist.
No documentation found.
Binding Main.Notebook.dataset58_to_mat does not exist.