Ejemplo n.º 1
0
def test_Steel02_non_default_R():
    generated_code = material.Steel02(1,
                                      50,
                                      29000,
                                      0.003,
                                      R0=15,
                                      cR1=0.9,
                                      cR2=0.20).tcl_code()
    expected_code = 'uniaxialMaterial Steel02 1 50 29000 0.003 15 0.9 0.2'
    assert generated_code == expected_code
Ejemplo n.º 2
0
def test_Steel02_iso_hardening():
    generated_code = material.Steel02(1,
                                      50,
                                      29000,
                                      0.003,
                                      a1=0.5,
                                      a2=1.0,
                                      a3=0.5,
                                      a4=1.0).tcl_code()
    expected_code = 'uniaxialMaterial Steel02 1 50 29000 0.003 20 0.925 0.15 0.5 1 0.5 1'
    assert generated_code == expected_code
Ejemplo n.º 3
0
def test_Steel02_initial_stress():
    generated_code = material.Steel02(1, 50, 29000, 0.003,
                                      sigma_i=15).tcl_code()
    expected_code = 'uniaxialMaterial Steel02 1 50 29000 0.003 20 0.925 0.15 0 1 0 1 15'
    assert generated_code == expected_code
Ejemplo n.º 4
0
def test_Steel02_special_format():
    generated_code = material.Steel02(1, 50, 29000,
                                      0.003).tcl_code({int: '4d'})
    expected_code = 'uniaxialMaterial Steel02    1 50 29000 0.003 20 0.925 0.15'
    assert generated_code == expected_code
Ejemplo n.º 5
0
def test_Steel02():
    generated_code = material.Steel02(1, 50, 29000, 0.003).tcl_code()
    expected_code = 'uniaxialMaterial Steel02 1 50 29000 0.003 20 0.925 0.15'
    assert generated_code == expected_code