ansys.dpf.core.operators.mesh.iso_surfaces#
- class ansys.dpf.core.operators.mesh.iso_surfaces(field=None, num_surfaces=None, mesh=None, slice_surfaces=None, vector_iso_values=None, config=None, server=None)#
Bases:
ansys.dpf.core.dpf_operator.Operator
Extract multiple iso-contours from mesh_cut operator and set it into a meshes container. If pin 1 is provided, “num_surfaces” iso-contours will be computed, ranging from “min_value” to “max_value” linearly. If pin 4 is provided, the iso-values are the one set by the user. The iso-values are stored into a FieldsContainer.
- Parameters:
field (Field) – Field containing the values for the iso-surface computation. The mesh can be retrieved from this field’s support or through pin 2.
num_surfaces (int, optional) – If provided, iso_values are linearly computed between the min and the max of the field of results. If not, iso_values must be provided by the user through pin 4
mesh (MeshedRegion, optional) – Mesh to compute the iso-surface from. Used when not given through the support of the field in pin 0.
slice_surfaces (bool) – True: slicing will also take into account shell and skin elements. False: slicing will ignore shell and skin elements. The default is true.
vector_iso_values (optional) – If provided, user defined iso_values to compute. If not provided, iso_values are linearly compute between the min and the max of the field of results.
- Returns:
meshes (MeshesContainer)
fields_container (FieldsContainer)
Examples
>>> from ansys.dpf import core as dpf
>>> # Instantiate operator >>> op = dpf.operators.mesh.iso_surfaces()
>>> # Make input connections >>> my_field = dpf.Field() >>> op.inputs.field.connect(my_field) >>> my_num_surfaces = int() >>> op.inputs.num_surfaces.connect(my_num_surfaces) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) >>> my_slice_surfaces = bool() >>> op.inputs.slice_surfaces.connect(my_slice_surfaces) >>> my_vector_iso_values = dpf.() >>> op.inputs.vector_iso_values.connect(my_vector_iso_values)
>>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.mesh.iso_surfaces( ... field=my_field, ... num_surfaces=my_num_surfaces, ... mesh=my_mesh, ... slice_surfaces=my_slice_surfaces, ... vector_iso_values=my_vector_iso_values, ... )
>>> # Get output data >>> result_meshes = op.outputs.meshes() >>> result_fields_container = op.outputs.fields_container()
- _inputs#
- _outputs#
- static _spec() ansys.dpf.core.operators.specification.Specification #
- static default_config(server: ansys.dpf.core.server_types.AnyServerType = None) ansys.dpf.core.config.Config #
Returns the default config of the operator.
This config can then be changed to the user needs and be used to instantiate the operator. The Configuration allows to customize how the operation will be processed by the operator.
- Parameters:
server – Server with channel connected to the remote or local instance. When
None
, attempts to use the global server.- Returns:
A new Config instance equivalent to the default config for this operator.
- Return type:
config
- property inputs: InputsIsoSurfaces#
Enables to connect inputs to the operator
- Returns:
An instance of InputsIsoSurfaces.
- Return type:
inputs
- property outputs: OutputsIsoSurfaces#
Enables to get outputs of the operator by evaluating it
- Returns:
An instance of OutputsIsoSurfaces.
- Return type:
outputs