ansys.dpf.core.operators.mesh.beam_properties#

class ansys.dpf.core.operators.mesh.beam_properties(streams=None, data_sources=None, config=None, server=None)#

Bases: ansys.dpf.core.dpf_operator.Operator

Reads the beam’s properties from the result files contained in the streams or data sources.

Parameters:
  • streams (StreamsContainer, optional) – Result file container allowed to be kept open to cache data.

  • data_sources (DataSources) – Result file path container, used if no streams are set.

Returns:

  • mesh_out (MeshedRegion) – This mesh updates a new map containing a field of the beam’s properties if there is at least one beam in mesh.

  • field_type_section_id (Field) – This field contains the section ID of beams. 1:REC; 3:CSOLID, 4:CTUBE, 5:CHAN, 6:Z, 7:L, 8:I, 9:T, 11:HATS, 12:HREC.

  • field_area (Field) – This field contains the area of beams.

  • field_moment_inertia (Field) – This field contains the inertia moment of beams. Iyy, Iyz, Izz.

  • field_geometry (Field) – This field contains the geometry of beams. REC:b,h. CSOLID:Ri. CTUBE:Ri, Re. CHAN:w1,w2,w3,t1,t2,t3. Z:w1,w2,w3,t1,t2,t3. L:w1,w2,t1,t2. I:w1,w2,w3,t1,t2,t3. T:w1,w2,t1,t2. HATS: w1,w2,w3,w4,t1,t2,t3,t4. HREC:w1,w2,t1,t2,t3,t4.

  • field_young_modulus (Field) – This field contains the Young’s modulus of beams.

  • field_poisson_ratio (Field) – This field contains the Poisson’s ratio of beams.

  • field_shear_modulus (Field) – This field contains the Shear Modulus of beams.

  • field_beam_length (Field) – This field contains the length of beams.

  • field_torsion_constant (Field) – This field contains the Torsion Constant of beams.

  • field_warping_constant (Field) – This field contains the Warping Constant of beams.

  • field_offset_type (Field) – This field contains offset type of beams.

  • field_offset_y (Field) – This field contains offset y of beams.

  • field_offset_z (Field) – This field contains offset z of beams.

Examples

>>> from ansys.dpf import core as dpf
>>> # Instantiate operator
>>> op = dpf.operators.mesh.beam_properties()
>>> # Make input connections
>>> my_streams = dpf.StreamsContainer()
>>> op.inputs.streams.connect(my_streams)
>>> my_data_sources = dpf.DataSources()
>>> op.inputs.data_sources.connect(my_data_sources)
>>> # Instantiate operator and connect inputs in one line
>>> op = dpf.operators.mesh.beam_properties(
...     streams=my_streams,
...     data_sources=my_data_sources,
... )
>>> # Get output data
>>> result_mesh_out = op.outputs.mesh_out()
>>> result_field_type_section_id = op.outputs.field_type_section_id()
>>> result_field_area = op.outputs.field_area()
>>> result_field_moment_inertia = op.outputs.field_moment_inertia()
>>> result_field_geometry = op.outputs.field_geometry()
>>> result_field_young_modulus = op.outputs.field_young_modulus()
>>> result_field_poisson_ratio = op.outputs.field_poisson_ratio()
>>> result_field_shear_modulus = op.outputs.field_shear_modulus()
>>> result_field_beam_length = op.outputs.field_beam_length()
>>> result_field_torsion_constant = op.outputs.field_torsion_constant()
>>> result_field_warping_constant = op.outputs.field_warping_constant()
>>> result_field_offset_type = op.outputs.field_offset_type()
>>> result_field_offset_y = op.outputs.field_offset_y()
>>> result_field_offset_z = op.outputs.field_offset_z()
_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: InputsBeamProperties#

Enables to connect inputs to the operator

Returns:

An instance of InputsBeamProperties.

Return type:

inputs

property outputs: OutputsBeamProperties#

Enables to get outputs of the operator by evaluating it

Returns:

An instance of OutputsBeamProperties.

Return type:

outputs