# -*- coding: mbcs -*-
#
# Abaqus/CAE Release 6.13-1 replay file
# Internal Version: 2013_05_16-06.58.56 126354
# Run by Ehsan Fathi on Wed Apr 29 22:33:06 2020
#

# from driverUtils import executeOnCaeGraphicsStartup
# executeOnCaeGraphicsStartup()
#: Executing "onCaeGraphicsStartup()" in the site directory ...
from abaqus import *
from abaqusConstants import *
session.Viewport(name='Viewport: 1', origin=(0.0, 0.0), width=200.366027832031, 
    height=124.934898376465)
session.viewports['Viewport: 1'].makeCurrent()
session.viewports['Viewport: 1'].maximize()
from caeModules import *
from driverUtils import executeOnCaeStartup
executeOnCaeStartup()
openMdb('Exp-2.cae')
#: The model database "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae" has been opened.
session.viewports['Viewport: 1'].setValues(displayedObject=None)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
Mdb()
#: A new model database has been created.
#: The model "Model-1" has been created.
session.viewports['Viewport: 1'].setValues(displayedObject=None)
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', 
    sheetSize=1000.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
s.rectangle(point1=(0.0, 0.0), point2=(600.0, 5.0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=738.992, 
    farPlane=1146.63, width=1568.98, height=691.292, cameraPosition=(-38.8744, 
    4.51812, 942.809), cameraTarget=(-38.8744, 4.51812, 0))
p = mdb.models['Model-1'].Part(name='Part-1', dimensionality=THREE_D, 
    type=DEFORMABLE_BODY)
p = mdb.models['Model-1'].parts['Part-1']
p.BaseSolidExtrude(sketch=s, depth=40.0)
s.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
mdb.models['Model-1'].Material(name='Material-1')
mdb.models['Model-1'].materials['Material-1'].Elastic(table=((190000.0, 0.3), 
    ))
mdb.models['Model-1'].HomogeneousSolidSection(name='Section-1', 
    material='Material-1', thickness=None)
p = mdb.models['Model-1'].parts['Part-1']
c = p.cells
cells = c.getSequenceFromMask(mask=('[#1 ]', ), )
region = regionToolset.Region(cells=cells)
p = mdb.models['Model-1'].parts['Part-1']
p.SectionAssignment(region=region, sectionName='Section-1', offset=0.0, 
    offsetType=MIDDLE_SURFACE, offsetField='', 
    thicknessAssignment=FROM_SECTION)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1045.28, 
    farPlane=1575.86, width=607.948, height=267.862, viewOffsetX=3.54169, 
    viewOffsetY=10.8598)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1040.75, 
    farPlane=1580.38, width=605.315, height=266.702, viewOffsetX=17.5904, 
    viewOffsetY=-3.85311)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    optimizationTasks=OFF, geometricRestrictions=OFF, stopConditions=OFF)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1132.6, 
    farPlane=1484.41, width=658.736, height=290.239, cameraPosition=(648.84, 
    -641.66, 1105.31), cameraUpVector=(-0.741278, 0.646823, 0.179241), 
    cameraTarget=(325.085, -29.045, -7.10291), viewOffsetX=19.1428, 
    viewOffsetY=-4.19316)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
s1 = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', 
    sheetSize=1000.0)
g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints
s1.setPrimaryObject(option=STANDALONE)
s1.CircleByCenterPerimeter(center=(0.0, 0.0), point1=(30.0, 0.0))
s1.RadialDimension(curve=g[2], textPoint=(64.2289123535156, -7.48472595214844), 
    radius=20.0)
p = mdb.models['Model-1'].Part(name='Part-2', dimensionality=THREE_D, 
    type=DISCRETE_RIGID_SURFACE)
p = mdb.models['Model-1'].parts['Part-2']
p.BaseShellExtrude(sketch=s1, depth=40.0)
s1.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-2']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=91.8844, 
    farPlane=200.799, width=150.91, height=66.491, viewOffsetX=0.0493019, 
    viewOffsetY=-0.261817)
p = mdb.models['Model-1'].parts['Part-2']
p.features['Shell extrude-1'].setValues(depth=60.0)
p = mdb.models['Model-1'].parts['Part-2']
p.regenerate()
p = mdb.models['Model-1'].parts['Part-2']
p.regenerate()
session.viewports['Viewport: 1'].view.setValues(nearPlane=81.6875, 
    farPlane=190.798, width=134.163, height=59.1122, cameraPosition=(34.5768, 
    25.5685, 159.415), cameraUpVector=(-0.218642, 0.865648, -0.450388), 
    cameraTarget=(3.00887, 0.730812, 18.6937), viewOffsetX=0.0438306, 
    viewOffsetY=-0.232762)
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
session.viewports['Viewport: 1'].view.setValues(nearPlane=65.9468, 
    farPlane=210.558, cameraPosition=(79.7925, 26.8386, 139.807), 
    cameraUpVector=(0.162902, 0.718248, -0.676449), cameraTarget=(5.3183, 
    2.0739, 28.441))
session.viewports['Viewport: 1'].view.setValues(nearPlane=65.9468, 
    farPlane=210.558, cameraPosition=(80.0471, 18.9334, 141.395), 
    cameraTarget=(5.57291, -5.8313, 30.0286))
session.viewports['Viewport: 1'].view.setValues(nearPlane=72.1372, 
    farPlane=211.446, cameraPosition=(114.784, -26.5502, 109.202), 
    cameraUpVector=(0.186686, 0.748253, -0.636605), cameraTarget=(6.07787, 
    -6.49248, 29.5606))
session.viewports['Viewport: 1'].view.setValues(nearPlane=70.2216, 
    farPlane=208.018, cameraPosition=(57.1613, -7.4481, 156.779), 
    cameraUpVector=(0.452029, 0.706129, -0.545025), cameraTarget=(3.82304, 
    -5.745, 31.4223))
session.viewports['Viewport: 1'].view.setValues(nearPlane=68.9935, 
    farPlane=206.552, cameraPosition=(30.2801, 11.116, 164.091), 
    cameraUpVector=(0.622091, 0.566919, -0.540006), cameraTarget=(3.26711, 
    -5.36108, 31.5735))
p = mdb.models['Model-1'].parts['Part-2']
e = p.edges
p.DatumPointByMidPoint(point1=p.InterestingPoint(edge=e[1], rule=CENTER), 
    point2=p.InterestingPoint(edge=e[0], rule=CENTER))
p = mdb.models['Model-1'].parts['Part-2']
v1, e1, d1, n = p.vertices, p.edges, p.datums, p.nodes
p.ReferencePoint(point=d1[2])
session.viewports['Viewport: 1'].view.setValues(nearPlane=69.8571, 
    farPlane=211.444, cameraPosition=(100.543, -23.424, 125.688), 
    cameraUpVector=(0.273046, 0.734044, -0.621792), cameraTarget=(4.04734, 
    -5.74463, 31.1471))
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a = mdb.models['Model-1'].rootAssembly
a.DatumCsysByDefault(CARTESIAN)
p = mdb.models['Model-1'].parts['Part-1']
a.Instance(name='Part-1-1', part=p, dependent=OFF)
p = mdb.models['Model-1'].parts['Part-2']
a.Instance(name='Part-2-1', part=p, dependent=OFF)
p1 = a.instances['Part-2-1']
p1.translate(vector=(624.0, 0.0, 0.0))
session.viewports['Viewport: 1'].view.fitView()
p1 = mdb.models['Model-1'].parts['Part-2']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
p = mdb.models['Model-1'].parts['Part-2']
s = p.features['Shell extrude-1'].sketch
mdb.models['Model-1'].ConstrainedSketch(name='__edit__', objectToCopy=s)
s2 = mdb.models['Model-1'].sketches['__edit__']
g, v, d, c = s2.geometry, s2.vertices, s2.dimensions, s2.constraints
s2.setPrimaryObject(option=SUPERIMPOSE)
p.projectReferencesOntoSketch(sketch=s2, 
    upToFeature=p.features['Shell extrude-1'], filter=COPLANAR_EDGES)
d[0].setValues(value=10, )
s2.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-2']
p.features['Shell extrude-1'].setValues(sketch=s2)
del mdb.models['Model-1'].sketches['__edit__']
p = mdb.models['Model-1'].parts['Part-2']
p.regenerate()
session.viewports['Viewport: 1'].view.setValues(nearPlane=106.866, 
    farPlane=174.434, width=31.1936, height=13.7439, cameraPosition=(89.3397, 
    -14.1725, 138.853), cameraTarget=(-7.15594, 3.5069, 44.3121))
mdb.models['Model-1'].parts['Part-2'].setValues(geometryRefinement=FINE)
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
mdb.models['Model-1'].parts['Part-1'].setValues(geometryRefinement=FINE)
a = mdb.models['Model-1'].rootAssembly
a.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1190.97, 
    farPlane=1591.8, width=641.676, height=282.722, cameraPosition=(-26.9662, 
    801.892, 1114.09), cameraUpVector=(0.264249, 0.57735, -0.772554), 
    cameraTarget=(347.597, -16.4833, 19.0196))
a = mdb.models['Model-1'].rootAssembly
a.translate(instanceList=('Part-1-1', ), vector=(0.0, 0.0, -20.0))
#: The instance Part-1-1 was translated by 0., 0., -20. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(nearPlane=1190.06, 
    farPlane=1608.15, width=641.187, height=282.507, viewOffsetX=-40.5211, 
    viewOffsetY=-2.87686)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1025.66, 
    farPlane=1803.49, width=552.611, height=243.48, cameraPosition=(-930.491, 
    362.184, 581.276), cameraUpVector=(0.430547, 0.802317, -0.413421), 
    cameraTarget=(334.325, 0.391823, 53.486), viewOffsetX=-34.9234, 
    viewOffsetY=-2.47944)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1035.56, 
    farPlane=1793.6, width=603.33, height=265.827, viewOffsetX=-27.2375, 
    viewOffsetY=-8.60938)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1180.67, 
    farPlane=1644.75, width=687.876, height=303.078, cameraPosition=(-146.584, 
    581.665, 1221.61), cameraUpVector=(0.242798, 0.718489, -0.651784), 
    cameraTarget=(351.197, -7.68736, 32.456), viewOffsetX=-31.0543, 
    viewOffsetY=-9.81582)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1174.41, 
    farPlane=1651.01, width=684.228, height=301.471, viewOffsetX=-31.6455, 
    viewOffsetY=15.9995)
a = mdb.models['Model-1'].rootAssembly
e1 = a.instances['Part-1-1'].edges
a.DatumPointByOffset(point=a.instances['Part-1-1'].InterestingPoint(
    edge=e1[10], rule=MIDDLE), vector=(0.0, -10.0, -20.0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1078.85, 
    farPlane=1739.23, width=628.554, height=276.941, cameraPosition=(-568.249, 
    38.7787, 1116.15), cameraUpVector=(0.172125, 0.928415, -0.32927), 
    cameraTarget=(349.739, -5.22355, 36.9984), viewOffsetX=-29.0706, 
    viewOffsetY=14.6977)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1089.81, 
    farPlane=1728.28, width=637.536, height=280.898, viewOffsetX=-8.359, 
    viewOffsetY=43.564)
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-2-1', ), vector=(-324.0, -10.0, -30.0))
#: The instance Part-2-1 was translated by -324., -10., -30. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(width=535.874, height=236.106, 
    viewOffsetX=0.349677, viewOffsetY=-1.94905)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1009.92, 
    farPlane=1655.13, width=497.812, height=219.336, cameraPosition=(1374.43, 
    738.619, -255.652), cameraUpVector=(-0.794839, 0.57735, 0.186807), 
    cameraTarget=(326.067, -22.8818, -9.26135), viewOffsetX=0.32484, 
    viewOffsetY=-1.81061)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1045.28, 
    farPlane=1575.86, width=607.948, height=267.862, viewOffsetX=39.9158, 
    viewOffsetY=-8.91889)
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', 
    sheetSize=1000.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
s.ConstructionLine(point1=(0.0, -500.0), point2=(0.0, 500.0))
s.FixedConstraint(entity=g[2])
s.ArcByCenterEnds(center=(0.0, 0.0), point1=(0.0, 30.0), point2=(0.0, -25.0), 
    direction=CLOCKWISE)
s.CoincidentConstraint(entity1=v[2], entity2=g[2], addUndoState=False)
s.CoincidentConstraint(entity1=v[0], entity2=g[2], addUndoState=False)
s.CoincidentConstraint(entity1=v[1], entity2=g[2], addUndoState=False)
s.RadialDimension(curve=g[3], textPoint=(57.5845642089844, -22.4541778564453), 
    radius=10.0)
session.viewports['Viewport: 1'].view.setValues(nearPlane=906.766, 
    farPlane=978.852, width=245.162, height=108.018, cameraPosition=(5.15756, 
    5.88137, 942.809), cameraTarget=(5.15756, 5.88137, 0))
p = mdb.models['Model-1'].Part(name='Part-3', dimensionality=THREE_D, 
    type=DISCRETE_RIGID_SURFACE)
p = mdb.models['Model-1'].parts['Part-3']
p.BaseShellRevolve(sketch=s, angle=360.0, flipRevolveDirection=OFF)
s.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-3']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=50.8689, 
    farPlane=104.153, width=56.2676, height=24.7915, cameraPosition=(35.0686, 
    39.2148, 56.93), cameraUpVector=(-0.503632, 0.6298, -0.591361))
p = mdb.models['Model-1'].parts['Part-3']
v2, e2, d2, n1 = p.vertices, p.edges, p.datums, p.nodes
p.ReferencePoint(point=p.InterestingPoint(edge=e2[0], rule=CENTER))
session.viewports['Viewport: 1'].view.setValues(nearPlane=51.7037, 
    farPlane=103.189, width=57.191, height=25.1983, cameraPosition=(57.4113, 
    43.8081, 27.9903), cameraUpVector=(-0.697775, 0.577735, -0.423476), 
    cameraTarget=(0.358927, -0.685356, 0.325107))
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a1 = mdb.models['Model-1'].rootAssembly
p = mdb.models['Model-1'].parts['Part-3']
a1.Instance(name='Part-3-1', part=p, dependent=OFF)
p1 = a1.instances['Part-3-1']
p1.translate(vector=(612.0, 0.0, 0.0))
session.viewports['Viewport: 1'].view.fitView()
session.viewports['Viewport: 1'].view.setValues(nearPlane=1117.18, 
    farPlane=1620.73, width=303.479, height=133.713, viewOffsetX=82.7506, 
    viewOffsetY=-51.7713)
a = mdb.models['Model-1'].rootAssembly
e11 = a.instances['Part-1-1'].edges
a.DatumPointByOffset(point=a.instances['Part-1-1'].InterestingPoint(
    edge=e11[5], rule=MIDDLE), vector=(-2.0, 10.0, 0.0))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-3-1', ), vector=(-14.0, 15.0, 0.0))
#: The instance Part-3-1 was translated by -14., 15., 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1150.71, 
    farPlane=1302.63, width=313.356, height=138.065, viewOffsetX=207.757, 
    viewOffsetY=1.82307)
session.viewports['Viewport: 1'].view.setProjection(projection=PARALLEL)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1191.69, 
    farPlane=1261.65, width=33.8477, height=14.9133, cameraPosition=(587.973, 
    8.15412, 1226.67), cameraTarget=(587.973, 8.15412, 0))
