N2PEdgeDelamination Module#

class NaxToPy.Modules.static.composite.delamination.N2PEdgeDelamination.N2PEdgeDelamination[source]#

Bases: object

Class used to obtain interlaminar stresses and RF from Edge Delamination

Examples

>>> import NaxToPy as n2p
>>> from NaxToPy.Modules.static.delamination import N2PDelamination
>>> model = n2p.load_model(r"file path")
>>> element_list = [3026292,3026293,3026294] # List of element
>>> n2pelem = model.get_elements(element_list)
>>> load_case_id = [68195, 68196] # List of ID of Load Cases
>>> n2plc = model.get_load_case(load_case_id)
>>> delam = N2PDelamination()
>>> delam.Model = model  # Assign the model
>>> delam.ElementList = n2pelem  # Assign elements
>>> delam.LoadCases = n2plc  # Assign load cases
>>> mat_ID = 4  #ID of the material
>>> part_mat = '0' # Part ID of the material
>>> delam.Materials[(mat_ID,part_mat)].YoungZ = 12000  #Assign the Z elastic modulus
>>> delam.Materials[(mat_ID,part_mat)].PoissonXZ = 0.3  # Assign the XZ Poisson ratio
>>> delam.Materials[(mat_ID,part_mat)].PoissonYZ = 0.3  # Assign the YZ Poisson ratio
>>> delam.Materials[(mat_ID,part_mat)].Allowables.ShearXZ = 105  #Assign the shear XZ allowable
>>> delam.Materials[(mat_ID,part_mat)].Allowables.ShearYZ = 105  #Assign the shear YZ allowable
>>> delam.Materials[(mat_ID,part_mat)].Allowables.ZCompressive = 108  #Assign the compressive Z allowable
>>> delam.Materials[(mat_ID,part_mat)].Allowables.ZTensile = 53.9  #Assign the tensile Z allowable
>>> delam.FailureCriteria = 'CI'
>>> for LC in delam.LoadCases:
>>>    LC.RefTemp = -30
>>> int_distance = {}
>>> for element in n2pelem:
>>>    int_distance[element] = 5
>>> delam.IntegrationDistance = int_distance
>>> delam.HDF5.FilePath = r"file output"
>>> delam.calculate()
calculate() None[source]#

Executes all necessary calculations as the final step in the workflow.

Returns:

None

property Edges: list[tuple[N2PElement, N2PNode, N2PNode]]#

Returns a list of tuples with the different edges of the element selection

property ElementList: list[N2PElement]#

Read/Write, Mandatory. List of N2PElement

property FailureCriteria: str#

Read/Write, Optional.

property HDF5: HDF5_NaxTo#

Read/Write, Optional. HDF5 attribute which contains all the necessary info to create it

property IntegrationDistance: float#

Read/Write, Optional.

property LoadCases: list[N2PLoadCase]#

Read/Write, Mandatory. List of N2PLoadCase

property Materials: dict[tuple[int, str], Orthotropic]#

Read-Only. Dictionary with all the materials in the elements selected

property Model: N2PModelContent#

Read/Write, Mandatory. N2PModelContent object