N2PNeuber Module#
- class NaxToPy.Modules.static.metallic.neuber.N2PNeuber.N2PNeuber[source]#
Bases:
object
Class used to obtain stresses using the Neuber method.
Examples
>>> import NaxToPy as n2p >>> from NaxToPy.Modules.static.metallic import N2PNeuber >>> model = n2p.load_model(r"file path") >>> element_list = [(24581218, '0')] >>> n2pelem = model.get_elements(element_list) >>> n2plc = model._load_case(68195) >>> neuber = N2PNeuber() >>> neuber.Model = model # compulsory input >>> neuber.Element_list = n2pelem # compulsory input >>> neuber.LoadCases = n2plc # compulsory input >>> neuber.calculate() # neuber stress are calculated
- Ramberg_Osgood_curve(elements: list[N2PElement])[source]#
Plots the Ramberg-Osgood curves for a given list of elements.
This method generates stress-strain curves for the materials associated with the provided elements.
- Parameters:
elements (list[N2PElement]) – A list of elements for which the Ramberg-Osgood curves are to be plotted. Each element is mapped to a material with the required properties (Young’s modulus, yield stress, and Ramberg-Osgood exponent).
- Returns:
X-axis: Strain
Y-axis: Stress
- A curve for each unique material with a legend displaying:
E: Young’s modulus
YS: Yield stress
n: Ramberg-Osgood exponent
Gridlines, axis labels, and a title for better readability.
- Return type:
Plot
- calculate() None [source]#
Executes all necessary calculations as the final step in the workflow.
- Returns:
None
- property Elem_to_Material: dict[tuple[int, str], Material]#
Property that returns a dictionary that relates the elements to the Material.
- property Elem_to_N2PMaterial: dict[tuple[int, str], Material]#
Property that returns a dictionary that relates the elements to the N2PMaterial.
- property ElementList: list[N2PElement]#
Property that returns the list of elements, that is, the list of elements to be analyzed.
- property HDF5: HDF5_NaxTo#
Property which returns the HDF5 attribute which contains all the necessary info to create it
- property LoadCaseList: list[N2PLoadCase]#
Property that returns the load_cases list, that is, the list of the IDs of the load cases to be analyzed.
- property Materials: dict[tuple[int, str], Material]#
Property that returns a list of the materials created.
- property Model: N2PModelContent#
Property that returns the model attribute, that is, the N2PModelContent to be analyzed.
- property N2PMaterials: dict[tuple[int, str], N2PMaterial]#
Property that returns the list of N2PMaterials.
- property ResultType: str#
Type of result that has been chosen.