p = mdb.models['Model-1'].parts['Part-3']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
mdb.models['Model-1'].parts['Part-3'].setValues(geometryRefinement=FINE)
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1173.11, 
    farPlane=1280.23, width=181.394, height=79.9223, cameraPosition=(618.861, 
    8.99932, 1226.67), cameraTarget=(618.861, 8.99932, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(511.98, 
    9.97597, 1226.67), cameraTarget=(511.98, 9.97597, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1149.94, 
    farPlane=1303.4, width=359.741, height=158.502, cameraPosition=(542.22, 
    23.7688, 1226.67), cameraTarget=(542.22, 23.7688, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(397.788, 
    15.3757, 1226.67), cameraTarget=(397.788, 15.3757, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1103.99, 
    farPlane=1349.35, width=713.439, height=314.341, cameraPosition=(490.382, 
    45.6261, 1226.67), cameraTarget=(490.382, 45.6261, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(237.098, 
    24.4993, 1226.67), cameraTarget=(237.098, 24.4993, 0))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-1'].StaticStep(name='Step-1', previous='Initial', 
    initialInc=0.01)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
mdb.models['Model-1'].fieldOutputRequests['F-Output-1'].setValues(variables=(
    'S', 'U', 'RF', 'CF'))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON, 
    adaptiveMeshConstraints=OFF)
mdb.models['Model-1'].ContactProperty('IntProp-1')
mdb.models['Model-1'].interactionProperties['IntProp-1'].TangentialBehavior(
    formulation=FRICTIONLESS)
#: The interaction property "IntProp-1" has been created.
session.viewports['Viewport: 1'].view.setValues(nearPlane=958.464, 
    farPlane=1494.88, width=406.64, height=179.165, cameraPosition=(1054.86, 
    685.011, 691.282), cameraTarget=(346.644, -23.2076, -16.9368))
session.viewports['Viewport: 1'].view.setValues(farPlane=1491.29, 
    cameraPosition=(1122.53, 652.833, 655.795), cameraTarget=(414.308, -55.385, 
    -52.4231))
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-3-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#1 ]', ), )
region1=regionToolset.Region(side1Faces=side1Faces1)
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#2 ]', ), )
region2=regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-1'].SurfaceToSurfaceContactStd(name='Int-1', 
    createStepName='Step-1', master=region1, slave=region2, sliding=FINITE, 
    thickness=ON, interactionProperty='IntProp-1', adjustMethod=NONE, 
    initialClearance=OMIT, datumAxis=None, clearanceRegion=None)
#: The interaction "Int-1" has been created.
session.viewports['Viewport: 1'].view.setValues(nearPlane=900.17, 
    farPlane=1553.17, width=908.966, height=400.49, cameraPosition=(1255.61, 
    628.074, 547.473), cameraTarget=(547.389, -80.1444, -160.745))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1100.58, 
    738.628, 591.952), cameraTarget=(392.357, 30.4095, -116.266))
session.viewports['Viewport: 1'].view.setValues(nearPlane=894.03, 
    farPlane=1534.02, cameraPosition=(1038.27, 713.228, 671.947), 
    cameraUpVector=(-0.834671, 0.4872, -0.256829), cameraTarget=(392.357, 
    30.4095, -116.266))
session.viewports['Viewport: 1'].view.setValues(nearPlane=875.519, 
    farPlane=1403.14, cameraPosition=(809.381, -369.634, 959.447), 
    cameraUpVector=(-0.631082, 0.760384, 0.153465), cameraTarget=(394.742, 
    41.6905, -119.261))
session.viewports['Viewport: 1'].view.setValues(nearPlane=987.594, 
    farPlane=1291.06, width=92.104, height=40.581, cameraPosition=(695.292, 
    -375.347, 1001.12), cameraTarget=(280.653, 35.9774, -77.5855))
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-2-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#1 ]', ), )
region1=regionToolset.Region(side1Faces=side1Faces1)
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#8 ]', ), )
region2=regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-1'].SurfaceToSurfaceContactStd(name='Int-2', 
    createStepName='Step-1', master=region1, slave=region2, sliding=FINITE, 
    thickness=ON, interactionProperty='IntProp-1', adjustMethod=NONE, 
    initialClearance=OMIT, datumAxis=None, clearanceRegion=None)
#: The interaction "Int-2" has been created.
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF, adaptiveMeshConstraints=ON)
mdb.models['Model-1'].steps['Step-1'].setValues(maxNumInc=10, 
    timeIncrementationMethod=FIXED, initialInc=0.1, noStop=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON, adaptiveMeshConstraints=OFF)
a = mdb.models['Model-1'].rootAssembly
r1 = a.instances['Part-3-1'].referencePoints
refPoints1=(r1[2], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-1'].ConcentratedForce(name='Load-1', createStepName='Step-1', 
    region=region, cf2=-10.0, distributionType=UNIFORM, field='', 
    localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].view.setValues(nearPlane=924.791, 
    farPlane=1528.55, cameraPosition=(-355.856, 710.718, 753.482), 
    cameraUpVector=(0.537925, 0.57735, -0.61425), cameraTarget=(304, 2.5, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1003.98, 
    farPlane=1449.35, width=171.001, height=75.3432, cameraPosition=(-523.182, 
    633.507, 679.52), cameraTarget=(136.674, -74.7114, -73.9617))
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-1-1'].faces
faces1 = f1.getSequenceFromMask(mask=('[#1 ]', ), )
region = regionToolset.Region(faces=faces1)
mdb.models['Model-1'].EncastreBC(name='BC-1', createStepName='Initial', 
    region=region, localCsys=None)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
a = mdb.models['Model-1'].rootAssembly
r1 = a.instances['Part-2-1'].referencePoints
refPoints1=(r1[3], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-1'].EncastreBC(name='BC-2', createStepName='Initial', 
    region=region, localCsys=None)
a = mdb.models['Model-1'].rootAssembly
r1 = a.instances['Part-3-1'].referencePoints
refPoints1=(r1[2], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-1'].DisplacementBC(name='BC-3', createStepName='Initial', 
    region=region, u1=SET, u2=UNSET, u3=SET, ur1=SET, ur2=SET, ur3=SET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=926.057, 
    farPlane=1527.28, width=624.737, height=276.286, cameraPosition=(1017.91, 
    706.736, 706.511), cameraTarget=(309.69, -1.48283, -1.70697))
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.seedPartInstance(regions=partInstances, size=0.2, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.seedPartInstance(regions=partInstances, size=1.0, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.seedPartInstance(regions=partInstances, size=2.5, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.generateMesh(regions=partInstances)
session.viewports['Viewport: 1'].view.setValues(nearPlane=979.479, 
    farPlane=1473.86, width=262.716, height=116.185, cameraPosition=(1120.12, 
    654.667, 656.369), cameraTarget=(411.9, -53.5513, -51.8489))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1144.47, 
    637.858, 648.831), cameraTarget=(436.247, -70.3603, -59.3872))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1003.84, 
    farPlane=1449.5, width=97.6187, height=43.1713, cameraPosition=(1183.12, 
    624.576, 623.459), cameraTarget=(474.9, -83.6422, -84.7588))
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-3-1'].faces
pickedRegions = f1.getSequenceFromMask(mask=('[#1 ]', ), )
a.deleteMesh(regions=pickedRegions)
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-3-1'].faces
pickedRegions = f1.getSequenceFromMask(mask=('[#1 ]', ), )
a.setMeshControls(regions=pickedRegions, technique=SWEEP)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-3-1'], )
a.generateMesh(regions=partInstances)
session.viewports['Viewport: 1'].view.setValues(nearPlane=987.733, 
    farPlane=1465.61, width=234.04, height=103.503, cameraPosition=(1209.1, 
    635.194, 586.864), cameraTarget=(500.877, -73.0238, -121.354))
session.viewports['Viewport: 1'].view.setValues(nearPlane=985.785, 
    farPlane=1467.56, cameraPosition=(1114.91, 649.136, 667.116), 
    cameraTarget=(406.684, -59.082, -41.1025))
session.viewports['Viewport: 1'].view.setValues(nearPlane=957.977, 
    farPlane=1495.37, width=462.256, height=204.43, cameraPosition=(1117.58, 
    652.334, 661.244), cameraTarget=(409.358, -55.8839, -46.9741))
session.viewports['Viewport: 1'].view.setValues(nearPlane=954.13, 
    cameraPosition=(1052.44, 730.183, 648.542), cameraTarget=(344.211, 21.9654, 
    -59.6762))
session.viewports['Viewport: 1'].view.setValues(nearPlane=930.882, 
    farPlane=1522.47, width=670.063, height=296.331, cameraPosition=(1085.62, 
    741.415, 604.134), cameraTarget=(377.386, 33.1978, -104.084))
session.viewports['Viewport: 1'].view.setValues(nearPlane=925.306, 
    cameraPosition=(1061.29, 724.661, 645.218), cameraTarget=(353.057, 16.4436, 
    -63))
session.viewports['Viewport: 1'].view.setValues(nearPlane=919.375, 
    farPlane=1533.98, width=758.333, height=335.368, cameraPosition=(1101.06, 
    724.238, 605.872), cameraTarget=(392.825, 16.0203, -102.345))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1061.94, 
    716.431, 652.794), cameraTarget=(353.711, 8.21304, -55.4235))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.Job(name='Job-1', model='Model-1', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=4, numDomains=4, 
    numGPUs=0)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
#: Error in job Job-1: Fixed time increment is too large
#: Job Job-1: Abaqus/Standard aborted due to errors.
#: Error in job Job-1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-1'].steps['Step-1'].setValues(maxNumInc=100, initialInc=0.01)
session.viewports['Viewport: 1'].view.setValues(nearPlane=941.052, 
    farPlane=1512.3, width=525.103, height=231.36, cameraPosition=(1045.04, 
    710.747, 675.383), cameraTarget=(336.806, 2.52935, -32.8346))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=OFF)
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-2-1', ), vector=(0.0, -0.1, 0.0))
#: The instance Part-2-1 was translated by 0., -100.E-03, 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1153.49, 
    farPlane=1299.9, width=332.591, height=146.54, cameraPosition=(310.312, 
    2.04205, 1226.69), cameraTarget=(310.312, 2.04205, 0))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=913.867, 
    farPlane=1539.52, width=803.411, height=353.983, cameraPosition=(1010.2, 
    710.875, 710.066), cameraTarget=(301.971, 2.64426, 1.83525))
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
#: Error in job Job-1: Fixed time increment is too large
#: Job Job-1: Abaqus/Standard aborted due to errors.
#: Error in job Job-1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.deleteMesh(regions=partInstances)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.seedPartInstance(regions=partInstances, size=5.0, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.generateMesh(regions=partInstances)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.deleteMesh(regions=partInstances)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.seedPartInstance(regions=partInstances, size=5.0, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.generateMesh(regions=partInstances)
elemType1 = mesh.ElemType(elemCode=C3D20R, elemLibrary=STANDARD)
elemType2 = mesh.ElemType(elemCode=C3D15, elemLibrary=STANDARD)
elemType3 = mesh.ElemType(elemCode=C3D10, elemLibrary=STANDARD)
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['Part-1-1'].cells
cells1 = c1.getSequenceFromMask(mask=('[#1 ]', ), )
pickedRegions =(cells1, )
a.setElementType(regions=pickedRegions, elemTypes=(elemType1, elemType2, 
    elemType3))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF, 
    adaptiveMeshConstraints=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.models['Model-1'].fieldOutputRequests['F-Output-1'].setValues(variables=(
    'U', 'RF', 'CF'))
mdb.models['Model-1'].steps['Step-1'].setValues(maxNumInc=1000, 
    timeIncrementationMethod=AUTOMATIC)
mdb.saveAs(
    pathName='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Exp-2.cae')
#: The model database has been saved to "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae".
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=OFF)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
session.viewports['Viewport: 1'].view.setValues(nearPlane=979.453, 
    farPlane=1473.93, width=263.778, height=116.221, cameraPosition=(1144.78, 
    643.69, 642.671), cameraTarget=(436.551, -64.5407, -65.5599))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=OFF)
#: Error in job Job-1: Time increment required is less than the minimum specified
#: Job Job-1: Abaqus/Standard aborted due to errors.
#: Error in job Job-1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].view.setValues(nearPlane=961.01, 
    farPlane=1492.37, width=432.729, height=194.088, cameraPosition=(1180.31, 
    657.74, 593.092), cameraTarget=(472.079, -50.4903, -115.139))
session.viewports['Viewport: 1'].view.setValues(nearPlane=957.357, 
    farPlane=1496.03, cameraPosition=(1132.15, 665.486, 633.51), cameraTarget=(
    423.915, -42.7442, -74.7204))
session.viewports['Viewport: 1'].view.setValues(nearPlane=949.34, 
    farPlane=1504.05, width=520.994, height=233.676, cameraPosition=(1159.48, 
    658.014, 613.657), cameraTarget=(451.24, -50.2163, -94.5737))
session.viewports['Viewport: 1'].view.setValues(nearPlane=944.942, 
    farPlane=1508.45, cameraPosition=(1081.04, 692.21, 657.901), cameraTarget=(
    372.801, -16.0205, -50.3297))
session.viewports['Viewport: 1'].view.setValues(nearPlane=944.944, 
    farPlane=1508.45, width=489.734, height=219.656, cameraPosition=(1153.92, 
    661.915, 615.314), cameraTarget=(445.682, -46.3156, -92.9166))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=940.266, 
    farPlane=1513.13, width=589.627, height=264.459, cameraPosition=(1181.02, 
    664.858, 585.275), cameraTarget=(472.779, -43.3728, -122.956))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=OFF, 
    constraints=OFF, connectors=OFF, engineeringFeatures=OFF, 
    adaptiveMeshConstraints=ON)
mdb.models['Model-1'].steps['Step-1'].setValues(minInc=1e-10, nlgeom=ON)
mdb.models['Model-1'].steps['Step-1'].setValues(initialInc=0.001)
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1130.78, 
    farPlane=1322.6, width=440.413, height=197.534, cameraPosition=(386.286, 
    7.00609, 1226.69), cameraTarget=(386.286, 7.00609, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(574.618, 
    19.0754, 1226.69), cameraTarget=(574.618, 19.0754, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1161.19, 
    farPlane=1292.19, width=237.213, height=106.395, cameraPosition=(572.689, 
    19.1544, 1226.69), cameraTarget=(572.689, 19.1544, 0))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1181.76, 
    farPlane=1271.62, width=99.7536, height=44.7415, cameraPosition=(587.357, 
    19.4272, 1226.69), cameraTarget=(587.357, 19.4272, 0))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-3-1', ), vector=(0.0, 0.1, 0.0))
#: The instance Part-3-1 was translated by 0., 100.E-03, 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(nearPlane=1191.79, 
    farPlane=1261.59, width=32.7514, height=14.6897, cameraPosition=(593.385, 
    9.83938, 1226.69), cameraTarget=(593.385, 9.83938, 0))
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
#: Job Job-1: Analysis Input File Processor completed successfully.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=925.973, 
    farPlane=1527.45, width=616.376, height=276.457, cameraPosition=(1042.8, 
    695.13, 693.299), cameraTarget=(334.557, -13.113, -14.9442))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1107.34, 
    679.039, 644.853), cameraTarget=(399.093, -29.2034, -63.3896))
session.viewports['Viewport: 1'].view.setValues(nearPlane=971.517, 
    farPlane=1481.91, width=312.07, height=139.97, cameraPosition=(1154.23, 
    645.551, 631.452), cameraTarget=(445.981, -62.6911, -76.7905))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     3
#: Number of Meshes:             3
#: Number of Element Sets:       3
#: Number of Node Sets:          3
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
#: Error in job Job-1: Time increment required is less than the minimum specified
#: Job Job-1: Abaqus/Standard aborted due to errors.
#: Error in job Job-1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].view.setValues(nearPlane=929.292, 
    farPlane=1521.18, width=601.909, height=269.968, cameraPosition=(1043.21, 
    693.673, 691.822), cameraTarget=(335.822, -13.7173, -15.5681))
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a = mdb.models['Model-1'].rootAssembly
a.features['Part-3-1'].suppress()
session.viewports['Viewport: 1'].view.setValues(nearPlane=975.051, 
    farPlane=1488.83, width=425.219, height=190.719, cameraPosition=(1180.01, 
    652.345, 598.875), cameraTarget=(471.764, -55.8975, -109.367))
session.viewports['Viewport: 1'].view.setValues(nearPlane=971.461, 
    farPlane=1492.42, cameraPosition=(1100.07, 674.546, 656.615), 
    cameraTarget=(391.825, -33.6966, -51.6279))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
mdb.models['Model-1'].interactions['Int-1'].suppress()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1002.81, 
    farPlane=1461.07, width=190.228, height=85.3212, cameraPosition=(1156.71, 
    639.404, 635.121), cameraTarget=(448.461, -68.8382, -73.1222))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1004.52, 
    farPlane=1459.36, cameraPosition=(1183.08, 626.351, 621.795), 
    cameraTarget=(474.84, -81.8914, -86.4479))
v11 = a.instances['Part-1-1'].vertices
v31 = a.instances['Part-1-1'].vertices
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#4 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-1'].SurfaceTraction(name='Load-2', createStepName='Step-1', 
    region=region, magnitude=0.05, directionVector=(v11[4], v31[6]), 
    distributionType=UNIFORM, field='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(nearPlane=984.574, 
    farPlane=1479.3, width=353.18, height=158.408, cameraPosition=(1189.57, 
    636.081, 605.578), cameraTarget=(481.327, -72.1614, -102.665))
session.viewports['Viewport: 1'].view.setValues(nearPlane=981.593, 
    farPlane=1482.28, cameraPosition=(1132.96, 654.784, 643.48), cameraTarget=(
    424.722, -53.4586, -64.7625))
session.viewports['Viewport: 1'].view.setValues(nearPlane=949.768, 
    farPlane=1514.1, width=544.63, height=244.277, cameraPosition=(1116.16, 
    673.419, 641.648), cameraTarget=(407.918, -34.8232, -66.5944))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
mdb.models['Model-1'].boundaryConditions['BC-3'].suppress()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
mdb.models['Model-1'].loads['Load-1'].resume()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
mdb.models['Model-1'].loads['Load-1'].suppress()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
session.viewports['Viewport: 1'].view.setValues(nearPlane=889.026, 
    farPlane=1574.84, width=1075.71, height=482.477, cameraPosition=(1203.61, 
    689.711, 537.904), cameraTarget=(495.371, -18.5321, -170.338))
session.viewports['Viewport: 1'].view.setValues(nearPlane=879.946, 
    farPlane=1583.92, cameraPosition=(1136.37, 688.908, 605.95), cameraTarget=(
    428.128, -19.3346, -102.292))
#: Job Job-1: Analysis Input File Processor completed successfully.
session.viewports['Viewport: 1'].view.setValues(nearPlane=920.217, 
    farPlane=1543.66, width=742.1, height=332.847, cameraPosition=(1123.35, 
    680.604, 627.271), cameraTarget=(415.11, -27.6382, -80.9706))
session.viewports['Viewport: 1'].view.setValues(nearPlane=926.88, 
    farPlane=1536.99, cameraPosition=(1048.65, 723.777, 658.805), 
    cameraTarget=(340.404, 15.5347, -49.4373))
session.viewports['Viewport: 1'].view.setValues(nearPlane=959.26, 
    farPlane=1504.62, width=481.235, height=215.844, cameraPosition=(1108.02, 
    685.332, 637.877), cameraTarget=(399.777, -22.9105, -70.3656))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1146.64, 
    651.233, 633.356), cameraTarget=(438.396, -57.0092, -74.886))
session.viewports['Viewport: 1'].view.setValues(nearPlane=949.437, 
    farPlane=1514.44, width=618.898, height=277.588, cameraPosition=(1226.41, 
    629.435, 575.387), cameraTarget=(518.163, -78.8075, -132.855))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1137.09, 
    671.441, 622.698), cameraTarget=(428.845, -36.801, -85.5435))
session.viewports['Viewport: 1'].view.setValues(nearPlane=912.645, 
    farPlane=1551.23, width=897.123, height=402.378, cameraPosition=(1195.18, 
    659.301, 576.746), cameraTarget=(486.937, -48.9408, -131.496))
session.viewports['Viewport: 1'].view.setValues(nearPlane=905.072, 
    farPlane=1558.8, cameraPosition=(1085.35, 700.118, 645.76), cameraTarget=(
    377.106, -8.12398, -62.4811))
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          2
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
#: Job Job-1: Abaqus/Standard completed successfully.
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
#: Job Job-1 completed successfully. 
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(nearPlane=1050.76, 
    farPlane=1363.28, cameraPosition=(418.659, 160.157, 1189.41), 
    cameraUpVector=(-0.0722444, 0.886993, -0.456097), cameraTarget=(300.003, 
    -7.51095, -0.00241089))
session.viewports['Viewport: 1'].view.setValues(nearPlane=957.328, 
    farPlane=1456.7, cameraPosition=(802.698, 550.077, 945.136), 
    cameraUpVector=(-0.423674, 0.678197, -0.600457), cameraTarget=(300.002, 
    -7.51186, -0.00182343))
session.viewports['Viewport: 1'].view.setValues(nearPlane=935.153, 
    farPlane=1478.88, cameraPosition=(896.732, 503.325, 916.433), 
    cameraUpVector=(-0.372813, 0.713072, -0.59375), cameraTarget=(300.002, 
    -7.5117, -0.00172234))
session.viewports['Viewport: 1'].view.setValues(nearPlane=900.94, 
    farPlane=1513.09, cameraPosition=(1052.78, 659.548, 667.273), 
    cameraUpVector=(-0.470926, 0.587013, -0.658517), cameraTarget=(300.001, 
    -7.51228, -0.000782013))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=FEATURE)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=17 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=17 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=17 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=17 )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 272, (
    '[#0:9 #7030100 #7f3f1f0f #ffffffff:6 #feffffff #e0f0f8fc #80c0 ]', )), (
    'PART-2-1', 158, ('[#ffffffff:4 #3fffffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1061.44, 
    farPlane=1338.27, width=365.526, height=163.946, cameraPosition=(1018.96, 
    676.887, 687.324), cameraTarget=(322.069, -20.0045, -9.56754))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(COMPONENT, 'RF2'), )
leaf = dgo.Leaf(leafType=DEFAULT_MODEL)
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=899.913, 
    farPlane=1514.19, width=827.152, height=370.994, cameraPosition=(1007.66, 
    686.193, 689.326), cameraTarget=(310.767, -10.699, -7.56691))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1000.96, 
    719.508, 662.708), cameraTarget=(304.069, 22.6155, -34.1843))
mdb.Model(name='Model-2', modelType=STANDARD_EXPLICIT)
#: The model "Model-2" has been created.
session.viewports['Viewport: 1'].setValues(displayedObject=None)
s1 = mdb.models['Model-2'].ConstrainedSketch(name='__profile__', 
    sheetSize=1000.0)
g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints
s1.setPrimaryObject(option=STANDALONE)
s1.Line(point1=(0.0, 0.0), point2=(300.0, 0.0))
s1.HorizontalConstraint(entity=g[2], addUndoState=False)
s1.Line(point1=(300.0, 0.0), point2=(600.0, 0.0))
s1.HorizontalConstraint(entity=g[3], addUndoState=False)
s1.ParallelConstraint(entity1=g[2], entity2=g[3], addUndoState=False)
session.viewports['Viewport: 1'].view.setValues(nearPlane=738.992, 
    farPlane=1146.63, width=1541.28, height=691.292, cameraPosition=(-36.3548, 
    58.0405, 942.809), cameraTarget=(-36.3548, 58.0405, 0))
p = mdb.models['Model-2'].Part(name='Part-1', dimensionality=THREE_D, 
    type=DEFORMABLE_BODY)
p = mdb.models['Model-2'].parts['Part-1']
p.BaseWire(sketch=s1)
s1.unsetPrimaryObject()
p = mdb.models['Model-2'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
del mdb.models['Model-2'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1036.11, 
    farPlane=1569.61, width=703.875, height=315.702, viewOffsetX=43.6569, 
    viewOffsetY=-11.6401)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
mdb.models['Model-2'].Material(name='Material-1')
mdb.models['Model-2'].materials['Material-1'].Elastic(table=((190000.0, 0.3), 
    ))
mdb.models['Model-2'].RectangularProfile(name='Profile-1', a=40.0, b=5.0)
mdb.models['Model-2'].BeamSection(name='Section-1', 
    integration=DURING_ANALYSIS, poissonRatio=0.0, profile='Profile-1', 
    material='Material-1', temperatureVar=LINEAR, consistentMassMatrix=False)
p = mdb.models['Model-2'].parts['Part-1']
e = p.edges
edges = e.getSequenceFromMask(mask=('[#3 ]', ), )
region = regionToolset.Region(edges=edges)
p = mdb.models['Model-2'].parts['Part-1']
p.SectionAssignment(region=region, sectionName='Section-1', offset=0.0, 
    offsetType=MIDDLE_SURFACE, offsetField='', 
    thicknessAssignment=FROM_SECTION)
session.viewports['Viewport: 1'].partDisplay.setValues(renderBeamProfiles=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1024.87, 
    farPlane=1580.85, width=787.959, height=353.415, viewOffsetX=74.6384, 
    viewOffsetY=-18.4691)
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
p = mdb.models['Model-2'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1070.61, 
    farPlane=1535.11, width=445.163, height=199.664, viewOffsetX=233.896, 
    viewOffsetY=-106.59)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1067.24, 
    farPlane=1538.48, width=443.76, height=199.035, viewOffsetX=145.835, 
    viewOffsetY=-48.2868)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1050.94, 
    farPlane=1554.78, width=595.423, height=267.059, viewOffsetX=188.475, 
    viewOffsetY=-47.7665)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1046.29, 
    farPlane=1559.43, width=592.789, height=265.878, viewOffsetX=59.2133, 
    viewOffsetY=5.51204)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1046.26, 
    farPlane=1559.46, width=592.775, height=265.871, viewOffsetX=83.8874, 
    viewOffsetY=-9.10831)
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a1 = mdb.models['Model-2'].rootAssembly
a1.DatumCsysByDefault(CARTESIAN)
p = mdb.models['Model-2'].parts['Part-1']
a1.Instance(name='Part-1-1', part=p, dependent=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    renderBeamProfiles=ON)
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
p = mdb.models['Model-2'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
p = mdb.models['Model-2'].parts['Part-1']
e = p.edges
edges = e.getSequenceFromMask(mask=('[#3 ]', ), )
region=regionToolset.Region(edges=edges)
p = mdb.models['Model-2'].parts['Part-1']
p.assignBeamSectionOrientation(region=region, method=N1_COSINES, n1=(0.0, 0.0, 
    -1.0))
#: Beam orientations have been assigned to the selected regions.
session.viewports['Viewport: 1'].view.setValues(nearPlane=1054.29, 
    farPlane=1551.43, width=470.184, height=210.887, viewOffsetX=223.73, 
    viewOffsetY=-102.493)
a1 = mdb.models['Model-2'].rootAssembly
a1.regenerate()
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(width=670.213, height=300.604, 
    cameraPosition=(310.481, -1.92852, 1200), cameraTarget=(310.481, -1.92852, 
    0))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-2'].StaticStep(name='Step-1', previous='Initial', 
    timeIncrementationMethod=FIXED, initialInc=0.01, noStop=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].view.setValues(nearPlane=923.538, 
    farPlane=1481.87, width=703.056, height=315.334, cameraPosition=(998.69, 
    698.54, 685.916), cameraTarget=(304.308, 4.15778, -8.46583))
session.viewports['Viewport: 1'].view.setValues(nearPlane=917.604, 
    farPlane=1487.81, cameraPosition=(1028.23, 691.199, 663.719), 
    cameraTarget=(333.847, -3.18351, -30.6632))
mdb.models['Model-2'].fieldOutputRequests['F-Output-1'].setValues(variables=(
    'U', 'RF', 'CF'))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON, adaptiveMeshConstraints=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
a = mdb.models['Model-2'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#1 ]', ), )
region = regionToolset.Region(vertices=verts1)
mdb.models['Model-2'].EncastreBC(name='BC-1', createStepName='Initial', 
    region=region, localCsys=None)
a = mdb.models['Model-2'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#2 ]', ), )
region = regionToolset.Region(vertices=verts1)
mdb.models['Model-2'].DisplacementBC(name='BC-2', createStepName='Initial', 
    region=region, u1=UNSET, u2=SET, u3=UNSET, ur1=UNSET, ur2=UNSET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
a = mdb.models['Model-2'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#4 ]', ), )
region = regionToolset.Region(vertices=verts1)
mdb.models['Model-2'].ConcentratedForce(name='Load-1', createStepName='Step-1', 
    region=region, cf2=-10.0, distributionType=UNIFORM, field='', 
    localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-2'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.seedPartInstance(regions=partInstances, size=10.0, deviationFactor=0.1, 
    minSizeFactor=0.1)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    renderBeamProfiles=OFF)
session.viewports['Viewport: 1'].view.setValues(session.views['Right'])
session.viewports['Viewport: 1'].view.setValues(session.views['Right'])
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
a = mdb.models['Model-2'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.seedPartInstance(regions=partInstances, size=2.0, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-2'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.generateMesh(regions=partInstances)
elemType1 = mesh.ElemType(elemCode=B31, elemLibrary=STANDARD)
a = mdb.models['Model-2'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#3 ]', ), )
pickedRegions =(edges1, )
a.setElementType(regions=pickedRegions, elemTypes=(elemType1, ))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.Job(name='Job-2', model='Model-2', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=1, numGPUs=0)
mdb.jobs['Job-2'].submit(consistencyChecking=OFF)
#: The job input file "Job-2.inp" has been submitted for analysis.
#: Job Job-2: Analysis Input File Processor completed successfully.
#: Job Job-2: Abaqus/Standard completed successfully.
#: Job Job-2 completed successfully. 
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       1
#: Number of Node Sets:          1
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1395.47, 
    farPlane=2761.45, width=1091.64, height=489.62, cameraPosition=(1480.04, 
    1188.67, 1231.29), cameraTarget=(280.04, -11.3316, 31.292))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].odbDisplay.display.setValues(
    plotState=CONTOURS_ON_DEF)
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1310.65, 
    farPlane=2102.6, width=712.992, height=319.791, cameraPosition=(307.184, 
    -32.3027, 1706.63), cameraTarget=(307.184, -32.3027, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(315.279, 
    -6.90182, 1706.63), cameraTarget=(315.279, -6.90182, 0))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 47, (
    '[#0:4 #ffffff00 #7fffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1624.33, 
    farPlane=1788.93, width=234.092, height=104.995, cameraPosition=(305.042, 
    -0.508924, 1706.63), cameraTarget=(305.042, -0.508924, 0))
leaf = dgo.Leaf(leafType=DEFAULT_MODEL)
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1321.62, 
    farPlane=2091.63, width=556.668, height=249.677, cameraPosition=(315.185, 
    -26.2455, 1706.63), cameraTarget=(315.185, -26.2455, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(287.8, 1.21383, 
    1706.63), cameraTarget=(287.8, 1.21383, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1291.42, 
    farPlane=2121.84, width=858.423, height=385.02, cameraPosition=(299.933, 
    3.28119, 1706.63), cameraTarget=(299.933, 3.28119, 0))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].view.setValues(nearPlane=935.497, 
    farPlane=1464.5, width=690.398, height=309.657, cameraPosition=(972.869, 
    702.286, 703.307), cameraTarget=(280.048, 9.46537, 10.4862))
session.viewports['Viewport: 1'].view.setValues(nearPlane=929.669, 
    farPlane=1470.33, cameraPosition=(1016.02, 676.024, 686.417), 
    cameraTarget=(323.2, -16.7964, -6.40372))
mdb.Model(name='Model-3', objectToCopy=mdb.models['Model-2'])
#: The model "Model-3" has been created.
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a = mdb.models['Model-3'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#4 ]', ), )
region = regionToolset.Region(vertices=verts1)
mdb.models['Model-3'].boundaryConditions['BC-2'].setValues(region=region)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
a = mdb.models['Model-3'].rootAssembly
v1 = a.instances['Part-1-1'].vertices
verts1 = v1.getSequenceFromMask(mask=('[#2 ]', ), )
region = regionToolset.Region(vertices=verts1)
mdb.models['Model-3'].loads['Load-1'].setValues(region=region, 
    distributionType=UNIFORM, field='')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.Job(name='Job-3', model='Model-3', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=1, numGPUs=0)
mdb.jobs['Job-3'].submit(consistencyChecking=OFF)
#: The job input file "Job-3.inp" has been submitted for analysis.
#: Job Job-3: Analysis Input File Processor completed successfully.
#: Job Job-3: Abaqus/Standard completed successfully.
#: Job Job-3 completed successfully. 
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             1
#: Number of Element Sets:       1
#: Number of Node Sets:          1
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1290.51, 
    farPlane=2120.53, width=858.423, height=385.02, cameraPosition=(241.328, 
    -32.1909, 1705.52), cameraTarget=(241.328, -32.1909, 0))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(width=913.216, height=409.595, 
    cameraPosition=(242.287, -34.5184, 1705.52), cameraTarget=(242.287, 
    -34.5184, 0))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 42, (
    '[#0:8 #fffffffc #fff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(466.919, 
    -21.1711, 1705.52), cameraTarget=(466.919, -21.1711, 0))
leaf = dgo.Leaf(leafType=DEFAULT_MODEL)
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1275.55, 
    farPlane=2135.49, width=971.506, height=435.74, cameraPosition=(375.442, 
    -22.357, 1705.52), cameraTarget=(375.442, -22.357, 0))
mdb.save()
#: The model database has been saved to "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae".
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
p = mdb.models['Model-3'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
openMdb(
    pathName='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-1/Exp-1.cae')
#: The model database "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-1\Exp-1.cae" has been opened.
session.viewports['Viewport: 1'].setValues(displayedObject=None)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=792.184, 
    farPlane=1285.28, cameraPosition=(777.627, 620.055, 671.833), 
    cameraUpVector=(-0.537448, 0.578369, -0.613709), cameraTarget=(257.5, 22.5, 
    -7.62939e-006))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=791.479, 
    farPlane=1285.98, width=598.063, height=269.262, cameraPosition=(789.658, 
    614.939, 667.069), cameraTarget=(269.531, 17.3835, -4.76392))
Mdb()
#: A new model database has been created.
#: The model "Model-1" has been created.
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
openMdb(
    pathName='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Exp-2.cae')
#: The model database "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae" has been opened.
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-2-1'], )
a.deleteMesh(regions=partInstances)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-2-1'], )
a.seedPartInstance(regions=partInstances, size=2.5, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-2-1'], )
a.generateMesh(regions=partInstances)
session.viewports['Viewport: 1'].view.setValues(nearPlane=957.662, 
    farPlane=1458.39, width=330.873, height=148.967, cameraPosition=(1014.16, 
    690.071, 685.586), cameraTarget=(316.702, -7.3836, -11.8686))
p1 = mdb.models['Model-1'].parts['Part-2']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
session.viewports['Viewport: 1'].partDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
p = mdb.models['Model-1'].parts['Part-2']
p.features['Shell extrude-1'].setValues(depth=40.0)
p = mdb.models['Model-1'].parts['Part-2']
p.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
#: Warning: Failed to attach mesh to geometry for instance 'Part-2-1'.
session.viewports['Viewport: 1'].view.setValues(nearPlane=971.857, 
    farPlane=1449.97, width=274.818, height=123.73, cameraPosition=(1011.49, 
    688.371, 689.955), cameraTarget=(314.033, -9.0833, -7.49926))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=976.662, 
    farPlane=1445.16, width=243.752, height=109.327, cameraPosition=(1011.05, 
    688.407, 690.356), cameraTarget=(313.596, -9.04737, -7.09835))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-2-1', ), vector=(0.0, 0.1, 10.0))
#: The instance Part-2-1 was translated by 0., 100.E-03, 10. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(nearPlane=936.491, 
    farPlane=1479.5, width=579.639, height=259.98, cameraPosition=(1003.1, 
    711.855, 674.859), cameraTarget=(305.645, 14.4008, -22.5953))
