Version: 6.3.1
Variables

Package GEOM_moteur

Variables

tuple geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple myBuilder = salome.myStudy.NewBuilder()
int PosX = 0
int PosY = 0
int PosZ = 0
int NbBranches = 7
int HauteurT = 70
int Angle1 = 2
int Angle2 = 2
int HauteurR = 3
int Ep = 10
int DExtExt = 6
 DExtInt = DExtExt-Ep
int DIntExt = 3
int DIntInt = 4
tuple EpRot = DIntExt*math.sin(Angle2)
tuple Pos1C = PosX+DIntExt*math.cos(Angle2)
tuple Pos1S = PosY+DIntExt*math.sin(Angle2)
int PosCour = 4
float PosRot = 0.9
tuple BasicOp = geom.GetIBasicOperations(salome.myStudyId)
tuple OO = BasicOp.MakePointXYZ(0, 0, 0)
tuple P0 = BasicOp.MakePointXYZ(0, 0, 1)
tuple P1 = BasicOp.MakePointXYZ(PosX, PosY, PosZ)
tuple P2 = BasicOp.MakePointXYZ(PosX, PosY, PosZ + Ep)
tuple P3 = BasicOp.MakePointXYZ(PosX, PosY, PosCour)
tuple P4 = BasicOp.MakePointXYZ(PosX, PosY, PosCour + Ep)
tuple P5 = BasicOp.MakePointXYZ(PosX, PosY, PosRot)
tuple P6 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ)
tuple P7 = BasicOp.MakePointXYZ(PosX + DExtExt, Pos1S, PosZ)
tuple P8 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ + HauteurT)
tuple V1 = BasicOp.MakeVectorTwoPnt(OO,P0)
tuple V2 = BasicOp.MakeVectorTwoPnt(P1,P2)
tuple V3 = BasicOp.MakeVectorTwoPnt(P6,P8)
tuple C0 = geompy.MakeCylinder(P1, V1, DIntInt, PosCour + Ep - PosZ)
tuple C01 = geompy.MakeCylinder(P1, V1, DIntExt, PosCour + Ep - PosZ)
tuple Cylindre = geompy.MakeBoolean(C01, C0, 2)
tuple B1 = BasicOp.MakeVectorTwoPnt(P6, P7)
tuple B2 = geompy.MakePrismVecH(B1, V1, HauteurT)
tuple S0 = geompy.MakeRevolution(B2, V3, Angle1)
list CoupeList = []
int Ind = 1
tuple S = geompy.MakeRotation(S0, V2, Ind * Angle1)
tuple Coupe1 = geompy.MakeCompound(CoupeList)
tuple C1 = geompy.MakeCylinder(P1, V1, DExtExt, HauteurT)
tuple C2 = geompy.MakeCylinder(P2, V1, DExtInt, HauteurT)
tuple C3 = geompy.MakeBoolean(C1, C2, 2)
tuple C31 = geompy.MakeBoolean(C3, C0, 2)
tuple Couronne1 = geompy.MakeBoolean(C31, Coupe1, 2)
tuple C4 = geompy.MakeCylinder(P3, V1, DExtExt, PosZ + HauteurT - PosCour)
tuple C5 = geompy.MakeCylinder(P4, V1, DExtInt, HauteurT)
tuple Coupe2 = geompy.MakeRotation(Coupe1, V2, Angle2)
tuple C6 = geompy.MakeBoolean(C4, C5, 2)
tuple C61 = geompy.MakeBoolean(C6, C0, 2)
tuple Couronne2 = geompy.MakeBoolean(C61, Coupe2, 2)
tuple C9 = geompy.MakeCylinder(P5, V1, DIntExt, HauteurR)
tuple C10 = geompy.MakeCylinder(P5, V1, DIntExt / 4, 2 * HauteurR)
list Rotor1List = []
tuple Rotor1 = geompy.MakeCompound(Rotor1List)
tuple Id_Rotor1 = geompy.addToStudy(Rotor1, "Rotor1")
tuple D0 = geompy.MakeBox(2 * Pos1C - PosX, -Pos1S + 2 * PosY, PosRot, 2 * Pos1C + EpRot - PosX, Pos1S, PosRot + EpRot / 2)
list Rotor2List = []
tuple R = geompy.MakeRotation(D0, V2, Ind * Angle1)
tuple Rotor2 = geompy.MakeCompound(Rotor2List)
tuple Id_Rotor2 = geompy.addToStudy(Rotor2, "Rotor2")
tuple Rotor3 = geompy.MakeRotation(Rotor2, V2, Angle2)
tuple Id_Rotor3 = geompy.addToStudy(Rotor3, "Rotor3")
list StatorList = []
tuple Stator = geompy.MakeCompound(StatorList)
tuple Id_Stator = geompy.addToStudy(Stator, "Stator")

Variable Documentation

