upxo.material.Material module
- upxo.material.Material.build()[source]
Build and return the material data base using classes in this module.
When no inputs are provided, defaults prescribed in the class data are used.
- Returns:
Material data dictionary accessible via
matdata.data.- Return type:
ObjectDataDictionary
Examples
>>> from upxo.material.Material import build >>> matdata = build() >>> matdata.data.keys()
- class upxo.material.Material.ProcessingCondition(ht: str = 'heat treatment', pro: str = 'extruded', app: str = 'cooling pipe', appLoc: str = 'W-Ci unterface')[source]
Bases:
object
- class upxo.material.Material.IrradiationCondition(irr: str = 'neutron', irr_temp: float = 400, irr_dpa: float = 1e-05)[source]
Bases:
object
- class upxo.material.Material.Phases(nphases: int = 2, namesPhases: numpy.ndarray = <factory>, phaseFractions: numpy.ndarray = <factory>)[source]
Bases:
object- namesPhases: numpy.ndarray
- phaseFractions: numpy.ndarray
- class upxo.material.Material.TensileStressStrain(strain: numpy.ndarray = <factory>, stress: numpy.ndarray = <factory>)[source]
Bases:
object- strain: numpy.ndarray
- stress: numpy.ndarray
- class upxo.material.Material.PlasticProperty(Sy001: float = 135, Sy002: float = 150, Sy003: float = 155, HV0005: float = 50, HV0010: float = 50, HV0020: float = 50, K: float = 1234)[source]
Bases:
object
- class upxo.material.Material.ExpDataAvailability(tt: bool = True, fatigue_low: bool = True, fatigue_high: bool = True, ebsd: bool = True, tem: bool = True)[source]
Bases:
object
- class upxo.material.Material.GrainEqDiaEbsd(modality: int = 2, skewness: float = -1.02, kurtosis: float = 1.24, dist_grain_size: numpy.ndarray = <factory>, dist_grain_count: numpy.ndarray = <factory>, dist_grain_prob: numpy.ndarray = <factory>)[source]
Bases:
object- dist_grain_size: numpy.ndarray
- dist_grain_count: numpy.ndarray
- dist_grain_prob: numpy.ndarray
- class upxo.material.Material.TexCompVolFracFCC(cube_tc_vf: float = 0.039767141550432504, ndcube_tc_vf: float = 0.07774754402944076, rdcube_tc_vf: float = 0.07360494667272888, goss_tc_vf: float = 0.0013320775279767384, brass_tc_vf: float = 0.09077403054168787, copper_tc_vf: float = 0.05980493498185914, s_tc_vf: float = 0.0646721775528069, t1_tc_vf: float = 0.06383993442176973, t2_tc_vf: float = 0.003137274654984079, p_tc_vf: float = 0.043520784939966105)[source]
Bases:
object- random = <module 'random' from '/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/random.py'>
- class upxo.material.Material.TexFibreVolFracFCC(cube_tf_vf: float = 0.07377860344891798, alpha_tf_vf: float = 0.045944455662020954, beta_tf_vf: float = 0.014270322085910659)[source]
Bases:
object- random = <module 'random' from '/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/random.py'>
- class upxo.material.Material.TexCompWidth(cube_tc_w: float = 9.858813050857059, ndcube_tc_w: float = 2.263717940218367, rdcube_tc_w: float = 1.9145497701069203, goss_tc_w: float = 4.301166336684381, brass_tc_w: float = 2.0574569500461837, copper_tc_w: float = 2.744785846730027, s_tc_w: float = 4.603482350996076, t1_tc_w: float = 9.98559544680032, t2_tc_w: float = 4.51734494467127, p_tc_w: float = 8.461742731161976)[source]
Bases:
object- random = <module 'random' from '/opt/hostedtoolcache/Python/3.13.13/x64/lib/python3.13/random.py'>
- class upxo.material.Material.EBSDParameters(zero_fraction_uncorrected: float = 'value', zero_fraction_corrected: float = 'value', phase_fraction: numpy.ndarray = 'value')[source]
Bases:
object- phase_fraction: numpy.ndarray = 'value'