session.viewports['Viewport: 1'].view.setValues(nearPlane=931.598, 
    farPlane=1484.4, cameraPosition=(1088.47, 650.465, 650.88), cameraTarget=(
    391.014, -46.9896, -46.5748))
session.viewports['Viewport: 1'].view.setValues(nearPlane=931.599, 
    farPlane=1484.4, cameraPosition=(1088.47, 650.465, 650.88), 
    cameraUpVector=(-0.582627, 0.577326, -0.572049))
a = mdb.models['Model-1'].rootAssembly
a.features['Part-3-1'].resume()
session.viewports['Viewport: 1'].view.setValues(nearPlane=947.21, 
    farPlane=1458.34, width=353.33, height=158.475, cameraPosition=(1132.35, 
    627.182, 630.282), cameraTarget=(434.895, -70.2732, -67.1724))
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1178.94, 
    farPlane=1267.92, width=185.204, height=83.0676, cameraPosition=(512.684, 
    8.42673, 1223.43), cameraTarget=(512.684, 8.42673, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(565.774, 
    15.7015, 1223.43), cameraTarget=(565.774, 15.7015, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1198.22, 
    farPlane=1248.64, width=34.8419, height=15.6273, cameraPosition=(592.89, 
    7.01712, 1223.43), cameraTarget=(592.89, 7.01712, 0))
session.viewports['Viewport: 1'].partDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].partDisplay.meshOptions.setValues(
    meshTechnique=OFF)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
p = mdb.models['Model-1'].parts['Part-2']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
p = mdb.models['Model-1'].parts['Part-3']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
mdb.models['Model-1'].parts['Part-3'].setValues(geometryRefinement=FINE)
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1196.7, 
    farPlane=1250.16, width=44.9922, height=20.1799, cameraPosition=(601.609, 
    12.1363, 1223.43), cameraTarget=(601.609, 12.1363, 0))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-3-1', ), vector=(0.0, 10.0, 0.0))
#: The instance Part-3-1 was translated by 0., 10., 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(nearPlane=1193.67, 
    farPlane=1253.19, width=73.8099, height=33.1052, cameraPosition=(605.704, 
    13.9788, 1223.43), cameraTarget=(605.704, 13.9788, 0))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-3-1', ), vector=(0.0, -10.1, 0.0))
#: The instance Part-3-1 was translated by 0., -10.1, 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(nearPlane=1190.93, 
    farPlane=1255.93, width=94.5372, height=42.4018, cameraPosition=(609.126, 
    14.2912, 1223.43), cameraTarget=(609.126, 14.2912, 0))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
p1 = mdb.models['Model-1'].parts['Part-3']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
p = mdb.models['Model-1'].parts['Part-3']
s = p.features['Shell revolve-1'].sketch
mdb.models['Model-1'].ConstrainedSketch(name='__edit__', objectToCopy=s)
s2 = mdb.models['Model-1'].sketches['__edit__']
g, v, d, c = s2.geometry, s2.vertices, s2.dimensions, s2.constraints
s2.setPrimaryObject(option=SUPERIMPOSE)
p.projectReferencesOntoSketch(sketch=s2, 
    upToFeature=p.features['Shell revolve-1'], filter=COPLANAR_EDGES)
d[0].setValues(value=20, )
s2.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-3']
p.features['Shell revolve-1'].setValues(sketch=s2)
del mdb.models['Model-1'].sketches['__edit__']
p = mdb.models['Model-1'].parts['Part-3']
p.regenerate()
a1 = mdb.models['Model-1'].rootAssembly
a1.regenerate()
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=918.817, 
    farPlane=1516.45, width=600.119, height=269.165, cameraPosition=(1049.85, 
    690.802, 684.846), cameraTarget=(343.519, -15.5314, -21.4874))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1060.05, 
    676.031, 689.421), cameraTarget=(353.715, -30.3023, -16.9123))
session.viewports['Viewport: 1'].view.setValues(nearPlane=924.207, 
    farPlane=1511.06, cameraPosition=(1060.05, 676.031, 689.421), 
    cameraUpVector=(-0.356533, 0.540937, -0.761755), cameraTarget=(353.715, 
    -30.3023, -16.9123))
session.viewports['Viewport: 1'].view.setValues(nearPlane=938.51, 
    farPlane=1496.76, width=468.542, height=210.15, cameraPosition=(1078.3, 
    668.57, 678.629), cameraTarget=(371.969, -37.7637, -27.7046))
a = mdb.models['Model-1'].rootAssembly
a.features['Datum pt-2'].setValues(yOffset=20.0)
a = mdb.models['Model-1'].rootAssembly
a.regenerate()
session.viewports['Viewport: 1'].view.setValues(nearPlane=957.169, 
    farPlane=1478.1, width=343.865, height=154.23, cameraPosition=(1109.15, 
    654.557, 661.797), cameraTarget=(402.812, -51.776, -44.536))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-3-1', ), vector=(0.0, 10.0, 0.0))
#: The instance Part-3-1 was translated by 0., 10., 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1208.94, 
    farPlane=1287.81, width=129.868, height=58.2483, cameraPosition=(538.332, 
    6.9402, 1248.37), cameraTarget=(538.332, 6.9402, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(562.413, 
    15.6003, 1248.37), cameraTarget=(562.413, 15.6003, 0))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
mdb.models['Model-1'].interactions['Int-1'].resume()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
mdb.models['Model-1'].interactions['Int-1'].setValues(initialClearance=OMIT, 
    adjustMethod=NONE, sliding=SMALL, enforcement=SURFACE_TO_SURFACE, 
    thickness=ON, supplementaryContact=SELECTIVE, bondingSet=None)
mdb.models['Model-1'].interactions['Int-2'].setValues(initialClearance=OMIT, 
    adjustMethod=NONE, sliding=SMALL, enforcement=SURFACE_TO_SURFACE, 
    thickness=ON, supplementaryContact=SELECTIVE, bondingSet=None)
mdb.models['Model-1'].boundaryConditions['BC-3'].resume()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
del mdb.models['Model-1'].loads['Load-2']
mdb.models['Model-1'].loads['Load-1'].resume()
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF, adaptiveMeshConstraints=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, 
    adaptiveMeshConstraints=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-3-1'], )
a.seedPartInstance(regions=partInstances, size=2.5, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], 
    a.instances['Part-3-1'], )
a.generateMesh(regions=partInstances)
session.viewports['Viewport: 1'].view.setValues(nearPlane=955.586, 
    farPlane=1541.16, width=534.659, height=240.716, cameraPosition=(1075.02, 
    706.967, 701.759), cameraTarget=(354.27, -13.7807, -18.9891))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1118.46, 
    farPlane=1378.28, width=831.125, height=372.776, cameraPosition=(289.433, 
    21.2391, 1248.37), cameraTarget=(289.433, 21.2391, 0))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
#: Job Job-1: Analysis Input File Processor completed successfully.
#: Error in job Job-1: Too many attempts made for this increment
#: Job Job-1: Abaqus/Standard aborted due to errors.
#: Error in job Job-1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-1 aborted due to errors.
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     3
#: Number of Meshes:             3
#: Number of Element Sets:       3
#: Number of Node Sets:          3
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
session.viewports['Viewport: 1'].view.setValues(nearPlane=937.071, 
    farPlane=1553.54, cameraPosition=(997.656, 804.489, 670.287), 
    cameraUpVector=(-0.58494, 0.514896, -0.62668), cameraTarget=(308.98, 
    12.5099, 2.14577e-006))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1003.64, 
    farPlane=1486.97, width=263.02, height=117.97, cameraPosition=(1122.44, 
    735.529, 623.554), cameraTarget=(433.768, -56.4496, -46.7326))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=EXTERIOR)
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=FEATURE)
session.viewports['Viewport: 1'].view.setValues(nearPlane=930.309, 
    farPlane=1560.31, width=852.235, height=382.244, cameraPosition=(1161.89, 
    756.113, 558.709), cameraTarget=(473.211, -35.8663, -111.578))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1099.79, 
    778.907, 595.577), cameraTarget=(411.114, -13.0721, -74.71))
session.viewports['Viewport: 1'].view.setValues(nearPlane=965.194, 
    farPlane=1472.05, cameraPosition=(847.289, -285.21, 1059.52), 
    cameraUpVector=(-0.36711, 0.930176, -0.00162387), cameraTarget=(411.114, 
    -13.072, -74.7101))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    UNDEFORMED, ))
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=ALL)
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=FREE)
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=FEATURE)
session.viewports['Viewport: 1'].odbDisplay.commonOptions.setValues(
    visibleEdges=FREE)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=943.007, 
    farPlane=1547.61, width=707.852, height=317.486, cameraPosition=(1021.05, 
    727.201, 730.173), cameraTarget=(302.073, 8.22243, 11.1944))
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
p1 = mdb.models['Model-1'].parts['Part-3']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
mdb.models['Model-1'].materials['Material-1'].elastic.setValues(table=((
    300000.0, 0.3), ))
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
mdb.jobs['Job-1'].kill()
#: Error in job Job-1: Process terminated by external request (SIGTERM or SIGINT received).
#: Error in job Job-1: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-1 aborted due to errors.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
del mdb.models['Model-1'].loads['Load-1']
del mdb.models['Model-1'].boundaryConditions['BC-3']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, interactions=ON, constraints=ON, 
    engineeringFeatures=ON)
del mdb.models['Model-1'].interactions['Int-1']
a = mdb.models['Model-1'].rootAssembly
del a.features['Datum pt-2']
a = mdb.models['Model-1'].rootAssembly
del a.features['Part-3-1']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1029.88, 
    farPlane=1500.35, width=289.07, height=129.653, cameraPosition=(1151.05, 
    668.889, 663.805), cameraTarget=(430.302, -51.859, -56.9429))
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['Part-1-1'].cells
pickedRegions = c1.getSequenceFromMask(mask=('[#1 ]', ), )
a.deleteMesh(regions=pickedRegions)
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-1-1'].faces
e1 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f1[1], sketchUpEdge=e1[5], 
    sketchPlaneSide=SIDE1, origin=(300.0, 5.0, 0.0))
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.66, gridSpacing=30.06, transform=t)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-1'].rootAssembly
a.projectReferencesOntoSketch(sketch=s, filter=COPLANAR_EDGES)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1148.64, 
    farPlane=1281.69, width=360.987, height=161.91, cameraPosition=(371.219, 
    1207.66, 0.8344), cameraTarget=(371.219, 5, 0.8344))
s.Line(point1=(7.515, 20.0), point2=(7.515, -20.0))
s.VerticalConstraint(entity=g[6], addUndoState=False)
s.PerpendicularConstraint(entity1=g[5], entity2=g[6], addUndoState=False)
s.CoincidentConstraint(entity1=v[6], entity2=g[5], addUndoState=False)
s.CoincidentConstraint(entity1=v[7], entity2=g[2], addUndoState=False)
s.Line(point1=(-7.515, 20.0), point2=(-7.515, -20.0))
s.VerticalConstraint(entity=g[7], addUndoState=False)
s.PerpendicularConstraint(entity1=g[5], entity2=g[7], addUndoState=False)
s.CoincidentConstraint(entity1=v[8], entity2=g[5], addUndoState=False)
s.CoincidentConstraint(entity1=v[9], entity2=g[2], addUndoState=False)
s.DistanceDimension(entity1=g[7], entity2=g[6], textPoint=(-1.01242065429688, 
    -33.9747734069824), value=10.0)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1133.47, 
    farPlane=1296.86, width=523.268, height=234.696, cameraPosition=(419.658, 
    1207.66, -18.0663), cameraTarget=(419.658, 5, -18.0663))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(172.628, 
    1207.66, -13.2864), cameraTarget=(172.628, 5, -13.2864))
s.DistanceDimension(entity1=g[7], entity2=g[3], textPoint=(-236.530563354492, 
    -54.3500289916992), value=295.0)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1081.9, 
    farPlane=1348.42, width=806.918, height=361.919, cameraPosition=(74.5222, 
    1207.66, -43.9249), cameraTarget=(74.5222, 5, -43.9249))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(411.947, 
    1207.66, -16.6521), cameraTarget=(411.947, 5, -16.6521))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1167.48, 
    farPlane=1262.84, width=235.05, height=105.424, cameraPosition=(545.333, 
    1207.66, -9.95694), cameraTarget=(545.333, 5, -9.95694))
s.Line(point1=(283.470703125, 20.0), point2=(283.470703125, -20.0))
s.VerticalConstraint(entity=g[8], addUndoState=False)
s.PerpendicularConstraint(entity1=g[5], entity2=g[8], addUndoState=False)
s.CoincidentConstraint(entity1=v[10], entity2=g[5], addUndoState=False)
s.CoincidentConstraint(entity1=v[11], entity2=g[2], addUndoState=False)
s.DistanceDimension(entity1=g[8], entity2=g[4], textPoint=(291.253784179688, 
    -27.0811538696289), value=10.0)
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#2 ]', ), )
e11 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e11[5], faces=pickedFaces, sketch=s)
s.unsetPrimaryObject()
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=1021.06, 
    farPlane=1509.17, width=393.879, height=176.663, cameraPosition=(1162.47, 
    670.1, 651.174), cameraTarget=(441.721, -50.6473, -69.5734))
a = mdb.models['Model-1'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#1 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-1'].Pressure(name='Load-1', createStepName='Step-1', 
    region=region, distributionType=UNIFORM, field='', magnitude=0.025, 
    amplitude=UNSET)
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1095.49, 
    701.828, 686.428), cameraTarget=(374.739, -18.9194, -34.3193))
session.viewports['Viewport: 1'].view.setValues(nearPlane=982.245, 
    farPlane=1547.99, width=687.404, height=308.314, cameraPosition=(1139.08, 
    702.813, 641.852), cameraTarget=(418.329, -17.9343, -78.895))
session.viewports['Viewport: 1'].view.setValues(farPlane=1553.79, 
    cameraPosition=(1088.36, 723.321, 672.066), cameraTarget=(367.608, 2.57396, 
    -48.6817))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], )
a.generateMesh(regions=partInstances)
elemType1 = mesh.ElemType(elemCode=C3D20R, elemLibrary=STANDARD)
elemType2 = mesh.ElemType(elemCode=C3D15, elemLibrary=STANDARD)
elemType3 = mesh.ElemType(elemCode=C3D10, elemLibrary=STANDARD)
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['Part-1-1'].cells
cells1 = c1.getSequenceFromMask(mask=('[#1 ]', ), )
pickedRegions =(cells1, )
a.setElementType(regions=pickedRegions, elemTypes=(elemType1, elemType2, 
    elemType3))
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
del mdb.models['Model-2']
del mdb.models['Model-3']
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
del mdb.jobs['Job-2']
del mdb.jobs['Job-3']
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
#: Job Job-1: Abaqus/Standard completed successfully.
#: Job Job-1 completed successfully. 
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          2
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 224, (
    '[#0:10 #7030100 #7f3f1f0f #ffffffff:5 #f8fcfeff #80c0e0f0 ]', )), (
    'PART-2-1', 401, ('[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=241.55, 
    farPlane=483.48, cameraPosition=(619.989, 147.039, -17.226), 
    cameraUpVector=(-0.693943, 0.65552, -0.297886), cameraTarget=(292.504, 
    -7.47354, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=243.657, 
    farPlane=481.373, cameraPosition=(579.911, 55.0546, 211.907), 
    cameraUpVector=(-0.390908, 0.871157, -0.297114), cameraTarget=(292.504, 
    -7.47355, 3.05176e-005))
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-1'].steps['Step-1'].setValues(maxNumInc=100, 
    timeIncrementationMethod=FIXED, initialInc=0.01, noStop=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=OFF)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
mdb.Model(name='Model-2', objectToCopy=mdb.models['Model-1'])
#: The model "Model-2" has been created.
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=947.734, 
    farPlane=1459.67, width=427.638, height=191.804, cameraPosition=(1068.58, 
    655.853, 652.94), cameraTarget=(373.623, -39.1046, -42.0182))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1087.99, 
    642.776, 646.605), cameraTarget=(393.035, -52.1818, -48.3532))
a = mdb.models['Model-2'].rootAssembly
e1 = a.instances['Part-1-1'].edges
a.DatumPointByOffset(point=a.instances['Part-1-1'].InterestingPoint(
    edge=e1[17], rule=MIDDLE), vector=(-2.0, -10.0, 0.0))
#: Job Job-1: Analysis Input File Processor completed successfully.
a1 = mdb.models['Model-2'].rootAssembly
a1.translate(instanceList=('Part-2-1', ), vector=(298.0, 0.0, 0.0))
#: The instance Part-2-1 was translated by 298., 0., 0. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(nearPlane=925.141, 
    farPlane=1477.64, width=619.882, height=278.029, cameraPosition=(1126.76, 
    634.619, 615.996), cameraTarget=(431.801, -60.3387, -78.9623))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
a = mdb.models['Model-2'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#10 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-2'].loads['Load-1'].setValues(region=region)
session.viewports['Viewport: 1'].view.setValues(nearPlane=908.42, 
    farPlane=1494.36, width=746.321, height=334.74, cameraPosition=(1143.4, 
    643.531, 590.436), cameraTarget=(448.449, -51.4268, -104.522))
session.viewports['Viewport: 1'].view.setValues(nearPlane=902.121, 
    farPlane=1500.66, cameraPosition=(975.205, 676.373, 725.793), 
    cameraTarget=(280.25, -18.585, 30.8349))
mdb.Model(name='Model-3', objectToCopy=mdb.models['Model-2'])
#: The model "Model-3" has been created.
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a = mdb.models['Model-3'].rootAssembly
del a.features['Partition face-1']
#: Warning: Failed to attach mesh to geometry for instance 'Part-1-1'.
a = mdb.models['Model-3'].rootAssembly
del a.features['Datum pt-1']
a = mdb.models['Model-3'].rootAssembly
f11 = a.instances['Part-1-1'].faces
e11 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f11[1], sketchUpEdge=e11[5], 
    sketchPlaneSide=SIDE1, origin=(300.0, 5.0, 0.0))
s1 = mdb.models['Model-3'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.66, gridSpacing=30.06, transform=t)
g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints
s1.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-3'].rootAssembly
a.projectReferencesOntoSketch(sketch=s1, filter=COPLANAR_EDGES)
s1.Line(point1=(75.15, 20.0), point2=(75.15, -20.0))
s1.VerticalConstraint(entity=g[6], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[5], entity2=g[6], addUndoState=False)
s1.CoincidentConstraint(entity1=v[6], entity2=g[5], addUndoState=False)
s1.CoincidentConstraint(entity1=v[7], entity2=g[2], addUndoState=False)
s1.Line(point1=(90.18, 20.0), point2=(90.18, -20.0))
s1.VerticalConstraint(entity=g[7], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[5], entity2=g[7], addUndoState=False)
s1.CoincidentConstraint(entity1=v[8], entity2=g[5], addUndoState=False)
s1.CoincidentConstraint(entity1=v[9], entity2=g[2], addUndoState=False)
s1.DistanceDimension(entity1=g[6], entity2=g[7], textPoint=(75.3973693847656, 
    37.6948394775391), value=10.0)
s1.DistanceDimension(entity1=g[7], entity2=v[4], textPoint=(206.523193359375, 
    -51.5066986083984), value=195.0)
a = mdb.models['Model-3'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#2 ]', ), )
e1 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e1[5], faces=pickedFaces, sketch=s1)
s1.unsetPrimaryObject()
del mdb.models['Model-3'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=971.602, 
    farPlane=1467.71, width=359.307, height=161.156, cameraPosition=(905.38, 
    744.005, 759.617), cameraTarget=(201.213, 39.8375, 55.4498))
a = mdb.models['Model-3'].rootAssembly
e11 = a.instances['Part-1-1'].edges
a.DatumPointByOffset(point=a.instances['Part-1-1'].InterestingPoint(
    edge=e11[10], rule=MIDDLE), vector=(200.0, -10.0, 0.0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=937.159, 
    farPlane=1502.15, width=667.095, height=299.205, cameraPosition=(932.19, 
    760.96, 715.853), cameraTarget=(228.022, 56.7922, 11.6856))
session.viewports['Viewport: 1'].view.setValues(farPlane=1507.78, 
    cameraPosition=(1030.23, 668.414, 710.358), cameraTarget=(326.062, 
    -35.7533, 6.19101))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
a1 = mdb.models['Model-3'].rootAssembly
a1.translate(instanceList=('Part-2-1', ), vector=(-398.0, 0.0, 0.0))
#: The instance Part-2-1 was translated by -398., 0., 0. with respect to the assembly coordinate system
a = mdb.models['Model-3'].rootAssembly
del a.features['Datum pt-2']
a = mdb.models['Model-3'].rootAssembly
del a.features['Datum pt-1']
session.viewports['Viewport: 1'].view.setValues(nearPlane=930.157, 
    farPlane=1513.77, width=754.974, height=338.621, cameraPosition=(1042.35, 
    669.037, 697.613), cameraTarget=(338.185, -35.1306, -6.55417))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
#: Job Job-1: Abaqus/Standard completed successfully.
#: Job Job-1 completed successfully. 
a = mdb.models['Model-3'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#8 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-3'].loads['Load-1'].setValues(region=region)
session.viewports['Viewport: 1'].view.setValues(nearPlane=885.275, 
    farPlane=1558.65, width=1094.37, height=490.848, cameraPosition=(1150.89, 
    637.644, 620.472), cameraTarget=(446.717, -66.523, -83.6947))
session.viewports['Viewport: 1'].view.setValues(nearPlane=876.037, 
    cameraPosition=(1070.82, 699.679, 638.506), cameraTarget=(366.649, 
    -4.48847, -65.6607))
a = mdb.models['Model-3'].rootAssembly
f1 = a.instances['Part-1-1'].faces
faces1 = f1.getSequenceFromMask(mask=('[#10 ]', ), )
region = regionToolset.Region(faces=faces1)
mdb.models['Model-3'].DisplacementBC(name='BC-3', createStepName='Step-1', 
    region=region, u1=UNSET, u2=0.0, u3=0.0, ur1=0.0, ur2=0.0, ur3=UNSET, 
    amplitude=UNSET, fixed=OFF, distributionType=UNIFORM, fieldName='', 
    localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
del mdb.models['Model-3'].boundaryConditions['BC-1']
session.viewports['Viewport: 1'].view.setValues(nearPlane=778.176, 
    farPlane=1517.21, cameraPosition=(-444.463, 699.679, 515.866), 
    cameraUpVector=(0.662686, 0.57735, -0.476984), cameraTarget=(363.785, 
    -4.48847, -65.8925))
session.viewports['Viewport: 1'].view.setValues(nearPlane=838.286, 
    farPlane=1457.1, width=627.07, height=281.253, cameraPosition=(-472.496, 
    654.745, 531.309), cameraTarget=(335.752, -49.4226, -50.4498))
session.viewports['Viewport: 1'].view.setValues(nearPlane=843.917, 
    cameraPosition=(-485.322, 640.246, 531.038), cameraTarget=(322.926, 
    -63.9214, -50.7201))
session.viewports['Viewport: 1'].view.setValues(nearPlane=878.359, 
    farPlane=1417.03, width=359.308, height=161.157, cameraPosition=(-517.926, 
    620.647, 509.462), cameraTarget=(290.322, -83.5198, -72.2956))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(-564.721, 
    564.369, 512.569), cameraTarget=(243.527, -139.798, -69.1887))
a = mdb.models['Model-3'].rootAssembly
f1 = a.instances['Part-1-1'].faces
faces1 = f1.getSequenceFromMask(mask=('[#4 ]', ), )
region = regionToolset.Region(faces=faces1)
mdb.models['Model-3'].DisplacementBC(name='BC-1', createStepName='Initial', 
    region=region, u1=SET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-3'].rootAssembly
partInstances =(a.instances['Part-1-1'], a.instances['Part-2-1'], )
a.generateMesh(regions=partInstances)
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          2
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
odb = session.odbs['E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 304, (
    '[#0:10 #f070301 #ff7f3f1f #ffffffff:7 #fcfeffff #c0e0f0f8 #80 ]', )), (
    'PART-2-1', 401, ('[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.Job(name='Job-2', model='Model-2', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=1, numGPUs=0)
mdb.jobs['Job-2'].submit(consistencyChecking=OFF)
#: The job input file "Job-2.inp" has been submitted for analysis.
#: Job Job-2: Analysis Input File Processor completed successfully.
mdb.Job(name='Job-3', model='Model-3', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=1, numGPUs=0)
session.viewports['Viewport: 1'].view.setValues(nearPlane=918.962, 
    farPlane=1488.44, width=701.542, height=314.655, cameraPosition=(1002.75, 
    682.476, 692.146), cameraTarget=(307.794, -12.4817, -2.81227))
p1 = mdb.models['Model-3'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
#: Job Job-2: Abaqus/Standard completed successfully.
mdb.jobs['Job-3'].setValues(numCpus=4, numDomains=4)
#: Job Job-2 completed successfully. 
mdb.jobs['Job-3'].submit(consistencyChecking=OFF)
#: The job input file "Job-3.inp" has been submitted for analysis.
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          2
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 171, (
    '[#0:24 #fc783000 #fffffffe #ffffffff:4 ]', )), ('PART-2-1', 401, (
    '[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=931.608, 
    farPlane=1227.75, cameraPosition=(1175.38, 625.53, 608.098), cameraTarget=(
    471.215, -78.6366, -96.0689))
#: Job Job-3: Analysis Input File Processor completed successfully.
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
leaf = dgo.Leaf(leafType=DEFAULT_MODEL)
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-3'].fieldOutputRequests['F-Output-1'].setValues(variables=(
    'RF', ))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=OFF)
mdb.save()
#: The model database has been saved to "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae".
#: Job Job-3: Abaqus/Standard completed successfully.
#: Job Job-3 completed successfully. 
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          3
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable(
    variableLabel='RF', outputPosition=NODAL, refinement=(INVARIANT, 
    'Magnitude'), )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 120, (
    '[#0:7 #ff000000 #ffffffff:3 #ffff ]', )), ('PART-2-1', 401, (
    '[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=114.605, 
    farPlane=239.72, cameraPosition=(301.092, 91.0062, 99.7384), cameraTarget=(
    198.807, -11.2787, -2.54655))
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].view.setValues(nearPlane=915.85, 
    farPlane=1473.98, cameraPosition=(-337.549, 682.476, 738.447), 
    cameraUpVector=(0.536132, 0.57735, -0.615816), cameraTarget=(307.794, 
    -12.4817, -2.81223))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(-365.133, 
    668.348, 727.678), cameraTarget=(280.21, -26.6094, -13.5817))
session.viewports['Viewport: 1'].view.setValues(nearPlane=970.391, 
    farPlane=1419.44, width=295.015, height=132.32, cameraPosition=(-451.018, 
    629.829, 689.019), cameraTarget=(194.325, -65.1282, -52.2408))
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#400 ]', ), )
region = regionToolset.Region(edges=edges1)
mdb.models['Model-3'].boundaryConditions['BC-1'].setValues(region=region)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].view.setValues(nearPlane=986.435, 
    farPlane=1420.97, width=169.042, height=75.8186, cameraPosition=(1145.57, 
    610.3, 621.5), cameraTarget=(450.616, -84.6584, -73.4575))
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#4000 ]', ), )
region = regionToolset.Region(edges=edges1)
mdb.models['Model-3'].boundaryConditions['BC-3'].setValues(region=region)
mdb.models['Model-3'].boundaryConditions['BC-3'].move('Step-1', 'Initial')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
p1 = mdb.models['Model-3'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p1)
mdb.models['Model-3'].materials['Material-1'].elastic.setValues(table=((
    190000.0, 0.3), ))
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.jobs['Job-3'].submit(consistencyChecking=OFF)
#: The job input file "Job-3.inp" has been submitted for analysis.
#: Job Job-3: Analysis Input File Processor completed successfully.
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          3
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 288, (
    '[#0:5 #ffff0000 #ffffffff:8 #ffff ]', )), ('PART-2-1', 401, (
    '[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=21 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=22 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=23 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=24 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=25 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=25 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=25 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=25 )
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
leaf = dgo.Leaf(leafType=DEFAULT_MODEL)
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=954.952, 
    farPlane=1452.45, width=429.387, height=192.589, cameraPosition=(1144.37, 
    617.399, 615.606), cameraTarget=(449.411, -77.5593, -79.352))
session.viewports['Viewport: 1'].view.setValues(nearPlane=951.327, 
    farPlane=1456.08, cameraPosition=(1083.89, 670.562, 622.92), cameraTarget=(
    388.934, -24.396, -72.0383))
session.viewports['Viewport: 1'].view.setValues(nearPlane=954.951, 
    farPlane=1452.45, width=429.387, height=192.589, cameraPosition=(1089.09, 
    681.131, 607.149), cameraTarget=(394.137, -13.8275, -87.8096))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1039.21, 
    662.555, 675.61), cameraTarget=(344.251, -32.4027, -19.3486))
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb')
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
odb = session.odbs['E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=26 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=27 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=28 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=29 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=30 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=31 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=32 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=33 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=34 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=35 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=36 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=37 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=38 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=39 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=41 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=42 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=77 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=0 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
#: Job Job-3: Abaqus/Standard completed successfully.
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
#: Job Job-3 completed successfully. 
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=100)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
mdb.models['Model-3'].interactions['Int-2'].setValues(initialClearance=OMIT, 
    adjustMethod=NONE, sliding=FINITE, enforcement=SURFACE_TO_SURFACE, 
    thickness=ON, contactTracking=TWO_CONFIG, bondingSet=None)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1003.79, 
    farPlane=1344.13, cameraPosition=(-15.999, -124.397, 1125.49), 
    cameraUpVector=(-0.427359, 0.800263, -0.420645), cameraTarget=(344.251, 
    -32.4025, -19.3486))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
