Logo image Logo image
  • Getting Started
  • User Guide
  • APIs
  • Operators
  • Examples
  • Contributing

Navigation

  • PyDPF-Core 0.5.2 documentation »
  • APIs »
  • ansys.dpf.core package »
  • ansys.dpf.core.operators package »
  • ansys.dpf.core.operators.mesh package »
  • point_cloud_search

APIs

  • ansys.dpf.core package
    • ansys.dpf.core.examples package
      • Downloads
      • Result Files Examples
    • ansys.dpf.core.operators package
      • ansys.dpf.core.operators.averaging package
        • elemental_difference
        • elemental_difference_fc
        • elemental_fraction_fc
        • elemental_mean
        • elemental_mean_fc
        • elemental_nodal_to_nodal
        • elemental_nodal_to_nodal_elemental
        • elemental_nodal_to_nodal_elemental_fc
        • elemental_nodal_to_nodal_fc
        • elemental_to_elemental_nodal
        • elemental_to_elemental_nodal_fc
        • elemental_to_nodal
        • elemental_to_nodal_fc
        • extend_to_mid_nodes
        • extend_to_mid_nodes_fc
        • gauss_to_node_fc
        • nodal_difference
        • nodal_difference_fc
        • nodal_fraction_fc
        • nodal_to_elemental
        • nodal_to_elemental_fc
        • to_elemental_fc
        • to_elemental_nodal_fc
        • to_nodal
        • to_nodal_fc
      • ansys.dpf.core.operators.filter package
        • field_band_pass
        • field_band_pass_fc
        • field_high_pass
        • field_high_pass_fc
        • field_low_pass
        • field_low_pass_fc
        • scoping_band_pass
        • scoping_high_pass
        • scoping_low_pass
      • ansys.dpf.core.operators.geo package
        • center_of_gravity
        • element_nodal_contribution
        • elements_facets_surfaces_over_time
        • elements_volume
        • elements_volumes_over_time
        • gauss_to_node
        • integrate_over_elements
        • mass
        • moment_of_inertia
        • normals
        • normals_provider_nl
        • prepare_mapping_workflow
        • rotate
        • rotate_fc
        • rotate_in_cylindrical_cs
        • rotate_in_cylindrical_cs_fc
        • to_polar_coordinates
      • ansys.dpf.core.operators.invariant package
        • eigen_values
        • eigen_values_fc
        • eigen_vectors
        • eigen_vectors_fc
        • invariants
        • invariants_fc
        • principal_invariants
        • principal_invariants_fc
        • segalman_von_mises_eqv
        • segalman_von_mises_eqv_fc
        • von_mises_eqv
        • von_mises_eqv_fc
      • ansys.dpf.core.operators.logic package
        • ascending_sort
        • ascending_sort_fc
        • component_selector
        • component_selector_fc
        • descending_sort
        • descending_sort_fc
        • enrich_materials
        • identical_fc
        • identical_fields
        • identical_meshes
        • identical_property_fields
        • included_fields
        • solid_shell_fields
      • ansys.dpf.core.operators.mapping package
        • find_reduced_coordinates
        • on_coordinates
        • on_reduced_coordinates
        • scoping_on_coordinates
        • solid_to_skin
      • ansys.dpf.core.operators.math package
        • accumulate
        • accumulate_fc
        • accumulate_level_over_label_fc
        • accumulate_min_over_label_fc
        • accumulate_over_label_fc
        • add
        • add_constant
        • add_constant_fc
        • add_fc
        • amplitude
        • amplitude_fc
        • average_over_label_fc
        • centroid
        • centroid_fc
        • component_wise_divide
        • component_wise_divide_fc
        • conjugate
        • correlation
        • cos
        • cos_fc
        • cplx_derive
        • cplx_divide
        • cplx_dot
        • cplx_multiply
        • dot
        • dot_tensor
        • entity_extractor
        • exponential
        • exponential_fc
        • fft_eval
        • fft_gradient_eval
        • fft_multi_harmonic_minmax
        • generalized_inner_product
        • generalized_inner_product_fc
        • img_part
        • invert
        • invert_fc
        • kronecker_prod
        • linear_combination
        • ln
        • ln_fc
        • make_one_on_comp
        • matrix_inverse
        • min_max_over_time
        • minus
        • minus_fc
        • modal_superposition
        • modulus
        • norm
        • norm_fc
        • overall_dot
        • phase
        • phase_fc
        • polar_to_cplx
        • pow
        • pow_fc
        • qr_solve
        • real_part
        • scale
        • scale_by_field
        • scale_by_field_fc
        • scale_fc
        • sin
        • sin_fc
        • sqr
        • sqr_fc
        • sqrt
        • sqrt_fc
        • svd
        • sweeping_phase
        • sweeping_phase_fc
        • unit_convert
        • unit_convert_fc
      • ansys.dpf.core.operators.mesh package
        • acmo_mesh_provider
        • beam_properties
        • combine_levelset
        • exclude_levelset
        • external_layer
        • from_field
        • from_scoping
        • make_plane_levelset
        • make_sphere_levelset
        • mesh_clip
        • mesh_cut
        • mesh_plan_clip
        • mesh_provider
        • mesh_to_graphics
        • mesh_to_graphics_edges
        • meshes_provider
        • node_coordinates
        • point_cloud_search
        • points_from_coordinates
        • skin
        • split_fields
        • split_mesh
        • stl_export
        • tri_mesh_skin
      • ansys.dpf.core.operators.metadata package
        • boundary_condition_provider
        • Collection
        • cyclic_mesh_expansion
        • cyclic_support_provider
        • is_cyclic
        • material_provider
        • material_support_provider
        • mesh_selection_manager_provider
        • mesh_support_provider
        • result_info_provider
        • streams_provider
        • time_freq_provider
      • ansys.dpf.core.operators.min_max package
        • max_by_component
        • max_over_phase
        • max_over_time_by_entity
        • min_by_component
        • min_max
        • min_max_by_entity
        • min_max_by_time
        • min_max_fc
        • min_max_fc_inc
        • min_max_inc
        • min_max_over_label_fc
        • min_max_over_time_by_entity
        • min_over_time_by_entity
        • phase_of_max
        • time_of_max_by_entity
        • time_of_min_by_entity
      • ansys.dpf.core.operators.result package
        • acceleration
        • acceleration_X
        • acceleration_Y
        • acceleration_Z
        • accu_eqv_creep_strain
        • accu_eqv_plastic_strain
        • add_rigid_body_motion
        • add_rigid_body_motion_fc
        • artificial_hourglass_energy
        • cms_matrices_provider
        • co_energy
        • compute_stress
        • compute_stress_1
        • compute_stress_2
        • compute_stress_3
        • compute_stress_X
        • compute_stress_XY
        • compute_stress_XZ
        • compute_stress_Y
        • compute_stress_YZ
        • compute_stress_Z
        • compute_stress_von_mises
        • compute_total_strain
        • compute_total_strain_1
        • compute_total_strain_2
        • compute_total_strain_3
        • compute_total_strain_X
        • compute_total_strain_XY
        • compute_total_strain_XZ
        • compute_total_strain_Y
        • compute_total_strain_YZ
        • compute_total_strain_Z
        • contact_fluid_penetration_pressure
        • contact_friction_stress
        • contact_gap_distance
        • contact_penetration
        • contact_pressure
        • contact_sliding_distance
        • contact_status
        • contact_surface_heat_flux
        • contact_total_stress
        • coordinate_system
        • creep_strain_energy_density
        • current_density
        • custom
        • cyclic_analytic_seqv_max
        • cyclic_analytic_usum_max
        • cyclic_expanded_acceleration
        • cyclic_expanded_displacement
        • cyclic_expanded_el_strain
        • cyclic_expanded_enf
        • cyclic_expanded_heat_flux
        • cyclic_expanded_stress
        • cyclic_expanded_temperature
        • cyclic_expanded_velocity
        • cyclic_expansion
        • cyclic_strain_energy
        • cyclic_volume
        • displacement
        • displacement_X
        • displacement_Y
        • displacement_Z
        • elastic_strain
        • elastic_strain_X
        • elastic_strain_XY
        • elastic_strain_XZ
        • elastic_strain_Y
        • elastic_strain_YZ
        • elastic_strain_Z
        • elastic_strain_energy_density
        • elastic_strain_principal_1
        • elastic_strain_principal_2
        • elastic_strain_principal_3
        • elastic_strain_rotation_by_euler_nodes
        • electric_field
        • electric_flux_density
        • electric_potential
        • element_centroids
        • element_nodal_forces
        • element_orientations
        • elemental_heat_generation
        • elemental_mass
        • elemental_volume
        • enf_rotation_by_euler_nodes
        • equivalent_mass
        • equivalent_radiated_power
        • eqv_stress_parameter
        • euler_load_buckling
        • euler_nodes
        • global_to_nodal
        • heat_flux
        • heat_flux_X
        • heat_flux_Y
        • heat_flux_Z
        • hydrostatic_pressure
        • incremental_energy
        • joint_force_reaction
        • joint_moment_reaction
        • joint_relative_acceleration
        • joint_relative_angular_acceleration
        • joint_relative_angular_velocity
        • joint_relative_displacement
        • joint_relative_rotation
        • joint_relative_velocity
        • kinetic_energy
        • mapdl_material_properties
        • mapdl_section
        • material_property_of_element
        • members_in_bending_not_certified
        • members_in_compression_not_certified
        • members_in_linear_compression_bending_not_certified
        • migrate_to_h5dpf
        • modal_basis
        • nmisc
        • nodal_averaged_creep_strains
        • nodal_averaged_elastic_strains
        • nodal_averaged_equivalent_creep_strain
        • nodal_averaged_equivalent_elastic_strain
        • nodal_averaged_equivalent_plastic_strain
        • nodal_averaged_equivalent_thermal_strains
        • nodal_averaged_plastic_strains
        • nodal_averaged_stresses
        • nodal_averaged_thermal_strains
        • nodal_averaged_thermal_swelling_strains
        • nodal_force
        • nodal_moment
        • nodal_rotation_by_euler_nodes
        • nodal_to_global
        • normal_contact_force
        • normal_contact_moment
        • num_surface_status_changes
        • plastic_state_variable
        • plastic_strain
        • plastic_strain_X
        • plastic_strain_XY
        • plastic_strain_XZ
        • plastic_strain_Y
        • plastic_strain_YZ
        • plastic_strain_Z
        • plastic_strain_energy_density
        • plastic_strain_principal_1
        • plastic_strain_principal_2
        • plastic_strain_principal_3
        • plastic_strain_rotation_by_euler_nodes
        • poynting_vector
        • poynting_vector_surface
        • pres_to_field
        • prns_to_field
        • raw_displacement
        • raw_reaction_force
        • reaction_force
        • recombine_harmonic_indeces_cyclic
        • remove_rigid_body_motion
        • remove_rigid_body_motion_fc
        • rigid_transformation
        • run
        • smisc
        • stiffness_matrix_energy
        • stress
        • stress_X
        • stress_XY
        • stress_XZ
        • stress_Y
        • stress_YZ
        • stress_Z
        • stress_principal_1
        • stress_principal_2
        • stress_principal_3
        • stress_ratio
        • stress_rotation_by_euler_nodes
        • stress_von_mises
        • structural_temperature
        • swelling_strains
        • tangential_contact_force
        • tangential_contact_moment
        • temperature
        • temperature_grad
        • thermal_dissipation_energy
        • thermal_strain
        • thermal_strain_X
        • thermal_strain_XY
        • thermal_strain_XZ
        • thermal_strain_Y
        • thermal_strain_YZ
        • thermal_strain_Z
        • thermal_strain_principal_1
        • thermal_strain_principal_2
        • thermal_strain_principal_3
        • thermal_strains_eqv
        • thickness
        • torque
        • total_contact_force
        • total_contact_moment
        • total_mass
        • velocity
        • velocity_X
        • velocity_Y
        • velocity_Z
      • ansys.dpf.core.operators.scoping package
        • change_fc
        • connectivity_ids
        • elemental_from_mesh
        • from_mesh
        • intersect
        • nodal_from_mesh
        • on_mesh_property
        • on_named_selection
        • on_property
        • rescope
        • rescope_fc
        • split_on_property_type
        • transpose
      • ansys.dpf.core.operators.serialization package
        • csv_to_field
        • data_tree_to_json
        • data_tree_to_txt
        • deserializer
        • field_to_csv
        • json_to_data_tree
        • mechanical_csv_to_field
        • migrate_file_to_vtk
        • serialize_to_hdf5
        • serializer
        • serializer_to_string
        • string_deserializer
        • txt_to_data_tree
        • vtk_export
        • vtk_to_fields
      • ansys.dpf.core.operators.server namespace
      • ansys.dpf.core.operators.utility package
        • bind_support
        • bind_support_fc
        • change_location
        • change_shell_layers
        • default_value
        • extract_field
        • extract_time_freq
        • field_to_fc
        • forward
        • forward_field
        • forward_fields_container
        • forward_meshes_container
        • html_doc
        • make_overall
        • merge_fields
        • merge_fields_by_label
        • merge_fields_containers
        • merge_materials
        • merge_meshes
        • merge_meshes_containers
        • merge_property_fields
        • merge_result_infos
        • merge_scopings
        • merge_scopings_containers
        • merge_supports
        • merge_time_freq_supports
        • python_generator
        • remote_operator_instantiate
        • remote_workflow_instantiate
        • scalars_to_field
        • set_property
        • strain_from_voigt
        • txt_file_to_dpf
        • unitary_field
    • AvailableResult
    • Collection
    • Common
    • Operator Configuration
    • Core
    • Custom Fields Containers
    • Custom Operator Base
    • Cyclic Support
    • Data Sources
    • DataTree
    • Dimensionality
    • DPFArray
    • Operator
    • Element Descriptor
    • Elements
    • Errors
    • Field
    • FieldDefinition
    • FieldsContainer
    • fields_container_factory
    • fields_factory
    • Inputs
    • mesh_scoping_factory
    • MeshedRegion
    • MeshesContainer
    • Model
    • Nodes
    • Operator Specification
    • Outputs
    • path_utilities
    • Plotter
    • PropertyField
    • ResultInfo
    • Results
    • RuntimeConfig
    • Scoping
    • ScopingsContainer
    • Server
    • Server factory, server configuration and communication protocols
    • Server types
    • Session
    • settings
    • time_freq_scoping_factory
    • TimeFreqSupport
    • Workflow

point_cloud_search#

Autogenerated DPF operator classes.

class ansys.dpf.core.operators.mesh.point_cloud_search.point_cloud_search(search_domain=None, reference_domain=None, tolerance=None, exclusive_search=None, config=None, server=None)#

For every node in the search domain, search the nearest node in the reference domain within tolerance. By default, the search is not exclusive (different nodes in the search domain can be assigned to the same node in the reference domain). By default, no tolerance is imposed (the nearest node is matched).

Parameters
  • search_domain (Field or MeshedRegion) – Search domain

  • reference_domain (Field or MeshedRegion) – Reference domain

  • tolerance (float, optional) – Tolerance. default: no tolerance (match nearest)

  • exclusive_search (bool, optional) – Make the search exclusive. default: false

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.mesh.point_cloud_search()
>>> # Make input connections
>>> my_search_domain = dpf.Field()
>>> op.inputs.search_domain.connect(my_search_domain)
>>> my_reference_domain = dpf.Field()
>>> op.inputs.reference_domain.connect(my_reference_domain)
>>> my_tolerance = float()
>>> op.inputs.tolerance.connect(my_tolerance)
>>> my_exclusive_search = bool()
>>> op.inputs.exclusive_search.connect(my_exclusive_search)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.mesh.point_cloud_search(
...     search_domain=my_search_domain,
...     reference_domain=my_reference_domain,
...     tolerance=my_tolerance,
...     exclusive_search=my_exclusive_search,
... )
>>> # Get output data
>>> result_search_indices = op.outputs.search_indices()
>>> result_reference_indices = op.outputs.reference_indices()
static default_config(server=None)#

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.DPFServer, optional) – Server with channel connected to the remote or local instance. When None, attempts to use the global server.

property inputs#

Enables to connect inputs to the operator

Returns

inputs

Return type

InputsPointCloudSearch

property outputs#

Enables to get outputs of the operator by evaluationg it

Returns

outputs

Return type

OutputsPointCloudSearch

property config#

Copy of the operator’s current configuration.

You can modify the copy of the configuration and then use operator.config = new_config or create an operator with the new configuration as a parameter.

Returns

Copy of the operator’s current configuration.

Return type

ansys.dpf.core.config.Config

connect(pin, inpt, pin_out=0)#

Connect an input on the operator using a pin number.

Parameters
  • pin (int) – Number of the input pin.

  • inpt (str, int, double, bool, list[int], list[float], Field, FieldsContainer, Scoping,) –

  • ScopingsContainer – Operator, os.PathLike Object to connect to.

  • MeshedRegion – Operator, os.PathLike Object to connect to.

  • MeshesContainer – Operator, os.PathLike Object to connect to.

  • DataSources – Operator, os.PathLike Object to connect to.

  • CyclicSupport – Operator, os.PathLike Object to connect to.

  • Outputs – Operator, os.PathLike Object to connect to.

  • pin_out (int, optional) – If the input is an operator, the output pin of the input operator. The default is 0.

Examples

Compute the minimum of displacement by chaining the "U" and "min_max_fc" operators.

>>> from ansys.dpf import core as dpf
>>> from ansys.dpf.core import examples
>>> data_src = dpf.DataSources(examples.multishells_rst)
>>> disp_op = dpf.operators.result.displacement()
>>> disp_op.inputs.data_sources(data_src)
>>> max_fc_op = dpf.operators.min_max.min_max_fc()
>>> max_fc_op.inputs.connect(disp_op.outputs)
>>> max_field = max_fc_op.outputs.field_max()
>>> max_field.data
DPFArray([[0.59428386, 0.00201751, 0.0006032 ]]...
eval(pin=None)#

Evaluate this operator.

Parameters

pin (int) – Number of the output pin. The default is None.

Returns

output – Returns the first output of the operator by default and the output of a given pin when specified. Or, it only evaluates the operator without output.

Return type

FieldsContainer, Field, MeshedRegion, Scoping

Examples

Use the eval method.

>>> from ansys.dpf import core as dpf
>>> import ansys.dpf.core.operators.math as math
>>> from ansys.dpf.core import examples
>>> data_src = dpf.DataSources(examples.multishells_rst)
>>> disp_op = dpf.operators.result.displacement()
>>> disp_op.inputs.data_sources(data_src)
>>> normfc = math.norm_fc(disp_op).eval()
get_output(pin=0, output_type=None)#

Retrieve the output of the operator on the pin number.

To activate the progress bar for server version higher or equal to 3.0, use my_op.progress_bar=True

Parameters
  • pin (int, optional) – Number of the output pin. The default is 0.

  • output_type (ansys.dpf.core.common.types, type, optional) – Requested type of the output. The default is None.

Returns

Output of the operator.

Return type

type

static operator_specification(op_name, server=None)#

Documents an Operator with its description (what the Operator does), its inputs and outputs and some properties

property progress_bar: bool#

With this property, the user can choose to print a progress bar when the operator’s output is requested, default is False

run()#

Evaluate this operator.

property specification#

Returns the Specification (or documentation) of this Operator

Return type

Specification

class ansys.dpf.core.operators.mesh.point_cloud_search.InputsPointCloudSearch(op: ansys.dpf.core.dpf_operator.Operator)#

Intermediate class used to connect user inputs to point_cloud_search operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> my_search_domain = dpf.Field()
>>> op.inputs.search_domain.connect(my_search_domain)
>>> my_reference_domain = dpf.Field()
>>> op.inputs.reference_domain.connect(my_reference_domain)
>>> my_tolerance = float()
>>> op.inputs.tolerance.connect(my_tolerance)
>>> my_exclusive_search = bool()
>>> op.inputs.exclusive_search.connect(my_exclusive_search)
property search_domain#

Allows to connect search_domain input to the operator.

Search domain

Parameters

my_search_domain (Field or MeshedRegion) –

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> op.inputs.search_domain.connect(my_search_domain)
>>> # or
>>> op.inputs.search_domain(my_search_domain)
property reference_domain#

Allows to connect reference_domain input to the operator.

Reference domain

Parameters

my_reference_domain (Field or MeshedRegion) –

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> op.inputs.reference_domain.connect(my_reference_domain)
>>> # or
>>> op.inputs.reference_domain(my_reference_domain)
property tolerance#

Allows to connect tolerance input to the operator.

Tolerance. default: no tolerance (match nearest)

Parameters

my_tolerance (float) –

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> op.inputs.tolerance.connect(my_tolerance)
>>> # or
>>> op.inputs.tolerance(my_tolerance)
property exclusive_search#

Allows to connect exclusive_search input to the operator.

Make the search exclusive. default: false

Parameters

my_exclusive_search (bool) –

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> op.inputs.exclusive_search.connect(my_exclusive_search)
>>> # or
>>> op.inputs.exclusive_search(my_exclusive_search)
connect(inpt)#

Connect any input (an entity or an operator output) to any input pin of this operator. Searches for the input type corresponding to the output.

Parameters
  • inpt (str, int, double, bool, list[int], list[float], Field, FieldsContainer, Scoping,) –

  • ScopingsContainer (E501) – Input of the operator.

  • MeshedRegion (E501) – Input of the operator.

  • MeshesContainer (E501) – Input of the operator.

  • DataSources (E501) – Input of the operator.

  • CyclicSupport (E501) – Input of the operator.

  • Outputs (E501) – Input of the operator.

  • noqa (os.PathLike #) – Input of the operator.

class ansys.dpf.core.operators.mesh.point_cloud_search.OutputsPointCloudSearch(op: ansys.dpf.core.dpf_operator.Operator)#

Intermediate class used to get outputs from point_cloud_search operator.

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> # Connect inputs : op.inputs. ...
>>> result_search_indices = op.outputs.search_indices()
>>> result_reference_indices = op.outputs.reference_indices()
property search_indices#

Allows to get search_indices output of the operator

Returns

my_search_indices

Return type

Scoping

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> # Connect inputs : op.inputs. ...
>>> result_search_indices = op.outputs.search_indices()
property reference_indices#

Allows to get reference_indices output of the operator

Returns

my_reference_indices

Return type

Scoping

Examples

>>> from ansys.dpf import core as dpf
>>> op = dpf.operators.mesh.point_cloud_search()
>>> # Connect inputs : op.inputs. ...
>>> result_reference_indices = op.outputs.reference_indices()

© Copyright (c) 2022 ANSYS, Inc. All rights reserved.

Created using Sphinx 4.5.0.