Solution#

class ansys.result_explorer.core.Solution(pb_obj: Solution, client)#

Represents a solution loaded in the application.

Methods

Solution.create_chart(definition)

Create a chart based on a chart definition.

Solution.create_named_selection(definition)

Create a named selection.

Solution.create_plot(definition)

Create a plot based on a plot definition.

Solution.delete_chart(id)

Delete a chart by ID.

Solution.delete_named_selection(id)

Delete a named selection by ID.

Solution.delete_plot(id)

Delete a plot by ID.

Solution.get_solver_out_content(file[, ...])

Get content of a solver text output file.

Solution.update_chart(chart)

Update a chart based on a chart definition.

Solution.update_named_selection(definition)

Update a named selection.

Solution.update_plot(plot)

Update a plot based on a plot definition.

Attributes

Solution.analysis_type

Type of analysis performed.

Solution.available_custom_selections

Available custom selections.

Solution.available_mesh_properties

Available mesh properties.

Solution.available_results

Available DPF result types.

Solution.available_trackers

Available tracker types.

Solution.bodies

Bodies in the model.

Solution.cache_plot_data

Whether to cache plot data.

Solution.chart_views

Get all chart views for this solution.

Solution.charts

Chart definitions.

Solution.configurable_charts

Configurable chart definitions.

Solution.configurable_plots

Configurable plot definitions.

Solution.contact_trackers_view

Get the contact trackers view for this solution, if available.

Solution.convergence_trackers_view

Get the convergence trackers view for this solution, if available.

Solution.creation_time

Timestamp of solution creation.

Solution.description

Solution description.

Solution.distance_unit

Unit for distance measurements.

Solution.element_groups

Element groups in the mesh.

Solution.errors

List of error messages.

Solution.files

List of result files.

Solution.id

Unique identifier.

Solution.live

Whether the simulation is currently running.

Solution.logs_view

Get the log view for this solution, if available.

Solution.mesh_options

Mesh graphics options.

Solution.mesh_view

Get the mesh view for this solution.

Solution.n_elements

Number of elements in the solution mesh.

Solution.n_nodes

Number of nodes in the solution mesh.

Solution.n_results

Number of results available.

Solution.n_sets

Number of result sets.

Solution.name

Solution name.

Solution.named_selections

Named selections.

Solution.outdated

Whether solution data is outdated wrt to the result files.

Solution.physics_type

Type of physics analysis.

Solution.plot_views

Get all plot views for this solution.

Solution.plots

Plot definitions.

Solution.ready

Whether solution is ready.

Solution.result_provider

Result provider for this solution.

Solution.solver_named_selections

Solver named selections.

Solution.solver_text_outputs

Solver text output files.

Solution.solver_version

Version of solver used.

Solution.time_frequencies

Time/frequency data.

Solution.time_frequencies_unit

Unit for time/frequencies.

Solution.unit_system

Unit system used.

Solution.unsupported_element_types

Unsupported element types.

Solution.views

List of views available in this solution.

Solution.warnings

List of warning messages.