mdb.models['Model-3'].boundaryConditions['BC-3'].setValuesInStep(
    stepName='Step-1', u1=0.0)
odb = session.odbs['E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=100 )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 296, (
    '[#0:3 #f0e0c080 #fffefcf8 #ffffffff:7 #f8fcfeff #80c0e0f0 ]', )), (
    'PART-2-1', 401, ('[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.Job(name='Job-4', model='Model-3', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=4, numDomains=4, 
    numGPUs=0)
mdb.jobs['Job-4'].submit(consistencyChecking=OFF)
#: The job input file "Job-4.inp" has been submitted for analysis.
#: Job Job-4: Analysis Input File Processor completed successfully.
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-4.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-4.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     2
#: Number of Meshes:             2
#: Number of Element Sets:       2
#: Number of Node Sets:          3
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=71 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=72 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=73 )
session.viewports['Viewport: 1'].view.setValues(nearPlane=906.751, 
    farPlane=1500.65, width=701.501, height=314.637, cameraPosition=(1007.81, 
    692.591, 676.98), cameraTarget=(312.853, -2.36572, -17.9773))
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=1089.42, 
    farPlane=1317.99, width=712.992, height=319.791, cameraPosition=(320.061, 
    -15.7157, 1203.7), cameraTarget=(320.061, -15.7157, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(263.399, 
    16.1983, 1203.7), cameraTarget=(263.399, 16.1983, 0))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=74 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=75 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=76 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=77 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=78 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=79 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=83 )
#: Job Job-4: Abaqus/Standard completed successfully.
#: Job Job-4 completed successfully. 
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=85 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=86 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=87 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=100 )
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 216, (
    '[#0:6 #ffff0000 #ffffffff:6 #ff ]', )), ('PART-2-1', 402, (
    '[#ffffffff:12 #3ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1100.39, 
    farPlane=1307.01, width=556.668, height=249.677, cameraPosition=(253.416, 
    11.8429, 1203.7), cameraTarget=(253.416, 11.8429, 0))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=100 )
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=100 )
odb = session.odbs['E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 212, (
    '[#0:6 #1000000 #1f0f0703 #ffff7f3f #ffffffff:4 #fcfeffff #60f0f8 ]', )), (
    'PART-2-1', 401, ('[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=286.863, 
    farPlane=380.358, width=202.267, height=90.7209, cameraPosition=(219.36, 
    -9.13352, 333.611), cameraTarget=(219.36, -9.13352, 0))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 88, (
    '[#0:8 #ff000000 #ffffffff:2 #ffff ]', )), ('PART-2-1', 401, (
    '[#ffffffff:12 #1ffff ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=280.806, 
    farPlane=396.244, cameraPosition=(321.98, 45.9868, 312.613), 
    cameraUpVector=(0.00260835, 0.984659, -0.174472))
session.viewports['Viewport: 1'].view.setValues(session.views['Front'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=110.542, 
    farPlane=179.258, width=108.574, height=48.6976, cameraPosition=(208.316, 
    -9.10819, 144.9), cameraTarget=(208.316, -9.10819, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(202.461, 
    -11.3893, 144.9), cameraTarget=(202.461, -11.3893, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=111.404, 
    farPlane=178.396, width=90.1799, height=40.4475, cameraPosition=(202.077, 
    -11.1128, 144.9), cameraTarget=(202.077, -11.1128, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(201.309, 
    -9.9595, 144.9), cameraTarget=(201.309, -9.9595, 0))
session.viewports['Viewport: 1'].view.setValues(width=84.7691, height=38.0206, 
    cameraPosition=(201.409, -10.0163, 144.9), cameraTarget=(201.409, -10.0163, 
    0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(202.692, 
    -9.55173, 144.9), cameraTarget=(202.692, -9.55173, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(202.05, 
    -9.16456, 144.9), cameraTarget=(202.05, -9.16456, 0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=112.213, 
    farPlane=177.587, width=95.9361, height=43.0292, cameraPosition=(202.816, 
    -8.92484, 144.9), cameraTarget=(202.816, -8.92484, 0))
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
mdb.Model(name='Model-4', objectToCopy=mdb.models['Model-3'])
#: The model "Model-4" has been created.
a = mdb.models['Model-4'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
del mdb.models['Model-4'].boundaryConditions['BC-2']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, interactions=ON, constraints=ON, 
    engineeringFeatures=ON)
del mdb.models['Model-4'].interactions['Int-2']
del mdb.models['Model-4'].interactionProperties['IntProp-1']
a = mdb.models['Model-4'].rootAssembly
a.deleteFeatures(('Part-2-1', 'Partition face-1', ))
#: Warning: Failed to attach mesh to geometry for instance 'Part-1-1'.
session.viewports['Viewport: 1'].view.setValues(nearPlane=949.227, 
    farPlane=1462.69, cameraPosition=(910.714, -840.637, 608.676), 
    cameraUpVector=(-0.366791, 0.674622, 0.640585), cameraTarget=(300.406, 
    -0.134872, 0.415863))
session.viewports['Viewport: 1'].view.setValues(nearPlane=960.026, 
    farPlane=1451.89, width=547.728, height=245.667, cameraPosition=(890.015, 
    -851.042, 615.067), cameraTarget=(279.707, -10.5401, 6.80674))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=949.227, 
    farPlane=1462.69, width=701.541, height=314.655, cameraPosition=(851.718, 
    -872.219, 624.23), cameraTarget=(241.41, -31.7173, 15.9697))
a = mdb.models['Model-4'].rootAssembly
f1 = a.instances['Part-1-1'].faces
e1 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f1[3], sketchUpEdge=e1[8], 
    sketchPlaneSide=SIDE1, origin=(300.0, 0.0, 0.0))
s = mdb.models['Model-4'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.66, gridSpacing=30.06, transform=t)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-4'].rootAssembly
a.projectReferencesOntoSketch(sketch=s, filter=COPLANAR_EDGES)
s.Line(point1=(-120.24, 20.0), point2=(-120.24, -20.0))
s.VerticalConstraint(entity=g[6], addUndoState=False)
s.PerpendicularConstraint(entity1=g[3], entity2=g[6], addUndoState=False)
s.CoincidentConstraint(entity1=v[4], entity2=g[3], addUndoState=False)
s.CoincidentConstraint(entity1=v[5], entity2=g[5], addUndoState=False)
s.DistanceDimension(entity1=g[6], entity2=v[0], textPoint=(-238.708618164063, 
    -54.384162902832), value=200.0)
a = mdb.models['Model-4'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#8 ]', ), )
e11 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e11[8], faces=pickedFaces, sketch=s)
s.unsetPrimaryObject()
del mdb.models['Model-4'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=819.514, 
    farPlane=1470.14, cameraPosition=(1125.85, 737.218, 299.834), 
    cameraUpVector=(-0.672311, 0.465745, -0.575396), cameraTarget=(241.923, 
    -28.7068, 15.3629))
session.viewports['Viewport: 1'].view.setValues(nearPlane=841.15, 
    farPlane=1448.5, width=514.864, height=230.927, cameraPosition=(1165.63, 
    698.397, 280.744), cameraTarget=(281.706, -67.5283, -3.72704))
a = mdb.models['Model-4'].rootAssembly
f11 = a.instances['Part-1-1'].faces
e1 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f11[2], sketchUpEdge=e1[8], 
    sketchPlaneSide=SIDE1, origin=(300.0, 5.0, 0.0))
s1 = mdb.models['Model-4'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.7, gridSpacing=30.06, transform=t)
g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints
s1.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-4'].rootAssembly
a.projectReferencesOntoSketch(sketch=s1, filter=COPLANAR_EDGES)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1124.35, 
    farPlane=1285.98, width=523.268, height=234.696, cameraPosition=(342.764, 
    1207.66, 4.92364), cameraTarget=(342.764, 5, 4.92364))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(472.467, 
    1207.66, 1.09966), cameraTarget=(472.467, 5, 1.09966))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1133.46, 
    farPlane=1276.86, width=462.36, height=207.377, cameraPosition=(479.123, 
    1207.66, 2.29589), cameraTarget=(479.123, 5, 2.29589))
s1.Line(point1=(112.852416992188, 20.0), point2=(112.852416992187, -20.0))
s1.VerticalConstraint(entity=g[6], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[5], entity2=g[6], addUndoState=False)
s1.CoincidentConstraint(entity1=v[4], entity2=g[5], addUndoState=False)
s1.CoincidentConstraint(entity1=v[5], entity2=g[2], addUndoState=False)
s1.Line(point1=(127.755, 20.0), point2=(127.755, -23.6249237060547))
s1.VerticalConstraint(entity=g[7], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[5], entity2=g[7], addUndoState=False)
s1.CoincidentConstraint(entity1=v[6], entity2=g[5], addUndoState=False)
s1.undo()
s1.Line(point1=(127.755, 20.0), point2=(127.755, -20.0))
s1.VerticalConstraint(entity=g[7], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[5], entity2=g[7], addUndoState=False)
s1.CoincidentConstraint(entity1=v[6], entity2=g[5], addUndoState=False)
s1.CoincidentConstraint(entity1=v[7], entity2=g[2], addUndoState=False)
s1.DistanceDimension(entity1=g[6], entity2=g[7], textPoint=(117.664123535156, 
    -37.9850769042969), value=10.0)
s1.DistanceDimension(entity1=g[7], entity2=v[1], textPoint=(237.518920898438, 
    -48.5440063476563), value=195.0)
a = mdb.models['Model-4'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#4 ]', ), )
e11 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e11[8], faces=pickedFaces, sketch=s1)
s1.unsetPrimaryObject()
del mdb.models['Model-4'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].view.setValues(nearPlane=904.687, 
    farPlane=1500.72, cameraPosition=(1092.76, -565.837, 703.582), 
    cameraUpVector=(-0.602485, 0.564053, 0.564674), cameraTarget=(300, 2.49978, 
    2.86102e-006))
a = mdb.models['Model-4'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#100 ]', ), )
region = regionToolset.Region(edges=edges1)
mdb.models['Model-4'].DisplacementBC(name='BC-4', createStepName='Initial', 
    region=region, u1=UNSET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
a = mdb.models['Model-4'].rootAssembly
s1 = a.instances['Part-1-1'].faces
side1Faces1 = s1.getSequenceFromMask(mask=('[#10 ]', ), )
region = regionToolset.Region(side1Faces=side1Faces1)
mdb.models['Model-4'].loads['Load-1'].setValues(region=region)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.Job(name='Job-5', model='Model-4', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=1, numGPUs=0)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-4'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.generateMesh(regions=partInstances)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.jobs['Job-5'].submit(consistencyChecking=OFF)
#: The job input file "Job-5.inp" has been submitted for analysis.
#: Job Job-5: Analysis Input File Processor completed successfully.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=911.801, 
    farPlane=1493.61, cameraPosition=(1059.3, -499.941, 785.818), 
    cameraUpVector=(-0.692854, 0.524595, 0.494725), cameraTarget=(300, 2.49979, 
    1.62125e-005))
session.viewports['Viewport: 1'].view.setValues(nearPlane=952.121, 
    farPlane=1453.28, width=314.523, height=141.07, cameraPosition=(1030.57, 
    -517.886, 802.101), cameraTarget=(271.274, -15.445, 16.2831))
a = mdb.models['Model-4'].rootAssembly
e1 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e1[8], 
    rule=MIDDLE))
a = mdb.models['Model-4'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[52], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-4'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#100 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-4'].Coupling(name='Constraint-1', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
a = mdb.models['Model-4'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[52], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-4'].boundaryConditions['BC-4'].setValues(region=region)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, connectors=OFF)
mdb.jobs['Job-5'].kill()
#: Error in job Job-5: Process terminated by external request (SIGTERM or SIGINT received).
#: Error in job Job-5: Abaqus/Standard Analysis exited with an error - Please see the  message file for possible error messages if the file exists.
#: Job Job-5 aborted due to errors.
mdb.jobs['Job-5'].submit(consistencyChecking=OFF)
#: The job input file "Job-5.inp" has been submitted for analysis.
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
#: Job Job-5: Analysis Input File Processor completed successfully.
#: Job Job-5: Abaqus/Standard completed successfully.
#: Job Job-5 completed successfully. 
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-5.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-5.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             2
#: Number of Element Sets:       1
#: Number of Node Sets:          3
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=953.374, 
    farPlane=1452.04, cameraPosition=(878.66, -34.1737, 1053.71), 
    cameraUpVector=(-0.73572, 0.675647, 0.0470797))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 344, (
    '[#0:5 #7e3c1800 #ffffffff:9 #fcfeffff #c0e0f0f8 #80 ]', )), ('ASSEMBLY', 
    1, ('[#1 ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1073.78, 
    farPlane=1457.34, cameraPosition=(1276.77, 590.725, 390.855), 
    cameraUpVector=(-0.617541, 0.640812, -0.456073), cameraTarget=(309.814, 
    -1.18921, -10.5482))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
mdb.save()
#: The model database has been saved to "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae".
Mdb()
#: A new model database has been created.
#: The model "Model-1" has been created.
session.viewports['Viewport: 1'].setValues(displayedObject=None)
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=ON)
session.viewports['Viewport: 1'].setValues(displayedObject=None)
s = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', 
    sheetSize=1000.0)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=STANDALONE)
s.rectangle(point1=(0.0, 0.0), point2=(600.0, 5.0))
session.viewports['Viewport: 1'].view.setValues(nearPlane=826.023, 
    farPlane=1059.6, width=883.142, height=396.107, cameraPosition=(8.80151, 
    -6.24461, 942.809), cameraTarget=(8.80151, -6.24461, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(284.522, 
    -5.43786, 942.809), cameraTarget=(284.522, -5.43786, 0))
p = mdb.models['Model-1'].Part(name='Part-1', dimensionality=THREE_D, 
    type=DEFORMABLE_BODY)
p = mdb.models['Model-1'].parts['Part-1']
p.BaseSolidExtrude(sketch=s, depth=40.0)
s.unsetPrimaryObject()
p = mdb.models['Model-1'].parts['Part-1']
session.viewports['Viewport: 1'].setValues(displayedObject=p)
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].partDisplay.setValues(sectionAssignments=ON, 
    engineeringFeatures=ON)
session.viewports['Viewport: 1'].partDisplay.geometryOptions.setValues(
    referenceRepresentation=OFF)
mdb.models['Model-1'].Material(name='Material-1')
mdb.models['Model-1'].materials['Material-1'].Elastic(table=((190000.0, 0.3), 
    ))
mdb.models['Model-1'].HomogeneousSolidSection(name='Section-1', 
    material='Material-1', thickness=None)
p = mdb.models['Model-1'].parts['Part-1']
c = p.cells
cells = c.getSequenceFromMask(mask=('[#1 ]', ), )
region = regionToolset.Region(cells=cells)
p = mdb.models['Model-1'].parts['Part-1']
p.SectionAssignment(region=region, sectionName='Section-1', offset=0.0, 
    offsetType=MIDDLE_SURFACE, offsetField='', 
    thicknessAssignment=FROM_SECTION)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
a1 = mdb.models['Model-1'].rootAssembly
a1.DatumCsysByDefault(CARTESIAN)
p = mdb.models['Model-1'].parts['Part-1']
a1.Instance(name='Part-1-1', part=p, dependent=OFF)
session.viewports['Viewport: 1'].view.setValues(width=660.872, height=296.414, 
    cameraPosition=(1000.99, 694.827, 709.826), cameraTarget=(306.612, 
    0.444546, 15.4439))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(
    adaptiveMeshConstraints=ON)
mdb.models['Model-1'].StaticStep(name='Step-1', previous='Initial', 
    timeIncrementationMethod=FIXED, initialInc=0.01, noStop=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
mdb.models['Model-1'].fieldOutputRequests['F-Output-1'].setValues(variables=(
    'RF', ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=916.678, 
    farPlane=1495.72, cameraPosition=(1053.57, -787.908, 532.218), 
    cameraUpVector=(-0.149015, 0.772212, 0.617643), cameraTarget=(306.612, 
    0.444481, 15.444))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON, 
    adaptiveMeshConstraints=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=929.117, 
    farPlane=1476.29, cameraPosition=(1123.26, 643.598, 638.791), 
    cameraTarget=(428.875, -50.7841, -55.5908))
session.viewports['Viewport: 1'].view.setValues(nearPlane=956.221, 
    farPlane=1449.19, width=402.847, height=180.685, cameraPosition=(1148.58, 
    628.599, 628.465), cameraTarget=(454.2, -65.7833, -65.9164))
a = mdb.models['Model-1'].rootAssembly
e11 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e11[5], 
    rule=MIDDLE))
a = mdb.models['Model-1'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[4], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-1'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#20 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-1'].Coupling(name='Constraint-1', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=939.29, 
    farPlane=1466.12, width=583.947, height=261.912, cameraPosition=(1226.35, 
    621.155, 558.144), cameraTarget=(531.965, -73.2272, -136.238))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1002.44, 
    686.922, 716.287), cameraTarget=(308.056, -7.46025, 21.905))
session.viewports['Viewport: 1'].view.setValues(nearPlane=904.576, 
    farPlane=1500.84, width=846.46, height=379.654, cameraPosition=(1018.41, 
    692.265, 694.976), cameraTarget=(324.024, -2.11681, 0.593628))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=OFF, 
    constraints=OFF, connectors=OFF, engineeringFeatures=OFF)
session.viewports['Viewport: 1'].view.setValues(nearPlane=945.896, 
    farPlane=1409.62, cameraPosition=(-62.1423, 692.265, 903.484), 
    cameraUpVector=(0.321082, 0.57735, -0.750715), cameraTarget=(324.024, 
    -2.11681, 0.593689))
session.viewports['Viewport: 1'].view.setValues(nearPlane=992.388, 
    farPlane=1363.13, width=485.017, height=217.54, cameraPosition=(-142.411, 
    661.659, 892.691), cameraTarget=(243.756, -32.7225, -10.1993))
session.viewports['Viewport: 1'].view.setValues(nearPlane=996.744, 
    farPlane=1358.77, cameraPosition=(-225.412, 637.784, 875.553), 
    cameraTarget=(160.754, -56.5981, -27.3373))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1011.7, 
    farPlane=1343.81, width=355.956, height=159.653, cameraPosition=(-252.058, 
    633.404, 867.525), cameraTarget=(134.108, -60.978, -35.3653))
a1 = mdb.models['Model-1'].rootAssembly
a1.translate(instanceList=('Part-1-1', ), vector=(0.0, 0.0, -20.0))
#: The instance Part-1-1 was translated by 0., 0., -20. with respect to the assembly coordinate system
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=888.75, 
    farPlane=1516.66, cameraPosition=(1173.09, -697.642, 440.469), 
    cameraUpVector=(-0.498283, 0.426223, 0.755016), cameraTarget=(300, 2.49975, 
    -4.57764e-005))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=OFF, 
    constraints=OFF, connectors=OFF, engineeringFeatures=OFF)
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-1-1'].faces
e1 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f1[3], sketchUpEdge=e1[8], 
    sketchPlaneSide=SIDE1, origin=(300.0, 0.0, 0.0))
s1 = mdb.models['Model-1'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.66, gridSpacing=30.06, transform=t)
g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints
s1.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-1'].rootAssembly
a.projectReferencesOntoSketch(sketch=s1, filter=COPLANAR_EDGES)
s1.Line(point1=(0.0, 20.0), point2=(0.0, -20.0))
s1.VerticalConstraint(entity=g[6], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[3], entity2=g[6], addUndoState=False)
s1.CoincidentConstraint(entity1=v[4], entity2=g[3], addUndoState=False)
s1.EqualDistanceConstraint(entity1=v[2], entity2=v[1], midpoint=v[4], 
    addUndoState=False)
s1.CoincidentConstraint(entity1=v[5], entity2=g[5], addUndoState=False)
s1.EqualDistanceConstraint(entity1=v[3], entity2=v[0], midpoint=v[5], 
    addUndoState=False)
s1.DistanceDimension(entity1=g[2], entity2=g[6], textPoint=(-82.5496673583984, 
    -51.5066986083984), value=300.0)
s1.delete(objectList=(d[0], ))
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#8 ]', ), )
e11 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e11[8], faces=pickedFaces, sketch=s1)
s1.unsetPrimaryObject()
del mdb.models['Model-1'].sketches['__profile__']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
a = mdb.models['Model-1'].rootAssembly
e1 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e1[0], 
    rule=MIDDLE))
session.viewports['Viewport: 1'].view.setValues(nearPlane=915.853, 
    farPlane=1489.56, width=402.847, height=180.685, cameraPosition=(1180.97, 
    -688.498, 439.386), cameraTarget=(307.879, 11.6441, -1.08307))
a = mdb.models['Model-1'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[8], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-1'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#1 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-1'].Coupling(name='Constraint-2', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].view.setValues(nearPlane=947.278, 
    farPlane=1458.13, cameraPosition=(-316.929, 696.882, 764.023), 
    cameraUpVector=(0.512951, 0.57735, -0.635254), cameraTarget=(300, 2.5, 0))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(-367.461, 
    664.448, 752.698), cameraTarget=(249.468, -29.9338, -11.3255))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1000.13, 
    farPlane=1405.28, width=230.829, height=103.532, cameraPosition=(-463.728, 
    631.386, 705.013), cameraTarget=(153.201, -62.9962, -59.0103))
a = mdb.models['Model-1'].rootAssembly
f1 = a.instances['Part-1-1'].faces
faces1 = f1.getSequenceFromMask(mask=('[#2 ]', ), )
region = regionToolset.Region(faces=faces1)
mdb.models['Model-1'].DisplacementBC(name='BC-1', createStepName='Initial', 
    region=region, u1=SET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=SET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
a = mdb.models['Model-1'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[8], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-1'].DisplacementBC(name='BC-2', createStepName='Initial', 
    region=region, u1=UNSET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=SET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
a = mdb.models['Model-1'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[4], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-1'].ConcentratedForce(name='Load-1', createStepName='Step-1', 
    region=region, cf2=-10.0, distributionType=UNIFORM, field='', 
    localCsys=None)
session.viewports['Viewport: 1'].view.setValues(nearPlane=923.538, 
    farPlane=1481.87, width=703.056, height=315.334, cameraPosition=(975.329, 
    708.327, 701.991), cameraTarget=(280.947, 13.9445, 7.60839))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.seedPartInstance(regions=partInstances, size=5.0, deviationFactor=0.1, 
    minSizeFactor=0.1)
a = mdb.models['Model-1'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.generateMesh(regions=partInstances)
elemType1 = mesh.ElemType(elemCode=C3D20R, elemLibrary=STANDARD)
elemType2 = mesh.ElemType(elemCode=C3D15, elemLibrary=STANDARD)
elemType3 = mesh.ElemType(elemCode=C3D10, elemLibrary=STANDARD)
a = mdb.models['Model-1'].rootAssembly
c1 = a.instances['Part-1-1'].cells
cells1 = c1.getSequenceFromMask(mask=('[#1 ]', ), )
pickedRegions =(cells1, )
a.setElementType(regions=pickedRegions, elemTypes=(elemType1, elemType2, 
    elemType3))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.Job(name='Job-1', model='Model-1', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=4, numDomains=4, 
    numGPUs=0)
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
a = mdb.models['Model-1'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
mdb.jobs['Job-1'].submit(consistencyChecking=OFF)
#: The job input file "Job-1.inp" has been submitted for analysis.
#: Job Job-1: Analysis Input File Processor completed successfully.
mdb.Model(name='Model-2', objectToCopy=mdb.models['Model-1'])
#: The model "Model-2" has been created.
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].view.setValues(nearPlane=956.22, 
    farPlane=1449.19, width=402.847, height=180.685, cameraPosition=(1064.56, 
    662.434, 658.65), cameraTarget=(370.18, -31.9479, -35.7322))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1113.74, 
    641.702, 630.209), cameraTarget=(419.353, -52.6801, -64.1734))
a = mdb.models['Model-2'].rootAssembly
del a.features['RP-1']
a = mdb.models['Model-2'].rootAssembly
a.deleteFeatures(('Partition face-1', 'RP-2', ))
#: Warning: Failed to attach mesh to geometry for instance 'Part-1-1'.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
del mdb.models['Model-2'].loads['Load-1']
del mdb.models['Model-2'].boundaryConditions['BC-2']
session.viewports['Viewport: 1'].view.setValues(nearPlane=928.761, 
    farPlane=1476.66, width=663.576, height=297.627, cameraPosition=(1170.59, 
    647.828, 567.232), cameraTarget=(476.204, -46.5546, -127.15))
session.viewports['Viewport: 1'].view.setValues(nearPlane=923.16, 
    farPlane=1482.26, cameraPosition=(1033.58, 696.331, 655.736), 
    cameraTarget=(339.198, 1.94909, -38.6468))
session.viewports['Viewport: 1'].view.setValues(nearPlane=972.942, 
    farPlane=1383.44, cameraPosition=(710.982, 113.541, 1099.7), 
    cameraUpVector=(-0.68416, 0.702066, -0.197557), cameraTarget=(339.198, 
    1.9491, -38.6468))
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=929.117, 
    farPlane=1476.29, cameraPosition=(1049.58, 686.225, 649.841), 
    cameraTarget=(355.198, -8.15683, -44.5413))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, interactions=ON, constraints=ON, 
    engineeringFeatures=ON)
mdb.models['Model-2'].constraints.delete(('Constraint-1', 'Constraint-2', ))
#: Job Job-1: Abaqus/Standard completed successfully.
#: Job Job-1 completed successfully. 
session.viewports['Viewport: 1'].view.setValues(nearPlane=972.262, 
    farPlane=1433.15, width=295.651, height=132.605, cameraPosition=(1130.81, 
    638.063, 616.768), cameraTarget=(436.433, -56.3184, -77.6144))
session.viewports['Viewport: 1'].view.setValues(nearPlane=974.917, 
    cameraPosition=(1154.29, 621.966, 609.39), cameraTarget=(459.909, -72.4158, 
    -84.9928))
session.viewports['Viewport: 1'].view.setValues(nearPlane=956.219, 
    farPlane=1449.19, width=455.916, height=204.487, cameraPosition=(1203.37, 
    618.064, 564.21), cameraTarget=(508.991, -76.3179, -130.173))
session.viewports['Viewport: 1'].view.setValues(nearPlane=952.371, 
    cameraPosition=(1138.94, 643.227, 603.477), cameraTarget=(444.56, -51.1544, 
    -90.9053))
a = mdb.models['Model-2'].rootAssembly
e11 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e11[8], 
    rule=MIDDLE))
session.viewports['Viewport: 1'].view.setValues(nearPlane=995.45, 
    farPlane=1409.96, width=140.707, height=63.1097, cameraPosition=(1175.73, 
    606.252, 603.662), cameraTarget=(481.35, -88.1293, -90.7207))
a = mdb.models['Model-2'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[16], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-2'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#100 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-2'].Coupling(name='Constraint-1', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=969.244, 
    farPlane=1436.16, width=357.412, height=160.307, cameraPosition=(1219.33, 
    602.78, 563.536), cameraTarget=(524.948, -91.6011, -130.846))
session.viewports['Viewport: 1'].view.setValues(nearPlane=966.227, 
    farPlane=1439.18, cameraPosition=(1090.99, 648.098, 646.559), 
    cameraTarget=(396.606, -46.2831, -47.8231))
session.viewports['Viewport: 1'].view.setValues(nearPlane=928.759, 
    farPlane=1476.65, width=663.577, height=297.627, cameraPosition=(1106.82, 
    651.212, 627.618), cameraTarget=(412.434, -43.1692, -66.7646))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1008.94, 
    720.008, 656.7), cameraTarget=(314.556, 25.6264, -37.6822))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
a = mdb.models['Model-2'].rootAssembly
f11 = a.instances['Part-1-1'].faces
e1 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f11[1], sketchUpEdge=e1[5], 
    sketchPlaneSide=SIDE1, origin=(300.0, 5.0, 0.0))
s = mdb.models['Model-2'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.66, gridSpacing=30.06, transform=t)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-2'].rootAssembly
a.projectReferencesOntoSketch(sketch=s, filter=COPLANAR_EDGES)
s.Line(point1=(-0.298004150390625, 20.0), point2=(-0.298004150390625, -20.0))
s.VerticalConstraint(entity=g[6], addUndoState=False)
s.PerpendicularConstraint(entity1=g[5], entity2=g[6], addUndoState=False)
s.CoincidentConstraint(entity1=v[4], entity2=g[5], addUndoState=False)
s.CoincidentConstraint(entity1=v[5], entity2=g[2], addUndoState=False)
s.DistanceDimension(entity1=g[6], entity2=v[0], textPoint=(-191.026489257813, 
    -54.9596633911133), value=300.0)
a = mdb.models['Model-2'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#2 ]', ), )
e11 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e11[5], faces=pickedFaces, sketch=s)
s.unsetPrimaryObject()
del mdb.models['Model-2'].sketches['__profile__']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, interactions=ON, constraints=ON, 
    engineeringFeatures=ON)
a = mdb.models['Model-2'].rootAssembly
e1 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e1[0], 
    rule=MIDDLE))
session.viewports['Viewport: 1'].view.setValues(nearPlane=947.999, 
    farPlane=1457.41, width=457.781, height=205.324, cameraPosition=(1006.45, 
    714.481, 664.713), cameraTarget=(312.07, 20.0991, -29.6691))
a = mdb.models['Model-2'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[20], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-2'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#1 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-2'].Coupling(name='Constraint-2', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=904.117, 
    farPlane=1501.29, width=849.923, height=381.207, cameraPosition=(1077.68, 
    705.56, 602.41), cameraTarget=(383.294, 11.1783, -91.9726))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
