# encoding: utf-8
# Release 17.0
SetScriptVersion(Version="17.0.323")
template1 = GetTemplate(
    TemplateName="Static Structural",
    Solver="ANSYS")
system1 = template1.CreateSystem()
engineeringData1 = system1.GetContainer(ComponentName="Engineering Data")
material1 = engineeringData1.GetMaterial(Name="Structural Steel")
matl1 = material1.Duplicate(TargetContainer=engineeringData1)
material1.DisplayName = "Acero Corten A"
matl1.DisplayName = "Acero estructural"
matlProp1 = material1.GetProperty(Name="Elasticity")
matlProp1.SetVariableProperty(
    VariableName="Young's Modulus",
    Property="Unit",
    Value="MPa")
matlProp1.SetData(
    Variables=["Young's Modulus"],
    Values=[["200000 [MPa]"]])
matlProp1.SetData(
    Variables=["Young's Modulus"],
    Values=[["210000 [MPa]"]])
matlProp2 = material1.GetProperty(Name="Tensile Ultimate Strength")
matlProp2.SetVariableProperty(
    VariableName="Tensile Ultimate Strength",
    Property="Unit",
    Value="MPa")
matlProp2.SetData(
    Variables=["Tensile Ultimate Strength"],
    Values=[["460 [MPa]"]])
matlProp2.SetData(
    Variables=["Tensile Ultimate Strength"],
    Values=[["485 [MPa]"]])
matlProp3 = matl1.GetProperty(Name="Tensile Ultimate Strength")
matlProp3.SetVariableProperty(
    VariableName="Tensile Ultimate Strength",
    Property="Unit",
    Value="MPa")
matlProp3.SetData(
    Variables=["Tensile Ultimate Strength"],
    Values=[["460 [MPa]"]])
matlProp3.SetData(
    Variables=["Tensile Ultimate Strength"],
    Values=[["468 [MPa]"]])
geometry1 = system1.GetContainer(ComponentName="Geometry")
geometry1.SetFile(FilePath="D:/EPSA/TFG/PROYECTO/ESTUDIO_MECANICO_Y_TERMICO/POP_UP_CONTAINER_01_MODELO_CALCULO.3dm")
modelComponent1 = system1.GetComponent(Name="Model")
modelComponent1.Refresh()
model1 = system1.GetContainer(ComponentName="Model")
model1.Edit()
Save(Overwrite=True)
