N2PProperty#

class NaxToPy.Core.Classes.N2PProperty.N2PProperty(information, model_father)[source]#

Bases: ABC

Abstract base class for all properties types. Other properties classes inherit from this class.

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

N2PComp#

class NaxToPy.Core.Classes.N2PProperty.N2PComp(information, model_father)[source]#

Bases: N2PProperty

Class for defining compound properties. It derives from N2PProperty.

QMatrix(i) ndarray[source]#

Returns the lamina stiffness matrix (Q-Bar) as a numpy 2D array | σ1 | | ε1 | | σ2 | = [Q]*| ε2 | | τ12| | γ12/2 |

property ABDMatrix: tuple[ndarray, ndarray, ndarray]#

Calculate extensional (A), coupling (B), and bending (D) stiffness matrices

Returns A, B, C (numpy 2D arrays) of the laminate

property AllowShear: float#

Shear allowable

property DampCoef: float#

Damping Coefficient

property EqBenProps: tuple[float, float, float, float]#

Calculate the Equivalent Bending Properties of the laminate using D matrix

Returns:

A tuple containing (Ex, Ey, nu, G).

  • Ex: Equivalent Bending modulus in the x-direction.

  • Ey: Equivalent Bending modulus in the y-direction.

  • nu: Equivalent Bending Poisson’s ratio.

  • G: Equivalent Bending shear modulus.

Return type:

tuple[float, float, float, float]

Example

>>> pcomp: n2p.AllClasses.N2PComp = model.PropertyDict((20001, "0"))
>>> Ex, Ey, nu, G = pcomp.EqBenProps()
property EqMemProps: tuple[float, float, float, float]#

Calculate the Equivalent Membrane Properties of the laminate using A matrix.

Returns:

A tuple containing (Ex, Ey, nu, G).

  • Ex: Equivalent Membrane modulus in the x-direction.

  • Ey: Equivalent Membrane modulus in the y-direction.

  • nu: Equivalent Membrane Poisson’s ratio.

  • G: Equivalent Membrane shear modulus.

Return type:

tuple[float, float, float, float]

Example

>>> pcomp: n2p.AllClasses.N2PComp = model.PropertyDict((10001, "0"))
>>> Ex, Ey, nu, G = pcomp.EqMemProps()
property EqQBenMatrix: list#

Returns the lamina bending stiffness matrix. It is calculated from the D matrix.

property EqQMatrix: list#

Returns the lamina membrane stiffness matrix (Q-Bar). | σx | | εx |

σy | = [Q]*| εy |
τxy| | γxy/2 |
property FailTh: str#

Fail Theory

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property IsSymmetric: bool#

True if it is Symmetric. False if it is not

property MatID: tuple[tuple[int, str]]#

Tuple with the solver tuple of thr id and part of the material for each ply of the laminate

property NSM: float#

Non Structural Mass

property Name: str#

Name of the property. It is used by Abaqus

property NumPiles: int#

Number of plies of the laminate

property PartID: str#

Part where the property is defined

property Plies: list[tuple]#

(MatID, Thickness, Theta, SOut)

Type:

It returns a list of tuple. A tuple for a ply. Plies have four data

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property SOut: tuple[bool]#

Tuple with the stress requirement for each ply of the laminate

property Theta: tuple[float]#

Tuple with the orientation angle for each ply of the laminate

property Thickness: tuple[float]#

Tuple with the thickness for each ply of the laminate

N2PShell#

class NaxToPy.Core.Classes.N2PProperty.N2PShell(information, model_father)[source]#

Bases: N2PProperty

Class for defining shell properties. It derives from N2PProperty.

property BenMR: float#

Bending Moment of Inertia Ratio, 12*I/T**3.

property FiberDist: tuple[float, float]#

Fiber distances for stress calculations. The positive direction is determined by the right-hand rule, and the order in which the grid points are listed on the connection entry

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property MatBenID: tuple[int, str] | tuple[str, str]#

Material index for the bending behavior

property MatCouplID: tuple[int, str] | tuple[str, str]#

Material identification number for membrane-bending coupling

property MatMemID: tuple[int, str] | tuple[str, str]#

