Model.fatiguewrite#
- Model.fatiguewrite(collection, filename, datagroup, filetype, analysistype, simulationtype, sim1)#
Creates a fatigue analysis input file in the format specified.
- Parameters:
collection (Collection) – The collection containing the entities. Valid etity types are elements and nodes.
filename (hwString) – The specified file name into which the fatigue analysis results are written.
datagroup (hwString) – The data group type chosen (depending upon the solver).
filetype (int) –
The file type.
0- BINARY
1 - ASCII
analysistype (int) –
The analysis type.
0 - Linear
1 - Transient
simulationtype (int) –
The simulation types.
0 - writes all simulations for the specified entities
1 - writes only the simulation values for a specific simulation
2 - writes only the simulations in the specified range, given start and end simulation values
sim1 (hwStringList) – List of simulation names. If
simulationtype = 0, writes all simulations for the specified entities.
Example#
Create a fatigue analysis input file#import hm import hm.entities as ent model = hm.Model() model.fatiguewrite( collection=hm.Collection(model, ent.Element), filename="c:\temp\fatg_file_name", datagroup="Stress TOP SURFACE", filetype=1, analysistype=0, simulationtype=0, sim1=["all", "NULL", "NULL"])
Note
Load the HyperMesh model or solver input data and results files prior to using this function.