Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Sub CmdComputeNWC()
Dim targetcell As String, i As Integer, j As Integer, h As Integer, o As Integer, p As Integer, q As Integer
Dim shearcoeff As Double, theta As Double, Avf As Double, fy As Double
Dim Vn As Double, maxVn As Double, shearstress As Double
Dim effshearstress As Double
Dim fc As Double, fc1 As Double, fc2 As Double, Acr As Double
Dim c As Double, K1 As Double, K2 As Double, Pc As Double
Dim k As Double, normalstress As Double, rhofy As Double
Dim shearratio As Double, vexp As Double, effshearratio As Double
Application.ScreenUpdating = False
For i = 1 To 634
If Vn = 0# Then
Else
Worksheets("NWC").Cells(i + 5, 51).Value = Vn / 1000#
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("NWC").Cells(i + 5, 54).Value = shearratio
End If
'The effective shearcoefficient is currently only applicable to monolithic and roughened interface
'but this study utilized it for every interface conditions
If effshearstress = 0# Then
Else
Worksheets("NWC").Cells(i + 5, 58).Value = effshearstress
End If
If Vn = 0# Then
Else
Worksheets("NWC").Cells(i + 5, 56).Value = Vn / 1000#
End If
If Vn = 0# Then
280
shearstress = 0#
Else
shearstress = WorksheetFunction.Min(Vn, maxVn) / Acr
Worksheets("NWC").Cells(i + 5, 59).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("NWC").Cells(i + 5, 60).Value = shearratio
End If
If effshearstress = 0 Then
Else
effshearratio = vexp / effshearstress
Worksheets("NWC").Cells(i + 5, 61).Value = effshearratio
End If
If shearstress = 0# Then
Else
Worksheets("NWC").Cells(i + 5, 68).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("NWC").Cells(i + 5, 69).Value = shearratio
End If
shearstress = 0#
If shearstress = 0# Then
Else
Worksheets("NWC").Cells(i + 5, 74).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("NWC").Cells(i + 5, 75).Value = shearratio
End If
'''''''Conservative Check'''''''
'ACI
Else
End If
Else
If Worksheets("NWC").Cells(i + 5, 39).Value = 0# Then
Worksheets("NWC").Cells(i + 5, 86) = Worksheets("NWC").Cells(i + 5, 45).Value
Else
End If
End If
'PCI
Else
End If
Else
'AASHTO
Else
Else
End If
'CSA
Else
End If
'''''''Separating Interfaces'''''''
Next i
Application.ScreenUpdating = True
End Sub
Sub CmdComputeSLW()
Dim targetcell As String, i As Integer, j As Integer, h As Integer, o As Integer, p As Integer, q As Integer
Dim shearcoeff As Double, theta As Double, Avf As Double, fy As Double
Dim Vn As Double, maxVn As Double, shearstress As Double
Dim effshearstress As Double
Dim fc As Double, fc1 As Double, fc2 As Double, Acr As Double
289
Dim c As Double, K1 As Double, K2 As Double, Pc As Double
Dim k As Double, normalstress As Double, rhofy As Double
Dim shearratio As Double, vexp As Double, effshearratio As Double
Application.ScreenUpdating = False
For i = 1 To 103
If Vn = 0# Then
Else
Worksheets("SLW").Cells(i + 5, 51).Value = Vn / 1000#
End If
If Vn = 0# Then
shearstress = 0#
Else
shearstress = WorksheetFunction.Min(Vn, maxVn) / Acr
Worksheets("SLW").Cells(i + 5, 53).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("SLW").Cells(i + 5, 54).Value = shearratio
End If
291
'''''''''''''PCI Design Handbook, 7th Edition'''''''''''''
'The effective shear coefficient is currently only applicable to monolithic and roughened interface
'but this study utilized it for every interface conditions
If effshearstress = 0# Then
Else
Worksheets("SLW").Cells(i + 5, 58).Value = effshearstress
End If
If Vn = 0# Then
Else
Worksheets("SLW").Cells(i + 5, 56).Value = Vn / 1000#
End If
If Vn = 0# Then
shearstress = 0#
Else
shearstress = WorksheetFunction.Min(Vn, maxVn) / Acr
Worksheets("SLW").Cells(i + 5, 59).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("SLW").Cells(i + 5, 60).Value = shearratio
End If
If effshearstress = 0 Then
292
Else
effshearratio = vexp / effshearstress
Worksheets("SLW").Cells(i + 5, 61).Value = effshearratio
End If
If shearstress = 0# Then
Else
Worksheets("SLW").Cells(i + 5, 68).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("SLW").Cells(i + 5, 69).Value = shearratio
End If
shearstress = 0#
If shearstress = 0# Then
Else
Worksheets("SLW").Cells(i + 5, 74).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
295
Worksheets("SLW").Cells(i + 5, 75).Value = shearratio
End If
'''''''Conservative Check'''''''
'ACI
Else
End If
Else
If Worksheets("SLW").Cells(i + 5, 39).Value = 0# Then
Worksheets("SLW").Cells(i + 5, 86) = Worksheets("SLW").Cells(i + 5, 45).Value
Else
End If
End If
'PCI
Else
End If
Else
End If
'AASHTO
Else
End If
Else
End If
'CSA
Else
End If
'''''''Separating Interfaces'''''''
Next i
Application.ScreenUpdating = True
300
End Sub
Sub CmdComputeALW()
Dim targetcell As String, i As Integer, j As Integer, h As Integer, o As Integer, p As Integer, q As Integer
Dim shearcoeff As Double, theta As Double, Avf As Double, fy As Double
Dim Vn As Double, maxVn As Double, shearstress As Double
Dim effshearstress As Double
Dim fc As Double, fc1 As Double, fc2 As Double, Acr As Double
Dim c As Double, K1 As Double, K2 As Double, Pc As Double
Dim k As Double, normalstress As Double, rhofy As Double
Dim shearratio As Double, vexp As Double, effshearratio As Double
Application.ScreenUpdating = False
For i = 1 To 52
If Vn = 0# Then
Else
Worksheets("ALW").Cells(i + 5, 51).Value = Vn / 1000#
End If
If Vn = 0# Then
shearstress = 0#
Else
302
shearstress = WorksheetFunction.Min(Vn, maxVn) / Acr
Worksheets("ALW").Cells(i + 5, 53).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("ALW").Cells(i + 5, 54).Value = shearratio
End If
'The effective shearcoefficient is currently only applicable to monolithic and roughened interface
'but this study utilized it for every interface conditions
If effshearstress = 0# Then
Else
Worksheets("ALW").Cells(i + 5, 58).Value = effshearstress
End If
If Vn = 0# Then
Else
Worksheets("ALW").Cells(i + 5, 56).Value = Vn / 1000#
End If
If Vn = 0# Then
shearstress = 0#
Else
303
shearstress = WorksheetFunction.Min(Vn, maxVn) / Acr
Worksheets("ALW").Cells(i + 5, 59).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("ALW").Cells(i + 5, 60).Value = shearratio
End If
If effshearstress = 0 Then
Else
effshearratio = vexp / effshearstress
Worksheets("ALW").Cells(i + 5, 61).Value = effshearratio
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("ALW").Cells(i + 5, 69).Value = shearratio
304
End If
shearstress = 0#
If shearstress = 0# Then
306
Else
Worksheets("ALW").Cells(i + 5, 74).Value = shearstress
End If
If shearstress = 0 Then
Else
shearratio = vexp / shearstress
Worksheets("ALW").Cells(i + 5, 75).Value = shearratio
End If
'''''''Conservative Check'''''''
'ACI
Else
End If
Else
End If
307
'PCI
Else
End If
Else
End If
'AASHTO
Else
End If
Else
End If
'CSA
Else
End If
'''''''Separating Interfaces'''''''
Next i
Application.ScreenUpdating = True
End Sub