tuple GEOM_moteur.geom = salome.lcc.FindOrLoadComponent("FactoryServer", "GEOM")
tuple GEOM_moteur.myBuilder = salome.myStudy.NewBuilder()
int GEOM_moteur.Ep = 10
tuple GEOM_moteur.EpRot = DIntExt*math.sin(Angle2)
tuple GEOM_moteur.Pos1C = PosX+DIntExt*math.cos(Angle2)
tuple GEOM_moteur.Pos1S = PosY+DIntExt*math.sin(Angle2)
float GEOM_moteur.PosRot = 0.9
tuple GEOM_moteur.BasicOp = geom.GetIBasicOperations(salome.myStudyId)
tuple GEOM_moteur.OO = BasicOp.MakePointXYZ(0, 0, 0)
tuple GEOM_moteur.P0 = BasicOp.MakePointXYZ(0, 0, 1)
tuple GEOM_moteur.P1 = BasicOp.MakePointXYZ(PosX, PosY, PosZ)
tuple GEOM_moteur.P2 = BasicOp.MakePointXYZ(PosX, PosY, PosZ + Ep)
tuple GEOM_moteur.P3 = BasicOp.MakePointXYZ(PosX, PosY, PosCour)
tuple GEOM_moteur.P4 = BasicOp.MakePointXYZ(PosX, PosY, PosCour + Ep)
tuple GEOM_moteur.P5 = BasicOp.MakePointXYZ(PosX, PosY, PosRot)
tuple GEOM_moteur.P6 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ)
tuple GEOM_moteur.P7 = BasicOp.MakePointXYZ(PosX + DExtExt, Pos1S, PosZ)
tuple GEOM_moteur.P8 = BasicOp.MakePointXYZ(Pos1C, Pos1S, PosZ + HauteurT)
tuple GEOM_moteur.V1 = BasicOp.MakeVectorTwoPnt(OO,P0)
tuple GEOM_moteur.V2 = BasicOp.MakeVectorTwoPnt(P1,P2)
tuple GEOM_moteur.V3 = BasicOp.MakeVectorTwoPnt(P6,P8)
tuple GEOM_moteur.C0 = geompy.MakeCylinder(P1, V1, DIntInt, PosCour + Ep - PosZ)
tuple GEOM_moteur.C01 = geompy.MakeCylinder(P1, V1, DIntExt, PosCour + Ep - PosZ)
tuple GEOM_moteur.Cylindre = geompy.MakeBoolean(C01, C0, 2)
tuple GEOM_moteur.B1 = BasicOp.MakeVectorTwoPnt(P6, P7)
tuple GEOM_moteur.B2 = geompy.MakePrismVecH(B1, V1, HauteurT)
tuple GEOM_moteur.S0 = geompy.MakeRevolution(B2, V3, Angle1)
tuple GEOM_moteur.S = geompy.MakeRotation(S0, V2, Ind * Angle1)
tuple GEOM_moteur.Coupe1 = geompy.MakeCompound(CoupeList)
tuple GEOM_moteur.C1 = geompy.MakeCylinder(P1, V1, DExtExt, HauteurT)
tuple GEOM_moteur.C2 = geompy.MakeCylinder(P2, V1, DExtInt, HauteurT)
tuple GEOM_moteur.C3 = geompy.MakeBoolean(C1, C2, 2)
tuple GEOM_moteur.C31 = geompy.MakeBoolean(C3, C0, 2)
tuple GEOM_moteur.Couronne1 = geompy.MakeBoolean(C31, Coupe1, 2)
tuple GEOM_moteur.C4 = geompy.MakeCylinder(P3, V1, DExtExt, PosZ + HauteurT - PosCour)
tuple GEOM_moteur.C5 = geompy.MakeCylinder(P4, V1, DExtInt, HauteurT)
tuple GEOM_moteur.Coupe2 = geompy.MakeRotation(Coupe1, V2, Angle2)
tuple GEOM_moteur.C6 = geompy.MakeBoolean(C4, C5, 2)
tuple GEOM_moteur.C61 = geompy.MakeBoolean(C6, C0, 2)
tuple GEOM_moteur.Couronne2 = geompy.MakeBoolean(C61, Coupe2, 2)
tuple GEOM_moteur.C9 = geompy.MakeCylinder(P5, V1, DIntExt, HauteurR)
tuple GEOM_moteur.C10 = geompy.MakeCylinder(P5, V1, DIntExt / 4, 2 * HauteurR)
tuple GEOM_moteur.Rotor1 = geompy.MakeCompound(Rotor1List)
tuple GEOM_moteur.Id_Rotor1 = geompy.addToStudy(Rotor1, "Rotor1")
tuple GEOM_moteur.D0 = geompy.MakeBox(2 * Pos1C - PosX, -Pos1S + 2 * PosY, PosRot, 2 * Pos1C + EpRot - PosX, Pos1S, PosRot + EpRot / 2)
tuple GEOM_moteur.R = geompy.MakeRotation(D0, V2, Ind * Angle1)
tuple GEOM_moteur.Rotor2 = geompy.MakeCompound(Rotor2List)
tuple GEOM_moteur.Id_Rotor2 = geompy.addToStudy(Rotor2, "Rotor2")
tuple GEOM_moteur.Rotor3 = geompy.MakeRotation(Rotor2, V2, Angle2)
tuple GEOM_moteur.Id_Rotor3 = geompy.addToStudy(Rotor3, "Rotor3")
tuple GEOM_moteur.Stator = geompy.MakeCompound(StatorList)
tuple GEOM_moteur.Id_Stator = geompy.addToStudy(Stator, "Stator")
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS