home *** CD-ROM | disk | FTP | other *** search
- (defun hdd89 ()
- (setvar "CMDECHO" 0)
- (command "vslide" "\\house1\\sld\\s704")
- (setq c1 0)
- (setq c1 (getstring "\n╩Σ╚δ╝╞╦π╧ε<1-4>╗≥═╦│÷╝╞╦π<.>: "))
- (cond ((= c1 "1") (dl1))
- ((= c1 "3") (dl3))
- ((= c1 "4") (dl4))
- ((= c1 ".") (dd))
- ((= c1 "2") (check 'hd3 "hd3"))
- )
- )
- (defun dl1()
- (setq y2 "c")
- (while (and (/= y2 "S11") (/= y2 "s11"))
- (setq c2 (getint "\n╩Σ╚δ╝╞╦π╧ε <11,12>: "))
- (cond ((= c2 11) (udl1))
- ((= c2 12) (ndl1))
- )
- (setq y2 (getstring "\n╝╠╨°╝╞╦π<C>╗≥═╦│÷╝╞╦π<S11>: "))
- )
- (hdd89)
- )
- (defun udl1()
- (setq Up (getreal "\nUp= "))
- (setq Rjs (getreal "\nRjs= "))
- (setq Xjs (getreal "\nXjs= "))
- (setq Iz (SQRT (+ (* Rjs Rjs) (* Xjs Xjs))))
- (setq Iz (* Iz (SQRT 3)))
- (setq Iz (/ Up Iz))
- (setq Q "Iz= ")
- (setq Iz (strcat Q (rtos Iz 2 4)))
- (print Iz)
- )
- (defun ndl1()
- (setq Xnjs (getreal "\nXnjs= "))
- (setq Ij (getreal "\nIj= "))
- (setq Sj (getreal "\nSj= "))
- (setq Inz (/ 1 Xnjs))
- (setq Iz (/ Ij Xnjs))
- (setq Sd (/ Sj Xnjs))
- (setq Q "Inz= ")
- (setq Inz (strcat Q (rtos Inz 2 4)))
- (print Inz)
- (setq Q "Iz= ")
- (setq Iz (strcat Q (rtos Iz 2 4)))
- (print Iz)
- (setq Q "Sd= ")
- (setq Sd (strcat Q (rtos Sd 2 4)))
- (print Sd)
- )
- (defun dl3 ()
- (setq I2 (getreal "\nI''= "))
- (setq Xc (getreal "\nX = "))
- (setq Rc (getreal "\nR = "))
- (setq Tf (/ Xc (* 314 Rc)))
- (setq Tf (- 0.0 (/ 0.01 Tf)))
- (setq Kch (expt Tf))
- (setq Kch (1+ kch))
- (setq sich (* Kch (* I2 (sqrt 2))))
- (setq Ich (sqrt (1+ (* 2 (* (- Kch 1) (- Kch 1))))))
- (setq Ich (* I2 Ich))
- (setq Q "Ich= ")
- (setq Ich (strcat Q (rtos Ich 2 4)))
- (print Ich)
- (setq Q "sich= ")
- (setq sich (strcat Q (rtos sich 2 4)))
- (print sich)
- (hdd89)
- )
- (defun dl4 ()
- (setq n (getint "Motor number: "))
- (setq vmtp 0) (setq vmti 0)
- (setq vmtk 0)
- (repeat n
- (setq Ped (getreal "\nPed= "))
- (setq Ked (getreal "\nKqd= "))
- (setq Ied (getreal "\nIed= "))
- (setq vmtp (+ vmtp (* Ked Ped)))
- (setq vmtk (+ vmtk Ped))
- (setq vmti (+ vmti Ied))
- )
- (setq Kqd (/ Vmtp Vmtk))
- (setq Kchd (getreal "\nKch.d= "))
- (setq ichd (* 0.9 (* 1.14 (* Kchd (* Kqd Vmti)))))
- (setq Id (* 0.9 (* Kqd Vmti)))
- (setq Ix (getreal "\nIx''(KA)= "))
- (setq Kchx (getreal "\nKchx= "))
- (setq a (+ Ix Id))
- (setq a (* a a))
- (setq b (+ (* Ix (- Kchx 1)) (* Id (- Kchd 1))))
- (setq b (* 2 (* b b)))
- (setq Ich (sqrt (+ a b)))
- (setq Q "Ich= ")
- (setq Ich (strcat Q (rtos Ich 2 4)))
- (print Ich)
- (setq Q "Id= ")
- (setq Id (strcat Q (rtos Id 2 4)))
- (print Id)
- (setq Q "ichd= ")
- (setq ichd (strcat Q (rtos ichd 2 4)))
- (print ichd)
- (hdd89)
- )
- (defun dd()
- (check 'hdd70 "hdd70")
- )
- (hdd89)