fedoo.ProblemDataSet
- class ProblemDataSet(problem, fields=None, assembly=None)
Expose current Problem results through the DataSet interface.
- Parameters:
problem (ProblemBase) – The live problem. No solve or assembly update is triggered.
fields (str or sequence[str], optional) – Results requested through
problem.get_results. By default, nodal and global DOFs, external forces and available stress/strain fields are discovered. An explicit list is strict about missing results.assembly (AssemblyBase, optional) – Assembly used by
get_results; the problem assembly is the default.before (get_data refreshes from the current problem. Call refresh)
return (directly inspecting the storage dictionaries. copy/deepcopy)
snapshots (detached DataSet)
state. (and FDH5 export writes one current)
a (Boundary conditions remain on problem and are not serialized as)
frames. (solver restart. Viewer Reload refreshes this object without creating)
and (Modal/buckling problems expose computed modes through n_iter)
time. (set_mode; only the selected mode's fields are extracted at a)
- __init__(problem, fields=None, assembly=None)
Methods
ProblemDataSet.__getitem__(items)ProblemDataSet.add_data(data_set)Update the DataSet object including all the node, element and gausspoint data from antoher DataSet object data_set.
ProblemDataSet.add_scalar_expression(name, ...)Compute one scalar per frame from fields, scalars and named sets.
Lazy section tensors, available when generalized fields have metadata.
Section metadata with varying properties evaluated at beam Gauss points.
Make a copy of the dataset.
Make a deep copy of the dataset.
ProblemDataSet.get_data(field, *args, **kwargs)Retrieve data from the DataSet for a given field.
ProblemDataSet.global_element_id(submesh_id, ...)Return the global element id for a submesh-local element id.
Return
(submesh_id, local_element_id)for a global element id.ProblemDataSet.load(data[, load_mesh, iteration])Load data from a data object.
ProblemDataSet.load_dict(data)Load data from a dict generated with the to_dict method.
ProblemDataSet.plot([field, component, ...])Plot a field on the surface of the associated mesh.
ProblemDataSet.read(filename[, file_format])Read a file from disk.
Refresh one state without solving or accumulating time frames.
ProblemDataSet.save(filename[, save_mesh, ...])Save data to a file.
ProblemDataSet.save_mesh(filename)Save the mesh using a vtk file.
ProblemDataSet.savez(filename[, save_mesh])Write a npz file using the numpy savez function.
ProblemDataSet.savez_compressed(filename[, ...])Write a compressed npz file using the numpy savez_compressed function.
Unified beam and shell tensor aliases for plotting.
ProblemDataSet.set_beam_section(section)Attach section properties to old generalized fields on a single mesh.
Select the orientation field used by local-frame arrow overlays.
ProblemDataSet.set_mode(index)Select a computed mode and refresh fields without an eigensolve.
Shell tensors selectable through the thickness after saving.
Available stored and reconstructed thickness distributions.
Split global element ids into submesh-local element ids.
Publish viewer node sets to the live problem for boundary conditions.
ProblemDataSet.to_csv(filename[, save_mesh])Write data in a csv file.
Return fields and optional JSON metadata for NPZ/FDZ storage.
ProblemDataSet.to_excel(filename[, save_mesh])Write data in a xlsx file (excel format).
ProblemDataSet.to_fdh5(*args, **kwargs)Write the dataset to a FDH5 file.
ProblemDataSet.to_fdz(filename[, save_mesh, ...])Write a fdz file from the dataset.
ProblemDataSet.to_msh(filename)Write a msh (gmsh format) file with mesh and associated data.
ProblemDataSet.to_pyvista([gp_data_to_node, ...])Convert the dataset to a PyVista unstructured grid.
ProblemDataSet.to_vtk(filename[, binary, ...])Write vtk file with the mesh and associated data.
ProblemDataSet.__getitem__(items)Beam selection options; see
fedoo.util.beam_recovery.BeamOptions.Selected orientation field, or None for automatic per-submesh selection.
The Problem's selected zero-based mode index, if available.
Navigable modes, or one current state for other Problems.
Number of computed eigenmodes currently retained by the Problem.
Thickness options; see
fedoo.util.shell_recovery.ShellOptions.Active submesh used by MultiMesh data access.