Ejemplo n.º 1
0
def test_animate_fiberResponse2D_Section2(monkeypatch):
    # repress the show plot attribute
    monkeypatch.setattr(plt, 'show', lambda: None)
    
    main.RunAnalysis()    
       
    op.wipe()
    
    Model = 'test'
    LoadCase = 'Pushover'
    element2 = 2
    section2 = 3
    
    ani2 = opp.animate_fiberResponse2D(Model, LoadCase, element2, section2, InputType = 'stress', rFactor = 4)
    plt.close()
    assert True == True
Ejemplo n.º 2
0
op.wipe()

# =============================================================================
# Animation outputs
# =============================================================================

opp.plot_fiberResponse2D(Model,
                         LoadCase,
                         element2,
                         section2,
                         InputType='stress',
                         tstep=1)
opp.plot_fiberResponse2D(Model,
                         LoadCase,
                         element1,
                         section1,
                         InputType='stress',
                         tstep=1)
ani1 = opp.animate_fiberResponse2D(Model,
                                   LoadCase,
                                   element1,
                                   section1,
                                   InputType='stress',
                                   rFactor=4)
ani2 = opp.animate_fiberResponse2D(Model,
                                   LoadCase,
                                   element2,
                                   section2,
                                   InputType='stress',
                                   rFactor=4)
Ejemplo n.º 3
0
mf.buildModel()

# Show Model
# opp.plot_model('node', 'elements')

# Create Database
Model = 'Cantilever'
LoadCase = 'PushoverLcD'
opp.createODB(Model, LoadCase)

eleNumber = 1
sectionNumber = 1
opp.saveFiberData2D(Model, LoadCase, eleNumber, sectionNumber)

# Run Analysis
af.PushoverLcD(0.05)

out = op.eleResponse(1, 'section', '1', 'fiberData')

op.wipe()

opp.plot_fiberResponse2D(Model, LoadCase, eleNumber, sectionNumber)
opp.plot_fiberResponse2D(Model,
                         LoadCase,
                         eleNumber,
                         sectionNumber,
                         InputType='strain')

#
ani = opp.animate_fiberResponse2D(Model, LoadCase, eleNumber, sectionNumber)