diff --git a/doc/source/_static/dpf_operators.html b/doc/source/_static/dpf_operators.html index f1a6c0abf9..badb7a581d 100644 --- a/doc/source/_static/dpf_operators.html +++ b/doc/source/_static/dpf_operators.html @@ -2070,7 +2070,7 @@

Configurating operators

0 0 0 0 0 0 0 0 0 -">

Example of workflows and their scripts

math: imaginary part

Inputs

Outputs

Configurations

Scripting

math: amplitude (fields container)

Inputs

Outputs

Configurations

Scripting

metadata: mesh support provider

Inputs

Outputs

Configurations

Scripting

result: beam axial stress (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: unit convert (fields container)

Inputs

Outputs

Configurations

Scripting

result: element orientations X

Inputs

Outputs

Configurations

Scripting

math: norm (fields container)

Inputs

Outputs

Configurations

Scripting

mapping: prepare mapping workflow

Inputs

Outputs

Configurations

Scripting

math: sqrt (fields container)

Inputs

Outputs

Configurations

Scripting

math: conjugate

Inputs

Outputs

Configurations

Scripting

utility: html doc

Inputs

Outputs

Configurations

Scripting

math: real part

Inputs

Outputs

Configurations

Scripting

result: current density

Inputs

Outputs

Configurations

Scripting

math: multiply (complex fields)

Inputs

Outputs

Configurations

Scripting

utility: merge result infos

Inputs

Outputs

Configurations

Scripting

result: cyclic kinetic energy

Inputs

Outputs

Configurations

Scripting

result: global total mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: unit convert

Inputs

Outputs

Configurations

Scripting

math: norm (field)

Inputs

Outputs

Configurations

Scripting

utility: make label space

Inputs

Outputs

Configurations

Scripting

math: sqrt (field)

Inputs

Outputs

Configurations

Scripting

result: y plus (y+)

Inputs

Outputs

Configurations

Scripting

math: accumulate min over label

Inputs

Outputs

Configurations

Scripting

math: +

Inputs

Outputs

Configurations

Scripting

server: grpc shutdown server

Inputs

Outputs

Configurations

Scripting

result: magnetic scalar potential

Inputs

Outputs

Configurations

Scripting

min_max: min max over time

Inputs

Outputs

Configurations

Scripting

math: time freq interpolation

Inputs

Outputs

Configurations

Scripting

math: + (fields container)

Inputs

Outputs

Configurations

Scripting

math: sin (fields container)

Inputs

Outputs

Configurations

Scripting

result: tangential contact force

Inputs

Outputs

Configurations

Scripting

math: + constant (field)

Inputs

Outputs

Configurations

Scripting

math: / (component-wise field)

Inputs

Outputs

Configurations

Scripting

result: normal contact force

Inputs

Outputs

Configurations

Scripting

math: + constant (fields container)

Inputs

Outputs

Configurations

Scripting

math: cross product (fields container)

Inputs

Outputs

Configurations

Scripting

result: cyclic strain energy

Inputs

Outputs

Configurations

Scripting

invariant: scalar invariants (fields container)

Inputs

Outputs

Configurations

Scripting

mapping: find reduced coordinates

Inputs

Outputs

Configurations

Scripting

scoping: rescope property field

Inputs

Outputs

Configurations

Scripting

result: plastic strain principal 1

Inputs

Outputs

Configurations

Scripting

math: -

Inputs

Outputs

Configurations

Scripting

math: total sum

Inputs

Outputs

Configurations

Scripting

math: - (fields container)

Inputs

Outputs

Configurations

Scripting

scoping: intersect scopings

Inputs

Outputs

Configurations

Scripting

math: ^ (field)

Inputs

Outputs

Configurations

Scripting

scoping: elements in mesh

Inputs

Outputs

Configurations

Scripting

math: scale (field)

Inputs

Outputs

Configurations

Scripting

result: enthalpy

Inputs

Outputs

Configurations

Scripting

math: ^ (fields container)

Inputs

Outputs

Configurations

Scripting

result: global eroded internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: scale fields container

Inputs

Outputs

Configurations

Scripting

math: sweeping phase

Inputs

Outputs

Configurations

Scripting

math: centroid

Inputs

Outputs

Configurations

Scripting

math: sweeping phase (fields container)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (field)

Inputs

Outputs

Configurations

Scripting

math: centroid (fields container)

Inputs

Outputs

Configurations

Scripting

math: ^2 (field)

Inputs

Outputs

Configurations

Scripting

utility: remove unnecessary labels

Inputs

Outputs

Configurations

Scripting

result: velocity Z

Inputs

Outputs

Configurations

Scripting

result: reaction force Z

Inputs

Outputs

Configurations

Scripting

math: sin (field)

Inputs

Outputs

Configurations

Scripting

math: cos (field)

Inputs

Outputs

Configurations

Scripting

math: cos (fields container)

Inputs

Outputs

Configurations

Scripting

logic: ascending sort

Inputs

Outputs

Configurations

Scripting

result: initial coordinates (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: convert to fields container

Inputs

Outputs

Configurations

Scripting

math: linear combination

Inputs

Outputs

Configurations

Scripting

math: ^2 (fields container)

Inputs

Outputs

Configurations

Scripting

result: mean static pressure

Inputs

Outputs

Configurations

Scripting

math: exp (field)

Inputs

Outputs

Configurations

Scripting

math: exp (fields container)

Inputs

Outputs

Configurations

Scripting

math: * (component-wise field)

Inputs

Outputs

Configurations

Scripting

result: stress max_shear

Inputs

Outputs

Configurations

Scripting

result: euler nodes

Inputs

Outputs

Configurations

Scripting

math: * (component-wise field) (fields container)

Inputs

Outputs

Configurations

Scripting

result: beam TR shear stress (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: num surface status changes

Inputs

Outputs

Configurations

Scripting

math: ln (field)

Inputs

Outputs

Configurations

Scripting

mesh: mesh to pyvista

Inputs

Outputs

Configurations

Scripting

math: ln (fields container)

Inputs

Outputs

Configurations

Scripting

invariant: scalar invariants (field)

Inputs

Outputs

Configurations

Scripting

math: cross product

Inputs

Outputs

Configurations

Scripting

filter: high pass (timefreq)

Inputs

Outputs

Configurations

Scripting

math: / (component-wise fields container)

Inputs

Outputs

Configurations

Scripting

result: global sliding interface energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: kronecker product

Inputs

Outputs

Configurations

Scripting

math: modulus (fields container)

Inputs

Outputs

Configurations

Scripting

result: joint relative angular velocity

Inputs

Outputs

Configurations

Scripting

math: dot (complex fields)

Inputs

Outputs

Configurations

Scripting

result: gasket stress XZ

Inputs

Outputs

Configurations

Scripting

math: / (complex fields)

Inputs

Outputs

Configurations

Scripting

utility: unitary field

Inputs

Outputs

Configurations

Scripting

utility: server path

Inputs

Outputs

Configurations

Scripting

result: beam axial force (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: derivate (complex fields)

Inputs

Outputs

Configurations

Scripting

math: polar to complex fields

Inputs

Outputs

Configurations

Scripting

utility: merge data tree

Inputs

Outputs

Configurations

Scripting

math: dot (fields container)

Inputs

Outputs

Configurations

Scripting

result: nodal moment

Inputs

Outputs

Configurations

Scripting

math: phase (field)

Inputs

Outputs

Configurations

Scripting

math: phase (fields container)

Inputs

Outputs

Configurations

Scripting

math: modulus (field)

Inputs

Outputs

Configurations

Scripting

result: elemental mass

Inputs

Outputs

Configurations

Scripting

result: heat flux

Inputs

Outputs

Configurations

Scripting

math: total sum (fields container)

Inputs

Outputs

Configurations

Scripting

result: co-energy

Inputs

Outputs

Configurations

Scripting

math: dot

Inputs

Outputs

Configurations

Scripting

math: outer product

Inputs

Outputs

Configurations

Scripting

math: overall dot

Inputs

Outputs

Configurations

Scripting

math: relative error

Inputs

Outputs

Configurations

Scripting

result: velocity Y

Inputs

Outputs

Configurations

Scripting

result: reaction force Y

Inputs

Outputs

Configurations

Scripting

result: global velocity (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: superficial velocity

Inputs

Outputs

Configurations

Scripting

math: absolute value by component (field)

Inputs

Outputs

Configurations

Scripting

result: incremental energy

Inputs

Outputs

Configurations

Scripting

result: thermal strain

Inputs

Outputs

Configurations

Scripting

result: stiffness matrix energy

Inputs

Outputs

Configurations

Scripting

math: absolute value by component (fields container)

Inputs

Outputs

Configurations

Scripting

metadata: element types provider

Inputs

Outputs

Configurations

Scripting

result: total temperature

Inputs

Outputs

Configurations

Scripting

result: cyclic equivalent mass

Inputs

Outputs

Configurations

Scripting

result: acceleration Y

Inputs

Outputs

Configurations

Scripting

utility: delegate to operator

Inputs

Outputs

Configurations

Scripting

logic: component selector (fields container)

Inputs

Outputs

Configurations

Scripting

logic: component selector (field)

Inputs

Outputs

Configurations

Scripting

scoping: on property

Inputs

Outputs

Configurations

Scripting

result: stress intensity

Inputs

Outputs

Configurations

Scripting

logic: component transformer (field)

Inputs

Outputs

Configurations

Scripting

logic: component transformer (fields container)

Inputs

Outputs

Configurations

Scripting

logic: same property fields?

Inputs

Outputs

Configurations

Scripting

logic: elementary data selector (fields container)

Inputs

Outputs

Configurations

Scripting

utility: convert to scoping

Inputs

Outputs

Configurations

Scripting

logic: elementary data selector (field)

Inputs

Outputs

Configurations

Scripting

utility: change location

Inputs

Outputs

Configurations

Scripting

utility: extract field

Inputs

Outputs

Configurations

Scripting

mesh: node coordinates

Inputs

Outputs

Configurations

Scripting

mesh: stl export

Inputs

Outputs

Configurations

Scripting

utility: bind support

Inputs

Outputs

Configurations

Scripting

utility: convert to meshes container

Inputs

Outputs

Configurations

Scripting

result: beam torsional moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: equivalent stress parameter

Inputs

Outputs

Configurations

Scripting

utility: convert to field

Inputs

Outputs

Configurations

Scripting

result: beam axial total strain (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: set property

Inputs

Outputs

Configurations

Scripting

result: electric flux density Y

Inputs

Outputs

Configurations

Scripting

utility: forward field

Inputs

Outputs

Configurations

Scripting

utility: forward fields container

Inputs

Outputs

Configurations

Scripting

result: electric flux density

Inputs

Outputs

Configurations

Scripting

geo: integrate over elements

Inputs

Outputs

Configurations

Scripting

result: plastic strain principal 2

Inputs

Outputs

Configurations

Scripting

utility: forward meshes container

Inputs

Outputs

Configurations

Scripting

result: compute total strain X

Example of workflows and their scripts

math: imaginary part

Inputs

Outputs

Configurations

Scripting

math: amplitude (fields container)

Inputs

Outputs

Configurations

Scripting

metadata: mesh support provider

Inputs

Outputs

Configurations

Scripting

result: beam axial stress (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: unit convert (fields container)

Inputs

Outputs

Configurations

Scripting

result: element orientations X

Inputs

Outputs

Configurations

Scripting

math: norm (fields container)

Inputs

Outputs

Configurations

Scripting

mapping: prepare mapping workflow

Inputs

Outputs

Configurations

Scripting

math: sqrt (fields container)

Inputs

Outputs

Configurations

Scripting

math: conjugate

Inputs

Outputs

Configurations

Scripting

utility: html doc

Inputs

Outputs

Configurations

Scripting

math: real part

Inputs

Outputs

Configurations

Scripting

result: current density

Inputs

Outputs

Configurations

Scripting

logic: same property fields container?

Inputs

Outputs

Configurations

Scripting

math: multiply (complex fields)

Inputs

Outputs

Configurations

Scripting

utility: merge result infos

Inputs

Outputs

Configurations

Scripting

result: cyclic kinetic energy

Inputs

Outputs

Configurations

Scripting

result: global total mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: unit convert

Inputs

Outputs

Configurations

Scripting

math: norm (field)

Inputs

Outputs

Configurations

Scripting

utility: make label space

Inputs

Outputs

Configurations

Scripting

math: sqrt (field)

Inputs

Outputs

Configurations

Scripting

result: y plus (y+)

Inputs

Outputs

Configurations

Scripting

math: accumulate min over label

Inputs

Outputs

Configurations

Scripting

math: +

Inputs

Outputs

Configurations

Scripting

server: grpc shutdown server

Inputs

Outputs

Configurations

Scripting

result: magnetic scalar potential

Inputs

Outputs

Configurations

Scripting

min_max: min max over time

Inputs

Outputs

Configurations

Scripting

math: time freq interpolation

Inputs

Outputs

Configurations

Scripting

math: + (fields container)

Inputs

Outputs

Configurations

Scripting

math: sin (fields container)

Inputs

Outputs

Configurations

Scripting

result: tangential contact force

Inputs

Outputs

Configurations

Scripting

math: + constant (field)

Inputs

Outputs

Configurations

Scripting

math: / (component-wise field)

Inputs

Outputs

Configurations

Scripting

result: normal contact force

Inputs

Outputs

Configurations

Scripting

math: + constant (fields container)

Inputs

Outputs

Configurations

Scripting

math: cross product (fields container)

Inputs

Outputs

Configurations

Scripting

result: cyclic strain energy

Inputs

Outputs

Configurations

Scripting

invariant: scalar invariants (fields container)

Inputs

Outputs

Configurations

Scripting

mapping: find reduced coordinates

Inputs

Outputs

Configurations

Scripting

scoping: rescope property field

Inputs

Outputs

Configurations

Scripting

result: plastic strain principal 1

Inputs

Outputs

Configurations

Scripting

math: -

Inputs

Outputs

Configurations

Scripting

math: total sum

Inputs

Outputs

Configurations

Scripting

math: - (fields container)

Inputs

Outputs

Configurations

Scripting

scoping: intersect scopings

Inputs

Outputs

Configurations

Scripting

math: ^ (field)

Inputs

Outputs

Configurations

Scripting

scoping: elements in mesh

Inputs

Outputs

Configurations

Scripting

math: scale (field)

Inputs

Outputs

Configurations

Scripting

result: enthalpy

Inputs

Outputs

Configurations

Scripting

math: ^ (fields container)

Inputs

Outputs

Configurations

Scripting

result: global eroded internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: scale fields container

Inputs

Outputs

Configurations

Scripting

math: sweeping phase

Inputs

Outputs

Configurations

Scripting

math: centroid

Inputs

Outputs

Configurations

Scripting

math: sweeping phase (fields container)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (field)

Inputs

Outputs

Configurations

Scripting

math: centroid (fields container)

Inputs

Outputs

Configurations

Scripting

math: ^2 (field)

Inputs

Outputs

Configurations

Scripting

utility: remove unnecessary labels

Inputs

Outputs

Configurations

Scripting

result: velocity Z

Inputs

Outputs

Configurations

Scripting

result: reaction force Z

Inputs

Outputs

Configurations

Scripting

math: sin (field)

Inputs

Outputs

Configurations

Scripting

math: cos (field)

Inputs

Outputs

Configurations

Scripting

math: cos (fields container)

Inputs

Outputs

Configurations

Scripting

logic: ascending sort

Inputs

Outputs

Configurations

Scripting

result: initial coordinates (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: convert to fields container

Inputs

Outputs

Configurations

Scripting

math: linear combination

Inputs

Outputs

Configurations

Scripting

math: ^2 (fields container)

Inputs

Outputs

Configurations

Scripting

result: mean static pressure

Inputs

Outputs

Configurations

Scripting

math: exp (field)

Inputs

Outputs

Configurations

Scripting

math: exp (fields container)

Inputs

Outputs

Configurations

Scripting

math: * (component-wise field)

Inputs

Outputs

Configurations

Scripting

result: stress max_shear

Inputs

Outputs

Configurations

Scripting

result: euler nodes

Inputs

Outputs

Configurations

Scripting

math: * (component-wise field) (fields container)

Inputs

Outputs

Configurations

Scripting

logic: same meshes container?

Inputs

Outputs

Configurations

Scripting

result: beam TR shear stress (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: num surface status changes

Inputs

Outputs

Configurations

Scripting

math: ln (field)

Inputs

Outputs

Configurations

Scripting

mesh: mesh to pyvista

Inputs

Outputs

Configurations

Scripting

math: ln (fields container)

Inputs

Outputs

Configurations

Scripting

invariant: scalar invariants (field)

Inputs

Outputs

Configurations

Scripting

math: cross product

Inputs

Outputs

Configurations

Scripting

filter: high pass (timefreq)

Inputs

Outputs

Configurations

Scripting

math: / (component-wise fields container)

Inputs

Outputs

Configurations

Scripting

result: global sliding interface energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: kronecker product

Inputs

Outputs

Configurations

Scripting

math: modulus (fields container)

Inputs

Outputs

Configurations

Scripting

result: joint relative angular velocity

Inputs

Outputs

Configurations

Scripting

math: dot (complex fields)

Inputs

Outputs

Configurations

Scripting

result: gasket stress XZ

Inputs

Outputs

Configurations

Scripting

math: / (complex fields)

Inputs

Outputs

Configurations

Scripting

utility: unitary field

Inputs

Outputs

Configurations

Scripting

utility: server path

Inputs

Outputs

Configurations

Scripting

result: beam axial force (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: derivate (complex fields)

Inputs

Outputs

Configurations

Scripting

math: polar to complex fields

Inputs

Outputs

Configurations

Scripting

utility: merge data tree

Inputs

Outputs

Configurations

Scripting

math: dot (fields container)

Inputs

Outputs

Configurations

Scripting

result: nodal moment

Inputs

Outputs

Configurations

Scripting

math: phase (field)

Inputs

Outputs

Configurations

Scripting

math: phase (fields container)

Inputs

Outputs

Configurations

Scripting

math: modulus (field)

Inputs

Outputs

Configurations

Scripting

result: elemental mass

Inputs

Outputs

Configurations

Scripting

result: heat flux

Inputs

Outputs

Configurations

Scripting

math: total sum (fields container)

Inputs

Outputs

Configurations

Scripting

result: co-energy

Inputs

Outputs

Configurations

Scripting

math: dot

Inputs

Outputs

Configurations

Scripting

math: outer product

Inputs

Outputs

Configurations

Scripting

math: overall dot

Inputs

Outputs

Configurations

Scripting

math: relative error

Inputs

Outputs

Configurations

Scripting

result: velocity Y

Inputs

Outputs

Configurations

Scripting

result: reaction force Y

Inputs

Outputs

Configurations

Scripting

result: global velocity (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: superficial velocity

Inputs

Outputs

Configurations

Scripting

math: absolute value by component (field)

Inputs

Outputs

Configurations

Scripting

result: incremental energy

Inputs

Outputs

Configurations

Scripting

result: thermal strain

Inputs

Outputs

Configurations

Scripting

result: stiffness matrix energy

Inputs

Outputs

Configurations

Scripting

math: absolute value by component (fields container)

Inputs

Outputs

Configurations

Scripting

metadata: element types provider

Inputs

Outputs

Configurations

Scripting

result: total temperature

Inputs

Outputs

Configurations

Scripting

result: cyclic equivalent mass

Inputs

Outputs

Configurations

Scripting

result: acceleration Y

Inputs

Outputs

Configurations

Scripting

utility: delegate to operator

Inputs

Outputs

Configurations

Scripting

logic: component selector (fields container)

Inputs

Outputs

Configurations

Scripting

logic: component selector (field)

Inputs

Outputs

Configurations

Scripting

scoping: on property

Inputs

Outputs

Configurations

Scripting

result: stress intensity

Inputs

Outputs

Configurations

Scripting

logic: component transformer (field)

Inputs

Outputs

Configurations

Scripting

logic: component transformer (fields container)

Inputs

Outputs

Configurations

Scripting

logic: same property fields?

Inputs

Outputs

Configurations

Scripting

logic: elementary data selector (fields container)

Inputs

Outputs

Configurations

Scripting

utility: convert to scoping

Inputs

Outputs

Configurations

Scripting

logic: elementary data selector (field)

Inputs

Outputs

Configurations

Scripting

utility: change location

Inputs

Outputs

Configurations

Scripting

utility: extract field

Inputs

Outputs

Configurations

Scripting

mesh: node coordinates

Inputs

Outputs

Configurations

Scripting

mesh: stl export

Inputs

Outputs

Configurations

Scripting

utility: bind support

Inputs

Outputs

Configurations

Scripting

utility: convert to meshes container

Inputs

Outputs

Configurations

Scripting

result: beam torsional moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: equivalent stress parameter

Inputs

Outputs

Configurations

Scripting

utility: convert to field

Inputs

Outputs

Configurations

Scripting

result: beam axial total strain (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: set property

Inputs

Outputs

Configurations

Scripting

result: electric flux density Y

Inputs

Outputs

Configurations

Scripting

utility: forward field

Inputs

Outputs

Configurations

Scripting

utility: forward fields container

Inputs

Outputs

Configurations

Scripting

result: electric flux density

Inputs

Outputs

Configurations

Scripting

result: plastic strain principal 2

Inputs

Outputs

Configurations

Scripting

utility: forward meshes container

Inputs

Outputs

Configurations

Scripting

geo: integrate over elements

Inputs

Outputs

Configurations

Scripting

result: compute total strain X

Configurating operators Only linear analysis are supported without On Demand Expansion. All coordinates are global coordinates. Euler Angles need to be included in the database. - Get the XX normal component (00 component).">

Inputs

Outputs

Configurations

Scripting

utility: forward

Inputs

Outputs

Configurations

Scripting

utility: incremental meshes container

Inputs

Outputs

Configurations

Scripting

utility: txt file to dpf

Inputs

Outputs

Configurations

Scripting

utility: bind support (fields container)

Inputs

Outputs

Configurations

Scripting

result: normal contact moment

Inputs

Outputs

Configurations

Scripting

utility: fields container get attribute

Inputs

Outputs

Configurations

Scripting

result: thermal strain XZ

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to vector

Inputs

Outputs

Configurations

Scripting

result: global eroded hourglass energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to vector fc

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to matrix

Inputs

Outputs

Configurations

Scripting

math: make one on component

Inputs

Outputs

Configurations

Scripting

mesh: from scopings

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to matrix fc

Inputs

Outputs

Configurations

Scripting

result: interface contact area (LSDyna)

Inputs

Outputs

Configurations

Scripting

mesh: extract from field

Inputs

Outputs

Configurations

Scripting

result: pres to field

Inputs

Outputs

Configurations

Scripting

result: part internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part momentum (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: compute invariant terms rbd

Inputs

Outputs

Configurations

Scripting

utility: default value

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal elemental (fields container)

Inputs

Outputs

Configurations

Scripting

result: rms velocity

Inputs

Outputs

Configurations

Scripting

result: acceleration X

Inputs

Outputs

Configurations

Scripting

result: poynting vector

Inputs

Outputs

Configurations

Scripting

utility: extract sub fields container

Inputs

Outputs

Configurations

Scripting

result: total strain (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: extract sub meshes container

Inputs

Outputs

Configurations

Scripting

utility: extract sub scopings container

Inputs

Outputs

Configurations

Scripting

averaging: elemental difference (fields container)

Inputs

Outputs

Configurations

Scripting

utility: compute time scoping

Inputs

Outputs

Configurations

Scripting

result: static pressure

Inputs

Outputs

Configurations

Scripting

result: elastic strain

Inputs

Outputs

Configurations

Scripting

math: window bartlett (fields container)

Inputs

Outputs

Configurations

Scripting

result: turbulent viscosity

Inputs

Outputs

Configurations

Scripting

utility: python generator

Inputs

Outputs

Configurations

Scripting

utility: make overall

Inputs

Outputs

Configurations

Scripting

geo: elements volume

Inputs

Outputs

Configurations

Scripting

result: pressure

Inputs

Outputs

Configurations

Scripting

result: stress

Inputs

Outputs

Configurations

Scripting

result: stress X

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure XZ

Inputs

Outputs

Configurations

Scripting

result: stress Y

Inputs

Outputs

Configurations

Scripting

result: stress Z

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure XY

Inputs

Outputs

Configurations

Scripting

result: stress XY

Inputs

Outputs

Configurations

Scripting

compression: kMeans clustering

Inputs

Outputs

Configurations

Scripting

result: stress YZ

Inputs

Outputs

Configurations

Scripting

result: stress XZ

Inputs

Outputs

Configurations

Scripting

utility: merge string fields

Inputs

Outputs

Configurations

Scripting

result: stress principal 1

Inputs

Outputs

Configurations

Scripting

result: stress principal 2

Inputs

Outputs

Configurations

Scripting

result: tangential contact moment

Inputs

Outputs

Configurations

Scripting

invariant: convertnum bcs to nod

Inputs

Outputs

Configurations

Scripting

result: stress principal 3

Inputs

Outputs

Configurations

Scripting

result: stress von mises

Inputs

Outputs

Configurations

Scripting

result: gasket stress

Inputs

Outputs

Configurations

Scripting

result: contact fluid penetration pressure

Inputs

Outputs

Configurations

Scripting

result: gasket stress X

Inputs

Outputs

Configurations

Scripting

result: gasket stress XY

Inputs

Outputs

Configurations

Scripting

result: gasket deformation

Inputs

Outputs

Configurations

Scripting

result: gasket deformation X

Inputs

Outputs

Configurations

Scripting

geo: elements facets surfaces over time

Inputs

Outputs

Configurations

Scripting

result: gasket deformation XY

Inputs

Outputs

Configurations

Scripting

metadata: property field provider by property name

Inputs

Outputs

Configurations

Scripting

result: gasket deformation XZ

Inputs

Outputs

Configurations

Scripting

mesh: mesh provider

Inputs

Inputs

Outputs

Configurations

Scripting

utility: forward

Inputs

Outputs

Configurations

Scripting

utility: incremental meshes container

Inputs

Outputs

Configurations

Scripting

utility: txt file to dpf

Inputs

Outputs

Configurations

Scripting

utility: bind support (fields container)

Inputs

Outputs

Configurations

Scripting

result: normal contact moment

Inputs

Outputs

Configurations

Scripting

utility: fields container get attribute

Inputs

Outputs

Configurations

Scripting

result: thermal strain XZ

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to vector

Inputs

Outputs

Configurations

Scripting

result: global eroded hourglass energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to vector fc

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to matrix

Inputs

Outputs

Configurations

Scripting

math: make one on component

Inputs

Outputs

Configurations

Scripting

mesh: from scopings

Inputs

Outputs

Configurations

Scripting

utility: assemble scalars to matrix fc

Inputs

Outputs

Configurations

Scripting

result: interface contact area (LSDyna)

Inputs

Outputs

Configurations

Scripting

mesh: extract from field

Inputs

Outputs

Configurations

Scripting

result: pres to field

Inputs

Outputs

Configurations

Scripting

result: part internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part momentum (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: compute invariant terms rbd

Inputs

Outputs

Configurations

Scripting

utility: default value

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal elemental (fields container)

Inputs

Outputs

Configurations

Scripting

result: rms velocity

Inputs

Outputs

Configurations

Scripting

result: acceleration X

Inputs

Outputs

Configurations

Scripting

result: poynting vector

Inputs

Outputs

Configurations

Scripting

utility: extract sub fields container

Inputs

Outputs

Configurations

Scripting

result: total strain (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: extract sub meshes container

Inputs

Outputs

Configurations

Scripting

utility: extract sub scopings container

Inputs

Outputs

Configurations

Scripting

averaging: elemental difference (fields container)

Inputs

Outputs

Configurations

Scripting

utility: compute time scoping

Inputs

Outputs

Configurations

Scripting

result: static pressure

Inputs

Outputs

Configurations

Scripting

result: elastic strain

Inputs

Outputs

Configurations

Scripting

math: window bartlett (fields container)

Inputs

Outputs

Configurations

Scripting

result: turbulent viscosity

Inputs

Outputs

Configurations

Scripting

utility: python generator

Inputs

Outputs

Configurations

Scripting

utility: make overall

Inputs

Outputs

Configurations

Scripting

geo: elements volume

Inputs

Outputs

Configurations

Scripting

result: pressure

Inputs

Outputs

Configurations

Scripting

result: stress

Inputs

Outputs

Configurations

Scripting

result: stress X

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure XZ

Inputs

Outputs

Configurations

Scripting

result: stress Y

Inputs

Outputs

Configurations

Scripting

result: stress Z

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure XY

Inputs

Outputs

Configurations

Scripting

result: stress XY

Inputs

Outputs

Configurations

Scripting

compression: kMeans clustering

Inputs

Outputs

Configurations

Scripting

result: stress YZ

Inputs

Outputs

Configurations

Scripting

logic: same fields?

Inputs

Outputs

Configurations

Scripting

result: stress XZ

Inputs

Outputs

Configurations

Scripting

utility: merge string fields

Inputs

Outputs

Configurations

Scripting

result: stress principal 1

Inputs

Outputs

Configurations

Scripting

result: stress principal 2

Inputs

Outputs

Configurations

Scripting

result: tangential contact moment

Inputs

Outputs

Configurations

Scripting

invariant: convertnum bcs to nod

Inputs

Outputs

Configurations

Scripting

result: stress principal 3

Inputs

Outputs

Configurations

Scripting

result: stress von mises

Inputs

Outputs

Configurations

Scripting

result: gasket stress

Inputs

Outputs

Configurations

Scripting

result: contact fluid penetration pressure

Inputs

Outputs

Configurations

Scripting

result: gasket stress X

Inputs

Outputs

Configurations

Scripting

result: gasket stress XY

Inputs

Outputs

Configurations

Scripting

result: gasket deformation

Inputs

Outputs

Configurations

Scripting

result: gasket deformation X

Inputs

Outputs

Configurations

Scripting

geo: elements facets surfaces over time

Inputs

Outputs

Configurations

Scripting

result: gasket deformation XY

Inputs

Outputs

Configurations

Scripting

metadata: property field provider by property name

Inputs

Outputs

Configurations

Scripting

result: gasket deformation XZ

Inputs

Outputs

Configurations

Scripting

mesh: mesh provider

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure X

Inputs

Outputs

Configurations

Scripting

result: write cms rbd file

Inputs

Outputs

Configurations

Scripting

serialization: export symbolic workflow

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure XY

Inputs

Outputs

Configurations

Scripting

result: plastic strain eqv

Inputs

Outputs

Configurations

Scripting

mesh: beam properties

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure XZ

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure X

Inputs

Outputs

Configurations

Scripting

result: elastic strain X

Inputs

Outputs

Configurations

Scripting

result: elastic strain Y

Inputs

Outputs

Configurations

Scripting

result: elastic strain Z

Inputs

Outputs

Configurations

Scripting

math: min/max over time

Inputs

Outputs

Configurations

Scripting

utility: merge fields containers

Inputs

Outputs

Configurations

Scripting

result: global energy ratio without eroded energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: merge weighted fields containers

Inputs

Outputs

Configurations

Scripting

result: elastic strain XY

Inputs

Outputs

Configurations

Scripting

result: elastic strain YZ

Inputs

Outputs

Configurations

Scripting

result: interface contact mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

invariant: eigen values (fields container)

Inputs

Outputs

Configurations

Scripting

result: elastic strain XZ

Inputs

Outputs

Configurations

Scripting

metadata: mesh property provider

Inputs

Outputs

Configurations

Scripting

result: rigid transformation

Inputs

Outputs

Configurations

Scripting

result: elastic strain principal 1

Inputs

Outputs

Configurations

Scripting

result: elastic strain principal 2

Inputs

Outputs

Configurations

Scripting

utility: merge scopings

Inputs

Outputs

Configurations

Scripting

result: elastic strain principal 3

Inputs

Outputs

Configurations

Scripting

result: cyclic analytic disp max

Inputs

Outputs

Configurations

Scripting

result: elastic strain eqv

Inputs

Outputs

Configurations

Scripting

result: electric flux density X

Inputs

Outputs

Configurations

Scripting

result: transform invariant terms rbd

Inputs

Outputs

Configurations

Scripting

result: elastic strain intensity

Inputs

Outputs

Configurations

Scripting

result: elastic strain max_shear

Inputs

Outputs

Configurations

Scripting

result: turbulent dissipation rate (omega)

Inputs

Outputs

Configurations

Scripting

averaging: to elemental (fields container)

Inputs

Outputs

Configurations

Scripting

result: plastic strain

Inputs

Outputs

Configurations

Scripting

scoping: transpose

Inputs

Outputs

Configurations

Scripting

result: mass fraction

Inputs

Outputs

Configurations

Scripting

result: plastic strain X

Inputs

Outputs

Configurations

Scripting

result: coordinates (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: plastic strain Y

Inputs

Outputs

Configurations

Scripting

filter: band pass (fields container)

Inputs

Outputs

Configurations

Scripting

geo: to polar coordinates

Inputs

Outputs

Configurations

Scripting

math: fft evaluation

Inputs

Outputs

Configurations

Scripting

result: global total energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: plastic strain Z

Inputs

Outputs

Configurations

Scripting

utility: merge materials

Inputs

Outputs

Configurations

Scripting

serialization: vtk export

Inputs

Outputs

Configurations

Scripting

result: dynamic viscosity

Inputs

Outputs

Configurations

Scripting

result: plastic strain XY

Inputs

Outputs

Configurations

Scripting

result: hydrostatic pressure

Inputs

Outputs

Configurations

Scripting

result: compute stress von mises

Inputs

Outputs

Configurations

Scripting

filter: low pass (scoping)

Inputs

Outputs

Configurations

Scripting

mesh: iso surfaces

Inputs

Outputs

Configurations

Scripting

result: plastic strain YZ

Inputs

Outputs

Configurations

Scripting

result: plastic strain XZ

Inputs

Outputs

Configurations

Scripting

result: workflow energy per harmonic

Inputs

Outputs

Configurations

Scripting

result: plastic strain principal 3

Inputs

Outputs

Configurations

Scripting

result: plastic strain intensity

Inputs

Outputs

Configurations

Scripting

result: plastic strain max_shear

Inputs

Outputs

Configurations

Scripting

filter: low pass (timefreq)

Inputs

Outputs

Configurations

Scripting

filter: band pass (field)

Inputs

Outputs

Configurations

Scripting

result: thermal strain X

Inputs

Outputs

Configurations

Scripting

result: thermal strain Y

Inputs

Outputs

Configurations

Scripting

result: equivalent radiated power

Inputs

Outputs

Configurations

Scripting

result: thermal strain Z

Inputs

Outputs

Configurations

Scripting

utility: merge scopings containers

Inputs

Outputs

Configurations

Scripting

math: accumulate over label

Inputs

Outputs

Configurations

Scripting

result: thermal strain XY

Inputs

Outputs

Configurations

Scripting

result: thermal strain YZ

Inputs

Outputs

Configurations

Scripting

result: thermal strain principal 1

Inputs

Outputs

Configurations

Scripting

result: thermal strain principal 2

Inputs

Outputs

Configurations

Scripting

result: thermal strain principal 3

Inputs

Outputs

Configurations

Scripting

serialization: serializer

Inputs

Outputs

Configurations

Scripting

result: wall shear stress

Inputs

Outputs

Configurations

Scripting

result: velocity

Inputs

Outputs

Configurations

Scripting

result: reaction force

Inputs

Outputs

Configurations

Scripting

result: velocity X

Inputs

Outputs

Configurations

Scripting

result: reaction force X

Inputs

Outputs

Configurations

Scripting

geo: cartesian to spherical coordinates (fields container)

Inputs

Outputs

Configurations

Scripting

result: global external work (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: acceleration

Inputs

Outputs

Configurations

Scripting

result: element centroids

Inputs

Outputs

Configurations

Scripting

result: acceleration Z

Inputs

Outputs

Configurations

Scripting

scoping: rescope (fields container)

Inputs

Outputs

Configurations

Scripting

serialization: workflow to workflow_topology

Inputs

Outputs

Configurations

Scripting

result: displacement

Inputs

Outputs

Configurations

Scripting

result: electric field Z

Inputs

Outputs

Configurations

Scripting

result: displacement X

Inputs

Outputs

Configurations

Scripting

averaging: force_summation

Inputs

Outputs

Configurations

Scripting

result: displacement Y

Inputs

Outputs

Configurations

Scripting

result: electric field X

Inputs

Outputs

Configurations

Scripting

result: displacement Z

Inputs

Outputs

Configurations

Scripting

result: heat flux X

Inputs

Outputs

Configurations

Scripting

result: heat flux Y

Inputs

Outputs

Configurations

Scripting

result: electric field

Inputs

Outputs

Configurations

Scripting

result: total contact moment

Inputs

Outputs

Configurations

Scripting

result: heat flux Z

Inputs

Outputs

Configurations

Scripting

serialization: serialize to hdf5

Inputs

Outputs

Configurations

Scripting

result: element orientations

Inputs

Outputs

Configurations

Scripting

result: element orientations Y

Inputs

Outputs

Configurations

Scripting

result: magnetic field Z

Inputs

Outputs

Configurations

Scripting

averaging: elemental mean (fields container)

Inputs

Outputs

Configurations

Scripting

result: magnetic field Y

Inputs

Outputs

Configurations

Scripting

mesh: split mesh wrt property

Inputs

Outputs

Configurations

Scripting

result: element orientations Z

Inputs

Outputs

Configurations

Scripting

result: temperature gradient

Inputs

Outputs

Configurations

Scripting

result: cgns result provider

Inputs

Outputs

Configurations

Scripting

result: temperature gradient X

Inputs

Outputs

Configurations

Scripting

result: entropy

Inputs

Outputs

Configurations

Scripting

result: volume fraction

Inputs

Outputs

Configurations

Scripting

result: temperature gradient Y

Inputs

Outputs

Configurations

Scripting

result: temperature gradient Z

Inputs

Outputs

Configurations

Scripting

result: elemental summable miscellaneous data

Inputs

Outputs

Configurations

Scripting

result: magnetic field

Inputs

Outputs

Configurations

Scripting

result: compute stress Z

Inputs

Outputs

Configurations

Scripting

result: part eroded kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: magnetic field X

Inputs

Outputs

Configurations

Scripting

serialization: string deserializer

Inputs

Outputs

Configurations

Scripting

utility: merge meshes containers

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density X

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density Y

Inputs

Outputs

Configurations

Scripting

result: nodal force

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density Z

Inputs

Outputs

Configurations

Scripting

result: electric field Y

Inputs

Outputs

Configurations

Scripting

result: electric flux density Z

Inputs

Outputs

Configurations

Scripting

result: element nodal forces

Inputs

Outputs

Configurations

Scripting

result: compute total strain Z

Outputs

Configurations

Scripting

result: gasket inelastic closure

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure X

Inputs

Outputs

Configurations

Scripting

result: write cms rbd file

Inputs

Outputs

Configurations

Scripting

serialization: export symbolic workflow

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure XY

Inputs

Outputs

Configurations

Scripting

result: plastic strain eqv

Inputs

Outputs

Configurations

Scripting

mesh: beam properties

Inputs

Outputs

Configurations

Scripting

result: gasket inelastic closure XZ

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure

Inputs

Outputs

Configurations

Scripting

result: gasket thermal closure X

Inputs

Outputs

Configurations

Scripting

result: elastic strain X

Inputs

Outputs

Configurations

Scripting

result: elastic strain Y

Inputs

Outputs

Configurations

Scripting

result: elastic strain Z

Inputs

Outputs

Configurations

Scripting

math: min/max over time

Inputs

Outputs

Configurations

Scripting

utility: merge fields containers

Inputs

Outputs

Configurations

Scripting

result: global energy ratio without eroded energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: merge weighted fields containers

Inputs

Outputs

Configurations

Scripting

result: elastic strain XY

Inputs

Outputs

Configurations

Scripting

result: elastic strain YZ

Inputs

Outputs

Configurations

Scripting

result: interface contact mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

invariant: eigen values (fields container)

Inputs

Outputs

Configurations

Scripting

result: elastic strain XZ

Inputs

Outputs

Configurations

Scripting

metadata: mesh property provider

Inputs

Outputs

Configurations

Scripting

result: rigid transformation

Inputs

Outputs

Configurations

Scripting

result: elastic strain principal 1

Inputs

Outputs

Configurations

Scripting

result: elastic strain principal 2

Inputs

Outputs

Configurations

Scripting

utility: merge scopings

Inputs

Outputs

Configurations

Scripting

result: elastic strain principal 3

Inputs

Outputs

Configurations

Scripting

result: cyclic analytic disp max

Inputs

Outputs

Configurations

Scripting

result: elastic strain eqv

Inputs

Outputs

Configurations

Scripting

result: electric flux density X

Inputs

Outputs

Configurations

Scripting

result: transform invariant terms rbd

Inputs

Outputs

Configurations

Scripting

result: elastic strain intensity

Inputs

Outputs

Configurations

Scripting

result: elastic strain max_shear

Inputs

Outputs

Configurations

Scripting

result: turbulent dissipation rate (omega)

Inputs

Outputs

Configurations

Scripting

averaging: to elemental (fields container)

Inputs

Outputs

Configurations

Scripting

result: plastic strain

Inputs

Outputs

Configurations

Scripting

scoping: transpose

Inputs

Outputs

Configurations

Scripting

result: mass fraction

Inputs

Outputs

Configurations

Scripting

result: plastic strain X

Inputs

Outputs

Configurations

Scripting

result: coordinates (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: plastic strain Y

Inputs

Outputs

Configurations

Scripting

filter: band pass (fields container)

Inputs

Outputs

Configurations

Scripting

geo: to polar coordinates

Inputs

Outputs

Configurations

Scripting

math: fft evaluation

Inputs

Outputs

Configurations

Scripting

result: global total energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: plastic strain Z

Inputs

Outputs

Configurations

Scripting

utility: merge materials

Inputs

Outputs

Configurations

Scripting

serialization: vtk export

Inputs

Outputs

Configurations

Scripting

result: dynamic viscosity

Inputs

Outputs

Configurations

Scripting

result: plastic strain XY

Inputs

Outputs

Configurations

Scripting

result: hydrostatic pressure

Inputs

Outputs

Configurations

Scripting

result: compute stress von mises

Inputs

Outputs

Configurations

Scripting

filter: low pass (scoping)

Inputs

Outputs

Configurations

Scripting

mesh: iso surfaces

Inputs

Outputs

Configurations

Scripting

result: plastic strain YZ

Inputs

Outputs

Configurations

Scripting

result: plastic strain XZ

Inputs

Outputs

Configurations

Scripting

result: workflow energy per harmonic

Inputs

Outputs

Configurations

Scripting

result: plastic strain principal 3

Inputs

Outputs

Configurations

Scripting

result: plastic strain intensity

Inputs

Outputs

Configurations

Scripting

result: plastic strain max_shear

Inputs

Outputs

Configurations

Scripting

filter: low pass (timefreq)

Inputs

Outputs

Configurations

Scripting

filter: band pass (field)

Inputs

Outputs

Configurations

Scripting

result: thermal strain X

Inputs

Outputs

Configurations

Scripting

result: thermal strain Y

Inputs

Outputs

Configurations

Scripting

result: equivalent radiated power

Inputs

Outputs

Configurations

Scripting

result: thermal strain Z

Inputs

Outputs

Configurations

Scripting

utility: merge scopings containers

Inputs

Outputs

Configurations

Scripting

math: accumulate over label

Inputs

Outputs

Configurations

Scripting

result: thermal strain XY

Inputs

Outputs

Configurations

Scripting

result: thermal strain YZ

Inputs

Outputs

Configurations

Scripting

result: thermal strain principal 1

Inputs

Outputs

Configurations

Scripting

logic: same anys?

Inputs

Outputs

Configurations

Scripting

result: thermal strain principal 2

Inputs

Outputs

Configurations

Scripting

result: thermal strain principal 3

Inputs

Outputs

Configurations

Scripting

serialization: serializer

Inputs

Outputs

Configurations

Scripting

result: wall shear stress

Inputs

Outputs

Configurations

Scripting

result: velocity

Inputs

Outputs

Configurations

Scripting

result: reaction force

Inputs

Outputs

Configurations

Scripting

result: velocity X

Inputs

Outputs

Configurations

Scripting

result: reaction force X

Inputs

Outputs

Configurations

Scripting

geo: cartesian to spherical coordinates (fields container)

Inputs

Outputs

Configurations

Scripting

result: global external work (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: acceleration

Inputs

Outputs

Configurations

Scripting

result: element centroids

Inputs

Outputs

Configurations

Scripting

result: acceleration Z

Inputs

Outputs

Configurations

Scripting

scoping: rescope (fields container)

Inputs

Outputs

Configurations

Scripting

serialization: workflow to workflow_topology

Inputs

Outputs

Configurations

Scripting

result: displacement

Inputs

Outputs

Configurations

Scripting

result: electric field Z

Inputs

Outputs

Configurations

Scripting

result: displacement X

Inputs

Outputs

Configurations

Scripting

averaging: force_summation

Inputs

Outputs

Configurations

Scripting

result: displacement Y

Inputs

Outputs

Configurations

Scripting

result: electric field X

Inputs

Outputs

Configurations

Scripting

result: displacement Z

Inputs

Outputs

Configurations

Scripting

result: heat flux X

Inputs

Outputs

Configurations

Scripting

result: heat flux Y

Inputs

Outputs

Configurations

Scripting

result: electric field

Inputs

Outputs

Configurations

Scripting

result: total contact moment

Inputs

Outputs

Configurations

Scripting

result: heat flux Z

Inputs

Outputs

Configurations

Scripting

serialization: serialize to hdf5

Inputs

Outputs

Configurations

Scripting

result: element orientations

Inputs

Outputs

Configurations

Scripting

result: element orientations Y

Inputs

Outputs

Configurations

Scripting

result: magnetic field Z

Inputs

Outputs

Configurations

Scripting

averaging: elemental mean (fields container)

Inputs

Outputs

Configurations

Scripting

result: magnetic field Y

Inputs

Outputs

Configurations

Scripting

mesh: split mesh wrt property

Inputs

Outputs

Configurations

Scripting

result: element orientations Z

Inputs

Outputs

Configurations

Scripting

result: temperature gradient

Inputs

Outputs

Configurations

Scripting

result: cgns result provider

Inputs

Outputs

Configurations

Scripting

result: temperature gradient X

Inputs

Outputs

Configurations

Scripting

result: entropy

Inputs

Outputs

Configurations

Scripting

result: volume fraction

Inputs

Outputs

Configurations

Scripting

result: temperature gradient Y

Inputs

Outputs

Configurations

Scripting

result: temperature gradient Z

Inputs

Outputs

Configurations

Scripting

result: elemental summable miscellaneous data

Inputs

Outputs

Configurations

Scripting

result: magnetic field

Inputs

Outputs

Configurations

Scripting

result: compute stress Z

Inputs

Outputs

Configurations

Scripting

result: part eroded kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: magnetic field X

Inputs

Outputs

Configurations

Scripting

serialization: string deserializer

Inputs

Outputs

Configurations

Scripting

utility: merge meshes containers

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density X

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density Y

Inputs

Outputs

Configurations

Scripting

result: nodal force

Inputs

Outputs

Configurations

Scripting

result: magnetic flux density Z

Inputs

Outputs

Configurations

Scripting

result: electric field Y

Inputs

Outputs

Configurations

Scripting

result: electric flux density Z

Inputs

Outputs

Configurations

Scripting

result: element nodal forces

Inputs

Outputs

Configurations

Scripting

result: compute total strain Z

Configurating operators Only linear analysis are supported without On Demand Expansion. All coordinates are global coordinates. Euler Angles need to be included in the database. - Get the ZZ normal component (22 component).">

Inputs

Outputs

Configurations

Scripting

result: structural temperature

Inputs

Outputs

Configurations

Scripting

metadata: result info provider

Inputs

Outputs

Configurations

Scripting

mesh: skin (tri mesh)

Inputs

Outputs

Configurations

Scripting

result: stress ratio

Inputs

Outputs

Configurations

Scripting

filter: band pass (timescoping)

Inputs

Outputs

Configurations

Scripting

compression: sketch matrix

Inputs

Outputs

Configurations

Scripting

result: accu eqv plastic strain

Inputs

Outputs

Configurations

Scripting

result: plastic state variable

Inputs

Outputs

Configurations

Scripting

result: accu eqv creep strain

Inputs

Outputs

Configurations

Scripting

result: plastic strain energy density

Inputs

Outputs

Configurations

Scripting

result: material property of element

Inputs

Outputs

Configurations

Scripting

result: creep strain energy density

Inputs

Outputs

Configurations

Scripting

result: erp radiation efficiency

Inputs

Outputs

Configurations

Scripting

result: elastic strain energy density

Inputs

Outputs

Configurations

Scripting

result: contact status

Inputs

Outputs

Configurations

Scripting

serialization: field to csv

Inputs

Outputs

Configurations

Scripting

result: contact penetration

Inputs

Outputs

Configurations

Scripting

result: contact pressure

Inputs

Outputs

Configurations

Scripting

result: contact friction stress

Inputs

Outputs

Configurations

Scripting

result: contact total stress

Inputs

Outputs

Configurations

Scripting

result: contact sliding distance

Inputs

Outputs

Configurations

Scripting

utility: merge generic data container

Inputs

Outputs

Configurations

Scripting

result: global joint internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded element nodal forces

Inputs

Outputs

Configurations

Scripting

serialization: vtk to fields

Inputs

Outputs

Configurations

Scripting

result: contact gap distance

Inputs

Outputs

Configurations

Scripting

utility: merge any objects

Inputs

Outputs

Configurations

Scripting

result: contact surface heat flux

Inputs

Outputs

Configurations

Scripting

result: elemental volume

Inputs

Outputs

Configurations

Scripting

result: artificial hourglass energy

Inputs

Outputs

Configurations

Scripting

result: kinetic energy

Inputs

Outputs

Configurations

Scripting

result: thermal dissipation energy

Inputs

Outputs

Configurations

Scripting

result: total mass

Inputs

Outputs

Configurations

Scripting

result: rms static pressure

Inputs

Outputs

Configurations

Scripting

result: swelling strains

Inputs

Outputs

Configurations

Scripting

result: total contact force

Inputs

Outputs

Configurations

Scripting

result: temperature

Inputs

Outputs

Configurations

Scripting

result: compute stress

Inputs

Outputs

Configurations

Scripting

result: raw displacement

Inputs

Outputs

Configurations

Scripting

result: raw reaction force

Inputs

Outputs

Configurations

Scripting

result: turbulent kinetic energy (k)

Inputs

Outputs

Configurations

Scripting

result: electric potential

Inputs

Outputs

Configurations

Scripting

result: thickness

Inputs

Outputs

Configurations

Scripting

result: mapdl run

Inputs

Outputs

Configurations

Scripting

result: equivalent mass

Inputs

Outputs

Configurations

Scripting

result: custom result

Inputs

Outputs

Configurations

Scripting

result: elemental heat generation

Inputs

Outputs

Configurations

Scripting

result: magnetic vector potential

Inputs

Outputs

Configurations

Scripting

result: joint force reaction

Inputs

Outputs

Configurations

Scripting

result: joint moment reaction

Inputs

Outputs

Configurations

Scripting

result: beam T shear force (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: joint relative displacement

Inputs

Outputs

Configurations

Scripting

result: joint relative rotation

Inputs

Outputs

Configurations

Scripting

result: joint relative velocity

Inputs

Outputs

Configurations

Scripting

result: joint relative acceleration

Inputs

Outputs

Configurations

Scripting

result: joint relative angular acceleration

Inputs

Outputs

Configurations

Scripting

result: global internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

serialization: txt to data tree

Inputs

Outputs

Configurations

Scripting

result: thermal strains eqv

Inputs

Outputs

Configurations

Scripting

result: elemental non summable miscellaneous data

Inputs

Outputs

Configurations

Scripting

utility: merge supports

Inputs

Outputs

Configurations

Scripting

result: global kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: matrix inverse

Inputs

Outputs

Configurations

Scripting

result: global time step (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global rigid body stopper energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

geo: cartesian to spherical coordinates

Inputs

Outputs

Configurations

Scripting

result: global spring and damper energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam T bending moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global hourglass energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global system damping energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global eroded kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global energy ratio (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global added mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

mapping: on reduced coordinates

Inputs

Outputs

Configurations

Scripting

invariant: principal invariants (fields container)

Inputs

Outputs

Configurations

Scripting

result: global added mass (percentage) (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global center of mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam S shear force (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam S bending moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam RS shear stress (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: merge fields into field matrix

Inputs

Outputs

Configurations

Scripting

result: beam axial plastic strain (LSDyna)

Inputs

Outputs

Configurations

Scripting

invariant: von mises eqv (field)

Inputs

Outputs

Configurations

Scripting

invariant: segalman von mises eqv (field)

Inputs

Outputs

Configurations

Scripting

result: part eroded internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

scoping: on mesh property

Inputs

Outputs

Configurations

Scripting

scoping: from mesh

Inputs

Outputs

Configurations

Scripting

result: part added mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part hourglass energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part rigid body velocity (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: interface contact force (LSDyna)

Inputs

Outputs

Configurations

Scripting

min_max: time of max

Inputs

Outputs

Configurations

Scripting

scoping: nodes in mesh

Inputs

Outputs

Configurations

Scripting

metadata: cyclic support provider

Inputs

Outputs

Configurations

Scripting

result: interface resultant contact force (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: interface contact moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: density

Inputs

Outputs

Configurations

Scripting

result: spectrum data

Inputs

Outputs

Configurations

Scripting

averaging: elemental to elemental nodal (fields container)

Inputs

Outputs

Configurations

Scripting

result: total pressure

Inputs

Outputs

Configurations

Scripting

result: mean velocity

Inputs

Outputs

Configurations

Scripting

result: Lighthill tensor divergence

Inputs

Outputs

Configurations

Scripting

result: mass flow rate

Inputs

Outputs

Configurations

Scripting

result: mach number

Inputs

Outputs

Configurations

Scripting

result: rms temperature

Inputs

Outputs

Configurations

Scripting

scoping: scoping get attribute

Inputs

Outputs

Configurations

Scripting

result: read cms_rbd file

Inputs

Outputs

Configurations

Scripting

result: mean temperature

Inputs

Outputs

Configurations

Scripting

result: surface heat rate

Inputs

Outputs

Configurations

Scripting

result: thermal conductivity

Inputs

Outputs

Configurations

Scripting

utility: extract scoping

Inputs

Outputs

Configurations

Scripting

result: specific heat

Inputs

Outputs

Configurations

Scripting

result: turbulent dissipation rate (epsilon)

Inputs

Outputs

Configurations

Scripting

metadata: time freq provider

Inputs

Outputs

Configurations

Scripting

metadata: mesh info provider

Inputs

Outputs

Configurations

Scripting

result: von mises stresses as mechanical

Inputs

Outputs

Configurations

Scripting

metadata: streams provider

Inputs

Outputs

Configurations

Scripting

result: poynting vector surface

Inputs

Outputs

Configurations

Scripting

metadata: datasources provider

Inputs

Outputs

Configurations

Scripting

scoping: rescope

Inputs

Outputs

Configurations

Scripting

filter: low pass (timescoping)

Inputs

Outputs

Configurations

Scripting

utility: data sources get attribute

Inputs

Outputs

Configurations

Scripting

mesh: meshes provider

Inputs

Outputs

Configurations

Scripting

metadata: mesh selection manager provider

Inputs

Outputs

Configurations

Scripting

utility: for each

Inputs

Outputs

Configurations

Scripting

metadata: boundary condition provider

Inputs

Outputs

Configurations

Scripting

utility: merge property fields

Inputs

Outputs

Configurations

Scripting

metadata: cyclic analysis?

Inputs

Outputs

Configurations

Scripting

metadata: material support provider

Inputs

Outputs

Configurations

Scripting

scoping: on named selection

Inputs

Outputs

Configurations

Scripting

scoping: reduce sampling scoping

Inputs

Outputs

Configurations

Scripting

math: accumulation per scoping

Inputs

Outputs

Configurations

Scripting

metadata: real constants provider

Inputs

Outputs

Configurations

Scripting

metadata: coordinate system data provider

Inputs

Outputs

Configurations

Scripting

result: coordinate system

Inputs

Outputs

Configurations

Scripting

logic: splitter::streams

Inputs

Outputs

Configurations

Scripting

serialization: hdf5dpf custom read

Inputs

Outputs

Configurations

Scripting

result: nodal_to_global

Inputs

Outputs

Configurations

Scripting

scoping: rescope custom type field

Inputs

Outputs

Configurations

Scripting

result: global_to_nodal

Inputs

Outputs

Configurations

Scripting

min_max: min max by entity over time

Inputs

Outputs

Configurations

Scripting

result: rigid transformation provider

Inputs

Outputs

Configurations

Scripting

min_max: max over time

Inputs

Outputs

Configurations

Scripting

scoping: connectivity ids

Inputs

Outputs

Configurations

Scripting

utility: remote workflow instantiate

Inputs

Outputs

Configurations

Scripting

utility: remote operator instantiate

Inputs

Outputs

Configurations

Scripting

math: compute residual and error

Inputs

Outputs

Configurations

Scripting

result: structural temperature

Inputs

Outputs

Configurations

Scripting

metadata: result info provider

Inputs

Outputs

Configurations

Scripting

mesh: skin (tri mesh)

Inputs

Outputs

Configurations

Scripting

result: stress ratio

Inputs

Outputs

Configurations

Scripting

filter: band pass (timescoping)

Inputs

Outputs

Configurations

Scripting

compression: sketch matrix

Inputs

Outputs

Configurations

Scripting

result: accu eqv plastic strain

Inputs

Outputs

Configurations

Scripting

result: plastic state variable

Inputs

Outputs

Configurations

Scripting

result: accu eqv creep strain

Inputs

Outputs

Configurations

Scripting

result: plastic strain energy density

Inputs

Outputs

Configurations

Scripting

result: material property of element

Inputs

Outputs

Configurations

Scripting

result: creep strain energy density

Inputs

Outputs

Configurations

Scripting

result: erp radiation efficiency

Inputs

Outputs

Configurations

Scripting

result: elastic strain energy density

Inputs

Outputs

Configurations

Scripting

result: contact status

Inputs

Outputs

Configurations

Scripting

serialization: field to csv

Inputs

Outputs

Configurations

Scripting

result: contact penetration

Inputs

Outputs

Configurations

Scripting

result: contact pressure

Inputs

Outputs

Configurations

Scripting

result: contact friction stress

Inputs

Outputs

Configurations

Scripting

result: contact total stress

Inputs

Outputs

Configurations

Scripting

result: contact sliding distance

Inputs

Outputs

Configurations

Scripting

utility: merge generic data container

Inputs

Outputs

Configurations

Scripting

result: global joint internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded element nodal forces

Inputs

Outputs

Configurations

Scripting

serialization: vtk to fields

Inputs

Outputs

Configurations

Scripting

result: contact gap distance

Inputs

Outputs

Configurations

Scripting

utility: merge any objects

Inputs

Outputs

Configurations

Scripting

result: contact surface heat flux

Inputs

Outputs

Configurations

Scripting

result: elemental volume

Inputs

Outputs

Configurations

Scripting

result: artificial hourglass energy

Inputs

Outputs

Configurations

Scripting

result: kinetic energy

Inputs

Outputs

Configurations

Scripting

result: thermal dissipation energy

Inputs

Outputs

Configurations

Scripting

result: total mass

Inputs

Outputs

Configurations

Scripting

result: rms static pressure

Inputs

Outputs

Configurations

Scripting

result: swelling strains

Inputs

Outputs

Configurations

Scripting

result: total contact force

Inputs

Outputs

Configurations

Scripting

result: temperature

Inputs

Outputs

Configurations

Scripting

result: compute stress

Inputs

Outputs

Configurations

Scripting

result: raw displacement

Inputs

Outputs

Configurations

Scripting

result: raw reaction force

Inputs

Outputs

Configurations

Scripting

result: turbulent kinetic energy (k)

Inputs

Outputs

Configurations

Scripting

result: electric potential

Inputs

Outputs

Configurations

Scripting

result: thickness

Inputs

Outputs

Configurations

Scripting

result: mapdl run

Inputs

Outputs

Configurations

Scripting

result: equivalent mass

Inputs

Outputs

Configurations

Scripting

result: custom result

Inputs

Outputs

Configurations

Scripting

result: elemental heat generation

Inputs

Outputs

Configurations

Scripting

result: magnetic vector potential

Inputs

Outputs

Configurations

Scripting

result: joint force reaction

Inputs

Outputs

Configurations

Scripting

result: joint moment reaction

Inputs

Outputs

Configurations

Scripting

result: beam T shear force (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: joint relative displacement

Inputs

Outputs

Configurations

Scripting

result: joint relative rotation

Inputs

Outputs

Configurations

Scripting

result: joint relative velocity

Inputs

Outputs

Configurations

Scripting

result: joint relative acceleration

Inputs

Outputs

Configurations

Scripting

result: joint relative angular acceleration

Inputs

Outputs

Configurations

Scripting

result: global internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

serialization: txt to data tree

Inputs

Outputs

Configurations

Scripting

result: thermal strains eqv

Inputs

Outputs

Configurations

Scripting

result: elemental non summable miscellaneous data

Inputs

Outputs

Configurations

Scripting

result: state variable

Inputs

Outputs

Configurations

Scripting

utility: merge supports

Inputs

Outputs

Configurations

Scripting

result: global kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

math: matrix inverse

Inputs

Outputs

Configurations

Scripting

result: global time step (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global rigid body stopper energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

geo: cartesian to spherical coordinates

Inputs

Outputs

Configurations

Scripting

result: global spring and damper energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam T bending moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global hourglass energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global system damping energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global eroded kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global energy ratio (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global added mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

mapping: on reduced coordinates

Inputs

Outputs

Configurations

Scripting

invariant: principal invariants (fields container)

Inputs

Outputs

Configurations

Scripting

result: global added mass (percentage) (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: global center of mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam S shear force (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam S bending moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: beam RS shear stress (LSDyna)

Inputs

Outputs

Configurations

Scripting

utility: merge fields into field matrix

Inputs

Outputs

Configurations

Scripting

result: beam axial plastic strain (LSDyna)

Inputs

Outputs

Configurations

Scripting

invariant: von mises eqv (field)

Inputs

Outputs

Configurations

Scripting

invariant: segalman von mises eqv (field)

Inputs

Outputs

Configurations

Scripting

result: part eroded internal energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part kinetic energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

scoping: on mesh property

Inputs

Outputs

Configurations

Scripting

scoping: from mesh

Inputs

Outputs

Configurations

Scripting

result: part added mass (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part hourglass energy (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: part rigid body velocity (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: interface contact force (LSDyna)

Inputs

Outputs

Configurations

Scripting

min_max: time of max

Inputs

Outputs

Configurations

Scripting

scoping: nodes in mesh

Inputs

Outputs

Configurations

Scripting

metadata: cyclic support provider

Inputs

Outputs

Configurations

Scripting

result: interface resultant contact force (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: interface contact moment (LSDyna)

Inputs

Outputs

Configurations

Scripting

result: density

Inputs

Outputs

Configurations

Scripting

result: spectrum data

Inputs

Outputs

Configurations

Scripting

averaging: elemental to elemental nodal (fields container)

Inputs

Outputs

Configurations

Scripting

result: total pressure

Inputs

Outputs

Configurations

Scripting

result: mean velocity

Inputs

Outputs

Configurations

Scripting

result: Lighthill tensor divergence

Inputs

Outputs

Configurations

Scripting

result: mass flow rate

Inputs

Outputs

Configurations

Scripting

result: mach number

Inputs

Outputs

Configurations

Scripting

result: rms temperature

Inputs

Outputs

Configurations

Scripting

scoping: scoping get attribute

Inputs

Outputs

Configurations

Scripting

result: read cms_rbd file

Inputs

Outputs

Configurations

Scripting

result: mean temperature

Inputs

Outputs

Configurations

Scripting

result: surface heat rate

Inputs

Outputs

Configurations

Scripting

result: thermal conductivity

Inputs

Outputs

Configurations

Scripting

utility: extract scoping

Inputs

Outputs

Configurations

Scripting

result: specific heat

Inputs

Outputs

Configurations

Scripting

result: turbulent dissipation rate (epsilon)

Inputs

Outputs

Configurations

Scripting

metadata: time freq provider

Inputs

Outputs

Configurations

Scripting

metadata: mesh info provider

Inputs

Outputs

Configurations

Scripting

result: von mises stresses as mechanical

Inputs

Outputs

Configurations

Scripting

metadata: streams provider

Inputs

Outputs

Configurations

Scripting

result: poynting vector surface

Inputs

Outputs

Configurations

Scripting

metadata: datasources provider

Inputs

Outputs

Configurations

Scripting

scoping: rescope

Inputs

Outputs

Configurations

Scripting

filter: low pass (timescoping)

Inputs

Outputs

Configurations

Scripting

utility: data sources get attribute

Inputs

Outputs

Configurations

Scripting

mesh: meshes provider

Inputs

Outputs

Configurations

Scripting

metadata: mesh selection manager provider

Inputs

Outputs

Configurations

Scripting

utility: for each

Inputs

Outputs

Configurations

Scripting

metadata: boundary condition provider

Inputs

Outputs

Configurations

Scripting

utility: merge property fields

Inputs

Outputs

Configurations

Scripting

metadata: cyclic analysis?

Inputs

Outputs

Configurations

Scripting

metadata: material support provider

Inputs

Outputs

Configurations

Scripting

scoping: on named selection

Inputs

Outputs

Configurations

Scripting

scoping: reduce sampling scoping

Inputs

Outputs

Configurations

Scripting

math: accumulation per scoping

Inputs

Outputs

Configurations

Scripting

metadata: real constants provider

Inputs

Outputs

Configurations

Scripting

metadata: coordinate system data provider

Inputs

Outputs

Configurations

Scripting

result: coordinate system

Inputs

Outputs

Configurations

Scripting

logic: splitter::streams

Inputs

Outputs

Configurations

Scripting

serialization: hdf5dpf custom read

Inputs

Outputs

Configurations

Scripting

result: nodal_to_global

Inputs

Outputs

Configurations

Scripting

scoping: rescope custom type field

Inputs

Outputs

Configurations

Scripting

result: global_to_nodal

Inputs

Outputs

Configurations

Scripting

min_max: min max by entity over time

Inputs

Outputs

Configurations

Scripting

result: rigid transformation provider

Inputs

Outputs

Configurations

Scripting

min_max: max over time

Inputs

Outputs

Configurations

Scripting

scoping: connectivity ids

Inputs

Outputs

Configurations

Scripting

utility: remote workflow instantiate

Inputs

Outputs

Configurations

Scripting

utility: remote operator instantiate

Inputs

Outputs

Configurations

Scripting

math: compute residual and error

Configurating operators 3 for normalized by the max over all time steps of the first entry or residuals depending on the reference field option" types="int32" optional="true"ellipsis="false"inplace="false">

Outputs

Configurations

Scripting

result: add rigid body motion (fields container)

Inputs

Outputs

Configurations

Scripting

utility: merge time freq supports

Inputs

Outputs

Configurations

Scripting

min_max: incremental over fields container

Inputs

Outputs

Configurations

Scripting

scoping: split on property type

Inputs

Outputs

Configurations

Scripting

utility: overlap fields

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal elemental (field)

Inputs

Outputs

Configurations

Scripting

scoping: adapt with scopings container

Inputs

Outputs

Configurations

Scripting

utility: change shell layers

Inputs

Outputs

Configurations

Scripting

utility: merge meshes

Inputs

Outputs

Configurations

Scripting

utility: merge fields

Inputs

Outputs

Configurations

Scripting

utility: merge weighted fields

Inputs

Outputs

Configurations

Scripting

utility: merge fc to fc field matrices

Inputs

Outputs

Configurations

Scripting

filter: high pass (field)

Inputs

Outputs

Configurations

Scripting

utility: weighted merge fields by label

Inputs

Outputs

Configurations

Scripting

min_max: max by component

Inputs

Outputs

Configurations

Scripting

utility: merge fields by label

Inputs

Outputs

Configurations

Scripting

averaging: elemental to elemental nodal (field)

Inputs

Outputs

Configurations

Scripting

min_max: min max by entity

Inputs

Outputs

Configurations

Scripting

utility: merge collections

Inputs

Outputs

Configurations

Scripting

serialization: workflow to pydpf

Inputs

Outputs

Configurations

Scripting

logic: merge solid and shell fields

Inputs

Outputs

Configurations

Scripting

min_max: min over time

Inputs

Outputs

Configurations

Scripting

geo: element nodal contribution

Inputs

Outputs

Configurations

Scripting

min_max: over field

Inputs

Outputs

Configurations

Scripting

result: transient rayleigh integration

Inputs

Outputs

Configurations

Scripting

min_max: over fields container

Inputs

Outputs

Configurations

Scripting

min_max: over label

Inputs

Outputs

Configurations

Scripting

min_max: min by component

Inputs

Outputs

Configurations

Scripting

math: average over label

Inputs

Outputs

Configurations

Scripting

math: accumulate level over label

Inputs

Outputs

Configurations

Scripting

serialization: serializer to string

Inputs

Outputs

Configurations

Scripting

serialization: deserializer

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded velocity

Inputs

Outputs

Configurations

Scripting

mesh: skin

Inputs

Outputs

Configurations

Scripting

utility: split in for each range

Inputs

Outputs

Configurations

Scripting

utility: make for each range

Inputs

Outputs

Configurations

Scripting

utility: incremental field

Inputs

Outputs

Configurations

Scripting

utility: incremental fields container

Inputs

Outputs

Configurations

Scripting

geo: rotate (fields container)

Inputs

Outputs

Configurations

Scripting

utility: incremental property field

Inputs

Outputs

Configurations

Scripting

utility: incremental mesh

Inputs

Outputs

Configurations

Scripting

mesh: points from coordinates

Inputs

Outputs

Configurations

Scripting

utility: incremental concantenate as fields container.

Inputs

Outputs

Configurations

Scripting

utility: make producer consumer for each iterator

Inputs

Outputs

Configurations

Scripting

utility: producer consumer for each

Inputs

Outputs

Configurations

Scripting

averaging: extend to mid nodes (field)

Inputs

Outputs

Configurations

Scripting

invariant: eigen vectors (on fields container)

Inputs

Outputs

Configurations

Scripting

mesh: mesh get attribute

Inputs

Outputs

Configurations

Scripting

metadata: time freq support get attribute

Inputs

Outputs

Configurations

Scripting

utility: set attribute

Inputs

Outputs

Configurations

Scripting

utility: field get attribute

Inputs

Outputs

Configurations

Scripting

min_max: time of min

Inputs

Outputs

Configurations

Scripting

min_max: max over phase

Inputs

Outputs

Configurations

Scripting

min_max: phase of max

Inputs

Outputs

Configurations

Scripting

utility: voigt to standard strains

Inputs

Outputs

Configurations

Scripting

utility: voigt to standard strains (fields container)

Inputs

Outputs

Configurations

Scripting

min_max: incremental over field

Inputs

Outputs

Configurations

Scripting

logic: same string fields?

Inputs

Outputs

Configurations

Scripting

logic: same meshes?

Inputs

Outputs

Configurations

Scripting

logic: same fields?

Inputs

Outputs

Configurations

Scripting

logic: fields included?

Inputs

Outputs

Configurations

Scripting

logic: same fields container?

Inputs

Outputs

Configurations

Scripting

filter: high pass (scoping)

Inputs

Outputs

Configurations

Scripting

filter: high pass (timescoping)

Inputs

Outputs

Configurations

Scripting

filter: high pass (fields container)

Inputs

Outputs

Configurations

Scripting

filter: low pass (field)

Inputs

Outputs

Configurations

Scripting

filter: low pass (fields container)

Inputs

Outputs

Configurations

Scripting

filter: band pass (scoping)

Inputs

Outputs

Configurations

Scripting

filter: band pass (timefreq)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (scoping)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (timescoping)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (timefreq)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (fields container)

Inputs

Outputs

Configurations

Scripting

serialization: csv to field

Inputs

Outputs

Configurations

Scripting

result: members in compression not certified

Inputs

Outputs

Configurations

Scripting

result: members in bending not certified

Inputs

Outputs

Configurations

Scripting

result: members in linear compression bending not certified

Inputs

Outputs

Configurations

Scripting

invariant: convertnum nod to bcs

Inputs

Outputs

Configurations

Scripting

geo: rotate

Inputs

Outputs

Configurations

Scripting

logic: enrich materials

Inputs

Outputs

Configurations

Scripting

serialization: data tree to json

Inputs

Outputs

Configurations

Scripting

serialization: data tree to txt

Inputs

Outputs

Configurations

Scripting

serialization: json to data tree

Inputs

Outputs

Configurations

Scripting

averaging: nodal difference (fields container)

Inputs

Outputs

Configurations

Scripting

logic: descending sort

Inputs

Outputs

Configurations

Scripting

logic: ascending sort (fields container)

Inputs

Outputs

Configurations

Scripting

logic: descending sort (fields container)

Inputs

Outputs

Configurations

Scripting

serialization: import symbolic workflow

Inputs

Outputs

Configurations

Scripting

filter: filtering max over time workflow

Inputs

Outputs

Configurations

Scripting

metadata: integrate over time freq

Inputs

Outputs

Configurations

Scripting

utility: extract time freq

Inputs

Outputs

Configurations

Scripting

averaging: nodal difference (field)

Inputs

Outputs

Configurations

Scripting

result: compute stress YZ

Inputs

Outputs

Configurations

Scripting

logic: splitter::data_sources

Inputs

Outputs

Configurations

Scripting

averaging: to elemental nodal (fields container)

Inputs

Outputs

Configurations

Scripting

server: grpc start server

Inputs

Outputs

Configurations

Scripting

result: compute stress XY

Inputs

Outputs

Configurations

Scripting

utility: operator id

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal (field)

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: elemental to nodal (field)

Inputs

Outputs

Configurations

Scripting

logic: merge solid and shell fields

Inputs

Outputs

Configurations

Scripting

min_max: min over time

Inputs

Outputs

Configurations

Scripting

geo: element nodal contribution

Inputs

Outputs

Configurations

Scripting

min_max: over field

Inputs

Outputs

Configurations

Scripting

result: transient rayleigh integration

Inputs

Outputs

Configurations

Scripting

min_max: over fields container

Inputs

Outputs

Configurations

Scripting

min_max: over label

Inputs

Outputs

Configurations

Scripting

min_max: min by component

Inputs

Outputs

Configurations

Scripting

math: average over label

Inputs

Outputs

Configurations

Scripting

math: accumulate level over label

Inputs

Outputs

Configurations

Scripting

serialization: serializer to string

Inputs

Outputs

Configurations

Scripting

serialization: deserializer

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded velocity

Inputs

Outputs

Configurations

Scripting

mesh: skin

Inputs

Outputs

Configurations

Scripting

utility: split in for each range

Inputs

Outputs

Configurations

Scripting

utility: make for each range

Inputs

Outputs

Configurations

Scripting

utility: incremental field

Inputs

Outputs

Configurations

Scripting

utility: incremental fields container

Inputs

Outputs

Configurations

Scripting

geo: rotate (fields container)

Inputs

Outputs

Configurations

Scripting

utility: incremental property field

Inputs

Outputs

Configurations

Scripting

utility: incremental mesh

Inputs

Outputs

Configurations

Scripting

mesh: points from coordinates

Inputs

Outputs

Configurations

Scripting

utility: incremental concantenate as fields container.

Inputs

Outputs

Configurations

Scripting

utility: make producer consumer for each iterator

Inputs

Outputs

Configurations

Scripting

utility: producer consumer for each

Inputs

Outputs

Configurations

Scripting

averaging: extend to mid nodes (field)

Inputs

Outputs

Configurations

Scripting

invariant: eigen vectors (on fields container)

Inputs

Outputs

Configurations

Scripting

mesh: mesh get attribute

Inputs

Outputs

Configurations

Scripting

metadata: time freq support get attribute

Inputs

Outputs

Configurations

Scripting

utility: set attribute

Inputs

Outputs

Configurations

Scripting

utility: field get attribute

Inputs

Outputs

Configurations

Scripting

min_max: time of min

Inputs

Outputs

Configurations

Scripting

min_max: max over phase

Inputs

Outputs

Configurations

Scripting

min_max: phase of max

Inputs

Outputs

Configurations

Scripting

utility: voigt to standard strains

Inputs

Outputs

Configurations

Scripting

utility: voigt to standard strains (fields container)

Inputs

Outputs

Configurations

Scripting

min_max: incremental over field

Inputs

Outputs

Configurations

Scripting

logic: same string fields?

Inputs

Outputs

Configurations

Scripting

logic: same meshes?

Inputs

Outputs

Configurations

Scripting

logic: same scopings?

Inputs

Outputs

Configurations

Scripting

logic: same generic data containers?

Inputs

Outputs

Configurations

Scripting

logic: same fields container?

Inputs

Outputs

Configurations

Scripting

logic: same scopings container?

Inputs

Outputs

Configurations

Scripting

logic: fields included?

Inputs

Outputs

Configurations

Scripting

filter: high pass (scoping)

Inputs

Outputs

Configurations

Scripting

filter: high pass (timescoping)

Inputs

Outputs

Configurations

Scripting

filter: high pass (fields container)

Inputs

Outputs

Configurations

Scripting

filter: low pass (field)

Inputs

Outputs

Configurations

Scripting

filter: low pass (fields container)

Inputs

Outputs

Configurations

Scripting

filter: band pass (scoping)

Inputs

Outputs

Configurations

Scripting

filter: band pass (timefreq)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (scoping)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (timescoping)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (timefreq)

Inputs

Outputs

Configurations

Scripting

filter: signed high pass (fields container)

Inputs

Outputs

Configurations

Scripting

serialization: csv to field

Inputs

Outputs

Configurations

Scripting

result: members in compression not certified

Inputs

Outputs

Configurations

Scripting

result: members in bending not certified

Inputs

Outputs

Configurations

Scripting

result: members in linear compression bending not certified

Inputs

Outputs

Configurations

Scripting

invariant: convertnum nod to bcs

Inputs

Outputs

Configurations

Scripting

geo: rotate

Inputs

Outputs

Configurations

Scripting

logic: enrich materials

Inputs

Outputs

Configurations

Scripting

serialization: data tree to json

Inputs

Outputs

Configurations

Scripting

serialization: data tree to txt

Inputs

Outputs

Configurations

Scripting

serialization: json to data tree

Inputs

Outputs

Configurations

Scripting

averaging: nodal difference (fields container)

Inputs

Outputs

Configurations

Scripting

logic: descending sort

Inputs

Outputs

Configurations

Scripting

logic: ascending sort (fields container)

Inputs

Outputs

Configurations

Scripting

logic: descending sort (fields container)

Inputs

Outputs

Configurations

Scripting

serialization: import symbolic workflow

Inputs

Outputs

Configurations

Scripting

filter: filtering max over time workflow

Inputs

Outputs

Configurations

Scripting

metadata: integrate over time freq

Inputs

Outputs

Configurations

Scripting

utility: extract time freq

Inputs

Outputs

Configurations

Scripting

averaging: nodal difference (field)

Inputs

Outputs

Configurations

Scripting

result: compute stress YZ

Inputs

Outputs

Configurations

Scripting

logic: splitter::data_sources

Inputs

Outputs

Configurations

Scripting

averaging: to elemental nodal (fields container)

Inputs

Outputs

Configurations

Scripting

server: grpc start server

Inputs

Outputs

Configurations

Scripting

result: compute stress XY

Inputs

Outputs

Configurations

Scripting

utility: operator id

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal (field)

Inputs

Outputs

Configurations

Scripting

averaging: elemental nodal to nodal (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: elemental to nodal (field)

Configurating operators - If the determinant of the I matrix is zero, switch to an inverse distance weighted average. - If not, compute the Frink weights and apply the Holmes' weight clip. - If the clipping produces a large overshoot, inverse volume weighted average is used.. -3. For a face finite volume mesh inverse distance weighted average is used.">

Inputs

Outputs

Configurations

Scripting

averaging: to nodal (field)

Inputs

Outputs

Configurations

Scripting

averaging: to nodal (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: elemental mean (field)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental (field)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental nodal (field)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental nodal (fields container)

Inputs

Outputs

Configurations

Scripting

invariant: eigen values (field)

Inputs

Outputs

Configurations

Scripting

invariant: principal invariants (field)

Inputs

Outputs

Configurations

Scripting

invariant: von mises eqv (fields container)

Inputs

Outputs

Configurations

Scripting

invariant: segalman von mises eqv (fields container)

Inputs

Outputs

Configurations

Scripting

scoping: compute element centroids

Inputs

Outputs

Configurations

Scripting

math: entity extractor

Inputs

Outputs

Configurations

Scripting

metadata: cyclic mesh expansion

Inputs

Outputs

Configurations

Scripting

result: cyclic analytic stress eqv max

Inputs

Outputs

Configurations

Scripting

result: remove rigid body motion (fields container)

Inputs

Outputs

Configurations

Scripting

result: cyclic expansion

Inputs

Outputs

Configurations

Scripting

averaging: nodal fraction (fields container)

Inputs

Outputs

Configurations

Scripting

result: recombine cyclic harmonic indices

Inputs

Outputs

Configurations

Scripting

mapping: on coordinates

Inputs

Outputs

Configurations

Scripting

mapping: scoping on coordinates

Inputs

Outputs

Configurations

Scripting

filter: abc weightings

Inputs

Outputs

Configurations

Scripting

mapping: solid to skin

Inputs

Outputs

Configurations

Scripting

mapping: solid to skin (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: elemental difference (field)

Inputs

Outputs

Configurations

Scripting

averaging: elemental fraction (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: extend to mid nodes (fields container)

Inputs

Outputs

Configurations

Scripting

geo: rotate cylindrical coordinates

Inputs

Outputs

Configurations

Scripting

geo: rotate in cylindrical coordinates (fields container)

Inputs

Outputs

Configurations

Scripting

geo: spherical to cartesian coordinates (fields container)

Inputs

Outputs

Configurations

Scripting

geo: spherical to cartesian coordinates

Inputs

Outputs

Configurations

Scripting

mesh: change cs (meshes)

Inputs

Outputs

Configurations

Scripting

geo: normals provider nl (nodes, faces, or elements)

Inputs

Outputs

Configurations

Scripting

geo: elements volumes over time

Inputs

Outputs

Configurations

Scripting

math: window bartlett

Inputs

Outputs

Configurations

Scripting

mesh: from scoping

Inputs

Outputs

Configurations

Scripting

mesh: split field wrt mesh regions

Inputs

Outputs

Configurations

Scripting

result: torque

Inputs

Outputs

Configurations

Scripting

result: euler load buckling

Inputs

Outputs

Configurations

Scripting

geo: faces area

Inputs

Outputs

Configurations

Scripting

result: compute stress 3

Inputs

Outputs

Configurations

Scripting

geo: gauss to node (field)

Inputs

Outputs

Configurations

Scripting

averaging: gauss to node (fields container)

Inputs

Outputs

Configurations

Scripting

math: correlation

Inputs

Outputs

Configurations

Scripting

math: mac

Inputs

Outputs

Configurations

Scripting

result: workflow energy per component

Inputs

Outputs

Configurations

Scripting

result: add rigid body motion (field)

Inputs

Outputs

Configurations

Scripting

result: split on facet indices

Inputs

Outputs

Configurations

Scripting

result: enf solution to global cs

Inputs

Outputs

Configurations

Scripting

result: cms matrices provider

Inputs

Outputs

Configurations

Scripting

result: rom data provider

Inputs

Outputs

Configurations

Scripting

result: prns to field

Inputs

Outputs

Configurations

Scripting

result: remove rigid body motion (field)

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded displacement

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded acceleration

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded stress

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded el strain

Inputs

Outputs

Configurations

Scripting

result: cms subfile info provider

Inputs

Outputs

Configurations

Scripting

result: cyclic volume

Inputs

Outputs

Configurations

Scripting

result: cyclic nmisc

Inputs

Outputs

Configurations

Scripting

invariant: convertnum operator

Inputs

Outputs

Configurations

Scripting

result: compute total strain XZ

Inputs

Outputs

Configurations

Scripting

averaging: to nodal (field)

Inputs

Outputs

Configurations

Scripting

averaging: to nodal (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: elemental mean (field)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental (field)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental nodal (field)

Inputs

Outputs

Configurations

Scripting

averaging: nodal to elemental nodal (fields container)

Inputs

Outputs

Configurations

Scripting

invariant: eigen values (field)

Inputs

Outputs

Configurations

Scripting

invariant: principal invariants (field)

Inputs

Outputs

Configurations

Scripting

invariant: von mises eqv (fields container)

Inputs

Outputs

Configurations

Scripting

invariant: segalman von mises eqv (fields container)

Inputs

Outputs

Configurations

Scripting

scoping: compute element centroids

Inputs

Outputs

Configurations

Scripting

math: entity extractor

Inputs

Outputs

Configurations

Scripting

metadata: cyclic mesh expansion

Inputs

Outputs

Configurations

Scripting

result: cyclic analytic stress eqv max

Inputs

Outputs

Configurations

Scripting

result: remove rigid body motion (fields container)

Inputs

Outputs

Configurations

Scripting

result: cyclic expansion

Inputs

Outputs

Configurations

Scripting

averaging: nodal fraction (fields container)

Inputs

Outputs

Configurations

Scripting

result: recombine cyclic harmonic indices

Inputs

Outputs

Configurations

Scripting

mapping: on coordinates

Inputs

Outputs

Configurations

Scripting

mapping: scoping on coordinates

Inputs

Outputs

Configurations

Scripting

filter: abc weightings

Inputs

Outputs

Configurations

Scripting

mapping: solid to skin

Inputs

Outputs

Configurations

Scripting

mapping: solid to skin (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: elemental difference (field)

Inputs

Outputs

Configurations

Scripting

averaging: elemental fraction (fields container)

Inputs

Outputs

Configurations

Scripting

averaging: extend to mid nodes (fields container)

Inputs

Outputs

Configurations

Scripting

geo: rotate cylindrical coordinates

Inputs

Outputs

Configurations

Scripting

geo: rotate in cylindrical coordinates (fields container)

Inputs

Outputs

Configurations

Scripting

geo: spherical to cartesian coordinates (fields container)

Inputs

Outputs

Configurations

Scripting

geo: spherical to cartesian coordinates

Inputs

Outputs

Configurations

Scripting

mesh: change cs (meshes)

Inputs

Outputs

Configurations

Scripting

geo: normals provider nl (nodes, faces, or elements)

Inputs

Outputs

Configurations

Scripting

geo: elements volumes over time

Inputs

Outputs

Configurations

Scripting

math: window bartlett

Inputs

Outputs

Configurations

Scripting

mesh: from scoping

Inputs

Outputs

Configurations

Scripting

mesh: split field wrt mesh regions

Inputs

Outputs

Configurations

Scripting

result: torque

Inputs

Outputs

Configurations

Scripting

result: euler load buckling

Inputs

Outputs

Configurations

Scripting

geo: faces area

Inputs

Outputs

Configurations

Scripting

result: compute stress 3

Inputs

Outputs

Configurations

Scripting

geo: gauss to node (field)

Inputs

Outputs

Configurations

Scripting

averaging: gauss to node (fields container)

Inputs

Outputs

Configurations

Scripting

math: correlation

Inputs

Outputs

Configurations

Scripting

math: mac

Inputs

Outputs

Configurations

Scripting

result: workflow energy per component

Inputs

Outputs

Configurations

Scripting

result: add rigid body motion (field)

Inputs

Outputs

Configurations

Scripting

result: split on facet indices

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded temperature

Inputs

Outputs

Configurations

Scripting

result: enf solution to global cs

Inputs

Outputs

Configurations

Scripting

result: cms matrices provider

Inputs

Outputs

Configurations

Scripting

result: rom data provider

Inputs

Outputs

Configurations

Scripting

result: prns to field

Inputs

Outputs

Configurations

Scripting

result: remove rigid body motion (field)

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded displacement

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded acceleration

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded stress

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded el strain

Inputs

Outputs

Configurations

Scripting

result: cms subfile info provider

Inputs

Outputs

Configurations

Scripting

result: cyclic volume

Inputs

Outputs

Configurations

Scripting

result: cyclic nmisc

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded element heat flux

Inputs

Outputs

Configurations

Scripting

result: stress solution to global cs

Inputs

Outputs

Configurations

Scripting

invariant: convertnum operator

Inputs

Outputs

Configurations

Scripting

result: compute total strain XZ

Configurating operators Only linear analysis are supported without On Demand Expansion. All coordinates are global coordinates. Euler Angles need to be included in the database. - Get the XZ shear component (02 component).">

Inputs

Outputs

Configurations

Scripting

result: cms dst table provider

Inputs

Outputs

Configurations

Scripting

result: write motion dfmf file

Inputs

Outputs

Configurations

Scripting

invariant: eigen vectors (on field)

Inputs

Outputs

Configurations

Scripting

result: mapdl material properties

Inputs

Outputs

Configurations

Scripting

result: mapdl_section

Inputs

Outputs

Configurations

Scripting

result: compute invariant terms motion

Inputs

Outputs

Configurations

Scripting

result: split to acmo facet indices

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded element heat flux

Inputs

Outputs

Configurations

Scripting

result: stress solution to global cs

Inputs

Outputs

Configurations

Scripting

result: elastic strain solution to global cs

Inputs

Outputs

Configurations

Scripting

result: plastic strain to global cs

Inputs

Outputs

Configurations

Scripting

math: qr solve

Inputs

Outputs

Configurations

Scripting

result: von mises strains as mechanical workflow

Inputs

Outputs

Configurations

Scripting

mesh: mesh clipper

Inputs

Outputs

Configurations

Scripting

serialization: migrate to vtk

Inputs

Outputs

Configurations

Scripting

result: cyclic expanded temperature

Inputs

Outputs

Configurations

Scripting

mesh: external layer

Inputs

Outputs

Configurations

Scripting

mesh: mesh cutter

Inputs

Outputs

Configurations

Scripting

mesh: mesh plan clipper

Inputs

Outputs

Configurations

Scripting

mesh: mesh_to_graphics

Inputs

Outputs

Configurations

Scripting

mesh: mesh_to_graphics_edges

Inputs

Outputs

Configurations

Scripting

geo: scoping normals

Inputs

Outputs

Configurations

Scripting

mesh: combine levelset

Inputs

Outputs

Configurations

Scripting

mesh: exclude levelset

Inputs

Outputs

Configurations

Scripting

mesh: make plane levelset

Inputs

Outputs

Configurations

Scripting

mesh: make sphere levelset

Inputs

Outputs

Configurations

Scripting

mesh: mesh extraction

Inputs

Outputs

Configurations

Scripting

mesh: wireframe

Inputs

Outputs

Configurations

Scripting

mesh: mesh to tetra

Inputs

Outputs

Configurations

Scripting

mapping: fft

Inputs

Outputs

Configurations

Scripting

math: fft gradient evaluation

Inputs

Outputs

Configurations

Scripting

math: fft multi harmonic solution minmax

Inputs

Outputs

Configurations

Scripting

math: svd

Inputs

Outputs

Configurations

Scripting

math: time integration

Inputs

Outputs

Configurations

Scripting

math: time derivation

Inputs

Outputs

Configurations

Scripting

mapping: prep sampling fft

Inputs

Outputs

Configurations

Scripting

math: fft filtering and cubic fitting

Inputs

Outputs

Configurations

Scripting

math: window triangular

Inputs

Outputs

Configurations

Scripting

math: window hanning

Inputs

Outputs

Configurations

Scripting

math: window hamming

Inputs

Outputs

Configurations

Scripting

math: window welch

Inputs

Outputs

Configurations

Scripting

math: window blackman

Inputs

Outputs

Configurations

Scripting

math: window triangular (fields container)

Inputs

Outputs

Configurations

Scripting

math: window hanning (fields container)

Inputs

Outputs

Configurations

Scripting

math: window hamming (fields container)

Inputs

Outputs

Configurations

Scripting

math: window welch (fields container)

Inputs

Outputs

Configurations

Scripting

math: window blackman (fields container)

Inputs

Outputs

Configurations

Scripting

math: expansion psd

Inputs

Outputs

Configurations

Scripting

serialization: hdf5dpf generate result file

Inputs

Outputs

Configurations

Scripting

result: migrate to h5dpf

Inputs

Outputs

Configurations

Scripting

result: von mises stresses as mechanical workflow

Inputs

Outputs

Configurations

Scripting

utility: hdf5dpf workflow provider

Inputs

Outputs

Configurations

Scripting

other: hdf5dpf mesh property provider

Inputs

Outputs

Configurations

Scripting

serialization: migrate to vtu

Inputs

Outputs

Configurations

Scripting

serialization: vtu export

Inputs

Outputs

Configurations

Scripting

result: compute total strain Y

Inputs

Outputs

Configurations

Scripting

result: cms dst table provider

Inputs

Outputs

Configurations

Scripting

result: write motion dfmf file

Inputs

Outputs

Configurations

Scripting

invariant: eigen vectors (on field)

Inputs

Outputs

Configurations

Scripting

result: mapdl material properties

Inputs

Outputs

Configurations

Scripting

result: mapdl_section

Inputs

Outputs

Configurations

Scripting

result: compute invariant terms motion

Inputs

Outputs

Configurations

Scripting

result: split to acmo facet indices

Inputs

Outputs

Configurations

Scripting

result: elastic strain solution to global cs

Inputs

Outputs

Configurations

Scripting

result: plastic strain to global cs

Inputs

Outputs

Configurations

Scripting

math: qr solve

Inputs

Outputs

Configurations

Scripting

result: von mises strains as mechanical workflow

Inputs

Outputs

Configurations

Scripting

mesh: mesh clipper

Inputs

Outputs

Configurations

Scripting

serialization: migrate to vtk

Inputs

Outputs

Configurations

Scripting

mesh: external layer

Inputs

Outputs

Configurations

Scripting

mesh: mesh cutter

Inputs

Outputs

Configurations

Scripting

mesh: mesh plan clipper

Inputs

Outputs

Configurations

Scripting

mesh: mesh_to_graphics

Inputs

Outputs

Configurations

Scripting

mesh: mesh_to_graphics_edges

Inputs

Outputs

Configurations

Scripting

geo: scoping normals

Inputs

Outputs

Configurations

Scripting

mesh: combine levelset

Inputs

Outputs

Configurations

Scripting

mesh: exclude levelset

Inputs

Outputs

Configurations

Scripting

mesh: make plane levelset

Inputs

Outputs

Configurations

Scripting

mesh: make sphere levelset

Inputs

Outputs

Configurations

Scripting

mesh: mesh extraction

Inputs

Outputs

Configurations

Scripting

mesh: wireframe

Inputs

Outputs

Configurations

Scripting

mesh: mesh to tetra

Inputs

Outputs

Configurations

Scripting

mapping: fft

Inputs

Outputs

Configurations

Scripting

math: fft gradient evaluation

Inputs

Outputs

Configurations

Scripting

math: fft multi harmonic solution minmax

Inputs

Outputs

Configurations

Scripting

math: svd

Inputs

Outputs

Configurations

Scripting

math: time integration

Inputs

Outputs

Configurations

Scripting

math: time derivation

Inputs

Outputs

Configurations

Scripting

mapping: prep sampling fft

Inputs

Outputs

Configurations

Scripting

math: fft filtering and cubic fitting

Inputs

Outputs

Configurations

Scripting

math: window triangular

Inputs

Outputs

Configurations

Scripting

math: window hanning

Inputs

Outputs

Configurations

Scripting

math: window hamming

Inputs

Outputs

Configurations

Scripting

math: window welch

Inputs

Outputs

Configurations

Scripting

math: window blackman

Inputs

Outputs

Configurations

Scripting

math: window triangular (fields container)

Inputs

Outputs

Configurations

Scripting

math: window hanning (fields container)

Inputs

Outputs

Configurations

Scripting

math: window hamming (fields container)

Inputs

Outputs

Configurations

Scripting

math: window welch (fields container)

Inputs

Outputs

Configurations

Scripting

math: window blackman (fields container)

Inputs

Outputs

Configurations

Scripting

math: expansion psd

Inputs

Outputs

Configurations

Scripting

serialization: hdf5dpf generate result file

Inputs

Outputs

Configurations

Scripting

result: migrate to h5dpf

Inputs

Outputs

Configurations

Scripting

result: von mises stresses as mechanical workflow

Inputs

Outputs

Configurations

Scripting

utility: hdf5dpf workflow provider

Inputs

Outputs

Configurations

Scripting

other: hdf5dpf mesh property provider

Inputs

Outputs

Configurations

Scripting

serialization: migrate to vtu

Inputs

Outputs

Configurations

Scripting

serialization: vtu export

Inputs

Outputs

Configurations

Scripting

result: compute total strain Y

>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.logic.identical_anys() + + >>> # Make input connections + >>> my_anyA = dpf.Any() + >>> op.inputs.anyA.connect(my_anyA) + >>> my_anyB = dpf.Any() + >>> op.inputs.anyB.connect(my_anyB) + >>> my_double_value = float() + >>> op.inputs.double_value.connect(my_double_value) + >>> my_double_tolerance = float() + >>> op.inputs.double_tolerance.connect(my_double_tolerance) + >>> my_compare_auxiliary = bool() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.logic.identical_anys( + ... anyA=my_anyA, + ... anyB=my_anyB, + ... double_value=my_double_value, + ... double_tolerance=my_double_tolerance, + ... compare_auxiliary=my_compare_auxiliary, + ... ) + + >>> # Get output data + >>> result_included = op.outputs.included() + >>> result_message = op.outputs.message() + """ + + def __init__( + self, + anyA=None, + anyB=None, + double_value=None, + double_tolerance=None, + compare_auxiliary=None, + config=None, + server=None, + ): + super().__init__(name="compare::any", config=config, server=server) + self._inputs = InputsIdenticalAnys(self) + self._outputs = OutputsIdenticalAnys(self) + if anyA is not None: + self.inputs.anyA.connect(anyA) + if anyB is not None: + self.inputs.anyB.connect(anyB) + if double_value is not None: + self.inputs.double_value.connect(double_value) + if double_tolerance is not None: + self.inputs.double_tolerance.connect(double_tolerance) + if compare_auxiliary is not None: + self.inputs.compare_auxiliary.connect(compare_auxiliary) + + @staticmethod + def _spec(): + description = """Takes two Any objects and compares them.Supported types: Field, + FieldsContainer, Mesh, MeshesContainer, PropertyField, + PropertyFieldsContainer, Scoping, ScopingsContainer, + StringField, standard types (double, int, string, vector + of int, doubles, string). Note: all inputs related to + fields, mesh, and so on are passed to each property check.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="anyA", + type_names=["any"], + optional=False, + document="""""", + ), + 1: PinSpecification( + name="anyB", + type_names=["any"], + optional=False, + document="""""", + ), + 2: PinSpecification( + name="double_value", + type_names=["double"], + optional=False, + document="""Double positive small value. smallest value + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14).""", + ), + 3: PinSpecification( + name="double_tolerance", + type_names=["double"], + optional=True, + document="""Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001.""", + ), + 4: PinSpecification( + name="compare_auxiliary", + type_names=["bool"], + optional=False, + document="""For meshes and meshescontainer: compare + auxiliary data (i.e property fields, + scopings...). default value is + 'false'.""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="included", + type_names=["bool"], + optional=False, + document="""Bool (true if belongs...)""", + ), + 1: PinSpecification( + name="message", + type_names=["string"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config(name="compare::any", server=server) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsIdenticalAnys + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsIdenticalAnys + """ + return super().outputs + + +class InputsIdenticalAnys(_Inputs): + """Intermediate class used to connect user inputs to + identical_anys operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> my_anyA = dpf.Any() + >>> op.inputs.anyA.connect(my_anyA) + >>> my_anyB = dpf.Any() + >>> op.inputs.anyB.connect(my_anyB) + >>> my_double_value = float() + >>> op.inputs.double_value.connect(my_double_value) + >>> my_double_tolerance = float() + >>> op.inputs.double_tolerance.connect(my_double_tolerance) + >>> my_compare_auxiliary = bool() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + """ + + def __init__(self, op: Operator): + super().__init__(identical_anys._spec().inputs, op) + self._anyA = Input(identical_anys._spec().input_pin(0), 0, op, -1) + self._inputs.append(self._anyA) + self._anyB = Input(identical_anys._spec().input_pin(1), 1, op, -1) + self._inputs.append(self._anyB) + self._double_value = Input(identical_anys._spec().input_pin(2), 2, op, -1) + self._inputs.append(self._double_value) + self._double_tolerance = Input(identical_anys._spec().input_pin(3), 3, op, -1) + self._inputs.append(self._double_tolerance) + self._compare_auxiliary = Input(identical_anys._spec().input_pin(4), 4, op, -1) + self._inputs.append(self._compare_auxiliary) + + @property + def anyA(self): + """Allows to connect anyA input to the operator. + + Parameters + ---------- + my_anyA : Any + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> op.inputs.anyA.connect(my_anyA) + >>> # or + >>> op.inputs.anyA(my_anyA) + """ + return self._anyA + + @property + def anyB(self): + """Allows to connect anyB input to the operator. + + Parameters + ---------- + my_anyB : Any + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> op.inputs.anyB.connect(my_anyB) + >>> # or + >>> op.inputs.anyB(my_anyB) + """ + return self._anyB + + @property + def double_value(self): + """Allows to connect double_value input to the operator. + + Double positive small value. smallest value + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). + + Parameters + ---------- + my_double_value : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> op.inputs.double_value.connect(my_double_value) + >>> # or + >>> op.inputs.double_value(my_double_value) + """ + return self._double_value + + @property + def double_tolerance(self): + """Allows to connect double_tolerance input to the operator. + + Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001. + + Parameters + ---------- + my_double_tolerance : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> op.inputs.double_tolerance.connect(my_double_tolerance) + >>> # or + >>> op.inputs.double_tolerance(my_double_tolerance) + """ + return self._double_tolerance + + @property + def compare_auxiliary(self): + """Allows to connect compare_auxiliary input to the operator. + + For meshes and meshescontainer: compare + auxiliary data (i.e property fields, + scopings...). default value is + 'false'. + + Parameters + ---------- + my_compare_auxiliary : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + >>> # or + >>> op.inputs.compare_auxiliary(my_compare_auxiliary) + """ + return self._compare_auxiliary + + +class OutputsIdenticalAnys(_Outputs): + """Intermediate class used to get outputs from + identical_anys operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> # Connect inputs : op.inputs. ... + >>> result_included = op.outputs.included() + >>> result_message = op.outputs.message() + """ + + def __init__(self, op: Operator): + super().__init__(identical_anys._spec().outputs, op) + self._included = Output(identical_anys._spec().output_pin(0), 0, op) + self._outputs.append(self._included) + self._message = Output(identical_anys._spec().output_pin(1), 1, op) + self._outputs.append(self._message) + + @property + def included(self): + """Allows to get included output of the operator + + Returns + ---------- + my_included : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> # Connect inputs : op.inputs. ... + >>> result_included = op.outputs.included() + """ # noqa: E501 + return self._included + + @property + def message(self): + """Allows to get message output of the operator + + Returns + ---------- + my_message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_anys() + >>> # Connect inputs : op.inputs. ... + >>> result_message = op.outputs.message() + """ # noqa: E501 + return self._message diff --git a/src/ansys/dpf/core/operators/logic/identical_fc.py b/src/ansys/dpf/core/operators/logic/identical_fc.py index eff09e2135..5d0525bccd 100644 --- a/src/ansys/dpf/core/operators/logic/identical_fc.py +++ b/src/ansys/dpf/core/operators/logic/identical_fc.py @@ -12,7 +12,7 @@ class identical_fc(Operator): - """Checks if two fields containers are identical. + """Checks if two fields_container are identical. Parameters ---------- @@ -77,7 +77,7 @@ def __init__( config=None, server=None, ): - super().__init__(name="AreFieldsIdentical_fc", config=config, server=server) + super().__init__(name="compare::fields_container", config=config, server=server) self._inputs = InputsIdenticalFc(self) self._outputs = OutputsIdenticalFc(self) if fields_containerA is not None: @@ -91,7 +91,7 @@ def __init__( @staticmethod def _spec(): - description = """Checks if two fields containers are identical.""" + description = """Checks if two fields_container are identical.""" spec = Specification( description=description, map_input_pin_spec={ @@ -160,7 +160,7 @@ def default_config(server=None): Server with channel connected to the remote or local instance. When ``None``, attempts to use the global server. """ - return Operator.default_config(name="AreFieldsIdentical_fc", server=server) + return Operator.default_config(name="compare::fields_container", server=server) @property def inputs(self): diff --git a/src/ansys/dpf/core/operators/logic/identical_fields.py b/src/ansys/dpf/core/operators/logic/identical_fields.py index 79d40ddee9..5b431294a3 100644 --- a/src/ansys/dpf/core/operators/logic/identical_fields.py +++ b/src/ansys/dpf/core/operators/logic/identical_fields.py @@ -20,17 +20,18 @@ class identical_fields(Operator): fieldB : Field double_value : float, optional Double positive small value. smallest value - which will be considered during the - comparison step. all the abs(values) - in the field less than this value are - considered as null, (default - value:1.0e-14). + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). double_tolerance : float, optional Double relative tolerance. maximum tolerance gap between two compared values. values within relative tolerance are - considered identical(v1 - v2) / v2 < - relativetol(default is 0.001). + considered identical. formula is (v1 + - v2) / v2 < relativetol. default is + 0.001. Returns ------- @@ -77,7 +78,7 @@ def __init__( config=None, server=None, ): - super().__init__(name="AreFieldsIdentical", config=config, server=server) + super().__init__(name="compare::field", config=config, server=server) self._inputs = InputsIdenticalFields(self) self._outputs = OutputsIdenticalFields(self) if fieldA is not None: @@ -112,11 +113,11 @@ def _spec(): type_names=["double"], optional=True, document="""Double positive small value. smallest value - which will be considered during the - comparison step. all the abs(values) - in the field less than this value are - considered as null, (default - value:1.0e-14).""", + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14).""", ), 3: PinSpecification( name="double_tolerance", @@ -125,8 +126,9 @@ def _spec(): document="""Double relative tolerance. maximum tolerance gap between two compared values. values within relative tolerance are - considered identical(v1 - v2) / v2 < - relativetol(default is 0.001).""", + considered identical. formula is (v1 + - v2) / v2 < relativetol. default is + 0.001.""", ), }, map_output_pin_spec={ @@ -160,7 +162,7 @@ def default_config(server=None): Server with channel connected to the remote or local instance. When ``None``, attempts to use the global server. """ - return Operator.default_config(name="AreFieldsIdentical", server=server) + return Operator.default_config(name="compare::field", server=server) @property def inputs(self): @@ -253,11 +255,11 @@ def double_value(self): """Allows to connect double_value input to the operator. Double positive small value. smallest value - which will be considered during the - comparison step. all the abs(values) - in the field less than this value are - considered as null, (default - value:1.0e-14). + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). Parameters ---------- @@ -280,8 +282,9 @@ def double_tolerance(self): Double relative tolerance. maximum tolerance gap between two compared values. values within relative tolerance are - considered identical(v1 - v2) / v2 < - relativetol(default is 0.001). + considered identical. formula is (v1 + - v2) / v2 < relativetol. default is + 0.001. Parameters ---------- diff --git a/src/ansys/dpf/core/operators/logic/identical_generic_data_containers.py b/src/ansys/dpf/core/operators/logic/identical_generic_data_containers.py new file mode 100644 index 0000000000..529768b595 --- /dev/null +++ b/src/ansys/dpf/core/operators/logic/identical_generic_data_containers.py @@ -0,0 +1,432 @@ +""" +identical_generic_data_containers + +Autogenerated DPF operator classes. +""" + +from warnings import warn +from ansys.dpf.core.dpf_operator import Operator +from ansys.dpf.core.inputs import Input, _Inputs +from ansys.dpf.core.outputs import Output, _Outputs +from ansys.dpf.core.operators.specification import PinSpecification, Specification + + +class identical_generic_data_containers(Operator): + """Takes two generic data containers and compares them. Supported types: + Field, FieldsContainer, Mesh, MeshesContainer, PropertyField, + PropertyFieldsContainer, Scoping, ScopingsContainer, + StringFieldstandard types (double, int, string, vector of int, + doubles, string)Note: all inputs related to fields, mesh, and so + on are passed to each property check. + + Parameters + ---------- + generic_data_containerA : GenericDataContainer + generic_data_containerB : GenericDataContainer + double_value : float + Double positive small value. smallest value + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). + double_tolerance : float, optional + Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001. + compare_auxiliary : bool + For meshes and meshescontainer: compare + auxiliary data (i.e property fields, + scopings...). default value is + 'false'. + + Returns + ------- + included : bool + Bool (true if belongs...) + message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.logic.identical_generic_data_containers() + + >>> # Make input connections + >>> my_generic_data_containerA = dpf.GenericDataContainer() + >>> op.inputs.generic_data_containerA.connect(my_generic_data_containerA) + >>> my_generic_data_containerB = dpf.GenericDataContainer() + >>> op.inputs.generic_data_containerB.connect(my_generic_data_containerB) + >>> my_double_value = float() + >>> op.inputs.double_value.connect(my_double_value) + >>> my_double_tolerance = float() + >>> op.inputs.double_tolerance.connect(my_double_tolerance) + >>> my_compare_auxiliary = bool() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.logic.identical_generic_data_containers( + ... generic_data_containerA=my_generic_data_containerA, + ... generic_data_containerB=my_generic_data_containerB, + ... double_value=my_double_value, + ... double_tolerance=my_double_tolerance, + ... compare_auxiliary=my_compare_auxiliary, + ... ) + + >>> # Get output data + >>> result_included = op.outputs.included() + >>> result_message = op.outputs.message() + """ + + def __init__( + self, + generic_data_containerA=None, + generic_data_containerB=None, + double_value=None, + double_tolerance=None, + compare_auxiliary=None, + config=None, + server=None, + ): + super().__init__( + name="compare::generic_data_container", config=config, server=server + ) + self._inputs = InputsIdenticalGenericDataContainers(self) + self._outputs = OutputsIdenticalGenericDataContainers(self) + if generic_data_containerA is not None: + self.inputs.generic_data_containerA.connect(generic_data_containerA) + if generic_data_containerB is not None: + self.inputs.generic_data_containerB.connect(generic_data_containerB) + if double_value is not None: + self.inputs.double_value.connect(double_value) + if double_tolerance is not None: + self.inputs.double_tolerance.connect(double_tolerance) + if compare_auxiliary is not None: + self.inputs.compare_auxiliary.connect(compare_auxiliary) + + @staticmethod + def _spec(): + description = """Takes two generic data containers and compares them. Supported types: + Field, FieldsContainer, Mesh, MeshesContainer, + PropertyField, PropertyFieldsContainer, Scoping, + ScopingsContainer, StringFieldstandard types (double, int, + string, vector of int, doubles, string)Note: all inputs + related to fields, mesh, and so on are passed to each + property check.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="generic_data_containerA", + type_names=["generic_data_container"], + optional=False, + document="""""", + ), + 1: PinSpecification( + name="generic_data_containerB", + type_names=["generic_data_container"], + optional=False, + document="""""", + ), + 2: PinSpecification( + name="double_value", + type_names=["double"], + optional=False, + document="""Double positive small value. smallest value + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14).""", + ), + 3: PinSpecification( + name="double_tolerance", + type_names=["double"], + optional=True, + document="""Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001.""", + ), + 4: PinSpecification( + name="compare_auxiliary", + type_names=["bool"], + optional=False, + document="""For meshes and meshescontainer: compare + auxiliary data (i.e property fields, + scopings...). default value is + 'false'.""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="included", + type_names=["bool"], + optional=False, + document="""Bool (true if belongs...)""", + ), + 1: PinSpecification( + name="message", + type_names=["string"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config( + name="compare::generic_data_container", server=server + ) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsIdenticalGenericDataContainers + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsIdenticalGenericDataContainers + """ + return super().outputs + + +class InputsIdenticalGenericDataContainers(_Inputs): + """Intermediate class used to connect user inputs to + identical_generic_data_containers operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> my_generic_data_containerA = dpf.GenericDataContainer() + >>> op.inputs.generic_data_containerA.connect(my_generic_data_containerA) + >>> my_generic_data_containerB = dpf.GenericDataContainer() + >>> op.inputs.generic_data_containerB.connect(my_generic_data_containerB) + >>> my_double_value = float() + >>> op.inputs.double_value.connect(my_double_value) + >>> my_double_tolerance = float() + >>> op.inputs.double_tolerance.connect(my_double_tolerance) + >>> my_compare_auxiliary = bool() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + """ + + def __init__(self, op: Operator): + super().__init__(identical_generic_data_containers._spec().inputs, op) + self._generic_data_containerA = Input( + identical_generic_data_containers._spec().input_pin(0), 0, op, -1 + ) + self._inputs.append(self._generic_data_containerA) + self._generic_data_containerB = Input( + identical_generic_data_containers._spec().input_pin(1), 1, op, -1 + ) + self._inputs.append(self._generic_data_containerB) + self._double_value = Input( + identical_generic_data_containers._spec().input_pin(2), 2, op, -1 + ) + self._inputs.append(self._double_value) + self._double_tolerance = Input( + identical_generic_data_containers._spec().input_pin(3), 3, op, -1 + ) + self._inputs.append(self._double_tolerance) + self._compare_auxiliary = Input( + identical_generic_data_containers._spec().input_pin(4), 4, op, -1 + ) + self._inputs.append(self._compare_auxiliary) + + @property + def generic_data_containerA(self): + """Allows to connect generic_data_containerA input to the operator. + + Parameters + ---------- + my_generic_data_containerA : GenericDataContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> op.inputs.generic_data_containerA.connect(my_generic_data_containerA) + >>> # or + >>> op.inputs.generic_data_containerA(my_generic_data_containerA) + """ + return self._generic_data_containerA + + @property + def generic_data_containerB(self): + """Allows to connect generic_data_containerB input to the operator. + + Parameters + ---------- + my_generic_data_containerB : GenericDataContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> op.inputs.generic_data_containerB.connect(my_generic_data_containerB) + >>> # or + >>> op.inputs.generic_data_containerB(my_generic_data_containerB) + """ + return self._generic_data_containerB + + @property + def double_value(self): + """Allows to connect double_value input to the operator. + + Double positive small value. smallest value + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). + + Parameters + ---------- + my_double_value : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> op.inputs.double_value.connect(my_double_value) + >>> # or + >>> op.inputs.double_value(my_double_value) + """ + return self._double_value + + @property + def double_tolerance(self): + """Allows to connect double_tolerance input to the operator. + + Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001. + + Parameters + ---------- + my_double_tolerance : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> op.inputs.double_tolerance.connect(my_double_tolerance) + >>> # or + >>> op.inputs.double_tolerance(my_double_tolerance) + """ + return self._double_tolerance + + @property + def compare_auxiliary(self): + """Allows to connect compare_auxiliary input to the operator. + + For meshes and meshescontainer: compare + auxiliary data (i.e property fields, + scopings...). default value is + 'false'. + + Parameters + ---------- + my_compare_auxiliary : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + >>> # or + >>> op.inputs.compare_auxiliary(my_compare_auxiliary) + """ + return self._compare_auxiliary + + +class OutputsIdenticalGenericDataContainers(_Outputs): + """Intermediate class used to get outputs from + identical_generic_data_containers operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> # Connect inputs : op.inputs. ... + >>> result_included = op.outputs.included() + >>> result_message = op.outputs.message() + """ + + def __init__(self, op: Operator): + super().__init__(identical_generic_data_containers._spec().outputs, op) + self._included = Output( + identical_generic_data_containers._spec().output_pin(0), 0, op + ) + self._outputs.append(self._included) + self._message = Output( + identical_generic_data_containers._spec().output_pin(1), 1, op + ) + self._outputs.append(self._message) + + @property + def included(self): + """Allows to get included output of the operator + + Returns + ---------- + my_included : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> # Connect inputs : op.inputs. ... + >>> result_included = op.outputs.included() + """ # noqa: E501 + return self._included + + @property + def message(self): + """Allows to get message output of the operator + + Returns + ---------- + my_message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_generic_data_containers() + >>> # Connect inputs : op.inputs. ... + >>> result_message = op.outputs.message() + """ # noqa: E501 + return self._message diff --git a/src/ansys/dpf/core/operators/logic/identical_mc.py b/src/ansys/dpf/core/operators/logic/identical_mc.py new file mode 100644 index 0000000000..3fa38b68a7 --- /dev/null +++ b/src/ansys/dpf/core/operators/logic/identical_mc.py @@ -0,0 +1,397 @@ +""" +identical_mc + +Autogenerated DPF operator classes. +""" + +from warnings import warn +from ansys.dpf.core.dpf_operator import Operator +from ansys.dpf.core.inputs import Input, _Inputs +from ansys.dpf.core.outputs import Output, _Outputs +from ansys.dpf.core.operators.specification import PinSpecification, Specification + + +class identical_mc(Operator): + """Checks if two meshes_container are identical. + + Parameters + ---------- + meshes_containerA : MeshesContainer + meshes_containerB : MeshesContainer + small_value : float, optional + Double positive small value. smallest value + which will be considered during the + comparison step. all the abs(values) + in the field less than this value are + considered as null, (default + value:1.0e-14). + tolerance : float, optional + Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical (v1-v2)/v2 < + relativetol (default is 0.001). + compare_auxiliary : bool + Compare auxiliary data (i.e property fields, + scopings...). default value is + 'false'. + + Returns + ------- + boolean : bool + Bool (true if identical...) + message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.logic.identical_mc() + + >>> # Make input connections + >>> my_meshes_containerA = dpf.MeshesContainer() + >>> op.inputs.meshes_containerA.connect(my_meshes_containerA) + >>> my_meshes_containerB = dpf.MeshesContainer() + >>> op.inputs.meshes_containerB.connect(my_meshes_containerB) + >>> my_small_value = float() + >>> op.inputs.small_value.connect(my_small_value) + >>> my_tolerance = float() + >>> op.inputs.tolerance.connect(my_tolerance) + >>> my_compare_auxiliary = bool() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.logic.identical_mc( + ... meshes_containerA=my_meshes_containerA, + ... meshes_containerB=my_meshes_containerB, + ... small_value=my_small_value, + ... tolerance=my_tolerance, + ... compare_auxiliary=my_compare_auxiliary, + ... ) + + >>> # Get output data + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__( + self, + meshes_containerA=None, + meshes_containerB=None, + small_value=None, + tolerance=None, + compare_auxiliary=None, + config=None, + server=None, + ): + super().__init__(name="compare::meshes_container", config=config, server=server) + self._inputs = InputsIdenticalMc(self) + self._outputs = OutputsIdenticalMc(self) + if meshes_containerA is not None: + self.inputs.meshes_containerA.connect(meshes_containerA) + if meshes_containerB is not None: + self.inputs.meshes_containerB.connect(meshes_containerB) + if small_value is not None: + self.inputs.small_value.connect(small_value) + if tolerance is not None: + self.inputs.tolerance.connect(tolerance) + if compare_auxiliary is not None: + self.inputs.compare_auxiliary.connect(compare_auxiliary) + + @staticmethod + def _spec(): + description = """Checks if two meshes_container are identical.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="meshes_containerA", + type_names=["meshes_container"], + optional=False, + document="""""", + ), + 1: PinSpecification( + name="meshes_containerB", + type_names=["meshes_container"], + optional=False, + document="""""", + ), + 2: PinSpecification( + name="small_value", + type_names=["double"], + optional=True, + document="""Double positive small value. smallest value + which will be considered during the + comparison step. all the abs(values) + in the field less than this value are + considered as null, (default + value:1.0e-14).""", + ), + 3: PinSpecification( + name="tolerance", + type_names=["double"], + optional=True, + document="""Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical (v1-v2)/v2 < + relativetol (default is 0.001).""", + ), + 4: PinSpecification( + name="compare_auxiliary", + type_names=["bool"], + optional=False, + document="""Compare auxiliary data (i.e property fields, + scopings...). default value is + 'false'.""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="boolean", + type_names=["bool"], + optional=False, + document="""Bool (true if identical...)""", + ), + 1: PinSpecification( + name="message", + type_names=["string"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config(name="compare::meshes_container", server=server) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsIdenticalMc + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsIdenticalMc + """ + return super().outputs + + +class InputsIdenticalMc(_Inputs): + """Intermediate class used to connect user inputs to + identical_mc operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> my_meshes_containerA = dpf.MeshesContainer() + >>> op.inputs.meshes_containerA.connect(my_meshes_containerA) + >>> my_meshes_containerB = dpf.MeshesContainer() + >>> op.inputs.meshes_containerB.connect(my_meshes_containerB) + >>> my_small_value = float() + >>> op.inputs.small_value.connect(my_small_value) + >>> my_tolerance = float() + >>> op.inputs.tolerance.connect(my_tolerance) + >>> my_compare_auxiliary = bool() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + """ + + def __init__(self, op: Operator): + super().__init__(identical_mc._spec().inputs, op) + self._meshes_containerA = Input(identical_mc._spec().input_pin(0), 0, op, -1) + self._inputs.append(self._meshes_containerA) + self._meshes_containerB = Input(identical_mc._spec().input_pin(1), 1, op, -1) + self._inputs.append(self._meshes_containerB) + self._small_value = Input(identical_mc._spec().input_pin(2), 2, op, -1) + self._inputs.append(self._small_value) + self._tolerance = Input(identical_mc._spec().input_pin(3), 3, op, -1) + self._inputs.append(self._tolerance) + self._compare_auxiliary = Input(identical_mc._spec().input_pin(4), 4, op, -1) + self._inputs.append(self._compare_auxiliary) + + @property + def meshes_containerA(self): + """Allows to connect meshes_containerA input to the operator. + + Parameters + ---------- + my_meshes_containerA : MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> op.inputs.meshes_containerA.connect(my_meshes_containerA) + >>> # or + >>> op.inputs.meshes_containerA(my_meshes_containerA) + """ + return self._meshes_containerA + + @property + def meshes_containerB(self): + """Allows to connect meshes_containerB input to the operator. + + Parameters + ---------- + my_meshes_containerB : MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> op.inputs.meshes_containerB.connect(my_meshes_containerB) + >>> # or + >>> op.inputs.meshes_containerB(my_meshes_containerB) + """ + return self._meshes_containerB + + @property + def small_value(self): + """Allows to connect small_value input to the operator. + + Double positive small value. smallest value + which will be considered during the + comparison step. all the abs(values) + in the field less than this value are + considered as null, (default + value:1.0e-14). + + Parameters + ---------- + my_small_value : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> op.inputs.small_value.connect(my_small_value) + >>> # or + >>> op.inputs.small_value(my_small_value) + """ + return self._small_value + + @property + def tolerance(self): + """Allows to connect tolerance input to the operator. + + Double relative tolerance. maximum tolerance + gap between two compared values. + values within relative tolerance are + considered identical (v1-v2)/v2 < + relativetol (default is 0.001). + + Parameters + ---------- + my_tolerance : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> op.inputs.tolerance.connect(my_tolerance) + >>> # or + >>> op.inputs.tolerance(my_tolerance) + """ + return self._tolerance + + @property + def compare_auxiliary(self): + """Allows to connect compare_auxiliary input to the operator. + + Compare auxiliary data (i.e property fields, + scopings...). default value is + 'false'. + + Parameters + ---------- + my_compare_auxiliary : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> op.inputs.compare_auxiliary.connect(my_compare_auxiliary) + >>> # or + >>> op.inputs.compare_auxiliary(my_compare_auxiliary) + """ + return self._compare_auxiliary + + +class OutputsIdenticalMc(_Outputs): + """Intermediate class used to get outputs from + identical_mc operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__(self, op: Operator): + super().__init__(identical_mc._spec().outputs, op) + self._boolean = Output(identical_mc._spec().output_pin(0), 0, op) + self._outputs.append(self._boolean) + self._message = Output(identical_mc._spec().output_pin(1), 1, op) + self._outputs.append(self._message) + + @property + def boolean(self): + """Allows to get boolean output of the operator + + Returns + ---------- + my_boolean : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + """ # noqa: E501 + return self._boolean + + @property + def message(self): + """Allows to get message output of the operator + + Returns + ---------- + my_message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_mc() + >>> # Connect inputs : op.inputs. ... + >>> result_message = op.outputs.message() + """ # noqa: E501 + return self._message diff --git a/src/ansys/dpf/core/operators/logic/identical_meshes.py b/src/ansys/dpf/core/operators/logic/identical_meshes.py index 0142f7fe4b..246808c593 100644 --- a/src/ansys/dpf/core/operators/logic/identical_meshes.py +++ b/src/ansys/dpf/core/operators/logic/identical_meshes.py @@ -20,12 +20,13 @@ class identical_meshes(Operator): ---------- meshA : MeshedRegion meshB : MeshedRegion - small_value : float + small_value : float, optional Define what is a small value for numeric - comparison. - tolerance : float + comparison (default value:1.0e-14). + tolerance : float, optional Define the relative tolerance ceil for - numeric comparison. + numeric comparison (default is + 0.001). compare_auxiliary : bool Compare auxiliary data (i.e property fields, scopings...). default value is @@ -115,16 +116,17 @@ def _spec(): 2: PinSpecification( name="small_value", type_names=["double"], - optional=False, + optional=True, document="""Define what is a small value for numeric - comparison.""", + comparison (default value:1.0e-14).""", ), 3: PinSpecification( name="tolerance", type_names=["double"], - optional=False, + optional=True, document="""Define the relative tolerance ceil for - numeric comparison.""", + numeric comparison (default is + 0.001).""", ), 4: PinSpecification( name="compare_auxiliary", @@ -259,7 +261,7 @@ def small_value(self): """Allows to connect small_value input to the operator. Define what is a small value for numeric - comparison. + comparison (default value:1.0e-14). Parameters ---------- @@ -280,7 +282,8 @@ def tolerance(self): """Allows to connect tolerance input to the operator. Define the relative tolerance ceil for - numeric comparison. + numeric comparison (default is + 0.001). Parameters ---------- diff --git a/src/ansys/dpf/core/operators/logic/identical_pfc.py b/src/ansys/dpf/core/operators/logic/identical_pfc.py new file mode 100644 index 0000000000..771aa0da88 --- /dev/null +++ b/src/ansys/dpf/core/operators/logic/identical_pfc.py @@ -0,0 +1,258 @@ +""" +identical_pfc + +Autogenerated DPF operator classes. +""" + +from warnings import warn +from ansys.dpf.core.dpf_operator import Operator +from ansys.dpf.core.inputs import Input, _Inputs +from ansys.dpf.core.outputs import Output, _Outputs +from ansys.dpf.core.operators.specification import PinSpecification, Specification + + +class identical_pfc(Operator): + """Checks if two property_fields_container are identical. + + Parameters + ---------- + property_fields_containerA : PropertyFieldsContainer + property_fields_containerB : PropertyFieldsContainer + + Returns + ------- + boolean : bool + Bool (true if identical...) + message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.logic.identical_pfc() + + >>> # Make input connections + >>> my_property_fields_containerA = dpf.PropertyFieldsContainer() + >>> op.inputs.property_fields_containerA.connect(my_property_fields_containerA) + >>> my_property_fields_containerB = dpf.PropertyFieldsContainer() + >>> op.inputs.property_fields_containerB.connect(my_property_fields_containerB) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.logic.identical_pfc( + ... property_fields_containerA=my_property_fields_containerA, + ... property_fields_containerB=my_property_fields_containerB, + ... ) + + >>> # Get output data + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__( + self, + property_fields_containerA=None, + property_fields_containerB=None, + config=None, + server=None, + ): + super().__init__( + name="compare::property_fields_container", config=config, server=server + ) + self._inputs = InputsIdenticalPfc(self) + self._outputs = OutputsIdenticalPfc(self) + if property_fields_containerA is not None: + self.inputs.property_fields_containerA.connect(property_fields_containerA) + if property_fields_containerB is not None: + self.inputs.property_fields_containerB.connect(property_fields_containerB) + + @staticmethod + def _spec(): + description = """Checks if two property_fields_container are identical.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="property_fields_containerA", + type_names=["property_fields_container"], + optional=False, + document="""""", + ), + 1: PinSpecification( + name="property_fields_containerB", + type_names=["property_fields_container"], + optional=False, + document="""""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="boolean", + type_names=["bool"], + optional=False, + document="""Bool (true if identical...)""", + ), + 1: PinSpecification( + name="message", + type_names=["string"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config( + name="compare::property_fields_container", server=server + ) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsIdenticalPfc + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsIdenticalPfc + """ + return super().outputs + + +class InputsIdenticalPfc(_Inputs): + """Intermediate class used to connect user inputs to + identical_pfc operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_pfc() + >>> my_property_fields_containerA = dpf.PropertyFieldsContainer() + >>> op.inputs.property_fields_containerA.connect(my_property_fields_containerA) + >>> my_property_fields_containerB = dpf.PropertyFieldsContainer() + >>> op.inputs.property_fields_containerB.connect(my_property_fields_containerB) + """ + + def __init__(self, op: Operator): + super().__init__(identical_pfc._spec().inputs, op) + self._property_fields_containerA = Input( + identical_pfc._spec().input_pin(0), 0, op, -1 + ) + self._inputs.append(self._property_fields_containerA) + self._property_fields_containerB = Input( + identical_pfc._spec().input_pin(1), 1, op, -1 + ) + self._inputs.append(self._property_fields_containerB) + + @property + def property_fields_containerA(self): + """Allows to connect property_fields_containerA input to the operator. + + Parameters + ---------- + my_property_fields_containerA : PropertyFieldsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_pfc() + >>> op.inputs.property_fields_containerA.connect(my_property_fields_containerA) + >>> # or + >>> op.inputs.property_fields_containerA(my_property_fields_containerA) + """ + return self._property_fields_containerA + + @property + def property_fields_containerB(self): + """Allows to connect property_fields_containerB input to the operator. + + Parameters + ---------- + my_property_fields_containerB : PropertyFieldsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_pfc() + >>> op.inputs.property_fields_containerB.connect(my_property_fields_containerB) + >>> # or + >>> op.inputs.property_fields_containerB(my_property_fields_containerB) + """ + return self._property_fields_containerB + + +class OutputsIdenticalPfc(_Outputs): + """Intermediate class used to get outputs from + identical_pfc operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_pfc() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__(self, op: Operator): + super().__init__(identical_pfc._spec().outputs, op) + self._boolean = Output(identical_pfc._spec().output_pin(0), 0, op) + self._outputs.append(self._boolean) + self._message = Output(identical_pfc._spec().output_pin(1), 1, op) + self._outputs.append(self._message) + + @property + def boolean(self): + """Allows to get boolean output of the operator + + Returns + ---------- + my_boolean : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_pfc() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + """ # noqa: E501 + return self._boolean + + @property + def message(self): + """Allows to get message output of the operator + + Returns + ---------- + my_message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_pfc() + >>> # Connect inputs : op.inputs. ... + >>> result_message = op.outputs.message() + """ # noqa: E501 + return self._message diff --git a/src/ansys/dpf/core/operators/logic/identical_sc.py b/src/ansys/dpf/core/operators/logic/identical_sc.py new file mode 100644 index 0000000000..fcdbd599a3 --- /dev/null +++ b/src/ansys/dpf/core/operators/logic/identical_sc.py @@ -0,0 +1,254 @@ +""" +identical_sc + +Autogenerated DPF operator classes. +""" + +from warnings import warn +from ansys.dpf.core.dpf_operator import Operator +from ansys.dpf.core.inputs import Input, _Inputs +from ansys.dpf.core.outputs import Output, _Outputs +from ansys.dpf.core.operators.specification import PinSpecification, Specification + + +class identical_sc(Operator): + """Checks if two scopings_container are identical. + + Parameters + ---------- + scopings_containerA : ScopingsContainer + scopings_containerB : ScopingsContainer + + Returns + ------- + boolean : bool + Bool (true if identical...) + message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.logic.identical_sc() + + >>> # Make input connections + >>> my_scopings_containerA = dpf.ScopingsContainer() + >>> op.inputs.scopings_containerA.connect(my_scopings_containerA) + >>> my_scopings_containerB = dpf.ScopingsContainer() + >>> op.inputs.scopings_containerB.connect(my_scopings_containerB) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.logic.identical_sc( + ... scopings_containerA=my_scopings_containerA, + ... scopings_containerB=my_scopings_containerB, + ... ) + + >>> # Get output data + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__( + self, + scopings_containerA=None, + scopings_containerB=None, + config=None, + server=None, + ): + super().__init__( + name="compare::scopings_container", config=config, server=server + ) + self._inputs = InputsIdenticalSc(self) + self._outputs = OutputsIdenticalSc(self) + if scopings_containerA is not None: + self.inputs.scopings_containerA.connect(scopings_containerA) + if scopings_containerB is not None: + self.inputs.scopings_containerB.connect(scopings_containerB) + + @staticmethod + def _spec(): + description = """Checks if two scopings_container are identical.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="scopings_containerA", + type_names=["scopings_container"], + optional=False, + document="""""", + ), + 1: PinSpecification( + name="scopings_containerB", + type_names=["scopings_container"], + optional=False, + document="""""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="boolean", + type_names=["bool"], + optional=False, + document="""Bool (true if identical...)""", + ), + 1: PinSpecification( + name="message", + type_names=["string"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config( + name="compare::scopings_container", server=server + ) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsIdenticalSc + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsIdenticalSc + """ + return super().outputs + + +class InputsIdenticalSc(_Inputs): + """Intermediate class used to connect user inputs to + identical_sc operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_sc() + >>> my_scopings_containerA = dpf.ScopingsContainer() + >>> op.inputs.scopings_containerA.connect(my_scopings_containerA) + >>> my_scopings_containerB = dpf.ScopingsContainer() + >>> op.inputs.scopings_containerB.connect(my_scopings_containerB) + """ + + def __init__(self, op: Operator): + super().__init__(identical_sc._spec().inputs, op) + self._scopings_containerA = Input(identical_sc._spec().input_pin(0), 0, op, -1) + self._inputs.append(self._scopings_containerA) + self._scopings_containerB = Input(identical_sc._spec().input_pin(1), 1, op, -1) + self._inputs.append(self._scopings_containerB) + + @property + def scopings_containerA(self): + """Allows to connect scopings_containerA input to the operator. + + Parameters + ---------- + my_scopings_containerA : ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_sc() + >>> op.inputs.scopings_containerA.connect(my_scopings_containerA) + >>> # or + >>> op.inputs.scopings_containerA(my_scopings_containerA) + """ + return self._scopings_containerA + + @property + def scopings_containerB(self): + """Allows to connect scopings_containerB input to the operator. + + Parameters + ---------- + my_scopings_containerB : ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_sc() + >>> op.inputs.scopings_containerB.connect(my_scopings_containerB) + >>> # or + >>> op.inputs.scopings_containerB(my_scopings_containerB) + """ + return self._scopings_containerB + + +class OutputsIdenticalSc(_Outputs): + """Intermediate class used to get outputs from + identical_sc operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_sc() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__(self, op: Operator): + super().__init__(identical_sc._spec().outputs, op) + self._boolean = Output(identical_sc._spec().output_pin(0), 0, op) + self._outputs.append(self._boolean) + self._message = Output(identical_sc._spec().output_pin(1), 1, op) + self._outputs.append(self._message) + + @property + def boolean(self): + """Allows to get boolean output of the operator + + Returns + ---------- + my_boolean : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_sc() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + """ # noqa: E501 + return self._boolean + + @property + def message(self): + """Allows to get message output of the operator + + Returns + ---------- + my_message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_sc() + >>> # Connect inputs : op.inputs. ... + >>> result_message = op.outputs.message() + """ # noqa: E501 + return self._message diff --git a/src/ansys/dpf/core/operators/logic/identical_scopings.py b/src/ansys/dpf/core/operators/logic/identical_scopings.py new file mode 100644 index 0000000000..368e27b765 --- /dev/null +++ b/src/ansys/dpf/core/operators/logic/identical_scopings.py @@ -0,0 +1,244 @@ +""" +identical_scopings + +Autogenerated DPF operator classes. +""" + +from warnings import warn +from ansys.dpf.core.dpf_operator import Operator +from ansys.dpf.core.inputs import Input, _Inputs +from ansys.dpf.core.outputs import Output, _Outputs +from ansys.dpf.core.operators.specification import PinSpecification, Specification + + +class identical_scopings(Operator): + """Check if two scopings are identical. + + Parameters + ---------- + scopingA : Scoping + scopingB : Scoping + + Returns + ------- + boolean : bool + Bool (true if identical...) + message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.logic.identical_scopings() + + >>> # Make input connections + >>> my_scopingA = dpf.Scoping() + >>> op.inputs.scopingA.connect(my_scopingA) + >>> my_scopingB = dpf.Scoping() + >>> op.inputs.scopingB.connect(my_scopingB) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.logic.identical_scopings( + ... scopingA=my_scopingA, + ... scopingB=my_scopingB, + ... ) + + >>> # Get output data + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__(self, scopingA=None, scopingB=None, config=None, server=None): + super().__init__(name="compare::scoping", config=config, server=server) + self._inputs = InputsIdenticalScopings(self) + self._outputs = OutputsIdenticalScopings(self) + if scopingA is not None: + self.inputs.scopingA.connect(scopingA) + if scopingB is not None: + self.inputs.scopingB.connect(scopingB) + + @staticmethod + def _spec(): + description = """Check if two scopings are identical.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="scopingA", + type_names=["scoping"], + optional=False, + document="""""", + ), + 1: PinSpecification( + name="scopingB", + type_names=["scoping"], + optional=False, + document="""""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="boolean", + type_names=["bool"], + optional=False, + document="""Bool (true if identical...)""", + ), + 1: PinSpecification( + name="message", + type_names=["string"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config(name="compare::scoping", server=server) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsIdenticalScopings + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsIdenticalScopings + """ + return super().outputs + + +class InputsIdenticalScopings(_Inputs): + """Intermediate class used to connect user inputs to + identical_scopings operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_scopings() + >>> my_scopingA = dpf.Scoping() + >>> op.inputs.scopingA.connect(my_scopingA) + >>> my_scopingB = dpf.Scoping() + >>> op.inputs.scopingB.connect(my_scopingB) + """ + + def __init__(self, op: Operator): + super().__init__(identical_scopings._spec().inputs, op) + self._scopingA = Input(identical_scopings._spec().input_pin(0), 0, op, -1) + self._inputs.append(self._scopingA) + self._scopingB = Input(identical_scopings._spec().input_pin(1), 1, op, -1) + self._inputs.append(self._scopingB) + + @property + def scopingA(self): + """Allows to connect scopingA input to the operator. + + Parameters + ---------- + my_scopingA : Scoping + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_scopings() + >>> op.inputs.scopingA.connect(my_scopingA) + >>> # or + >>> op.inputs.scopingA(my_scopingA) + """ + return self._scopingA + + @property + def scopingB(self): + """Allows to connect scopingB input to the operator. + + Parameters + ---------- + my_scopingB : Scoping + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_scopings() + >>> op.inputs.scopingB.connect(my_scopingB) + >>> # or + >>> op.inputs.scopingB(my_scopingB) + """ + return self._scopingB + + +class OutputsIdenticalScopings(_Outputs): + """Intermediate class used to get outputs from + identical_scopings operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_scopings() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + >>> result_message = op.outputs.message() + """ + + def __init__(self, op: Operator): + super().__init__(identical_scopings._spec().outputs, op) + self._boolean = Output(identical_scopings._spec().output_pin(0), 0, op) + self._outputs.append(self._boolean) + self._message = Output(identical_scopings._spec().output_pin(1), 1, op) + self._outputs.append(self._message) + + @property + def boolean(self): + """Allows to get boolean output of the operator + + Returns + ---------- + my_boolean : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_scopings() + >>> # Connect inputs : op.inputs. ... + >>> result_boolean = op.outputs.boolean() + """ # noqa: E501 + return self._boolean + + @property + def message(self): + """Allows to get message output of the operator + + Returns + ---------- + my_message : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.logic.identical_scopings() + >>> # Connect inputs : op.inputs. ... + >>> result_message = op.outputs.message() + """ # noqa: E501 + return self._message diff --git a/src/ansys/dpf/core/operators/logic/included_fields.py b/src/ansys/dpf/core/operators/logic/included_fields.py index b236c56075..1e1fec522f 100644 --- a/src/ansys/dpf/core/operators/logic/included_fields.py +++ b/src/ansys/dpf/core/operators/logic/included_fields.py @@ -20,17 +20,18 @@ class included_fields(Operator): fieldB : Field double_value : float Double positive small value. smallest value - which will be considered during the - comparison step. all the abs(values) - in the field less than this value are - considered as null, (default - value:1.0e-14). + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). double_tolerance : float, optional Double relative tolerance. maximum tolerance gap between two compared values. values within relative tolerance are - considered identical (v1-v2)/v2 < - relativetol (default is 0.001). + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001. Returns ------- @@ -112,11 +113,11 @@ def _spec(): type_names=["double"], optional=False, document="""Double positive small value. smallest value - which will be considered during the - comparison step. all the abs(values) - in the field less than this value are - considered as null, (default - value:1.0e-14).""", + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14).""", ), 3: PinSpecification( name="double_tolerance", @@ -125,8 +126,9 @@ def _spec(): document="""Double relative tolerance. maximum tolerance gap between two compared values. values within relative tolerance are - considered identical (v1-v2)/v2 < - relativetol (default is 0.001).""", + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001.""", ), }, map_output_pin_spec={ @@ -253,11 +255,11 @@ def double_value(self): """Allows to connect double_value input to the operator. Double positive small value. smallest value - which will be considered during the - comparison step. all the abs(values) - in the field less than this value are - considered as null, (default - value:1.0e-14). + considered during the comparison + step. all the absolute values in the + field less than this value are + considered null, (default value: + 1.0e-14). Parameters ---------- @@ -280,8 +282,9 @@ def double_tolerance(self): Double relative tolerance. maximum tolerance gap between two compared values. values within relative tolerance are - considered identical (v1-v2)/v2 < - relativetol (default is 0.001). + considered identical. formula is + (v1-v2)/v2 < relativetol. default is + 0.001. Parameters ---------- diff --git a/src/ansys/dpf/core/operators/result/__init__.py b/src/ansys/dpf/core/operators/result/__init__.py index 7ea819543e..afdfd316d8 100644 --- a/src/ansys/dpf/core/operators/result/__init__.py +++ b/src/ansys/dpf/core/operators/result/__init__.py @@ -268,6 +268,7 @@ from .smisc import smisc from .specific_heat import specific_heat from .spectrum_data import spectrum_data +from .state_variable import state_variable from .static_pressure import static_pressure from .stiffness_matrix_energy import stiffness_matrix_energy from .strain_eqv_as_mechanical import strain_eqv_as_mechanical diff --git a/src/ansys/dpf/core/operators/result/acceleration.py b/src/ansys/dpf/core/operators/result/acceleration.py index fa4f0347eb..dcc58d02e9 100644 --- a/src/ansys/dpf/core/operators/result/acceleration.py +++ b/src/ansys/dpf/core/operators/result/acceleration.py @@ -58,14 +58,25 @@ class acceleration(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -95,6 +106,12 @@ class acceleration(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.acceleration( @@ -106,6 +123,9 @@ class acceleration(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -122,6 +142,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -144,6 +167,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -227,8 +256,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -240,6 +269,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -313,6 +365,12 @@ class InputsAcceleration(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -335,6 +393,14 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._read_cyclic = Input(acceleration._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + acceleration._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(acceleration._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(acceleration._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -488,8 +554,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -529,6 +595,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.acceleration() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.acceleration() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.acceleration() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsAcceleration(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py b/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py index 833b20e431..efc42c3ce3 100644 --- a/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py +++ b/src/ansys/dpf/core/operators/result/accu_eqv_creep_strain.py @@ -65,12 +65,6 @@ class accu_eqv_creep_strain(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class accu_eqv_creep_strain(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class accu_eqv_creep_strain(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsAccuEqvCreepStrain(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): accu_eqv_creep_strain._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - accu_eqv_creep_strain._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( accu_eqv_creep_strain._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.accu_eqv_creep_strain() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py b/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py index 0366a08b72..d3ef9061ad 100644 --- a/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py +++ b/src/ansys/dpf/core/operators/result/accu_eqv_plastic_strain.py @@ -65,12 +65,6 @@ class accu_eqv_plastic_strain(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class accu_eqv_plastic_strain(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class accu_eqv_plastic_strain(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsAccuEqvPlasticStrain(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): accu_eqv_plastic_strain._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - accu_eqv_plastic_strain._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( accu_eqv_plastic_strain._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.accu_eqv_plastic_strain() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/artificial_hourglass_energy.py b/src/ansys/dpf/core/operators/result/artificial_hourglass_energy.py index e326388f11..90ffa9aac8 100644 --- a/src/ansys/dpf/core/operators/result/artificial_hourglass_energy.py +++ b/src/ansys/dpf/core/operators/result/artificial_hourglass_energy.py @@ -60,12 +60,6 @@ class artificial_hourglass_energy(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class artificial_hourglass_energy(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.artificial_hourglass_energy( @@ -105,7 +97,6 @@ class artificial_hourglass_energy(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsArtificialHourglassEnergy(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(artificial_hourglass_energy._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - artificial_hourglass_energy._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.artificial_hourglass_energy() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsArtificialHourglassEnergy(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/co_energy.py b/src/ansys/dpf/core/operators/result/co_energy.py index 5991787162..7835dd91bf 100644 --- a/src/ansys/dpf/core/operators/result/co_energy.py +++ b/src/ansys/dpf/core/operators/result/co_energy.py @@ -60,12 +60,6 @@ class co_energy(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class co_energy(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.co_energy( @@ -105,7 +97,6 @@ class co_energy(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsCoEnergy(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -331,8 +307,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(co_energy._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(co_energy._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -503,30 +477,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.co_energy() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsCoEnergy(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py b/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py index 065e38ec95..e722647845 100644 --- a/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py +++ b/src/ansys/dpf/core/operators/result/contact_fluid_penetration_pressure.py @@ -60,8 +60,8 @@ class contact_fluid_penetration_pressure(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_fluid_penetration_pressure(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_fluid_penetration_pressure(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_fluid_penetration_pressure(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactFluidPenetrationPressure(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -451,6 +509,18 @@ def __init__(self, op: Operator): contact_fluid_penetration_pressure._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_fluid_penetration_pressure._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_fluid_penetration_pressure._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input( + contact_fluid_penetration_pressure._spec().input_pin(19), 19, op, -1 + ) + self._inputs.append(self._phi) self._read_beams = Input( contact_fluid_penetration_pressure._spec().input_pin(22), 22, op, -1 ) @@ -616,8 +686,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -678,6 +748,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_fluid_penetration_pressure() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_fluid_penetration_pressure() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_fluid_penetration_pressure() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_friction_stress.py b/src/ansys/dpf/core/operators/result/contact_friction_stress.py index 5bef350f6d..869ea7da16 100644 --- a/src/ansys/dpf/core/operators/result/contact_friction_stress.py +++ b/src/ansys/dpf/core/operators/result/contact_friction_stress.py @@ -60,8 +60,8 @@ class contact_friction_stress(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_friction_stress(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_friction_stress(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_friction_stress(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactFrictionStress(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -449,6 +507,16 @@ def __init__(self, op: Operator): contact_friction_stress._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_friction_stress._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_friction_stress._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_friction_stress._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input( contact_friction_stress._spec().input_pin(22), 22, op, -1 ) @@ -614,8 +682,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -676,6 +744,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_friction_stress() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_friction_stress() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_friction_stress() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_gap_distance.py b/src/ansys/dpf/core/operators/result/contact_gap_distance.py index 9d7af4fe44..99dfd522bc 100644 --- a/src/ansys/dpf/core/operators/result/contact_gap_distance.py +++ b/src/ansys/dpf/core/operators/result/contact_gap_distance.py @@ -60,8 +60,8 @@ class contact_gap_distance(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_gap_distance(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_gap_distance(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_gap_distance(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactGapDistance(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -443,6 +501,16 @@ def __init__(self, op: Operator): contact_gap_distance._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_gap_distance._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_gap_distance._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_gap_distance._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(contact_gap_distance._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -606,8 +674,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -668,6 +736,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_gap_distance() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_gap_distance() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_gap_distance() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_penetration.py b/src/ansys/dpf/core/operators/result/contact_penetration.py index a0a947a2bb..1edeed3f7c 100644 --- a/src/ansys/dpf/core/operators/result/contact_penetration.py +++ b/src/ansys/dpf/core/operators/result/contact_penetration.py @@ -60,8 +60,8 @@ class contact_penetration(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_penetration(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_penetration(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_penetration(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactPenetration(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -441,6 +499,16 @@ def __init__(self, op: Operator): self._inputs.append(self._requested_location) self._read_cyclic = Input(contact_penetration._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_penetration._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_penetration._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_penetration._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(contact_penetration._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -602,8 +670,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -664,6 +732,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_penetration() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_penetration() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_penetration() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_pressure.py b/src/ansys/dpf/core/operators/result/contact_pressure.py index 33b6c5161c..9f2db8be17 100644 --- a/src/ansys/dpf/core/operators/result/contact_pressure.py +++ b/src/ansys/dpf/core/operators/result/contact_pressure.py @@ -60,8 +60,8 @@ class contact_pressure(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_pressure(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_pressure(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_pressure(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactPressure(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,6 +497,16 @@ def __init__(self, op: Operator): self._inputs.append(self._requested_location) self._read_cyclic = Input(contact_pressure._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_pressure._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_pressure._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_pressure._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(contact_pressure._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(contact_pressure._spec().input_pin(26), 26, op, -1) @@ -598,8 +666,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -660,6 +728,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_pressure() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_pressure() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_pressure() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_sliding_distance.py b/src/ansys/dpf/core/operators/result/contact_sliding_distance.py index e9019d1bd0..6f0f93fac9 100644 --- a/src/ansys/dpf/core/operators/result/contact_sliding_distance.py +++ b/src/ansys/dpf/core/operators/result/contact_sliding_distance.py @@ -60,8 +60,8 @@ class contact_sliding_distance(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_sliding_distance(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_sliding_distance(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_sliding_distance(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactSlidingDistance(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -449,6 +507,16 @@ def __init__(self, op: Operator): contact_sliding_distance._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_sliding_distance._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_sliding_distance._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_sliding_distance._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input( contact_sliding_distance._spec().input_pin(22), 22, op, -1 ) @@ -614,8 +682,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -676,6 +744,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_sliding_distance() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_sliding_distance() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_sliding_distance() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_status.py b/src/ansys/dpf/core/operators/result/contact_status.py index 27c86a41b0..60c40ad8dd 100644 --- a/src/ansys/dpf/core/operators/result/contact_status.py +++ b/src/ansys/dpf/core/operators/result/contact_status.py @@ -60,8 +60,8 @@ class contact_status(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_status(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_status(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_status(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactStatus(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -435,6 +493,16 @@ def __init__(self, op: Operator): self._inputs.append(self._requested_location) self._read_cyclic = Input(contact_status._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_status._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_status._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_status._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(contact_status._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(contact_status._spec().input_pin(26), 26, op, -1) @@ -594,8 +662,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -656,6 +724,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_status() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_status() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_status() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py b/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py index 2b1dffdd21..8f57effa53 100644 --- a/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py +++ b/src/ansys/dpf/core/operators/result/contact_surface_heat_flux.py @@ -60,8 +60,8 @@ class contact_surface_heat_flux(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_surface_heat_flux(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_surface_heat_flux(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_surface_heat_flux(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactSurfaceHeatFlux(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -449,6 +507,16 @@ def __init__(self, op: Operator): contact_surface_heat_flux._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_surface_heat_flux._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_surface_heat_flux._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_surface_heat_flux._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input( contact_surface_heat_flux._spec().input_pin(22), 22, op, -1 ) @@ -614,8 +682,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -676,6 +744,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_surface_heat_flux() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_surface_heat_flux() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_surface_heat_flux() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/contact_total_stress.py b/src/ansys/dpf/core/operators/result/contact_total_stress.py index 2c7221eba3..314141a746 100644 --- a/src/ansys/dpf/core/operators/result/contact_total_stress.py +++ b/src/ansys/dpf/core/operators/result/contact_total_stress.py @@ -60,8 +60,8 @@ class contact_total_stress(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class contact_total_stress(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class contact_total_stress(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class contact_total_stress(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsContactTotalStress(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -443,6 +501,16 @@ def __init__(self, op: Operator): contact_total_stress._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + contact_total_stress._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + contact_total_stress._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(contact_total_stress._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(contact_total_stress._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -606,8 +674,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -668,6 +736,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_total_stress() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_total_stress() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.contact_total_stress() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/coordinates.py b/src/ansys/dpf/core/operators/result/coordinates.py index 49eebabe7a..1b3fcb9adb 100644 --- a/src/ansys/dpf/core/operators/result/coordinates.py +++ b/src/ansys/dpf/core/operators/result/coordinates.py @@ -60,12 +60,6 @@ class coordinates(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class coordinates(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.coordinates( @@ -105,7 +97,6 @@ class coordinates(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsCoordinates(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -331,8 +307,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(coordinates._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(coordinates._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -503,30 +477,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.coordinates() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsCoordinates(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py b/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py index 28ac276ea3..c4f98d6a03 100644 --- a/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py +++ b/src/ansys/dpf/core/operators/result/creep_strain_energy_density.py @@ -65,12 +65,6 @@ class creep_strain_energy_density(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class creep_strain_energy_density(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class creep_strain_energy_density(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsCreepStrainEnergyDensity(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): creep_strain_energy_density._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - creep_strain_energy_density._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( creep_strain_energy_density._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.creep_strain_energy_density() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/current_density.py b/src/ansys/dpf/core/operators/result/current_density.py index e05e5ab5cf..5c530bbb01 100644 --- a/src/ansys/dpf/core/operators/result/current_density.py +++ b/src/ansys/dpf/core/operators/result/current_density.py @@ -60,12 +60,6 @@ class current_density(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class current_density(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.current_density( @@ -105,7 +97,6 @@ class current_density(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsCurrentDensity(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -333,8 +309,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(current_density._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(current_density._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -505,30 +479,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.current_density() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsCurrentDensity(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/custom.py b/src/ansys/dpf/core/operators/result/custom.py index 1e47fa8331..8648059fa7 100644 --- a/src/ansys/dpf/core/operators/result/custom.py +++ b/src/ansys/dpf/core/operators/result/custom.py @@ -60,12 +60,6 @@ class custom(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) result_name : Name of the result that must be extracted from the file @@ -96,8 +90,6 @@ class custom(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_result_name = dpf.() >>> op.inputs.result_name.connect(my_result_name) @@ -110,7 +102,6 @@ class custom(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... result_name=my_result_name, ... ) @@ -127,7 +118,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, result_name=None, config=None, server=None, @@ -149,8 +139,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if result_name is not None: self.inputs.result_name.connect(result_name) @@ -238,16 +226,6 @@ def _spec(): optional=True, document="""Prevents from reading the mesh in the result files""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 60: PinSpecification( name="result_name", @@ -327,8 +305,6 @@ class InputsCustom(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_result_name = dpf.() >>> op.inputs.result_name.connect(my_result_name) """ @@ -349,8 +325,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(custom._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(custom._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._result_name = Input(custom._spec().input_pin(60), 60, op, -1) self._inputs.append(self._result_name) @@ -523,30 +497,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.custom() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def result_name(self): """Allows to connect result_name input to the operator. diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_acceleration.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_acceleration.py index 832da0800d..ce21537ff2 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_acceleration.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_acceleration.py @@ -12,7 +12,9 @@ class cyclic_expanded_acceleration(Operator): - """Read acceleration from an rst file and expand it with cyclic symmetry. + """This operator is deprecated: use the operator acceleration with the + read_cyclic pin instead. Read acceleration from an rst file and + expand it with cyclic symmetry. Parameters ---------- @@ -171,9 +173,9 @@ def __init__( @staticmethod def _spec(): - description = ( - """Read acceleration from an rst file and expand it with cyclic symmetry.""" - ) + description = """This operator is deprecated: use the operator acceleration with the + read_cyclic pin instead. Read acceleration from an rst + file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_displacement.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_displacement.py index 5ee07ccd50..bad20a0582 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_displacement.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_displacement.py @@ -12,8 +12,9 @@ class cyclic_expanded_displacement(Operator): - """Read displacements from an rst file and expand it with cyclic - symmetry. + """This operator is deprecated: use the operator displacements with the + read_cyclic pin instead. Read displacements from an rst file and + expand it with cyclic symmetry. Parameters ---------- @@ -172,8 +173,9 @@ def __init__( @staticmethod def _spec(): - description = """Read displacements from an rst file and expand it with cyclic - symmetry.""" + description = """This operator is deprecated: use the operator displacements with the + read_cyclic pin instead. Read displacements from an rst + file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_el_strain.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_el_strain.py index 6605bcf82d..0de5ac903c 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_el_strain.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_el_strain.py @@ -12,8 +12,9 @@ class cyclic_expanded_el_strain(Operator): - """Read mapdl::rst::EPEL from an rst file and expand it with cyclic - symmetry. + """This operator is deprecated: use the operator mapdl::rst::EPEL with + the read_cyclic pin instead. Read mapdl::rst::EPEL from an rst + file and expand it with cyclic symmetry. Parameters ---------- @@ -172,8 +173,9 @@ def __init__( @staticmethod def _spec(): - description = """Read mapdl::rst::EPEL from an rst file and expand it with cyclic - symmetry.""" + description = """This operator is deprecated: use the operator mapdl::rst::EPEL with + the read_cyclic pin instead. Read mapdl::rst::EPEL from an + rst file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_enf.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_enf.py index 6fcf1575cf..64b0991647 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_enf.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_enf.py @@ -12,7 +12,9 @@ class cyclic_expanded_enf(Operator): - """Read ENF from an rst file and expand it with cyclic symmetry. + """This operator is deprecated: use the operator ENF with the read_cyclic + pin instead. Read ENF from an rst file and expand it with cyclic + symmetry. Parameters ---------- @@ -171,9 +173,9 @@ def __init__( @staticmethod def _spec(): - description = ( - """Read ENF from an rst file and expand it with cyclic symmetry.""" - ) + description = """This operator is deprecated: use the operator ENF with the read_cyclic + pin instead. Read ENF from an rst file and expand it with + cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_heat_flux.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_heat_flux.py index f6ecda5a51..b90ce6a489 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_heat_flux.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_heat_flux.py @@ -12,8 +12,9 @@ class cyclic_expanded_heat_flux(Operator): - """Read mapdl::rst::TF from an rst file and expand it with cyclic - symmetry. + """This operator is deprecated: use the operator mapdl::rst::TF with the + read_cyclic pin instead. Read mapdl::rst::TF from an rst file and + expand it with cyclic symmetry. Parameters ---------- @@ -172,8 +173,9 @@ def __init__( @staticmethod def _spec(): - description = """Read mapdl::rst::TF from an rst file and expand it with cyclic - symmetry.""" + description = """This operator is deprecated: use the operator mapdl::rst::TF with the + read_cyclic pin instead. Read mapdl::rst::TF from an rst + file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_stress.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_stress.py index 4047c5de50..6e7e4f0dde 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_stress.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_stress.py @@ -12,8 +12,9 @@ class cyclic_expanded_stress(Operator): - """Read mapdl::rst::S from an rst file and expand it with cyclic - symmetry. + """This operator is deprecated: use the operator mapdl::rst::S with the + read_cyclic pin instead. Read mapdl::rst::S from an rst file and + expand it with cyclic symmetry. Parameters ---------- @@ -172,8 +173,9 @@ def __init__( @staticmethod def _spec(): - description = """Read mapdl::rst::S from an rst file and expand it with cyclic - symmetry.""" + description = """This operator is deprecated: use the operator mapdl::rst::S with the + read_cyclic pin instead. Read mapdl::rst::S from an rst + file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_temperature.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_temperature.py index efe19cbf06..6d4540964b 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_temperature.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_temperature.py @@ -12,7 +12,9 @@ class cyclic_expanded_temperature(Operator): - """Read temperature from an rst file and expand it with cyclic symmetry. + """This operator is deprecated: use the operator temperature with the + read_cyclic pin instead. Read temperature from an rst file and + expand it with cyclic symmetry. Parameters ---------- @@ -171,9 +173,9 @@ def __init__( @staticmethod def _spec(): - description = ( - """Read temperature from an rst file and expand it with cyclic symmetry.""" - ) + description = """This operator is deprecated: use the operator temperature with the + read_cyclic pin instead. Read temperature from an rst file + and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_expanded_velocity.py b/src/ansys/dpf/core/operators/result/cyclic_expanded_velocity.py index f633bfee00..1974da96a8 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_expanded_velocity.py +++ b/src/ansys/dpf/core/operators/result/cyclic_expanded_velocity.py @@ -12,7 +12,9 @@ class cyclic_expanded_velocity(Operator): - """Read velocity from an rst file and expand it with cyclic symmetry. + """This operator is deprecated: use the operator velocity with the + read_cyclic pin instead. Read velocity from an rst file and expand + it with cyclic symmetry. Parameters ---------- @@ -171,9 +173,9 @@ def __init__( @staticmethod def _spec(): - description = ( - """Read velocity from an rst file and expand it with cyclic symmetry.""" - ) + description = """This operator is deprecated: use the operator velocity with the + read_cyclic pin instead. Read velocity from an rst file + and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_kinetic_energy.py b/src/ansys/dpf/core/operators/result/cyclic_kinetic_energy.py index d35b767341..f969e09718 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_kinetic_energy.py +++ b/src/ansys/dpf/core/operators/result/cyclic_kinetic_energy.py @@ -12,7 +12,9 @@ class cyclic_kinetic_energy(Operator): - """Computes mapdl::rst::ENG_KE from an rst file. + """This operator is deprecated: use the operator mapdl::rst::ENG_KE with + the read_cyclic pin instead. Compute mapdl::rst::ENG_KE from an + rst file and expand it with cyclic symmetry. Parameters ---------- @@ -146,7 +148,9 @@ def __init__( @staticmethod def _spec(): - description = """Computes mapdl::rst::ENG_KE from an rst file.""" + description = """This operator is deprecated: use the operator mapdl::rst::ENG_KE with + the read_cyclic pin instead. Compute mapdl::rst::ENG_KE + from an rst file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_nmisc.py b/src/ansys/dpf/core/operators/result/cyclic_nmisc.py index 82ca251b0b..4ce658597c 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_nmisc.py +++ b/src/ansys/dpf/core/operators/result/cyclic_nmisc.py @@ -12,7 +12,9 @@ class cyclic_nmisc(Operator): - """Computes mapdl::rst::NMISC from an rst file. + """This operator is deprecated: use the operator mapdl::rst::NMISC with + the read_cyclic pin instead. Compute mapdl::rst::NMISC from an rst + file and expand it with cyclic symmetry. Parameters ---------- @@ -146,7 +148,9 @@ def __init__( @staticmethod def _spec(): - description = """Computes mapdl::rst::NMISC from an rst file.""" + description = """This operator is deprecated: use the operator mapdl::rst::NMISC with + the read_cyclic pin instead. Compute mapdl::rst::NMISC + from an rst file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_strain_energy.py b/src/ansys/dpf/core/operators/result/cyclic_strain_energy.py index b6ff092fcc..80e58c119a 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_strain_energy.py +++ b/src/ansys/dpf/core/operators/result/cyclic_strain_energy.py @@ -12,7 +12,9 @@ class cyclic_strain_energy(Operator): - """Computes mapdl::rst::ENG_SE from an rst file. + """This operator is deprecated: use the operator mapdl::rst::ENG_SE with + the read_cyclic pin instead. Compute mapdl::rst::ENG_SE from an + rst file and expand it with cyclic symmetry. Parameters ---------- @@ -146,7 +148,9 @@ def __init__( @staticmethod def _spec(): - description = """Computes mapdl::rst::ENG_SE from an rst file.""" + description = """This operator is deprecated: use the operator mapdl::rst::ENG_SE with + the read_cyclic pin instead. Compute mapdl::rst::ENG_SE + from an rst file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/cyclic_volume.py b/src/ansys/dpf/core/operators/result/cyclic_volume.py index 5a5f6dd7f4..694861a56f 100644 --- a/src/ansys/dpf/core/operators/result/cyclic_volume.py +++ b/src/ansys/dpf/core/operators/result/cyclic_volume.py @@ -12,7 +12,9 @@ class cyclic_volume(Operator): - """Read mapdl::rst::ENG_VOL from an rst file. + """This operator is deprecated: use the operator mapdl::rst::ENG_VOL with + the read_cyclic pin instead. Read mapdl::rst::ENG_VOL from an rst + file and expand it with cyclic symmetry. Parameters ---------- @@ -148,7 +150,9 @@ def __init__( @staticmethod def _spec(): - description = """Read mapdl::rst::ENG_VOL from an rst file.""" + description = """This operator is deprecated: use the operator mapdl::rst::ENG_VOL with + the read_cyclic pin instead. Read mapdl::rst::ENG_VOL from + an rst file and expand it with cyclic symmetry.""" spec = Specification( description=description, map_input_pin_spec={ diff --git a/src/ansys/dpf/core/operators/result/displacement.py b/src/ansys/dpf/core/operators/result/displacement.py index ef517940e9..93dff34699 100644 --- a/src/ansys/dpf/core/operators/result/displacement.py +++ b/src/ansys/dpf/core/operators/result/displacement.py @@ -58,14 +58,25 @@ class displacement(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -95,6 +106,12 @@ class displacement(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.displacement( @@ -106,6 +123,9 @@ class displacement(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -122,6 +142,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -144,6 +167,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -227,8 +256,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -240,6 +269,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -313,6 +365,12 @@ class InputsDisplacement(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -335,6 +393,14 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._read_cyclic = Input(displacement._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + displacement._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(displacement._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(displacement._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -488,8 +554,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -529,6 +595,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.displacement() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.displacement() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.displacement() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsDisplacement(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/elastic_strain.py b/src/ansys/dpf/core/operators/result/elastic_strain.py index 6372d4c020..3c1e68e86f 100644 --- a/src/ansys/dpf/core/operators/result/elastic_strain.py +++ b/src/ansys/dpf/core/operators/result/elastic_strain.py @@ -60,8 +60,8 @@ class elastic_strain(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class elastic_strain(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class elastic_strain(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class elastic_strain(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsElasticStrain(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -435,6 +493,16 @@ def __init__(self, op: Operator): self._inputs.append(self._requested_location) self._read_cyclic = Input(elastic_strain._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + elastic_strain._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + elastic_strain._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(elastic_strain._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(elastic_strain._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(elastic_strain._spec().input_pin(26), 26, op, -1) @@ -594,8 +662,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -656,6 +724,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.elastic_strain() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.elastic_strain() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.elastic_strain() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py b/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py index be8b9f226b..5b6e22bc7c 100644 --- a/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py +++ b/src/ansys/dpf/core/operators/result/elastic_strain_energy_density.py @@ -65,12 +65,6 @@ class elastic_strain_energy_density(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class elastic_strain_energy_density(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class elastic_strain_energy_density(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsElasticStrainEnergyDensity(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -447,10 +423,6 @@ def __init__(self, op: Operator): elastic_strain_energy_density._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - elastic_strain_energy_density._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( elastic_strain_energy_density._spec().input_pin(22), 22, op, -1 ) @@ -654,30 +626,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.elastic_strain_energy_density() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py b/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py index 365e390378..698e124fbf 100644 --- a/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py +++ b/src/ansys/dpf/core/operators/result/elastic_strain_eqv.py @@ -65,12 +65,6 @@ class elastic_strain_eqv(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class elastic_strain_eqv(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class elastic_strain_eqv(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsElasticStrainEqv(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,8 +415,6 @@ def __init__(self, op: Operator): elastic_strain_eqv._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input(elastic_strain_eqv._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(elastic_strain_eqv._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(elastic_strain_eqv._spec().input_pin(26), 26, op, -1) @@ -638,30 +612,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.elastic_strain_eqv() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/electric_field.py b/src/ansys/dpf/core/operators/result/electric_field.py index 567cadb9af..b48f312968 100644 --- a/src/ansys/dpf/core/operators/result/electric_field.py +++ b/src/ansys/dpf/core/operators/result/electric_field.py @@ -65,12 +65,6 @@ class electric_field(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class electric_field(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class electric_field(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsElectricField(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,8 +409,6 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._requested_location = Input(electric_field._spec().input_pin(9), 9, op, -1) self._inputs.append(self._requested_location) - self._read_cyclic = Input(electric_field._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(electric_field._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(electric_field._spec().input_pin(26), 26, op, -1) @@ -632,30 +606,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.electric_field() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/electric_flux_density.py b/src/ansys/dpf/core/operators/result/electric_flux_density.py index 36dd8c06da..09cb74cfa8 100644 --- a/src/ansys/dpf/core/operators/result/electric_flux_density.py +++ b/src/ansys/dpf/core/operators/result/electric_flux_density.py @@ -65,12 +65,6 @@ class electric_flux_density(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class electric_flux_density(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class electric_flux_density(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsElectricFluxDensity(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): electric_flux_density._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - electric_flux_density._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( electric_flux_density._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.electric_flux_density() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/electric_potential.py b/src/ansys/dpf/core/operators/result/electric_potential.py index f600fc2f12..73a8a28792 100644 --- a/src/ansys/dpf/core/operators/result/electric_potential.py +++ b/src/ansys/dpf/core/operators/result/electric_potential.py @@ -60,12 +60,6 @@ class electric_potential(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class electric_potential(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.electric_potential( @@ -105,7 +97,6 @@ class electric_potential(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsElectricPotential(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,8 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(electric_potential._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(electric_potential._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -509,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.electric_potential() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsElectricPotential(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/element_centroids.py b/src/ansys/dpf/core/operators/result/element_centroids.py index bf3a02c718..7ab1504792 100644 --- a/src/ansys/dpf/core/operators/result/element_centroids.py +++ b/src/ansys/dpf/core/operators/result/element_centroids.py @@ -60,12 +60,6 @@ class element_centroids(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class element_centroids(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.element_centroids( @@ -105,7 +97,6 @@ class element_centroids(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsElementCentroids(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,8 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(element_centroids._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(element_centroids._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -509,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.element_centroids() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsElementCentroids(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/element_nodal_forces.py b/src/ansys/dpf/core/operators/result/element_nodal_forces.py index 2a5772361f..cb3e43b5a4 100644 --- a/src/ansys/dpf/core/operators/result/element_nodal_forces.py +++ b/src/ansys/dpf/core/operators/result/element_nodal_forces.py @@ -60,8 +60,8 @@ class element_nodal_forces(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class element_nodal_forces(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -132,6 +143,12 @@ class element_nodal_forces(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -152,6 +169,9 @@ class element_nodal_forces(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -173,6 +193,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -201,6 +224,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -294,8 +323,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -313,6 +342,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -435,6 +487,12 @@ class InputsElementNodalForces(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -475,6 +533,16 @@ def __init__(self, op: Operator): element_nodal_forces._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + element_nodal_forces._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + element_nodal_forces._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(element_nodal_forces._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(element_nodal_forces._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -642,8 +710,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -704,6 +772,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.element_nodal_forces() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.element_nodal_forces() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.element_nodal_forces() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/element_orientations.py b/src/ansys/dpf/core/operators/result/element_orientations.py index 758121801c..70bb8c5d85 100644 --- a/src/ansys/dpf/core/operators/result/element_orientations.py +++ b/src/ansys/dpf/core/operators/result/element_orientations.py @@ -65,12 +65,6 @@ class element_orientations(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class element_orientations(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class element_orientations(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsElementOrientations(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,10 +415,6 @@ def __init__(self, op: Operator): element_orientations._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - element_orientations._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input(element_orientations._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -644,30 +616,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.element_orientations() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/elemental_heat_generation.py b/src/ansys/dpf/core/operators/result/elemental_heat_generation.py index 21868bcf0f..78e55e065e 100644 --- a/src/ansys/dpf/core/operators/result/elemental_heat_generation.py +++ b/src/ansys/dpf/core/operators/result/elemental_heat_generation.py @@ -60,12 +60,6 @@ class elemental_heat_generation(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class elemental_heat_generation(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.elemental_heat_generation( @@ -105,7 +97,6 @@ class elemental_heat_generation(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsElementalHeatGeneration(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(elemental_heat_generation._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - elemental_heat_generation._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.elemental_heat_generation() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsElementalHeatGeneration(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/elemental_mass.py b/src/ansys/dpf/core/operators/result/elemental_mass.py index 6ff608bc8f..4400e850a6 100644 --- a/src/ansys/dpf/core/operators/result/elemental_mass.py +++ b/src/ansys/dpf/core/operators/result/elemental_mass.py @@ -60,12 +60,6 @@ class elemental_mass(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class elemental_mass(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.elemental_mass( @@ -105,7 +97,6 @@ class elemental_mass(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsElementalMass(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -333,8 +309,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(elemental_mass._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(elemental_mass._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -505,30 +479,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.elemental_mass() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsElementalMass(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/elemental_volume.py b/src/ansys/dpf/core/operators/result/elemental_volume.py index ec4bd635fb..8f1dfe912b 100644 --- a/src/ansys/dpf/core/operators/result/elemental_volume.py +++ b/src/ansys/dpf/core/operators/result/elemental_volume.py @@ -58,14 +58,25 @@ class elemental_volume(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -95,6 +106,12 @@ class elemental_volume(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.elemental_volume( @@ -106,6 +123,9 @@ class elemental_volume(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -122,6 +142,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -144,6 +167,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -227,8 +256,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -240,6 +269,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -313,6 +365,12 @@ class InputsElementalVolume(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -337,6 +395,16 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._read_cyclic = Input(elemental_volume._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + elemental_volume._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + elemental_volume._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(elemental_volume._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -490,8 +558,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -531,6 +599,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.elemental_volume() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.elemental_volume() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.elemental_volume() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsElementalVolume(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/equivalent_mass.py b/src/ansys/dpf/core/operators/result/equivalent_mass.py index 3268997ef7..596f0e1415 100644 --- a/src/ansys/dpf/core/operators/result/equivalent_mass.py +++ b/src/ansys/dpf/core/operators/result/equivalent_mass.py @@ -59,12 +59,6 @@ class equivalent_mass(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -92,8 +86,6 @@ class equivalent_mass(Operator): >>> op.inputs.all_dofs.connect(my_all_dofs) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.equivalent_mass( @@ -104,7 +96,6 @@ class equivalent_mass(Operator): ... data_sources=my_data_sources, ... all_dofs=my_all_dofs, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -120,7 +111,6 @@ def __init__( data_sources=None, all_dofs=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -141,8 +131,6 @@ def __init__( self.inputs.all_dofs.connect(all_dofs) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -228,16 +216,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -309,8 +287,6 @@ class InputsEquivalentMass(_Inputs): >>> op.inputs.all_dofs.connect(my_all_dofs) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -329,8 +305,6 @@ def __init__(self, op: Operator): self._inputs.append(self._all_dofs) self._mesh = Input(equivalent_mass._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(equivalent_mass._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -500,30 +474,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.equivalent_mass() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsEquivalentMass(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py b/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py index c050e2355a..9eb6c55c73 100644 --- a/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py +++ b/src/ansys/dpf/core/operators/result/eqv_stress_parameter.py @@ -65,12 +65,6 @@ class eqv_stress_parameter(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class eqv_stress_parameter(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class eqv_stress_parameter(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsEqvStressParameter(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,10 +415,6 @@ def __init__(self, op: Operator): eqv_stress_parameter._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - eqv_stress_parameter._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input(eqv_stress_parameter._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -644,30 +616,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.eqv_stress_parameter() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/gasket_deformation.py b/src/ansys/dpf/core/operators/result/gasket_deformation.py index 05dd1a5da9..70749af4c5 100644 --- a/src/ansys/dpf/core/operators/result/gasket_deformation.py +++ b/src/ansys/dpf/core/operators/result/gasket_deformation.py @@ -65,12 +65,6 @@ class gasket_deformation(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class gasket_deformation(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class gasket_deformation(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsGasketDeformation(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,8 +415,6 @@ def __init__(self, op: Operator): gasket_deformation._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input(gasket_deformation._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(gasket_deformation._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(gasket_deformation._spec().input_pin(26), 26, op, -1) @@ -638,30 +612,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.gasket_deformation() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py b/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py index 673879628f..655e59c365 100644 --- a/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py +++ b/src/ansys/dpf/core/operators/result/gasket_inelastic_closure.py @@ -65,12 +65,6 @@ class gasket_inelastic_closure(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class gasket_inelastic_closure(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class gasket_inelastic_closure(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsGasketInelasticClosure(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): gasket_inelastic_closure._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - gasket_inelastic_closure._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( gasket_inelastic_closure._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.gasket_inelastic_closure() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/gasket_stress.py b/src/ansys/dpf/core/operators/result/gasket_stress.py index b7932498e3..9ed8435d47 100644 --- a/src/ansys/dpf/core/operators/result/gasket_stress.py +++ b/src/ansys/dpf/core/operators/result/gasket_stress.py @@ -65,12 +65,6 @@ class gasket_stress(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class gasket_stress(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class gasket_stress(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsGasketStress(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,8 +409,6 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._requested_location = Input(gasket_stress._spec().input_pin(9), 9, op, -1) self._inputs.append(self._requested_location) - self._read_cyclic = Input(gasket_stress._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(gasket_stress._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(gasket_stress._spec().input_pin(26), 26, op, -1) @@ -632,30 +606,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.gasket_stress() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py b/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py index 3b7ad16437..28a0da1853 100644 --- a/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py +++ b/src/ansys/dpf/core/operators/result/gasket_thermal_closure.py @@ -65,12 +65,6 @@ class gasket_thermal_closure(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class gasket_thermal_closure(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class gasket_thermal_closure(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsGasketThermalClosure(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): gasket_thermal_closure._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - gasket_thermal_closure._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( gasket_thermal_closure._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.gasket_thermal_closure() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/heat_flux.py b/src/ansys/dpf/core/operators/result/heat_flux.py index fb1cc090ce..cd5a7bc7da 100644 --- a/src/ansys/dpf/core/operators/result/heat_flux.py +++ b/src/ansys/dpf/core/operators/result/heat_flux.py @@ -60,8 +60,8 @@ class heat_flux(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class heat_flux(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class heat_flux(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class heat_flux(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsHeatFlux(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,6 +491,14 @@ def __init__(self, op: Operator): self._inputs.append(self._requested_location) self._read_cyclic = Input(heat_flux._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + heat_flux._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(heat_flux._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(heat_flux._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(heat_flux._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(heat_flux._spec().input_pin(26), 26, op, -1) @@ -592,8 +658,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -654,6 +720,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.heat_flux() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.heat_flux() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.heat_flux() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py b/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py index 0cafa72cb0..8ff0484a8a 100644 --- a/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py +++ b/src/ansys/dpf/core/operators/result/hydrostatic_pressure.py @@ -65,12 +65,6 @@ class hydrostatic_pressure(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class hydrostatic_pressure(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class hydrostatic_pressure(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsHydrostaticPressure(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,10 +415,6 @@ def __init__(self, op: Operator): hydrostatic_pressure._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - hydrostatic_pressure._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input(hydrostatic_pressure._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -644,30 +616,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.hydrostatic_pressure() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/incremental_energy.py b/src/ansys/dpf/core/operators/result/incremental_energy.py index 3158c70df1..12a38c03e2 100644 --- a/src/ansys/dpf/core/operators/result/incremental_energy.py +++ b/src/ansys/dpf/core/operators/result/incremental_energy.py @@ -60,12 +60,6 @@ class incremental_energy(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class incremental_energy(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.incremental_energy( @@ -105,7 +97,6 @@ class incremental_energy(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsIncrementalEnergy(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,8 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(incremental_energy._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(incremental_energy._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -509,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.incremental_energy() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsIncrementalEnergy(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/initial_coordinates.py b/src/ansys/dpf/core/operators/result/initial_coordinates.py index b724654b77..17c834ea4b 100644 --- a/src/ansys/dpf/core/operators/result/initial_coordinates.py +++ b/src/ansys/dpf/core/operators/result/initial_coordinates.py @@ -60,12 +60,6 @@ class initial_coordinates(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class initial_coordinates(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.initial_coordinates( @@ -105,7 +97,6 @@ class initial_coordinates(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsInitialCoordinates(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,8 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(initial_coordinates._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(initial_coordinates._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -509,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.initial_coordinates() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsInitialCoordinates(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_force_reaction.py b/src/ansys/dpf/core/operators/result/joint_force_reaction.py index 878b35d0bb..a3043a20a4 100644 --- a/src/ansys/dpf/core/operators/result/joint_force_reaction.py +++ b/src/ansys/dpf/core/operators/result/joint_force_reaction.py @@ -60,12 +60,6 @@ class joint_force_reaction(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_force_reaction(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_force_reaction( @@ -105,7 +97,6 @@ class joint_force_reaction(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointForceReaction(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,10 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(joint_force_reaction._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_force_reaction._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -511,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_force_reaction() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointForceReaction(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_moment_reaction.py b/src/ansys/dpf/core/operators/result/joint_moment_reaction.py index c0b54be8e9..0c833189ae 100644 --- a/src/ansys/dpf/core/operators/result/joint_moment_reaction.py +++ b/src/ansys/dpf/core/operators/result/joint_moment_reaction.py @@ -60,12 +60,6 @@ class joint_moment_reaction(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_moment_reaction(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_moment_reaction( @@ -105,7 +97,6 @@ class joint_moment_reaction(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointMomentReaction(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(joint_moment_reaction._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_moment_reaction._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_moment_reaction() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointMomentReaction(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_relative_acceleration.py b/src/ansys/dpf/core/operators/result/joint_relative_acceleration.py index 6c6780d057..1129078fd5 100644 --- a/src/ansys/dpf/core/operators/result/joint_relative_acceleration.py +++ b/src/ansys/dpf/core/operators/result/joint_relative_acceleration.py @@ -60,12 +60,6 @@ class joint_relative_acceleration(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_relative_acceleration(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_relative_acceleration( @@ -105,7 +97,6 @@ class joint_relative_acceleration(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointRelativeAcceleration(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(joint_relative_acceleration._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_relative_acceleration._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_relative_acceleration() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointRelativeAcceleration(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_relative_angular_acceleration.py b/src/ansys/dpf/core/operators/result/joint_relative_angular_acceleration.py index 9564acdbea..27621d98a8 100644 --- a/src/ansys/dpf/core/operators/result/joint_relative_angular_acceleration.py +++ b/src/ansys/dpf/core/operators/result/joint_relative_angular_acceleration.py @@ -60,12 +60,6 @@ class joint_relative_angular_acceleration(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_relative_angular_acceleration(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_relative_angular_acceleration( @@ -105,7 +97,6 @@ class joint_relative_angular_acceleration(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointRelativeAngularAcceleration(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -345,10 +321,6 @@ def __init__(self, op: Operator): joint_relative_angular_acceleration._spec().input_pin(7), 7, op, -1 ) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_relative_angular_acceleration._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -519,30 +491,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_relative_angular_acceleration() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointRelativeAngularAcceleration(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_relative_angular_velocity.py b/src/ansys/dpf/core/operators/result/joint_relative_angular_velocity.py index 491166c68f..5fa7bc8142 100644 --- a/src/ansys/dpf/core/operators/result/joint_relative_angular_velocity.py +++ b/src/ansys/dpf/core/operators/result/joint_relative_angular_velocity.py @@ -60,12 +60,6 @@ class joint_relative_angular_velocity(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_relative_angular_velocity(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_relative_angular_velocity( @@ -105,7 +97,6 @@ class joint_relative_angular_velocity(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointRelativeAngularVelocity(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -345,10 +321,6 @@ def __init__(self, op: Operator): joint_relative_angular_velocity._spec().input_pin(7), 7, op, -1 ) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_relative_angular_velocity._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -519,30 +491,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_relative_angular_velocity() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointRelativeAngularVelocity(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_relative_displacement.py b/src/ansys/dpf/core/operators/result/joint_relative_displacement.py index f33e740725..b757e149e3 100644 --- a/src/ansys/dpf/core/operators/result/joint_relative_displacement.py +++ b/src/ansys/dpf/core/operators/result/joint_relative_displacement.py @@ -60,12 +60,6 @@ class joint_relative_displacement(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_relative_displacement(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_relative_displacement( @@ -105,7 +97,6 @@ class joint_relative_displacement(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointRelativeDisplacement(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(joint_relative_displacement._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_relative_displacement._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_relative_displacement() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointRelativeDisplacement(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_relative_rotation.py b/src/ansys/dpf/core/operators/result/joint_relative_rotation.py index 578f719811..bc63e7543f 100644 --- a/src/ansys/dpf/core/operators/result/joint_relative_rotation.py +++ b/src/ansys/dpf/core/operators/result/joint_relative_rotation.py @@ -60,12 +60,6 @@ class joint_relative_rotation(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_relative_rotation(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_relative_rotation( @@ -105,7 +97,6 @@ class joint_relative_rotation(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointRelativeRotation(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(joint_relative_rotation._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_relative_rotation._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_relative_rotation() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointRelativeRotation(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/joint_relative_velocity.py b/src/ansys/dpf/core/operators/result/joint_relative_velocity.py index 1024f16dd2..a63ba48b3d 100644 --- a/src/ansys/dpf/core/operators/result/joint_relative_velocity.py +++ b/src/ansys/dpf/core/operators/result/joint_relative_velocity.py @@ -60,12 +60,6 @@ class joint_relative_velocity(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class joint_relative_velocity(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.joint_relative_velocity( @@ -105,7 +97,6 @@ class joint_relative_velocity(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsJointRelativeVelocity(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(joint_relative_velocity._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - joint_relative_velocity._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.joint_relative_velocity() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsJointRelativeVelocity(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/kinetic_energy.py b/src/ansys/dpf/core/operators/result/kinetic_energy.py index 58f6ea07f8..c654958792 100644 --- a/src/ansys/dpf/core/operators/result/kinetic_energy.py +++ b/src/ansys/dpf/core/operators/result/kinetic_energy.py @@ -58,14 +58,25 @@ class kinetic_energy(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -95,6 +106,12 @@ class kinetic_energy(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.kinetic_energy( @@ -106,6 +123,9 @@ class kinetic_energy(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -122,6 +142,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -144,6 +167,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -227,8 +256,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -240,6 +269,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -313,6 +365,12 @@ class InputsKineticEnergy(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -335,6 +393,16 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._read_cyclic = Input(kinetic_energy._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + kinetic_energy._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + kinetic_energy._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(kinetic_energy._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -488,8 +556,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -529,6 +597,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.kinetic_energy() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.kinetic_energy() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.kinetic_energy() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsKineticEnergy(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/magnetic_field.py b/src/ansys/dpf/core/operators/result/magnetic_field.py index 9bdf441bbd..c3c7cf36cf 100644 --- a/src/ansys/dpf/core/operators/result/magnetic_field.py +++ b/src/ansys/dpf/core/operators/result/magnetic_field.py @@ -65,12 +65,6 @@ class magnetic_field(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class magnetic_field(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class magnetic_field(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsMagneticField(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,8 +409,6 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._requested_location = Input(magnetic_field._spec().input_pin(9), 9, op, -1) self._inputs.append(self._requested_location) - self._read_cyclic = Input(magnetic_field._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(magnetic_field._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(magnetic_field._spec().input_pin(26), 26, op, -1) @@ -632,30 +606,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.magnetic_field() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/magnetic_flux_density.py b/src/ansys/dpf/core/operators/result/magnetic_flux_density.py index 11dfed4f02..7857f134e9 100644 --- a/src/ansys/dpf/core/operators/result/magnetic_flux_density.py +++ b/src/ansys/dpf/core/operators/result/magnetic_flux_density.py @@ -65,12 +65,6 @@ class magnetic_flux_density(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class magnetic_flux_density(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class magnetic_flux_density(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsMagneticFluxDensity(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): magnetic_flux_density._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - magnetic_flux_density._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( magnetic_flux_density._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.magnetic_flux_density() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/magnetic_scalar_potential.py b/src/ansys/dpf/core/operators/result/magnetic_scalar_potential.py index 7cfe3fb8a3..680a528e5d 100644 --- a/src/ansys/dpf/core/operators/result/magnetic_scalar_potential.py +++ b/src/ansys/dpf/core/operators/result/magnetic_scalar_potential.py @@ -60,12 +60,6 @@ class magnetic_scalar_potential(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class magnetic_scalar_potential(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.magnetic_scalar_potential( @@ -105,7 +97,6 @@ class magnetic_scalar_potential(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsMagneticScalarPotential(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(magnetic_scalar_potential._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - magnetic_scalar_potential._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.magnetic_scalar_potential() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsMagneticScalarPotential(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/magnetic_vector_potential.py b/src/ansys/dpf/core/operators/result/magnetic_vector_potential.py index 62aadc142d..a5b46b27e8 100644 --- a/src/ansys/dpf/core/operators/result/magnetic_vector_potential.py +++ b/src/ansys/dpf/core/operators/result/magnetic_vector_potential.py @@ -60,12 +60,6 @@ class magnetic_vector_potential(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class magnetic_vector_potential(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.magnetic_vector_potential( @@ -105,7 +97,6 @@ class magnetic_vector_potential(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsMagneticVectorPotential(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(magnetic_vector_potential._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - magnetic_vector_potential._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.magnetic_vector_potential() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsMagneticVectorPotential(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/modal_basis.py b/src/ansys/dpf/core/operators/result/modal_basis.py index 7e5892b33b..f2590951e9 100644 --- a/src/ansys/dpf/core/operators/result/modal_basis.py +++ b/src/ansys/dpf/core/operators/result/modal_basis.py @@ -60,12 +60,6 @@ class modal_basis(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class modal_basis(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.modal_basis( @@ -105,7 +97,6 @@ class modal_basis(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsModalBasis(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -331,8 +307,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(modal_basis._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(modal_basis._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -503,30 +477,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.modal_basis() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsModalBasis(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/nmisc.py b/src/ansys/dpf/core/operators/result/nmisc.py index 6c8910c2da..afed5c8926 100644 --- a/src/ansys/dpf/core/operators/result/nmisc.py +++ b/src/ansys/dpf/core/operators/result/nmisc.py @@ -60,8 +60,8 @@ class nmisc(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector item_index : int, optional Index of requested item. num_components : int, optional @@ -72,6 +72,17 @@ class nmisc(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -105,6 +116,12 @@ class nmisc(Operator): >>> op.inputs.num_components.connect(my_num_components) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.nmisc( @@ -118,6 +135,9 @@ class nmisc(Operator): ... item_index=my_item_index, ... num_components=my_num_components, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -136,6 +156,9 @@ def __init__( item_index=None, num_components=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -162,6 +185,12 @@ def __init__( self.inputs.num_components.connect(num_components) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -247,8 +276,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 10: PinSpecification( name="item_index", @@ -272,6 +301,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -349,6 +401,12 @@ class InputsNmisc(_Inputs): >>> op.inputs.num_components.connect(my_num_components) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -373,6 +431,12 @@ def __init__(self, op: Operator): self._inputs.append(self._num_components) self._read_cyclic = Input(nmisc._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input(nmisc._spec().input_pin(15), 15, op, -1) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(nmisc._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(nmisc._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -526,8 +590,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -607,6 +671,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.nmisc() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.nmisc() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.nmisc() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsNmisc(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/nodal_force.py b/src/ansys/dpf/core/operators/result/nodal_force.py index e2b08cd443..584f2935cd 100644 --- a/src/ansys/dpf/core/operators/result/nodal_force.py +++ b/src/ansys/dpf/core/operators/result/nodal_force.py @@ -60,12 +60,6 @@ class nodal_force(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class nodal_force(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.nodal_force( @@ -105,7 +97,6 @@ class nodal_force(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsNodalForce(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -331,8 +307,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(nodal_force._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(nodal_force._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -503,30 +477,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.nodal_force() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsNodalForce(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/nodal_moment.py b/src/ansys/dpf/core/operators/result/nodal_moment.py index e487fe3455..99c3f72f59 100644 --- a/src/ansys/dpf/core/operators/result/nodal_moment.py +++ b/src/ansys/dpf/core/operators/result/nodal_moment.py @@ -60,12 +60,6 @@ class nodal_moment(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class nodal_moment(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.nodal_moment( @@ -105,7 +97,6 @@ class nodal_moment(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsNodalMoment(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -333,8 +309,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(nodal_moment._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(nodal_moment._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -505,30 +479,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.nodal_moment() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsNodalMoment(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/normal_contact_force.py b/src/ansys/dpf/core/operators/result/normal_contact_force.py index b30eb42ca3..e68e11242f 100644 --- a/src/ansys/dpf/core/operators/result/normal_contact_force.py +++ b/src/ansys/dpf/core/operators/result/normal_contact_force.py @@ -60,12 +60,6 @@ class normal_contact_force(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class normal_contact_force(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.normal_contact_force( @@ -105,7 +97,6 @@ class normal_contact_force(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsNormalContactForce(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,10 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(normal_contact_force._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - normal_contact_force._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -511,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.normal_contact_force() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsNormalContactForce(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/normal_contact_moment.py b/src/ansys/dpf/core/operators/result/normal_contact_moment.py index 614fc6cc52..3670ce9f02 100644 --- a/src/ansys/dpf/core/operators/result/normal_contact_moment.py +++ b/src/ansys/dpf/core/operators/result/normal_contact_moment.py @@ -60,12 +60,6 @@ class normal_contact_moment(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class normal_contact_moment(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.normal_contact_moment( @@ -105,7 +97,6 @@ class normal_contact_moment(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsNormalContactMoment(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(normal_contact_moment._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - normal_contact_moment._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.normal_contact_moment() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsNormalContactMoment(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/num_surface_status_changes.py b/src/ansys/dpf/core/operators/result/num_surface_status_changes.py index 6d428e587f..86709ad80f 100644 --- a/src/ansys/dpf/core/operators/result/num_surface_status_changes.py +++ b/src/ansys/dpf/core/operators/result/num_surface_status_changes.py @@ -60,8 +60,8 @@ class num_surface_status_changes(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class num_surface_status_changes(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class num_surface_status_changes(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class num_surface_status_changes(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -279,8 +308,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -298,6 +327,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -406,6 +458,12 @@ class InputsNumSurfaceStatusChanges(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -450,6 +508,16 @@ def __init__(self, op: Operator): num_surface_status_changes._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + num_surface_status_changes._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + num_surface_status_changes._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(num_surface_status_changes._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input( num_surface_status_changes._spec().input_pin(22), 22, op, -1 ) @@ -615,8 +683,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -677,6 +745,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.num_surface_status_changes() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.num_surface_status_changes() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.num_surface_status_changes() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/plastic_state_variable.py b/src/ansys/dpf/core/operators/result/plastic_state_variable.py index 9284bd30db..aec0c2acf9 100644 --- a/src/ansys/dpf/core/operators/result/plastic_state_variable.py +++ b/src/ansys/dpf/core/operators/result/plastic_state_variable.py @@ -65,12 +65,6 @@ class plastic_state_variable(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class plastic_state_variable(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class plastic_state_variable(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsPlasticStateVariable(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): plastic_state_variable._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - plastic_state_variable._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( plastic_state_variable._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.plastic_state_variable() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/plastic_strain.py b/src/ansys/dpf/core/operators/result/plastic_strain.py index 4fb9d65836..0ce21b439b 100644 --- a/src/ansys/dpf/core/operators/result/plastic_strain.py +++ b/src/ansys/dpf/core/operators/result/plastic_strain.py @@ -65,12 +65,6 @@ class plastic_strain(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class plastic_strain(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class plastic_strain(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsPlasticStrain(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,8 +409,6 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._requested_location = Input(plastic_strain._spec().input_pin(9), 9, op, -1) self._inputs.append(self._requested_location) - self._read_cyclic = Input(plastic_strain._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(plastic_strain._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(plastic_strain._spec().input_pin(26), 26, op, -1) @@ -632,30 +606,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.plastic_strain() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py b/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py index 3128cd3289..b06a589517 100644 --- a/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py +++ b/src/ansys/dpf/core/operators/result/plastic_strain_energy_density.py @@ -65,12 +65,6 @@ class plastic_strain_energy_density(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class plastic_strain_energy_density(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class plastic_strain_energy_density(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsPlasticStrainEnergyDensity(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -447,10 +423,6 @@ def __init__(self, op: Operator): plastic_strain_energy_density._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - plastic_strain_energy_density._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( plastic_strain_energy_density._spec().input_pin(22), 22, op, -1 ) @@ -654,30 +626,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.plastic_strain_energy_density() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py b/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py index b62faf5502..73ef98f44d 100644 --- a/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py +++ b/src/ansys/dpf/core/operators/result/plastic_strain_eqv.py @@ -65,12 +65,6 @@ class plastic_strain_eqv(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class plastic_strain_eqv(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class plastic_strain_eqv(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsPlasticStrainEqv(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,8 +415,6 @@ def __init__(self, op: Operator): plastic_strain_eqv._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input(plastic_strain_eqv._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(plastic_strain_eqv._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(plastic_strain_eqv._spec().input_pin(26), 26, op, -1) @@ -638,30 +612,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.plastic_strain_eqv() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/pressure.py b/src/ansys/dpf/core/operators/result/pressure.py index 0f7d14a689..d37d22d507 100644 --- a/src/ansys/dpf/core/operators/result/pressure.py +++ b/src/ansys/dpf/core/operators/result/pressure.py @@ -60,12 +60,6 @@ class pressure(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class pressure(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.pressure( @@ -105,7 +97,6 @@ class pressure(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsPressure(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -331,8 +307,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(pressure._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(pressure._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -503,30 +477,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.pressure() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsPressure(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/raw_displacement.py b/src/ansys/dpf/core/operators/result/raw_displacement.py index df73c62ef2..8d38e9e455 100644 --- a/src/ansys/dpf/core/operators/result/raw_displacement.py +++ b/src/ansys/dpf/core/operators/result/raw_displacement.py @@ -60,12 +60,6 @@ class raw_displacement(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class raw_displacement(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.raw_displacement( @@ -105,7 +97,6 @@ class raw_displacement(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsRawDisplacement(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -335,8 +311,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(raw_displacement._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(raw_displacement._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -507,30 +481,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.raw_displacement() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsRawDisplacement(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/raw_reaction_force.py b/src/ansys/dpf/core/operators/result/raw_reaction_force.py index 6d290d9cf0..0bbdc34cb6 100644 --- a/src/ansys/dpf/core/operators/result/raw_reaction_force.py +++ b/src/ansys/dpf/core/operators/result/raw_reaction_force.py @@ -60,12 +60,6 @@ class raw_reaction_force(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class raw_reaction_force(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.raw_reaction_force( @@ -105,7 +97,6 @@ class raw_reaction_force(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsRawReactionForce(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,8 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(raw_reaction_force._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(raw_reaction_force._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -509,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.raw_reaction_force() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsRawReactionForce(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/reaction_force.py b/src/ansys/dpf/core/operators/result/reaction_force.py index 891726deca..217c6a0992 100644 --- a/src/ansys/dpf/core/operators/result/reaction_force.py +++ b/src/ansys/dpf/core/operators/result/reaction_force.py @@ -60,12 +60,6 @@ class reaction_force(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class reaction_force(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.reaction_force( @@ -105,7 +97,6 @@ class reaction_force(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsReactionForce(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -333,8 +309,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(reaction_force._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(reaction_force._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -505,30 +479,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.reaction_force() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsReactionForce(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/smisc.py b/src/ansys/dpf/core/operators/result/smisc.py index c25280af35..42a0e3f1ba 100644 --- a/src/ansys/dpf/core/operators/result/smisc.py +++ b/src/ansys/dpf/core/operators/result/smisc.py @@ -62,8 +62,8 @@ class smisc(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector item_index : int, optional Index of requested item. num_components : int, optional @@ -74,6 +74,17 @@ class smisc(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -107,6 +118,12 @@ class smisc(Operator): >>> op.inputs.num_components.connect(my_num_components) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.smisc( @@ -120,6 +137,9 @@ class smisc(Operator): ... item_index=my_item_index, ... num_components=my_num_components, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -138,6 +158,9 @@ def __init__( item_index=None, num_components=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -164,6 +187,12 @@ def __init__( self.inputs.num_components.connect(num_components) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -252,8 +281,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 10: PinSpecification( name="item_index", @@ -277,6 +306,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -354,6 +406,12 @@ class InputsSmisc(_Inputs): >>> op.inputs.num_components.connect(my_num_components) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -378,6 +436,12 @@ def __init__(self, op: Operator): self._inputs.append(self._num_components) self._read_cyclic = Input(smisc._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input(smisc._spec().input_pin(15), 15, op, -1) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(smisc._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(smisc._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -531,8 +595,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -612,6 +676,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.smisc() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.smisc() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.smisc() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsSmisc(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/state_variable.py b/src/ansys/dpf/core/operators/result/state_variable.py new file mode 100644 index 0000000000..eaa18b0c1d --- /dev/null +++ b/src/ansys/dpf/core/operators/result/state_variable.py @@ -0,0 +1,754 @@ +""" +state_variable + +Autogenerated DPF operator classes. +""" + +from warnings import warn +from ansys.dpf.core.dpf_operator import Operator +from ansys.dpf.core.inputs import Input, _Inputs +from ansys.dpf.core.outputs import Output, _Outputs +from ansys.dpf.core.operators.specification import PinSpecification, Specification + + +class state_variable(Operator): + """Read/compute elemental state variable by calling the readers defined + by the datasources. Regarding the requested location and the input + mesh scoping, the result location can be + Nodal/ElementalNodal/Elemental. + + Parameters + ---------- + time_scoping : Scoping or int or float or Field, optional + Time/freq values (use doubles or field), + time/freq set ids (use ints or + scoping) or time/freq step ids (use + scoping with timefreq_steps location) + required in output. to specify + time/freq values at specific load + steps, put a field (and not a list) + in input with a scoping located on + "timefreq_steps". linear time freq + intrapolation is performed if the + values are not in the result files + and the data at the max time or freq + is taken when time/freqs are higher + than available time/freqs in result + files. + mesh_scoping : ScopingsContainer or Scoping, optional + Nodes or elements scoping required in output. + the output fields will be scoped on + these node or element ids. to figure + out the ordering of the fields data, + look at their scoping ids as they + might not be ordered as the input + scoping was. the scoping's location + indicates whether nodes or elements + are asked for. using scopings + container allows you to split the + result fields container into domains + fields_container : FieldsContainer, optional + Fields container already allocated modified + inplace + streams_container : 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 + bool_rotate_to_global : bool, optional + If true the field is rotated to global + coordinate system (default true) + mesh : MeshedRegion or MeshesContainer, optional + Prevents from reading the mesh in the result + files + requested_location : str, optional + Requested location nodal, elemental or + elementalnodal + item_index : int, optional + Index of requested item. + read_beams : bool, optional + Elemental nodal beam results are read if this + pin is set to true (default is false) + split_shells : bool, optional + This pin forces elemental nodal shell and + solid results to be split if this pin + is set to true. if set to false + (default), a specific shell layer is + still needed to merge the fields. + merge is possible only if a shell + layer is provided. + shell_layer : int, optional + If the requested_location pin is not + connected, and if split_shells pin is + set to true, we choose one of the + shell layer for shell element. if + split_shells pin is set to false + (default value) and a specific shell + layer is provided, results will be + merged on this specific shell layer. + + Returns + ------- + fields_container : FieldsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + + >>> # Instantiate operator + >>> op = dpf.operators.result.state_variable() + + >>> # Make input connections + >>> my_time_scoping = dpf.Scoping() + >>> op.inputs.time_scoping.connect(my_time_scoping) + >>> my_mesh_scoping = dpf.ScopingsContainer() + >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) + >>> my_fields_container = dpf.FieldsContainer() + >>> op.inputs.fields_container.connect(my_fields_container) + >>> my_streams_container = dpf.StreamsContainer() + >>> op.inputs.streams_container.connect(my_streams_container) + >>> my_data_sources = dpf.DataSources() + >>> op.inputs.data_sources.connect(my_data_sources) + >>> my_bool_rotate_to_global = bool() + >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) + >>> my_mesh = dpf.MeshedRegion() + >>> op.inputs.mesh.connect(my_mesh) + >>> my_requested_location = str() + >>> op.inputs.requested_location.connect(my_requested_location) + >>> my_item_index = int() + >>> op.inputs.item_index.connect(my_item_index) + >>> my_read_beams = bool() + >>> op.inputs.read_beams.connect(my_read_beams) + >>> my_split_shells = bool() + >>> op.inputs.split_shells.connect(my_split_shells) + >>> my_shell_layer = int() + >>> op.inputs.shell_layer.connect(my_shell_layer) + + >>> # Instantiate operator and connect inputs in one line + >>> op = dpf.operators.result.state_variable( + ... time_scoping=my_time_scoping, + ... mesh_scoping=my_mesh_scoping, + ... fields_container=my_fields_container, + ... streams_container=my_streams_container, + ... data_sources=my_data_sources, + ... bool_rotate_to_global=my_bool_rotate_to_global, + ... mesh=my_mesh, + ... requested_location=my_requested_location, + ... item_index=my_item_index, + ... read_beams=my_read_beams, + ... split_shells=my_split_shells, + ... shell_layer=my_shell_layer, + ... ) + + >>> # Get output data + >>> result_fields_container = op.outputs.fields_container() + """ + + def __init__( + self, + time_scoping=None, + mesh_scoping=None, + fields_container=None, + streams_container=None, + data_sources=None, + bool_rotate_to_global=None, + mesh=None, + requested_location=None, + item_index=None, + read_beams=None, + split_shells=None, + shell_layer=None, + config=None, + server=None, + ): + super().__init__(name="ESV", config=config, server=server) + self._inputs = InputsStateVariable(self) + self._outputs = OutputsStateVariable(self) + if time_scoping is not None: + self.inputs.time_scoping.connect(time_scoping) + if mesh_scoping is not None: + self.inputs.mesh_scoping.connect(mesh_scoping) + if fields_container is not None: + self.inputs.fields_container.connect(fields_container) + if streams_container is not None: + self.inputs.streams_container.connect(streams_container) + if data_sources is not None: + self.inputs.data_sources.connect(data_sources) + if bool_rotate_to_global is not None: + self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) + if mesh is not None: + self.inputs.mesh.connect(mesh) + if requested_location is not None: + self.inputs.requested_location.connect(requested_location) + if item_index is not None: + self.inputs.item_index.connect(item_index) + if read_beams is not None: + self.inputs.read_beams.connect(read_beams) + if split_shells is not None: + self.inputs.split_shells.connect(split_shells) + if shell_layer is not None: + self.inputs.shell_layer.connect(shell_layer) + + @staticmethod + def _spec(): + description = """Read/compute elemental state variable by calling the readers defined + by the datasources. Regarding the requested location and + the input mesh scoping, the result location can be + Nodal/ElementalNodal/Elemental.""" + spec = Specification( + description=description, + map_input_pin_spec={ + 0: PinSpecification( + name="time_scoping", + type_names=[ + "scoping", + "int32", + "vector", + "double", + "field", + "vector", + ], + optional=True, + document="""Time/freq values (use doubles or field), + time/freq set ids (use ints or + scoping) or time/freq step ids (use + scoping with timefreq_steps location) + required in output. to specify + time/freq values at specific load + steps, put a field (and not a list) + in input with a scoping located on + "timefreq_steps". linear time freq + intrapolation is performed if the + values are not in the result files + and the data at the max time or freq + is taken when time/freqs are higher + than available time/freqs in result + files.""", + ), + 1: PinSpecification( + name="mesh_scoping", + type_names=["scopings_container", "scoping"], + optional=True, + document="""Nodes or elements scoping required in output. + the output fields will be scoped on + these node or element ids. to figure + out the ordering of the fields data, + look at their scoping ids as they + might not be ordered as the input + scoping was. the scoping's location + indicates whether nodes or elements + are asked for. using scopings + container allows you to split the + result fields container into domains""", + ), + 2: PinSpecification( + name="fields_container", + type_names=["fields_container"], + optional=True, + document="""Fields container already allocated modified + inplace""", + ), + 3: PinSpecification( + name="streams_container", + type_names=["streams_container"], + optional=True, + document="""Result file container allowed to be kept open + to cache data""", + ), + 4: PinSpecification( + name="data_sources", + type_names=["data_sources"], + optional=False, + document="""Result file path container, used if no + streams are set""", + ), + 5: PinSpecification( + name="bool_rotate_to_global", + type_names=["bool"], + optional=True, + document="""If true the field is rotated to global + coordinate system (default true)""", + ), + 7: PinSpecification( + name="mesh", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Prevents from reading the mesh in the result + files""", + ), + 9: PinSpecification( + name="requested_location", + type_names=["string"], + optional=True, + document="""Requested location nodal, elemental or + elementalnodal""", + ), + 10: PinSpecification( + name="item_index", + type_names=["int32"], + optional=True, + document="""Index of requested item.""", + ), + 22: PinSpecification( + name="read_beams", + type_names=["bool"], + optional=True, + document="""Elemental nodal beam results are read if this + pin is set to true (default is false)""", + ), + 26: PinSpecification( + name="split_shells", + type_names=["bool"], + optional=True, + document="""This pin forces elemental nodal shell and + solid results to be split if this pin + is set to true. if set to false + (default), a specific shell layer is + still needed to merge the fields. + merge is possible only if a shell + layer is provided.""", + ), + 27: PinSpecification( + name="shell_layer", + type_names=["int32"], + optional=True, + document="""If the requested_location pin is not + connected, and if split_shells pin is + set to true, we choose one of the + shell layer for shell element. if + split_shells pin is set to false + (default value) and a specific shell + layer is provided, results will be + merged on this specific shell layer.""", + ), + }, + map_output_pin_spec={ + 0: PinSpecification( + name="fields_container", + type_names=["fields_container"], + optional=False, + document="""""", + ), + }, + ) + return spec + + @staticmethod + def 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. + """ + return Operator.default_config(name="ESV", server=server) + + @property + def inputs(self): + """Enables to connect inputs to the operator + + Returns + -------- + inputs : InputsStateVariable + """ + return super().inputs + + @property + def outputs(self): + """Enables to get outputs of the operator by evaluating it + + Returns + -------- + outputs : OutputsStateVariable + """ + return super().outputs + + +class InputsStateVariable(_Inputs): + """Intermediate class used to connect user inputs to + state_variable operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> my_time_scoping = dpf.Scoping() + >>> op.inputs.time_scoping.connect(my_time_scoping) + >>> my_mesh_scoping = dpf.ScopingsContainer() + >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) + >>> my_fields_container = dpf.FieldsContainer() + >>> op.inputs.fields_container.connect(my_fields_container) + >>> my_streams_container = dpf.StreamsContainer() + >>> op.inputs.streams_container.connect(my_streams_container) + >>> my_data_sources = dpf.DataSources() + >>> op.inputs.data_sources.connect(my_data_sources) + >>> my_bool_rotate_to_global = bool() + >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) + >>> my_mesh = dpf.MeshedRegion() + >>> op.inputs.mesh.connect(my_mesh) + >>> my_requested_location = str() + >>> op.inputs.requested_location.connect(my_requested_location) + >>> my_item_index = int() + >>> op.inputs.item_index.connect(my_item_index) + >>> my_read_beams = bool() + >>> op.inputs.read_beams.connect(my_read_beams) + >>> my_split_shells = bool() + >>> op.inputs.split_shells.connect(my_split_shells) + >>> my_shell_layer = int() + >>> op.inputs.shell_layer.connect(my_shell_layer) + """ + + def __init__(self, op: Operator): + super().__init__(state_variable._spec().inputs, op) + self._time_scoping = Input(state_variable._spec().input_pin(0), 0, op, -1) + self._inputs.append(self._time_scoping) + self._mesh_scoping = Input(state_variable._spec().input_pin(1), 1, op, -1) + self._inputs.append(self._mesh_scoping) + self._fields_container = Input(state_variable._spec().input_pin(2), 2, op, -1) + self._inputs.append(self._fields_container) + self._streams_container = Input(state_variable._spec().input_pin(3), 3, op, -1) + self._inputs.append(self._streams_container) + self._data_sources = Input(state_variable._spec().input_pin(4), 4, op, -1) + self._inputs.append(self._data_sources) + self._bool_rotate_to_global = Input( + state_variable._spec().input_pin(5), 5, op, -1 + ) + self._inputs.append(self._bool_rotate_to_global) + self._mesh = Input(state_variable._spec().input_pin(7), 7, op, -1) + self._inputs.append(self._mesh) + self._requested_location = Input(state_variable._spec().input_pin(9), 9, op, -1) + self._inputs.append(self._requested_location) + self._item_index = Input(state_variable._spec().input_pin(10), 10, op, -1) + self._inputs.append(self._item_index) + self._read_beams = Input(state_variable._spec().input_pin(22), 22, op, -1) + self._inputs.append(self._read_beams) + self._split_shells = Input(state_variable._spec().input_pin(26), 26, op, -1) + self._inputs.append(self._split_shells) + self._shell_layer = Input(state_variable._spec().input_pin(27), 27, op, -1) + self._inputs.append(self._shell_layer) + + @property + def time_scoping(self): + """Allows to connect time_scoping input to the operator. + + Time/freq values (use doubles or field), + time/freq set ids (use ints or + scoping) or time/freq step ids (use + scoping with timefreq_steps location) + required in output. to specify + time/freq values at specific load + steps, put a field (and not a list) + in input with a scoping located on + "timefreq_steps". linear time freq + intrapolation is performed if the + values are not in the result files + and the data at the max time or freq + is taken when time/freqs are higher + than available time/freqs in result + files. + + Parameters + ---------- + my_time_scoping : Scoping or int or float or Field + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.time_scoping.connect(my_time_scoping) + >>> # or + >>> op.inputs.time_scoping(my_time_scoping) + """ + return self._time_scoping + + @property + def mesh_scoping(self): + """Allows to connect mesh_scoping input to the operator. + + Nodes or elements scoping required in output. + the output fields will be scoped on + these node or element ids. to figure + out the ordering of the fields data, + look at their scoping ids as they + might not be ordered as the input + scoping was. the scoping's location + indicates whether nodes or elements + are asked for. using scopings + container allows you to split the + result fields container into domains + + Parameters + ---------- + my_mesh_scoping : ScopingsContainer or Scoping + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.mesh_scoping.connect(my_mesh_scoping) + >>> # or + >>> op.inputs.mesh_scoping(my_mesh_scoping) + """ + return self._mesh_scoping + + @property + def fields_container(self): + """Allows to connect fields_container input to the operator. + + Fields container already allocated modified + inplace + + Parameters + ---------- + my_fields_container : FieldsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.fields_container.connect(my_fields_container) + >>> # or + >>> op.inputs.fields_container(my_fields_container) + """ + return self._fields_container + + @property + def streams_container(self): + """Allows to connect streams_container input to the operator. + + Result file container allowed to be kept open + to cache data + + Parameters + ---------- + my_streams_container : StreamsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.streams_container.connect(my_streams_container) + >>> # or + >>> op.inputs.streams_container(my_streams_container) + """ + return self._streams_container + + @property + def data_sources(self): + """Allows to connect data_sources input to the operator. + + Result file path container, used if no + streams are set + + Parameters + ---------- + my_data_sources : DataSources + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.data_sources.connect(my_data_sources) + >>> # or + >>> op.inputs.data_sources(my_data_sources) + """ + return self._data_sources + + @property + def bool_rotate_to_global(self): + """Allows to connect bool_rotate_to_global input to the operator. + + If true the field is rotated to global + coordinate system (default true) + + Parameters + ---------- + my_bool_rotate_to_global : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) + >>> # or + >>> op.inputs.bool_rotate_to_global(my_bool_rotate_to_global) + """ + return self._bool_rotate_to_global + + @property + def mesh(self): + """Allows to connect mesh input to the operator. + + Prevents from reading the mesh in the result + files + + Parameters + ---------- + my_mesh : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.mesh.connect(my_mesh) + >>> # or + >>> op.inputs.mesh(my_mesh) + """ + return self._mesh + + @property + def requested_location(self): + """Allows to connect requested_location input to the operator. + + Requested location nodal, elemental or + elementalnodal + + Parameters + ---------- + my_requested_location : str + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.requested_location.connect(my_requested_location) + >>> # or + >>> op.inputs.requested_location(my_requested_location) + """ + return self._requested_location + + @property + def item_index(self): + """Allows to connect item_index input to the operator. + + Index of requested item. + + Parameters + ---------- + my_item_index : int + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.item_index.connect(my_item_index) + >>> # or + >>> op.inputs.item_index(my_item_index) + """ + return self._item_index + + @property + def read_beams(self): + """Allows to connect read_beams input to the operator. + + Elemental nodal beam results are read if this + pin is set to true (default is false) + + Parameters + ---------- + my_read_beams : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.read_beams.connect(my_read_beams) + >>> # or + >>> op.inputs.read_beams(my_read_beams) + """ + return self._read_beams + + @property + def split_shells(self): + """Allows to connect split_shells input to the operator. + + This pin forces elemental nodal shell and + solid results to be split if this pin + is set to true. if set to false + (default), a specific shell layer is + still needed to merge the fields. + merge is possible only if a shell + layer is provided. + + Parameters + ---------- + my_split_shells : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.split_shells.connect(my_split_shells) + >>> # or + >>> op.inputs.split_shells(my_split_shells) + """ + return self._split_shells + + @property + def shell_layer(self): + """Allows to connect shell_layer input to the operator. + + If the requested_location pin is not + connected, and if split_shells pin is + set to true, we choose one of the + shell layer for shell element. if + split_shells pin is set to false + (default value) and a specific shell + layer is provided, results will be + merged on this specific shell layer. + + Parameters + ---------- + my_shell_layer : int + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> op.inputs.shell_layer.connect(my_shell_layer) + >>> # or + >>> op.inputs.shell_layer(my_shell_layer) + """ + return self._shell_layer + + +class OutputsStateVariable(_Outputs): + """Intermediate class used to get outputs from + state_variable operator. + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> # Connect inputs : op.inputs. ... + >>> result_fields_container = op.outputs.fields_container() + """ + + def __init__(self, op: Operator): + super().__init__(state_variable._spec().outputs, op) + self._fields_container = Output(state_variable._spec().output_pin(0), 0, op) + self._outputs.append(self._fields_container) + + @property + def fields_container(self): + """Allows to get fields_container output of the operator + + Returns + ---------- + my_fields_container : FieldsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.state_variable() + >>> # Connect inputs : op.inputs. ... + >>> result_fields_container = op.outputs.fields_container() + """ # noqa: E501 + return self._fields_container diff --git a/src/ansys/dpf/core/operators/result/stiffness_matrix_energy.py b/src/ansys/dpf/core/operators/result/stiffness_matrix_energy.py index b4fbcab3e6..23bce35e6f 100644 --- a/src/ansys/dpf/core/operators/result/stiffness_matrix_energy.py +++ b/src/ansys/dpf/core/operators/result/stiffness_matrix_energy.py @@ -58,14 +58,25 @@ class stiffness_matrix_energy(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. Returns ------- @@ -95,6 +106,12 @@ class stiffness_matrix_energy(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.stiffness_matrix_energy( @@ -106,6 +123,9 @@ class stiffness_matrix_energy(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... ) >>> # Get output data @@ -122,6 +142,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, config=None, server=None, ): @@ -144,6 +167,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) @staticmethod def _spec(): @@ -227,8 +256,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -240,6 +269,29 @@ def _spec(): done and stages are merged (default is 1)""", ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", + ), }, map_output_pin_spec={ 0: PinSpecification( @@ -313,6 +365,12 @@ class InputsStiffnessMatrixEnergy(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) """ def __init__(self, op: Operator): @@ -347,6 +405,16 @@ def __init__(self, op: Operator): stiffness_matrix_energy._spec().input_pin(14), 14, op, -1 ) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + stiffness_matrix_energy._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input( + stiffness_matrix_energy._spec().input_pin(18), 18, op, -1 + ) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(stiffness_matrix_energy._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) @property def time_scoping(self): @@ -500,8 +568,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -541,6 +609,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.stiffness_matrix_energy() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.stiffness_matrix_energy() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.stiffness_matrix_energy() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + class OutputsStiffnessMatrixEnergy(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/stress.py b/src/ansys/dpf/core/operators/result/stress.py index 0136ad1142..2546c5fa11 100644 --- a/src/ansys/dpf/core/operators/result/stress.py +++ b/src/ansys/dpf/core/operators/result/stress.py @@ -60,8 +60,8 @@ class stress(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector requested_location : str, optional Requested location nodal, elemental or elementalnodal @@ -71,6 +71,17 @@ class stress(Operator): is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -122,6 +133,12 @@ class stress(Operator): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -140,6 +157,9 @@ class stress(Operator): ... mesh=my_mesh, ... requested_location=my_requested_location, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -160,6 +180,9 @@ def __init__( mesh=None, requested_location=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, read_beams=None, split_shells=None, shell_layer=None, @@ -187,6 +210,12 @@ def __init__( self.inputs.requested_location.connect(requested_location) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -278,8 +307,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 9: PinSpecification( name="requested_location", @@ -297,6 +326,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 22: PinSpecification( name="read_beams", @@ -405,6 +457,12 @@ class InputsStress(_Inputs): >>> op.inputs.requested_location.connect(my_requested_location) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,6 +491,12 @@ def __init__(self, op: Operator): self._inputs.append(self._requested_location) self._read_cyclic = Input(stress._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input(stress._spec().input_pin(15), 15, op, -1) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(stress._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(stress._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._read_beams = Input(stress._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(stress._spec().input_pin(26), 26, op, -1) @@ -592,8 +656,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -654,6 +718,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.stress() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.stress() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.stress() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/stress_ratio.py b/src/ansys/dpf/core/operators/result/stress_ratio.py index 1a0d012e75..ed821924bd 100644 --- a/src/ansys/dpf/core/operators/result/stress_ratio.py +++ b/src/ansys/dpf/core/operators/result/stress_ratio.py @@ -65,12 +65,6 @@ class stress_ratio(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class stress_ratio(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class stress_ratio(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsStressRatio(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,8 +409,6 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._requested_location = Input(stress_ratio._spec().input_pin(9), 9, op, -1) self._inputs.append(self._requested_location) - self._read_cyclic = Input(stress_ratio._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(stress_ratio._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(stress_ratio._spec().input_pin(26), 26, op, -1) @@ -632,30 +606,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.stress_ratio() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/structural_temperature.py b/src/ansys/dpf/core/operators/result/structural_temperature.py index 3b79b60f38..f19385c01f 100644 --- a/src/ansys/dpf/core/operators/result/structural_temperature.py +++ b/src/ansys/dpf/core/operators/result/structural_temperature.py @@ -65,12 +65,6 @@ class structural_temperature(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class structural_temperature(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class structural_temperature(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsStructuralTemperature(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -445,10 +421,6 @@ def __init__(self, op: Operator): structural_temperature._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input( - structural_temperature._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) self._read_beams = Input( structural_temperature._spec().input_pin(22), 22, op, -1 ) @@ -652,30 +624,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.structural_temperature() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/swelling_strains.py b/src/ansys/dpf/core/operators/result/swelling_strains.py index 207783173c..4e4a781534 100644 --- a/src/ansys/dpf/core/operators/result/swelling_strains.py +++ b/src/ansys/dpf/core/operators/result/swelling_strains.py @@ -65,12 +65,6 @@ class swelling_strains(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class swelling_strains(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class swelling_strains(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsSwellingStrains(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -437,8 +413,6 @@ def __init__(self, op: Operator): swelling_strains._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input(swelling_strains._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(swelling_strains._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(swelling_strains._spec().input_pin(26), 26, op, -1) @@ -636,30 +610,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.swelling_strains() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/tangential_contact_force.py b/src/ansys/dpf/core/operators/result/tangential_contact_force.py index 815dfef73f..d602302cb7 100644 --- a/src/ansys/dpf/core/operators/result/tangential_contact_force.py +++ b/src/ansys/dpf/core/operators/result/tangential_contact_force.py @@ -60,12 +60,6 @@ class tangential_contact_force(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class tangential_contact_force(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.tangential_contact_force( @@ -105,7 +97,6 @@ class tangential_contact_force(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsTangentialContactForce(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(tangential_contact_force._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - tangential_contact_force._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.tangential_contact_force() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsTangentialContactForce(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/tangential_contact_moment.py b/src/ansys/dpf/core/operators/result/tangential_contact_moment.py index 0ca5a5c1da..3ab7e4cea9 100644 --- a/src/ansys/dpf/core/operators/result/tangential_contact_moment.py +++ b/src/ansys/dpf/core/operators/result/tangential_contact_moment.py @@ -60,12 +60,6 @@ class tangential_contact_moment(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class tangential_contact_moment(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.tangential_contact_moment( @@ -105,7 +97,6 @@ class tangential_contact_moment(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsTangentialContactMoment(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(tangential_contact_moment._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - tangential_contact_moment._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.tangential_contact_moment() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsTangentialContactMoment(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/temperature.py b/src/ansys/dpf/core/operators/result/temperature.py index 4c161ca1b2..75c94aa6d0 100644 --- a/src/ansys/dpf/core/operators/result/temperature.py +++ b/src/ansys/dpf/core/operators/result/temperature.py @@ -58,14 +58,25 @@ class temperature(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. region_scoping : Scoping or int, optional Region id (integer) or vector of region ids (vector) or region scoping (scoping) @@ -109,6 +120,12 @@ class temperature(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_region_scoping = dpf.Scoping() >>> op.inputs.region_scoping.connect(my_region_scoping) >>> my_qualifiers1 = dict() @@ -126,6 +143,9 @@ class temperature(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... region_scoping=my_region_scoping, ... qualifiers1=my_qualifiers1, ... qualifiers2=my_qualifiers2, @@ -145,6 +165,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, region_scoping=None, qualifiers1=None, qualifiers2=None, @@ -170,6 +193,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if region_scoping is not None: self.inputs.region_scoping.connect(region_scoping) if qualifiers1 is not None: @@ -259,8 +288,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -271,6 +300,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 25: PinSpecification( name="region_scoping", @@ -371,6 +423,12 @@ class InputsTemperature(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_region_scoping = dpf.Scoping() >>> op.inputs.region_scoping.connect(my_region_scoping) >>> my_qualifiers1 = dict() @@ -397,6 +455,14 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._read_cyclic = Input(temperature._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input( + temperature._spec().input_pin(15), 15, op, -1 + ) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(temperature._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(temperature._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._region_scoping = Input(temperature._spec().input_pin(25), 25, op, -1) self._inputs.append(self._region_scoping) self._qualifiers1 = Input(temperature._spec().input_pin(1000), 1000, op, 0) @@ -556,8 +622,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -597,6 +663,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.temperature() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.temperature() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.temperature() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def region_scoping(self): """Allows to connect region_scoping input to the operator. diff --git a/src/ansys/dpf/core/operators/result/temperature_grad.py b/src/ansys/dpf/core/operators/result/temperature_grad.py index af673f59c6..ba05f95902 100644 --- a/src/ansys/dpf/core/operators/result/temperature_grad.py +++ b/src/ansys/dpf/core/operators/result/temperature_grad.py @@ -65,12 +65,6 @@ class temperature_grad(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class temperature_grad(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class temperature_grad(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsTemperatureGrad(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -437,8 +413,6 @@ def __init__(self, op: Operator): temperature_grad._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input(temperature_grad._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(temperature_grad._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(temperature_grad._spec().input_pin(26), 26, op, -1) @@ -636,30 +610,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.temperature_grad() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/thermal_dissipation_energy.py b/src/ansys/dpf/core/operators/result/thermal_dissipation_energy.py index fab41f83d5..5de6669f3f 100644 --- a/src/ansys/dpf/core/operators/result/thermal_dissipation_energy.py +++ b/src/ansys/dpf/core/operators/result/thermal_dissipation_energy.py @@ -60,12 +60,6 @@ class thermal_dissipation_energy(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class thermal_dissipation_energy(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.thermal_dissipation_energy( @@ -105,7 +97,6 @@ class thermal_dissipation_energy(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsThermalDissipationEnergy(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -343,10 +319,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(thermal_dissipation_energy._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - thermal_dissipation_energy._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -517,30 +489,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.thermal_dissipation_energy() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsThermalDissipationEnergy(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/thermal_strain.py b/src/ansys/dpf/core/operators/result/thermal_strain.py index 6c9d3a13a6..231a80bd70 100644 --- a/src/ansys/dpf/core/operators/result/thermal_strain.py +++ b/src/ansys/dpf/core/operators/result/thermal_strain.py @@ -65,12 +65,6 @@ class thermal_strain(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class thermal_strain(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class thermal_strain(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsThermalStrain(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -433,8 +409,6 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._requested_location = Input(thermal_strain._spec().input_pin(9), 9, op, -1) self._inputs.append(self._requested_location) - self._read_cyclic = Input(thermal_strain._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(thermal_strain._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input(thermal_strain._spec().input_pin(26), 26, op, -1) @@ -632,30 +606,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.thermal_strain() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py b/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py index 252b802937..5cb2fdb623 100644 --- a/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py +++ b/src/ansys/dpf/core/operators/result/thermal_strains_eqv.py @@ -65,12 +65,6 @@ class thermal_strains_eqv(Operator): requested_location : str, optional Requested location nodal, elemental or elementalnodal - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) read_beams : bool, optional Elemental nodal beam results are read if this pin is set to true (default is false) @@ -120,8 +114,6 @@ class thermal_strains_eqv(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -139,7 +131,6 @@ class thermal_strains_eqv(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... requested_location=my_requested_location, - ... read_cyclic=my_read_cyclic, ... read_beams=my_read_beams, ... split_shells=my_split_shells, ... shell_layer=my_shell_layer, @@ -159,7 +150,6 @@ def __init__( bool_rotate_to_global=None, mesh=None, requested_location=None, - read_cyclic=None, read_beams=None, split_shells=None, shell_layer=None, @@ -185,8 +175,6 @@ def __init__( self.inputs.mesh.connect(mesh) if requested_location is not None: self.inputs.requested_location.connect(requested_location) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) if read_beams is not None: self.inputs.read_beams.connect(read_beams) if split_shells is not None: @@ -287,16 +275,6 @@ def _spec(): optional=True, document="""Requested location nodal, elemental or elementalnodal""", - ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", ), 22: PinSpecification( name="read_beams", @@ -403,8 +381,6 @@ class InputsThermalStrainsEqv(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_requested_location = str() >>> op.inputs.requested_location.connect(my_requested_location) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> my_read_beams = bool() >>> op.inputs.read_beams.connect(my_read_beams) >>> my_split_shells = bool() @@ -439,8 +415,6 @@ def __init__(self, op: Operator): thermal_strains_eqv._spec().input_pin(9), 9, op, -1 ) self._inputs.append(self._requested_location) - self._read_cyclic = Input(thermal_strains_eqv._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) self._read_beams = Input(thermal_strains_eqv._spec().input_pin(22), 22, op, -1) self._inputs.append(self._read_beams) self._split_shells = Input( @@ -640,30 +614,6 @@ def requested_location(self): """ return self._requested_location - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.thermal_strains_eqv() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - @property def read_beams(self): """Allows to connect read_beams input to the operator. diff --git a/src/ansys/dpf/core/operators/result/thickness.py b/src/ansys/dpf/core/operators/result/thickness.py index d5958f1199..68e47168e7 100644 --- a/src/ansys/dpf/core/operators/result/thickness.py +++ b/src/ansys/dpf/core/operators/result/thickness.py @@ -60,12 +60,6 @@ class thickness(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class thickness(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.thickness( @@ -105,7 +97,6 @@ class thickness(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsThickness(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -331,8 +307,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(thickness._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(thickness._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -503,30 +477,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.thickness() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsThickness(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/total_contact_force.py b/src/ansys/dpf/core/operators/result/total_contact_force.py index 9f8878453c..4fbe767bde 100644 --- a/src/ansys/dpf/core/operators/result/total_contact_force.py +++ b/src/ansys/dpf/core/operators/result/total_contact_force.py @@ -60,12 +60,6 @@ class total_contact_force(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class total_contact_force(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.total_contact_force( @@ -105,7 +97,6 @@ class total_contact_force(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsTotalContactForce(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,8 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(total_contact_force._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(total_contact_force._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -509,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.total_contact_force() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsTotalContactForce(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/total_contact_moment.py b/src/ansys/dpf/core/operators/result/total_contact_moment.py index b5d771adb6..43b3bd9ff4 100644 --- a/src/ansys/dpf/core/operators/result/total_contact_moment.py +++ b/src/ansys/dpf/core/operators/result/total_contact_moment.py @@ -60,12 +60,6 @@ class total_contact_moment(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class total_contact_moment(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.total_contact_moment( @@ -105,7 +97,6 @@ class total_contact_moment(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsTotalContactMoment(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -337,10 +313,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(total_contact_moment._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input( - total_contact_moment._spec().input_pin(14), 14, op, -1 - ) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -511,30 +483,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.total_contact_moment() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsTotalContactMoment(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/total_strain.py b/src/ansys/dpf/core/operators/result/total_strain.py index 6ad219ba2f..cbc5b9f4e9 100644 --- a/src/ansys/dpf/core/operators/result/total_strain.py +++ b/src/ansys/dpf/core/operators/result/total_strain.py @@ -60,12 +60,6 @@ class total_strain(Operator): mesh : MeshedRegion or MeshesContainer, optional Prevents from reading the mesh in the result files - read_cyclic : int, optional - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) Returns ------- @@ -93,8 +87,6 @@ class total_strain(Operator): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.result.total_strain( @@ -105,7 +97,6 @@ class total_strain(Operator): ... data_sources=my_data_sources, ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, - ... read_cyclic=my_read_cyclic, ... ) >>> # Get output data @@ -121,7 +112,6 @@ def __init__( data_sources=None, bool_rotate_to_global=None, mesh=None, - read_cyclic=None, config=None, server=None, ): @@ -142,8 +132,6 @@ def __init__( self.inputs.bool_rotate_to_global.connect(bool_rotate_to_global) if mesh is not None: self.inputs.mesh.connect(mesh) - if read_cyclic is not None: - self.inputs.read_cyclic.connect(read_cyclic) @staticmethod def _spec(): @@ -230,16 +218,6 @@ def _spec(): document="""Prevents from reading the mesh in the result files""", ), - 14: PinSpecification( - name="read_cyclic", - type_names=["enum dataProcessing::ECyclicReading", "int32"], - optional=True, - document="""If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1)""", - ), }, map_output_pin_spec={ 0: PinSpecification( @@ -311,8 +289,6 @@ class InputsTotalStrain(_Inputs): >>> op.inputs.bool_rotate_to_global.connect(my_bool_rotate_to_global) >>> my_mesh = dpf.MeshedRegion() >>> op.inputs.mesh.connect(my_mesh) - >>> my_read_cyclic = int() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) """ def __init__(self, op: Operator): @@ -333,8 +309,6 @@ def __init__(self, op: Operator): self._inputs.append(self._bool_rotate_to_global) self._mesh = Input(total_strain._spec().input_pin(7), 7, op, -1) self._inputs.append(self._mesh) - self._read_cyclic = Input(total_strain._spec().input_pin(14), 14, op, -1) - self._inputs.append(self._read_cyclic) @property def time_scoping(self): @@ -505,30 +479,6 @@ def mesh(self): """ return self._mesh - @property - def read_cyclic(self): - """Allows to connect read_cyclic input to the operator. - - If 0 cyclic symmetry is ignored, if 1 cyclic - sector is read, if 2 cyclic expansion - is done, if 3 cyclic expansion is - done and stages are merged (default - is 1) - - Parameters - ---------- - my_read_cyclic : int - - Examples - -------- - >>> from ansys.dpf import core as dpf - >>> op = dpf.operators.result.total_strain() - >>> op.inputs.read_cyclic.connect(my_read_cyclic) - >>> # or - >>> op.inputs.read_cyclic(my_read_cyclic) - """ - return self._read_cyclic - class OutputsTotalStrain(_Outputs): """Intermediate class used to get outputs from diff --git a/src/ansys/dpf/core/operators/result/velocity.py b/src/ansys/dpf/core/operators/result/velocity.py index d14544cf43..33e700eb18 100644 --- a/src/ansys/dpf/core/operators/result/velocity.py +++ b/src/ansys/dpf/core/operators/result/velocity.py @@ -58,14 +58,25 @@ class velocity(Operator): If true the field is rotated to global coordinate system (default true) mesh : MeshedRegion or MeshesContainer, optional - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector read_cyclic : int, optional If 0 cyclic symmetry is ignored, if 1 cyclic sector is read, if 2 cyclic expansion is done, if 3 cyclic expansion is done and stages are merged (default is 1) + expanded_meshed_region : MeshedRegion or MeshesContainer, optional + Mesh expanded, use if cyclic expansion is to + be done. + sectors_to_expand : Scoping or ScopingsContainer, optional + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + phi : float, optional + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. region_scoping : Scoping or int, optional Region id (integer) or vector of region ids (vector) or region scoping (scoping) @@ -109,6 +120,12 @@ class velocity(Operator): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_region_scoping = dpf.Scoping() >>> op.inputs.region_scoping.connect(my_region_scoping) >>> my_qualifiers1 = dict() @@ -126,6 +143,9 @@ class velocity(Operator): ... bool_rotate_to_global=my_bool_rotate_to_global, ... mesh=my_mesh, ... read_cyclic=my_read_cyclic, + ... expanded_meshed_region=my_expanded_meshed_region, + ... sectors_to_expand=my_sectors_to_expand, + ... phi=my_phi, ... region_scoping=my_region_scoping, ... qualifiers1=my_qualifiers1, ... qualifiers2=my_qualifiers2, @@ -145,6 +165,9 @@ def __init__( bool_rotate_to_global=None, mesh=None, read_cyclic=None, + expanded_meshed_region=None, + sectors_to_expand=None, + phi=None, region_scoping=None, qualifiers1=None, qualifiers2=None, @@ -170,6 +193,12 @@ def __init__( self.inputs.mesh.connect(mesh) if read_cyclic is not None: self.inputs.read_cyclic.connect(read_cyclic) + if expanded_meshed_region is not None: + self.inputs.expanded_meshed_region.connect(expanded_meshed_region) + if sectors_to_expand is not None: + self.inputs.sectors_to_expand.connect(sectors_to_expand) + if phi is not None: + self.inputs.phi.connect(phi) if region_scoping is not None: self.inputs.region_scoping.connect(region_scoping) if qualifiers1 is not None: @@ -259,8 +288,8 @@ def _spec(): name="mesh", type_names=["abstract_meshed_region", "meshes_container"], optional=True, - document="""Prevents from reading the mesh in the result - files""", + document="""Mesh. if cylic expansion is to be done, mesh + of the base sector""", ), 14: PinSpecification( name="read_cyclic", @@ -271,6 +300,29 @@ def _spec(): is done, if 3 cyclic expansion is done and stages are merged (default is 1)""", + ), + 15: PinSpecification( + name="expanded_meshed_region", + type_names=["abstract_meshed_region", "meshes_container"], + optional=True, + document="""Mesh expanded, use if cyclic expansion is to + be done.""", + ), + 18: PinSpecification( + name="sectors_to_expand", + type_names=["vector", "scoping", "scopings_container"], + optional=True, + document="""Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done.""", + ), + 19: PinSpecification( + name="phi", + type_names=["double"], + optional=True, + document="""Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done.""", ), 25: PinSpecification( name="region_scoping", @@ -371,6 +423,12 @@ class InputsVelocity(_Inputs): >>> op.inputs.mesh.connect(my_mesh) >>> my_read_cyclic = int() >>> op.inputs.read_cyclic.connect(my_read_cyclic) + >>> my_expanded_meshed_region = dpf.MeshedRegion() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> my_sectors_to_expand = dpf.Scoping() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> my_phi = float() + >>> op.inputs.phi.connect(my_phi) >>> my_region_scoping = dpf.Scoping() >>> op.inputs.region_scoping.connect(my_region_scoping) >>> my_qualifiers1 = dict() @@ -397,6 +455,12 @@ def __init__(self, op: Operator): self._inputs.append(self._mesh) self._read_cyclic = Input(velocity._spec().input_pin(14), 14, op, -1) self._inputs.append(self._read_cyclic) + self._expanded_meshed_region = Input(velocity._spec().input_pin(15), 15, op, -1) + self._inputs.append(self._expanded_meshed_region) + self._sectors_to_expand = Input(velocity._spec().input_pin(18), 18, op, -1) + self._inputs.append(self._sectors_to_expand) + self._phi = Input(velocity._spec().input_pin(19), 19, op, -1) + self._inputs.append(self._phi) self._region_scoping = Input(velocity._spec().input_pin(25), 25, op, -1) self._inputs.append(self._region_scoping) self._qualifiers1 = Input(velocity._spec().input_pin(1000), 1000, op, 0) @@ -556,8 +620,8 @@ def bool_rotate_to_global(self): def mesh(self): """Allows to connect mesh input to the operator. - Prevents from reading the mesh in the result - files + Mesh. if cylic expansion is to be done, mesh + of the base sector Parameters ---------- @@ -597,6 +661,71 @@ def read_cyclic(self): """ return self._read_cyclic + @property + def expanded_meshed_region(self): + """Allows to connect expanded_meshed_region input to the operator. + + Mesh expanded, use if cyclic expansion is to + be done. + + Parameters + ---------- + my_expanded_meshed_region : MeshedRegion or MeshesContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.velocity() + >>> op.inputs.expanded_meshed_region.connect(my_expanded_meshed_region) + >>> # or + >>> op.inputs.expanded_meshed_region(my_expanded_meshed_region) + """ + return self._expanded_meshed_region + + @property + def sectors_to_expand(self): + """Allows to connect sectors_to_expand input to the operator. + + Sectors to expand (start at 0), for + multistage: use scopings container + with 'stage' label, use if cyclic + expansion is to be done. + + Parameters + ---------- + my_sectors_to_expand : Scoping or ScopingsContainer + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.velocity() + >>> op.inputs.sectors_to_expand.connect(my_sectors_to_expand) + >>> # or + >>> op.inputs.sectors_to_expand(my_sectors_to_expand) + """ + return self._sectors_to_expand + + @property + def phi(self): + """Allows to connect phi input to the operator. + + Angle phi in degrees (default value 0.0), use + if cyclic expansion is to be done. + + Parameters + ---------- + my_phi : float + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.result.velocity() + >>> op.inputs.phi.connect(my_phi) + >>> # or + >>> op.inputs.phi(my_phi) + """ + return self._phi + @property def region_scoping(self): """Allows to connect region_scoping input to the operator. diff --git a/src/ansys/dpf/core/operators/serialization/hdf5dpf_generate_result_file.py b/src/ansys/dpf/core/operators/serialization/hdf5dpf_generate_result_file.py index bce482bdf8..6e8847d175 100644 --- a/src/ansys/dpf/core/operators/serialization/hdf5dpf_generate_result_file.py +++ b/src/ansys/dpf/core/operators/serialization/hdf5dpf_generate_result_file.py @@ -16,6 +16,10 @@ class hdf5dpf_generate_result_file(Operator): Parameters ---------- + append_mode : bool, optional + Experimental: allow appending chunked data to + the file. this disables fields + container content deduplication. dataset_size_compression_threshold : int, optional Integer value that defines the minimum dataset size (in bytes) to use h5 @@ -87,6 +91,8 @@ class hdf5dpf_generate_result_file(Operator): >>> op = dpf.operators.serialization.hdf5dpf_generate_result_file() >>> # Make input connections + >>> my_append_mode = bool() + >>> op.inputs.append_mode.connect(my_append_mode) >>> my_dataset_size_compression_threshold = int() >>> op.inputs.dataset_size_compression_threshold.connect(my_dataset_size_compression_threshold) >>> my_h5_native_compression = int() @@ -108,6 +114,7 @@ class hdf5dpf_generate_result_file(Operator): >>> # Instantiate operator and connect inputs in one line >>> op = dpf.operators.serialization.hdf5dpf_generate_result_file( + ... append_mode=my_append_mode, ... dataset_size_compression_threshold=my_dataset_size_compression_threshold, ... h5_native_compression=my_h5_native_compression, ... export_floats=my_export_floats, @@ -125,6 +132,7 @@ class hdf5dpf_generate_result_file(Operator): def __init__( self, + append_mode=None, dataset_size_compression_threshold=None, h5_native_compression=None, export_floats=None, @@ -142,6 +150,8 @@ def __init__( ) self._inputs = InputsHdf5DpfGenerateResultFile(self) self._outputs = OutputsHdf5DpfGenerateResultFile(self) + if append_mode is not None: + self.inputs.append_mode.connect(append_mode) if dataset_size_compression_threshold is not None: self.inputs.dataset_size_compression_threshold.connect( dataset_size_compression_threshold @@ -169,6 +179,14 @@ def _spec(): spec = Specification( description=description, map_input_pin_spec={ + -6: PinSpecification( + name="append_mode", + type_names=["bool"], + optional=True, + document="""Experimental: allow appending chunked data to + the file. this disables fields + container content deduplication.""", + ), -5: PinSpecification( name="dataset_size_compression_threshold", type_names=["int32"], @@ -321,6 +339,8 @@ class InputsHdf5DpfGenerateResultFile(_Inputs): -------- >>> from ansys.dpf import core as dpf >>> op = dpf.operators.serialization.hdf5dpf_generate_result_file() + >>> my_append_mode = bool() + >>> op.inputs.append_mode.connect(my_append_mode) >>> my_dataset_size_compression_threshold = int() >>> op.inputs.dataset_size_compression_threshold.connect(my_dataset_size_compression_threshold) >>> my_h5_native_compression = int() @@ -343,6 +363,10 @@ class InputsHdf5DpfGenerateResultFile(_Inputs): def __init__(self, op: Operator): super().__init__(hdf5dpf_generate_result_file._spec().inputs, op) + self._append_mode = Input( + hdf5dpf_generate_result_file._spec().input_pin(-6), -6, op, -1 + ) + self._inputs.append(self._append_mode) self._dataset_size_compression_threshold = Input( hdf5dpf_generate_result_file._spec().input_pin(-5), -5, op, -1 ) @@ -380,6 +404,28 @@ def __init__(self, op: Operator): ) self._inputs.append(self._input_name2) + @property + def append_mode(self): + """Allows to connect append_mode input to the operator. + + Experimental: allow appending chunked data to + the file. this disables fields + container content deduplication. + + Parameters + ---------- + my_append_mode : bool + + Examples + -------- + >>> from ansys.dpf import core as dpf + >>> op = dpf.operators.serialization.hdf5dpf_generate_result_file() + >>> op.inputs.append_mode.connect(my_append_mode) + >>> # or + >>> op.inputs.append_mode(my_append_mode) + """ + return self._append_mode + @property def dataset_size_compression_threshold(self): """Allows to connect dataset_size_compression_threshold input to the operator. diff --git a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll index 820e11a95a..26abc55cf2 100644 Binary files a/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll and b/src/ansys/dpf/gatebin/Ans.Dpf.GrpcClient.dll differ diff --git a/src/ansys/dpf/gatebin/DPFClientAPI.dll b/src/ansys/dpf/gatebin/DPFClientAPI.dll index 48cf3e1086..2fbb7bfaf4 100644 Binary files a/src/ansys/dpf/gatebin/DPFClientAPI.dll and b/src/ansys/dpf/gatebin/DPFClientAPI.dll differ diff --git a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so index bdbe4661d7..0f7400b6fa 100644 Binary files a/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so and b/src/ansys/dpf/gatebin/libAns.Dpf.GrpcClient.so differ diff --git a/src/ansys/dpf/gatebin/libDPFClientAPI.so b/src/ansys/dpf/gatebin/libDPFClientAPI.so index b6e54728f3..708a82f4d4 100644 Binary files a/src/ansys/dpf/gatebin/libDPFClientAPI.so and b/src/ansys/dpf/gatebin/libDPFClientAPI.so differ