Material index for the membrane behavior

property MatSheID: tuple[int, str] | tuple[str, str]#

Material index for the shell behavior

property NSM: float#

Nonstructural mass per unit area

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property Thickness: float#

Thickness of the shell

property TrShThickness: float#

Transverse Shear Thickness Ratio, Ts/T.

N2PSolid#

class NaxToPy.Core.Classes.N2PProperty.N2PSolid(information, model_father)[source]#

Bases: N2PProperty

Class for defining solid properties. It derives from N2PProperty.

property Cordm: int#

Identification number of the material coordinate system.

property Fluid: str#

Fluid Element Flag.

property ID: int#

Solver Index for the Property

property IntNet: str#

Integration Network.

property IntSch: str#

Integration Scheme.

property InternalID: int#

Index used by NaxToPy to identify the property

property LocStrssOut: str#

Location selection for stress output.

property MatID: tuple[int, str] | tuple[str, str]#

Index of the material of the solid property

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

N2PRod#

class NaxToPy.Core.Classes.N2PProperty.N2PRod(information, model_father)[source]#

Bases: N2PProperty

Class for defining Rod or Truss properties. It derives from N2PProperty.

property Area: float#

Area of the rod|truss.

property CoefTorsion: float#

tau = (C*Moment)/J

Type:

Torsional Coeficient. Abv as C. It is used to calculate the stress

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property J: float#

Torsinon Constant

property MatID: tuple[int, str] | tuple[str, str]#

Material identification number.

property NSM: float#

Nonstructural mass per unit area

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

N2PBeam#

class NaxToPy.Core.Classes.N2PProperty.N2PBeam(information, model_father)[source]#

Bases: N2PProperty

Class for defining PBEAM, PBAR and Beam section form Abaqus. It derives from N2PProperty.

property Area: list#

Area of bar|beam at each cross-section.

property FractionalDistance: list#

Fractional distance of the intermediate station from end A.

property I1: list#

Area moment inertia in plane 1 about the neutral axis at each cross-section

property I12: list#

Area moment inertia 12 at each cross-section (I1 * I2 > I12)

property I2: list#

Area moment inertia in plane 2 about the neutral axis at each cross-section

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property J: list#

Torsion Constant

property K1: float#

Shear stiffness factor K in K*A*G for plane 1

property K2: float#

Shear stiffness factor K in K*A*G for plane 1

property MatID: tuple[int, str] | tuple[str, str]#

Material identification number.

property NSIA: float#

Nonstructural mass moment of inertia per unit length about nonstructural mass center of gravity at end A.

property NSIB: float#

Nonstructural mass moment of inertia per unit length about nonstructural mass center of gravity at end B.

property NSM: list#

Nonstructural mass per unit area

property Name: str#

Name of the property. It is used by Abaqus

property NumSeg: int#

Number of Segments. Only for BEAMS. For BARs it will be 0 always.

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

N2PBush#

class NaxToPy.Core.Classes.N2PProperty.N2PBush(information, model_father)[source]#

Bases: N2PProperty

Class for defining PBUSH form Optistruct/Nastran. It derives from N2PProperty.

property EA: float#

Strain recovery coefficient in the translational component (K1, K2, K3)

property ET: float#

Strain recovery coefficient in the rotational component (K4, K5, K6)

property ForceVelDamp: list[float]#

List with the Force-per-Velocity Damping [B1, B2, B3, B4, B5, B6]

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property SA: float#

Stress recovery coefficient in the translational component (K1, K2, K3)

property ST: float#

Stress recovery coefficient in the rotational component (K4, K5, K6)

property Stiffness: list[float]#

List with the stiffnesses [K1, K2, K3, K4, K5, K6]

property StrDamp: float#

List with the Structural Damping [GE1, GE2, GE3, GE4, GE5, GE6]

N2PFast#

class NaxToPy.Core.Classes.N2PProperty.N2PFast(information, model_father)[source]#

Bases: N2PProperty

Class for defining PFAST form Optistruct/Nastran. It derives from N2PProperty.

property CoinLen: float#

Length of a CFAST with coincident grids

property CoordAbs: bool#

