OpenSeesPyAssistant 1.1
OpenSeesPy for everyone
UVCCalibrated Class Reference

Class that is the children of UVC that retrieve calibrated parameters from UVC_calibrated_parameters.txt. More...

Inheritance diagram for UVCCalibrated:
UVC MaterialModels UVCCalibratedRCCircShape UVCCalibratedRCRectShape UVCCalibratedSteelIShapeFlange UVCCalibratedSteelIShapeWeb

Public Member Functions

def __init__ (self, int ID, str calibration, fy=-1, E=-1)
 Constructor of the class. More...
 
- Public Member Functions inherited from UVC
def __init__ (self, int ID, fy, Ey, QInf, b, DInf, a, np.ndarray cK, np.ndarray gammaK)
 Constructor of the class. More...
 
def CheckApplicability (self)
 Implementation of the homonym abstract method. More...
 
def ReInit (self)
 Implementation of the homonym abstract method. More...
 
def ShowInfo (self)
 Implementation of the homonym abstract method. More...
 
def UpdateStoredData (self)
 Implementation of the homonym abstract method. More...
 
def UVCuniaxial (self)
 Generate the material model Updated Voce-Chaboche (UVC) for uniaxial stress states. More...
 
def CheckApplicability (self)
 Abstract function used to check the applicability of the material model. More...
 

Public Attributes

 calibration
 
- Public Attributes inherited from UVC
 a
 
 b
 
 cK
 
 data
 
 DInf
 
 Ey
 
 fy
 
 gammaK
 
 ID
 
 Initialized
 
 N
 
 QInf
 
 section_name_tag
 

Detailed Description

Class that is the children of UVC that retrieve calibrated parameters from UVC_calibrated_parameters.txt.

The file text can be modified by adding more calibrated parameters.

Parameters
UVCParent class.

Definition at line 2770 of file MaterialModels.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
int  ID,
str  calibration,
  fy = -1,
  E = -1 
)

Constructor of the class.

It retrieve the parameters from UVC_calibrated_parameters.txt and pass them in the parent class.

Parameters
ID(int): Unique material model ID.
calibration(str): Label of the calibration parameter set. The options are:

'S355J2_25mm_plate' \n

'S355J2_50mm_plate' \n

'S355J2_HEB500_flange' \n

'S355J2_HEB500_web' \n

'S460NL_25mm_plate' \n

'S690QL_25mm_plate' \n

'A992Gr50_W14X82_web' \n

'A992Gr50_W14X82_flange' \n

'A500GrB_HSS305X16' \n

'BCP325_22mm_plate' \n

'BCR295_HSS350X22' \n

'HYP400_27mm_plate' \n

Parameters
fy(float, optional): Yield strength. Defaults to -1, e.g. taken equal to the one given in the calibration parameter set.
E(float, optional): Young modulus. Defaults to -1, e.g. taken equal to the one given in the calibration parameter set.
Exceptions
NegativeValuefy needs to be positive if different from -1.
NegativeValueE needs to be positive if different from -1.
NameErrorcalibration needs to be equal to the label of one of the set of calibrated parameters.

Reimplemented from UVC.

Reimplemented in UVCCalibratedRCCircShape, UVCCalibratedRCRectShape, UVCCalibratedSteelIShapeFlange, and UVCCalibratedSteelIShapeWeb.

Definition at line 2777 of file MaterialModels.py.

2777 def __init__(self, ID: int, calibration: str, fy = -1, E = -1):
2778 """
2779 Constructor of the class. It retrieve the parameters from UVC_calibrated_parameters.txt and pass them in the parent class.
2780
2781 @param ID (int): Unique material model ID.
2782 @param calibration (str): Label of the calibration parameter set. The options are: \n
2783 # 'S355J2_25mm_plate' \n
2784 # 'S355J2_50mm_plate' \n
2785 # 'S355J2_HEB500_flange' \n
2786 # 'S355J2_HEB500_web' \n
2787 # 'S460NL_25mm_plate' \n
2788 # 'S690QL_25mm_plate' \n
2789 # 'A992Gr50_W14X82_web' \n
2790 # 'A992Gr50_W14X82_flange' \n
2791 # 'A500GrB_HSS305X16' \n
2792 # 'BCP325_22mm_plate' \n
2793 # 'BCR295_HSS350X22' \n
2794 # 'HYP400_27mm_plate' \n
2795 @param fy (float, optional): Yield strength. Defaults to -1, e.g. taken equal to the one given in the calibration parameter set.
2796 @param E (float, optional): Young modulus. Defaults to -1, e.g. taken equal to the one given in the calibration parameter set.
2797
2798 @exception NegativeValue: fy needs to be positive if different from -1.
2799 @exception NegativeValue: E needs to be positive if different from -1.
2800 @exception NameError: calibration needs to be equal to the label of one of the set of calibrated parameters.
2801 """
2802 if fy != -1 and fy < 0: raise NegativeValue()
2803 if E != -1 and E < 0: raise NegativeValue()
2804
2805 self.calibration = calibration
2806
2807 # Structure of the data to be stored
2808 names = ["Material", "Ey", "fy", "QInf", "b","DInf", "a", "C1", "gamma1", "C2", "gamma2"]
2809 # Get the data
2810 __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
2811 UVC_data = np.genfromtxt(os.path.join(__location__, 'UVC_calibrated_parameters.txt'), dtype=None, skip_header=1, names = names, encoding='ascii', delimiter='\t')
2812 # Define the index (with the location of the correct set of parameters)
2813 index = UVC_data["Material"] == calibration
2814 fy = UVC_data["fy"][index][0]*MPa_unit if fy == -1 else fy
2815 E = UVC_data["Ey"][index][0]*GPa_unit if E == -1 else E
2816 # Check
2817 if not index.any(): raise NameError("No calibrated parameters with that name. Note that there are no spaces in the label.")
2818
2819 # Assign arguments value
2820 super().__init__(ID, fy, E, UVC_data["QInf"][index][0]*MPa_unit, UVC_data["b"][index][0],
2821 UVC_data["DInf"][index][0]*MPa_unit, UVC_data["a"][index][0],
2822 np.array([UVC_data["C1"][index][0], UVC_data["C2"][index][0]])*MPa_unit,
2823 np.array([UVC_data["gamma1"][index][0], UVC_data["gamma2"][index][0]]))
2824
2825

Member Data Documentation

◆ calibration

calibration

Definition at line 2805 of file MaterialModels.py.


The documentation for this class was generated from the following file: