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.

ProblemDataSet.beam_derived_fields()

Lazy section tensors, available when generalized fields have metadata.

ProblemDataSet.beam_section_description()

Section metadata with varying properties evaluated at beam Gauss points.

ProblemDataSet.copy()

Make a copy of the dataset.

ProblemDataSet.deepcopy()

Make a deep copy of the dataset.

ProblemDataSet.field_names()

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.

ProblemDataSet.global_element_location(...)

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.

ProblemDataSet.refresh()

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.

ProblemDataSet.section_derived_fields()

Unified beam and shell tensor aliases for plotting.

ProblemDataSet.set_beam_section(section)

Attach section properties to old generalized fields on a single mesh.

ProblemDataSet.set_current_local_frame([field])

Select the orientation field used by local-frame arrow overlays.

ProblemDataSet.set_mode(index)

Select a computed mode and refresh fields without an eigensolve.

ProblemDataSet.shell_derived_fields()

Shell tensors selectable through the thickness after saving.

ProblemDataSet.shell_section_description()

ProblemDataSet.shell_sources(kind)

Available stored and reconstructed thickness distributions.

ProblemDataSet.split_global_element_indices(...)

Split global element ids into submesh-local element ids.

ProblemDataSet.sync_problem_sets()

Publish viewer node sets to the live problem for boundary conditions.

ProblemDataSet.to_csv(filename[, save_mesh])

Write data in a csv file.

ProblemDataSet.to_dict()

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_pandas()

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)

ProblemDataSet.beam_options

Beam selection options; see fedoo.util.beam_recovery.BeamOptions.

ProblemDataSet.current_local_frame

Selected orientation field, or None for automatic per-submesh selection.

ProblemDataSet.current_mode

The Problem's selected zero-based mode index, if available.

ProblemDataSet.dict_data

ProblemDataSet.n_iter

Navigable modes, or one current state for other Problems.

ProblemDataSet.n_modes

Number of computed eigenmodes currently retained by the Problem.

ProblemDataSet.shell_options

Thickness options; see fedoo.util.shell_recovery.ShellOptions.

ProblemDataSet.active_submesh

Active submesh used by MultiMesh data access.