Flag that indicate if the coordinate system is relative (flase) or absolute (true)

property Diameter: float#

Diameter of the fastener

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property Mass: float#

Lumped mass of the fastener

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property RotStiff: list[float]#

List with the Rotational stiffnesses [KR1, KR2, KR3]

property StiffCoordSys: int#

Stiffness Coordinate System

property Stiffness: list[float]#

List with the Displacements stiffnesses [KT1, KT2, KT3]

property StrDamp: float#

Structural Damping

property TExp: float#

Thermal Expansion Coeficient

property TRef: float#

Reference Temperature

N2PMass#

class NaxToPy.Core.Classes.N2PProperty.N2PMass(information, model_father)[source]#

Bases: N2PProperty

Class for defining mass. It derives from N2PProperty.

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property Mass: float#

Value of scalar mass

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

N2PElas#

class NaxToPy.Core.Classes.N2PProperty.N2PElas(information, model_father)[source]#

Bases: N2PProperty

Class that specifies the stiffness, damping coefficient, and stress coefficient of a scalar elastic (spring) element. PELAS from Optistruct/Nastran

property GE: float#

Structural Damping

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property K: float#

Stiffness Value

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property S: float#

Stress coefficient

N2PGap#

class NaxToPy.Core.Classes.N2PProperty.N2PGap(information, model_father)[source]#

Bases: N2PProperty

Class that specifies the PGAP from Optistruct/Nastran

property ID: int#

Solver Index for the Property

property InitGap: float#

Initial gap opening

property InternalID: int#

Index used by NaxToPy to identify the property

property KA: float#

Axial stiffness for the closed gap

property KB: float#

Axial stiffness for the open gap

property KT: float#

Transverse stiffness when the gap is closed

property MAR: float#

Maximum allowable adjustment ratio for adaptive penalty values KA and KT

property MU1: float#

Coefficient of static friction for the adaptive gap element or coefficient of friction in the “y” transverse direction for the nonadaptive gap element.

property MU2: float#

Coefficient of kinetic friction for the adaptive gap element or coefficient of friction in the z transverse direction for the nonadaptive gap element.

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PreLoad: float#

Preload

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property TMax: float#

Maximum allowable penetration used in the adjustment of penalty values. The positive value activates the penalty value adjustment

property TRMin: float#

Fraction of TMAX defining the lower bound for the allowable penetration

N2PWeld#

class NaxToPy.Core.Classes.N2PProperty.N2PWeld(information, model_father)[source]#

Bases: N2PProperty

Class that specifies the property of the connector element CWELD

property Diameter: float#

Diameter of the connector

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property MSET: bool#

Flag to eliminate m-set degrees-of-freedom (DOFs). Active ONLY for “PARAM,OLDWELD,YES”.

property MatID: tuple[int, str] | tuple[str, str]#

Material identification number.

property MaxLength: float#

Largest ratio of length to diameter for stiffness calculation

property MinLength: float#

Smallest ratio of length to diameter for stiffness calculation

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property Type: str#

Type of connection

N2PBeamL#

class NaxToPy.Core.Classes.N2PProperty.N2PBeamL(information, model_father)[source]#

Bases: N2PProperty

Class representing the beam properties (equivalent to N2BeamL in C#). It derives from N2PProperty.

property DIM: list[list[float]]#

Cross-section dimensions at end A [i, 0], intermediate station j [i, j] and end B [i, -1], where i is the dimension.

property FractionalDistance: list[float]#

Fractional distance of the intermediate station from end A

property Group: str#

Cross-section group

property ID: int#

Solver Index for the Property

property InternalID: int#

Index used by NaxToPy to identify the property

property MatID: tuple[int, str] | tuple[str, str]#

Material identification number.

property NSM: list[float]#

Nonstructural mass per unit area

property Name: str#

Name of the property. It is used by Abaqus

property PartID: str#

Part where the property is defined

property PropertyType: str#

“SHELL SECTION”

Type:

Type of property. Example 1

Type:

“PCOMP”. Example2

property StressOut: bool#

Stress output request option for intermediate station j and end B.

property Type: str#

Cross-section shape