a = mdb.models['Model-2'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[16], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-2'].DisplacementBC(name='BC-2', createStepName='Initial', 
    region=region, u1=UNSET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
a = mdb.models['Model-2'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[20], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-2'].ConcentratedForce(name='Load-1', createStepName='Step-1', 
    region=region, cf2=-10.0, distributionType=UNIFORM, field='', 
    localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-2'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.generateMesh(regions=partInstances)
elemType1 = mesh.ElemType(elemCode=C3D20R, elemLibrary=STANDARD)
elemType2 = mesh.ElemType(elemCode=C3D15, elemLibrary=STANDARD)
elemType3 = mesh.ElemType(elemCode=C3D10, elemLibrary=STANDARD)
a = mdb.models['Model-2'].rootAssembly
c1 = a.instances['Part-1-1'].cells
cells1 = c1.getSequenceFromMask(mask=('[#1 ]', ), )
pickedRegions =(cells1, )
a.setElementType(regions=pickedRegions, elemTypes=(elemType1, elemType2, 
    elemType3))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.Job(name='Job-2', model='Model-2', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=4, numDomains=4, 
    numGPUs=0)
mdb.jobs['Job-2'].submit(consistencyChecking=OFF)
#: The job input file "Job-2.inp" has been submitted for analysis.
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-1.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             2
#: Number of Element Sets:       1
#: Number of Node Sets:          4
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].view.setValues(nearPlane=911.291, 
    farPlane=1494.12, width=795.672, height=356.875, cameraPosition=(979.057, 
    700.342, 706.248), cameraTarget=(284.674, 5.95981, 11.8659))
session.viewports['Viewport: 1'].view.setValues(nearPlane=904.575, 
    cameraPosition=(1007.03, 699.749, 678.866), cameraTarget=(312.65, 5.36635, 
    -15.5162))
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 424, (
    '[#0:7 #f0e0c080 #fffefcf8 #ffffffff:11 #f8fcfeff #80c0e0f0 ]', )), (
    'ASSEMBLY', 1, ('[#2 ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
#: Job Job-2: Analysis Input File Processor completed successfully.
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
#: Job Job-2: Abaqus/Standard completed successfully.
#: Job Job-2 completed successfully. 
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             2
#: Number of Element Sets:       1
#: Number of Node Sets:          4
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
a = mdb.models['Model-2'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
odb = session.odbs['E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-2.odb']
session.viewports['Viewport: 1'].setValues(displayedObject=odb)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
session.viewports['Viewport: 1'].view.setValues(nearPlane=897.43, 
    farPlane=1507.98, width=900.489, height=403.887, cameraPosition=(1004.61, 
    698.653, 682.381), cameraTarget=(310.231, 4.2705, -12.0013))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 323, (
    '[#0:19 #78300000 #fffffefc #ffffffff:9 ]', )), ('ASSEMBLY', 1, ('[#1 ]', 
    )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1177.38, 
    613.355, 594.91), cameraTarget=(482.999, -81.027, -99.4719))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
mdb.Model(name='Model-3', objectToCopy=mdb.models['Model-2'])
#: The model "Model-3" has been created.
a = mdb.models['Model-3'].rootAssembly
session.viewports['Viewport: 1'].setValues(displayedObject=a)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, connectors=ON)
mdb.models['Model-3'].boundaryConditions.delete(('BC-1', 'BC-2', ))
del mdb.models['Model-3'].loads['Load-1']
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=OFF, bcs=OFF, 
    predefinedFields=OFF, interactions=ON, constraints=ON, 
    engineeringFeatures=ON)
mdb.models['Model-3'].constraints.delete(('Constraint-1', 'Constraint-2', ))
a = mdb.models['Model-3'].rootAssembly
a.deleteFeatures(('RP-1', 'Partition face-1', 'RP-2', ))
#: Warning: Failed to attach mesh to geometry for instance 'Part-1-1'.
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=OFF, 
    constraints=OFF, connectors=OFF, engineeringFeatures=OFF)
a = mdb.models['Model-3'].rootAssembly
f1 = a.instances['Part-1-1'].faces
e11 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f1[1], sketchUpEdge=e11[5], 
    sketchPlaneSide=SIDE1, origin=(300.0, 5.0, 0.0))
s1 = mdb.models['Model-3'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.66, gridSpacing=30.06, transform=t)
g, v, d, c = s1.geometry, s1.vertices, s1.dimensions, s1.constraints
s1.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-3'].rootAssembly
a.projectReferencesOntoSketch(sketch=s1, filter=COPLANAR_EDGES)
s1.Line(point1=(120.24, 20.0), point2=(120.24, -20.0))
s1.VerticalConstraint(entity=g[6], addUndoState=False)
s1.PerpendicularConstraint(entity1=g[5], entity2=g[6], addUndoState=False)
s1.CoincidentConstraint(entity1=v[4], entity2=g[5], addUndoState=False)
s1.CoincidentConstraint(entity1=v[5], entity2=g[2], addUndoState=False)
s1.DistanceDimension(entity1=g[6], entity2=g[4], textPoint=(231.556274414063, 
    -72.2244720458984), value=200.0)
a = mdb.models['Model-3'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#2 ]', ), )
e1 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e1[5], faces=pickedFaces, sketch=s1)
s1.unsetPrimaryObject()
del mdb.models['Model-3'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=928.351, 
    farPlane=1477.06, cameraPosition=(988.508, -491.242, 853.625), 
    cameraUpVector=(-0.907274, 0.192883, 0.373699))
session.viewports['Viewport: 1'].view.setValues(nearPlane=843.132, 
    farPlane=1562.28, width=1305.3, height=585.454, cameraPosition=(899.688, 
    -500.917, 919.668), cameraTarget=(211.181, -7.17553, 66.0426))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(963.528, 
    -490.917, 873.961), cameraTarget=(275.02, 2.82516, 20.336))
session.viewports['Viewport: 1'].view.setValues(nearPlane=853.488, 
    farPlane=1551.92, width=1084.16, height=486.269, cameraPosition=(964.678, 
    -488.955, 874.168), cameraTarget=(276.17, 4.78698, 20.5434))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1156.8, 
    -441.713, 746.535), cameraTarget=(468.29, 52.0292, -107.089))
a = mdb.models['Model-3'].rootAssembly
f11 = a.instances['Part-1-1'].faces
e11 = a.instances['Part-1-1'].edges
t = a.MakeSketchTransform(sketchPlane=f11[4], sketchUpEdge=e11[11], 
    sketchPlaneSide=SIDE1, origin=(300.0, 0.0, 0.0))
s = mdb.models['Model-3'].ConstrainedSketch(name='__profile__', 
    sheetSize=1202.7, gridSpacing=30.06, transform=t)
g, v, d, c = s.geometry, s.vertices, s.dimensions, s.constraints
s.setPrimaryObject(option=SUPERIMPOSE)
a = mdb.models['Model-3'].rootAssembly
a.projectReferencesOntoSketch(sketch=s, filter=COPLANAR_EDGES)
s.Line(point1=(-120.24, 20.0), point2=(-120.24, -20.0))
s.VerticalConstraint(entity=g[6], addUndoState=False)
s.PerpendicularConstraint(entity1=g[3], entity2=g[6], addUndoState=False)
s.CoincidentConstraint(entity1=v[4], entity2=g[3], addUndoState=False)
s.CoincidentConstraint(entity1=v[5], entity2=g[5], addUndoState=False)
s.DistanceDimension(entity1=g[2], entity2=g[6], textPoint=(-158.841049194336, 
    -48.6292266845703), value=200.0)
a = mdb.models['Model-3'].rootAssembly
f1 = a.instances['Part-1-1'].faces
pickedFaces = f1.getSequenceFromMask(mask=('[#10 ]', ), )
e1 = a.instances['Part-1-1'].edges
a.PartitionFaceBySketch(sketchUpEdge=e1[11], faces=pickedFaces, sketch=s)
s.unsetPrimaryObject()
del mdb.models['Model-3'].sketches['__profile__']
session.viewports['Viewport: 1'].view.setValues(nearPlane=853.49, 
    farPlane=1551.92, width=1226.99, height=550.327, cameraPosition=(1165.06, 
    -434.598, 743.989), cameraTarget=(476.549, 59.1445, -109.635))
session.viewports['Viewport: 1'].view.setValues(session.views['Right'])
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=931.99, 
    farPlane=1473.42, cameraPosition=(994.382, 845.916, 502.975), 
    cameraUpVector=(-0.57735, 0.418203, -0.701265), cameraTarget=(300, 2.50003, 
    -3.3617e-005))
session.viewports['Viewport: 1'].assemblyDisplay.setValues(interactions=ON, 
    constraints=ON, connectors=ON, engineeringFeatures=ON)
a = mdb.models['Model-3'].rootAssembly
e11 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e11[4], 
    rule=MIDDLE))
a = mdb.models['Model-3'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[28], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#10 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-3'].Coupling(name='Constraint-1', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].view.setValues(nearPlane=913.171, 
    farPlane=1492.24, cameraPosition=(1054.03, -515.892, 780.515), 
    cameraUpVector=(-0.176206, 0.942854, 0.282803), cameraTarget=(300, 2.50014, 
    0))
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
a.ReferencePoint(point=a.instances['Part-1-1'].InterestingPoint(edge=e1[0], 
    rule=MIDDLE))
a = mdb.models['Model-3'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[31], )
region1=regionToolset.Region(referencePoints=refPoints1)
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#1 ]', ), )
region2=regionToolset.Region(edges=edges1)
mdb.models['Model-3'].Coupling(name='Constraint-2', controlPoint=region1, 
    surface=region2, influenceRadius=WHOLE_SURFACE, couplingType=DISTRIBUTING, 
    weightingMethod=UNIFORM, localCsys=None, u1=ON, u2=ON, u3=ON, ur1=ON, 
    ur2=ON, ur3=ON)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(loads=ON, bcs=ON, 
    predefinedFields=ON, interactions=OFF, constraints=OFF, 
    engineeringFeatures=OFF)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Initial')
session.viewports['Viewport: 1'].view.setValues(nearPlane=990.792, 
    farPlane=1414.62, cameraPosition=(-134.712, 696.882, 880.545), 
    cameraUpVector=(0.361445, 0.57735, -0.732137), cameraTarget=(300, 2.5, 
    3.05176e-005))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(-295.416, 
    656.571, 832.996), cameraTarget=(139.296, -37.8106, -47.549))
session.viewports['Viewport: 1'].view.setValues(nearPlane=1031.11, 
    farPlane=1374.3, width=314.523, height=141.07, cameraPosition=(-345.277, 
    643.171, 818.947), cameraTarget=(89.4349, -51.2102, -61.598))
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#4 ]', ), )
region = regionToolset.Region(edges=edges1)
mdb.models['Model-3'].DisplacementBC(name='BC-1', createStepName='Initial', 
    region=region, u1=SET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].view.setValues(nearPlane=929.117, 
    farPlane=1476.29, cameraPosition=(1115.06, 633.405, 637.187), 
    cameraTarget=(420.673, -60.9776, -57.1955))
session.viewports['Viewport: 1'].view.setValues(nearPlane=987.819, 
    farPlane=1417.6, width=191.723, height=85.9917, cameraPosition=(1171.46, 
    602.697, 611.496), cameraTarget=(477.072, -91.6855, -82.8864))
a = mdb.models['Model-3'].rootAssembly
e1 = a.instances['Part-1-1'].edges
edges1 = e1.getSequenceFromMask(mask=('[#4000 ]', ), )
region = regionToolset.Region(edges=edges1)
mdb.models['Model-3'].DisplacementBC(name='BC-2', createStepName='Initial', 
    region=region, u1=UNSET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(nearPlane=974.92, 
    farPlane=1430.5, width=314.523, height=141.07, cameraPosition=(1190.79, 
    605.857, 589.009), cameraTarget=(496.399, -88.5257, -105.373))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(1081.2, 
    637.761, 666.688), cameraTarget=(386.815, -56.6214, -27.6938))
session.viewports['Viewport: 1'].view.setValues(nearPlane=943.923, 
    farPlane=1461.49, width=548.91, height=246.197, cameraPosition=(1120.07, 
    631.347, 634.228), cameraTarget=(425.689, -63.0357, -60.1534))
session.viewports['Viewport: 1'].view.setValues(nearPlane=939.29, 
    farPlane=1466.12, cameraPosition=(1030.36, 701.356, 653.938), 
    cameraTarget=(335.971, 6.97318, -40.4438))
session.viewports['Viewport: 1'].view.setValues(nearPlane=974.05, 
    farPlane=1335.72, cameraPosition=(-4.37805, -417.644, 1032.11), 
    cameraUpVector=(-0.710017, 0.605601, -0.359338), cameraTarget=(335.971, 
    6.97278, -40.4436))
session.viewports['Viewport: 1'].view.setValues(nearPlane=994.597, 
    farPlane=1315.17, width=378.677, height=169.844, cameraPosition=(-28.6018, 
    -411.741, 1026.76), cameraTarget=(311.747, 12.8763, -45.7933))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(-98.4702, 
    -325.544, 1038.71), cameraTarget=(241.879, 99.0731, -33.8396))
a = mdb.models['Model-3'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[31], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-3'].DisplacementBC(name='BC-3', createStepName='Initial', 
    region=region, u1=UNSET, u2=SET, u3=SET, ur1=SET, ur2=SET, ur3=UNSET, 
    amplitude=UNSET, distributionType=UNIFORM, fieldName='', localCsys=None)
session.viewports['Viewport: 1'].view.setValues(session.views['Iso'])
session.viewports['Viewport: 1'].assemblyDisplay.setValues(step='Step-1')
a = mdb.models['Model-3'].rootAssembly
r1 = a.referencePoints
refPoints1=(r1[28], )
region = regionToolset.Region(referencePoints=refPoints1)
mdb.models['Model-3'].ConcentratedForce(name='Load-1', createStepName='Step-1', 
    region=region, cf2=-10.0, distributionType=UNIFORM, field='', 
    localCsys=None)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=ON, loads=OFF, 
    bcs=OFF, predefinedFields=OFF, connectors=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=ON)
a = mdb.models['Model-3'].rootAssembly
partInstances =(a.instances['Part-1-1'], )
a.generateMesh(regions=partInstances)
session.viewports['Viewport: 1'].assemblyDisplay.setValues(mesh=OFF)
session.viewports['Viewport: 1'].assemblyDisplay.meshOptions.setValues(
    meshTechnique=OFF)
mdb.saveAs(
    pathName='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Exp-2.cae')
#: The model database has been saved to "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae".
mdb.Job(name='Job-3', model='Model-3', description='', type=ANALYSIS, 
    atTime=None, waitMinutes=0, waitHours=0, queue=None, memory=90, 
    memoryUnits=PERCENTAGE, getMemoryFromAnalysis=True, 
    explicitPrecision=SINGLE, nodalOutputPrecision=SINGLE, echoPrint=OFF, 
    modelPrint=OFF, contactPrint=OFF, historyPrint=OFF, userSubroutine='', 
    scratch='', multiprocessingMode=DEFAULT, numCpus=4, numDomains=4, 
    numGPUs=0)
mdb.jobs['Job-3'].submit(consistencyChecking=OFF)
#: The job input file "Job-3.inp" has been submitted for analysis.
#: Job Job-3: Analysis Input File Processor completed successfully.
#: Job Job-3: Abaqus/Standard completed successfully.
#: Job Job-3 completed successfully. 
o3 = session.openOdb(
    name='E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb')
#: Model: E:/Ehsan/Amoozesh/Strength of Materials Lab/Videos/Session-2/Job-3.odb
#: Number of Assemblies:         1
#: Number of Assembly instances: 0
#: Number of Part instances:     1
#: Number of Meshes:             2
#: Number of Element Sets:       1
#: Number of Node Sets:          4
#: Number of Steps:              1
session.viewports['Viewport: 1'].setValues(displayedObject=o3)
session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=(
    CONTOURS_ON_DEF, ))
leaf = dgo.LeafFromOdbElementPick(elementPick=(('PART-1-1', 231, (
    '[#0:6 #e0c08000 #fefcf8f0 #ffffffff:5 #3f7fffff #3070f1f ]', )), (
    'ASSEMBLY', 1, ('[#2 ]', )), ), )
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=1112.49, 
    farPlane=1393.95, width=515.975, height=231.425, cameraPosition=(957.044, 
    710.659, 717.945), cameraTarget=(262.661, 16.2763, 23.5625))
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=80)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=60)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=40)
session.viewports['Viewport: 1'].odbDisplay.setFrame(step=0, frame=20)
leaf = dgo.Leaf(leafType=DEFAULT_MODEL)
session.viewports['Viewport: 1'].odbDisplay.displayGroup.replace(leaf=leaf)
session.viewports['Viewport: 1'].view.setValues(nearPlane=917.604, 
    farPlane=1487.81, width=747.932, height=335.462, cameraPosition=(960.396, 
    710.35, 714.901), cameraTarget=(266.014, 15.9675, 20.5188))
session.viewports['Viewport: 1'].view.setValues(cameraPosition=(998.957, 
    690.267, 696.422), cameraTarget=(304.575, -4.11509, 2.04031))
mdb.save()
#: The model database has been saved to "E:\Ehsan\Amoozesh\Strength of Materials Lab\Videos\Session-2\Exp-2.cae".
