Model.compositeanalysis_byentity#
- Model.compositeanalysis_byentity(entity, result, output, ffunc=Entity(), loadid=EntityList(), loadcase=hwStringList(), theta=hwDoubleList())#
Analyzes composite materials, plies, sequences, laminates, or elements.
- Parameters:
entity (Entity) – The object describing the entity to be analyzed. Valid entities are composite materials, plies, sequences, laminates, or elements.
result (hwString) –
The type of result. Valid values are:
eng-const - For engineering constant analysis of material, ply, laminate, sequence, or element.
load-response - For load response/first ply failure analysis of laminate, sequence, or element.
strength - For strength analysis of laminate, sequence, or element.
output (hwString) – Specifies where the analysis result is stored. If value begins with a double colon, the result will be stored in a variable. Otherwise, the parameter is considered as a file name.
ffunc (Entity) – The design point method ID. Selected entity must have First_Ply_Failure defined as the method. Optional argument used in strength and FPF analysis.
loadid (EntityList) – The list of load entities. Selected load entities must have “Composite plate” defined as the engineering type. Optional argument used in load response and FPF analysis.
loadcase (hwStringList) – The list of strings identifying imported result, subcase, and simulation used as load. Optional argument used in load response and FPF analysis when analyzing elements.
theta (hwDoubleList) – Optional argument to define the angle of analysis. Value can be given as a single number, or as range defined as list with a format [<from>, <to>, <step>]. Numbers can be given as integers or reals. (default=0)
Examples#
Analyze material with ID 1#import hm import hm.entities as ent model = hm.Model() model.compositeanalysis_byentity( entity=ent.Material(model,1), result="eng-const", output="C:/temp/result.txt", )
Analyze material with theta range#import hm import hm.entities as ent model = hm.Model() model.compositeanalysis_byentity( entity=ent.Material(model,1), result="eng-const", theta=[0.0,90.0,1.0], output="C:/temp/result.txt", )