Model.calculateElemDrapingAngles#

Model.calculateElemDrapingAngles(collection, result_file, table_name, fiber_vector, stamping_vector, ply_id)#

Updates connectors with entities.

Parameters:
  • collection (Collection) – The collection containing the ply element entities.

  • result_file (hwString) – Reserved for future development. Must be set to “”.

  • table_name (hwString) – The name of the table entity to use for storing the results.

  • fiber_vector (hwTriple) – The hwTriple object defining the vector components of the fiber direction. User can also supply a Python list of three doubles.

  • stamping_vector (hwTriple) – The hwTriple object defining the vector components of the stamping direction. User can also supply a Python list of three doubles.

  • ply_id (int) – The ID of the ply.

Example#

Calculate the draping angle of elements associated with ply with ID 10.0 having fiber direction (1.0,0.0,0.0) and stamping direction (0.0,1.0,0.0)#
import hm
import hm.entities as ent

model = hm.Model()

model.calculateElemDrapingAngles(
    collection=hm.Collection(model, ent.Element, hm.Collection(model, ent.Ply, [10])),
    result_file="",
    table_name="drapetable",
    fiber_vector=[1.0, 0.0, 0.0],
    stamping_vector=[0.0, 1.0, 0.0],
    ply_id=10,
)