Code:
from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartupRingModel=mdb.models['Model-1']
R_I=25.0
R_A=35.0
H=15.0
RingSession=session.Viewport(name='Viewport: 1', origin=(0.0, 0.0), width=168.,height=129.)
RingSession.makeCurrent()
RingSession.maximize()
RingScetch = RingModel.ConstrainedSketch(name='__profile__',sheetSize=200.0)
g, v, d, c = RingScetch.geometry, RingScetch.vertices, RingScetch.dimensions, RingScetch.constraints
RingScetch.setPrimaryObject(option=STANDALONE)
RingScetch.ConstructionLine(point1=(0.0, -100.0), point2=(0.0, 100.0))
RingScetch.FixedConstraint(entity=g[2])
RingScetch.rectangle(point1=(R_I, H), point2=(R_A, 0.0))
RingPart = RingModel.Part(name='Ring', dimensionality=THREE_D,type=DEFORMABLE_BODY)
RingPart.BaseSolidRevolve(sketch=RingScetch, angle=90.0, flipRevolveDirection=OFF)
s = RingPart.faces
#side1Faces = s.getSequenceFromMask(mask=('[#8 ]', ), )
#gefFace = s.findAt((R_I+1,H,1),(R_I+2,H,2))
gefFace = s.findAt((R_I+1,H,1))
#RingPart.Surface(side1Faces=gefFace, name='Surf-1')
#RingPart.Surface(side1Faces=[gefFace], name='Surf-1')
HpartiCoords=(R_I,5,0)
Hparti=RingPart.DatumPointByCoordinate(coords=(HpartiCoords))
e, v, d, c = RingPart.edges, RingPart.vertices, RingPart.datums,RingPart.cells
gefCelle=c.findAt(((R_I+R_A)/2,0.1,1))
gefEdge=e.findAt((R_I,H/2,0))
#RingPart.PartitionCellByPlaneNormalToEdge(edge=gefEdge, cells=gefCelle, point=d[2])
#RingPart.PartitionCellByPlaneNormalToEdge(edge=gefEdge, cells=gefCelle, point=Hparti)
RingPart.PartitionCellByPlaneNormalToEdge(edge=gefEdge, cells=gefCelle, point=[Hparti])