|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- subroutine Pumps_Inputs
-
- use CDrillingConsoleVariables
- use SimulationVariables
- Use MudSystemModule
-
- IMPLICIT NONE
-
-
-
- !>>>>>>>>>>>>>>>>>>>>>>> PUMP 1 <<<<<<<<<<<<<<<<<<<<<<<<<<<
-
- !data%State%Pump(1)%BlowPopOffMalf = 0 !??????? motaghayere voroudi
-
- if ( data%State%Pump(1)%BlowPopOffMalf==1 ) then ! Pump1 Malfunction ----> Blow Pop-offs (Relief Valves)
- data%State%Pump(1)%StandPipe_Pressure = 0.d0
- else
- data%State%Pump(1)%StandPipe_Pressure = PumpPressure1 ![psi]
- if ( data%State%Pump(1)%StandPipe_Pressure<=14.d0 ) then
- data%State%Pump(1)%StandPipe_Pressure = 14.d0
- end if
- end if
-
- data%State%Pump(1)%AssignmentSwitchh = data%Equipments%DrillingConsole%AssignmentSwitch
-
- data%State%Pump(1)%Switch = data%Equipments%DrillingConsole%MP1CPSwitch
-
- data%State%Pump(1)%Throttle = data%Equipments%DrillingConsole%MP1Throttle ![SPM] 0<MP1Throttle<data%State%Pump(1)%MaxSPM
- data%State%Pump(1)%Throttle = data%State%Pump(1)%Throttle*data%State%Pump(1)%Trans_Ratio ![RPM] 0<Pump(1)%Throttle<965 rpm
-
- !data%State%Pump(1)%PowerFailMalf = 0 !??????? motaghayere voroudi (Pump1 Malfunction ----> Power Failure) !dar CPumpProblemsVariables meghdardehi mishavad
-
- data%State%Pump(1)%Failure = data%Warnings%Pump1Failure !(Pump1 Warning ----> Failure)
-
- data%State%Pump(1)%N_new = data%State%Pump(1)%Throttle
-
-
-
-
-
-
-
- !>>>>>>>>>>>>>>>>>>>>>>> PUMP 2 <<<<<<<<<<<<<<<<<<<<<<<<<<<
-
- !data%State%Pump(2)%BlowPopOffMalf = 0 !??????? motaghayere voroudi
-
- if ( data%State%Pump(2)%BlowPopOffMalf==1 ) then ! Pump2 Malfunction ----> Blow Pop-offs (Relief Valves)
- data%State%Pump(2)%StandPipe_Pressure = 0.d0
- else
- data%State%Pump(2)%StandPipe_Pressure = PumpPressure2 ![psi]
- if ( data%State%Pump(2)%StandPipe_Pressure<=14.d0 ) then
- data%State%Pump(2)%StandPipe_Pressure = 14.d0
- end if
- end if
-
- data%State%Pump(2)%AssignmentSwitchh = data%Equipments%DrillingConsole%AssignmentSwitch
-
- data%State%Pump(2)%Switch = data%Equipments%DrillingConsole%MP2Switch
-
- data%State%Pump(2)%Throttle = data%Equipments%DrillingConsole%MP2Throttle ![SPM] 0<MP2Throttle<data%State%Pump(2)%MaxSPM
- data%State%Pump(2)%Throttle = data%State%Pump(2)%Throttle*data%State%Pump(2)%Trans_Ratio ![RPM] 0<Pump(2)%Throttle<965 rpm
-
- !data%State%Pump(2)%PowerFailMalf = 0 !??????? motaghayere voroudi (Pump2 Malfunction ----> Power Failure) !dar CPumpProblemsVariables meghdardehi mishavad
-
- data%State%Pump(2)%Failure = data%Warnings%Pump2Failure !(Pump2 Warning ----> Failure)
-
- data%State%Pump(2)%N_new = data%State%Pump(2)%Throttle
-
-
-
-
-
-
-
- !!>>>>>>>>>>>>>>>>>>>>>>> PUMP 3 <<<<<<<<<<<<<<<<<<<<<<<<<<<
-
- !data%State%Pump(3)%BlowPopOffMalf = 0 !??????? motaghayere voroudi
-
- if ( data%State%Pump(3)%BlowPopOffMalf==1 ) then ! Pump3 Malfunction ----> Blow Pop-offs (Relief Valves)
- data%State%Pump(3)%StandPipe_Pressure = 0.d0
- else
- data%State%Pump(3)%StandPipe_Pressure = PumpPressure3 ![psi]
- if ( data%State%Pump(3)%StandPipe_Pressure<=14.d0 ) then
- data%State%Pump(3)%StandPipe_Pressure = 14.d0
- end if
- end if
-
- data%State%Pump(3)%Switch = data%Equipments%DrillingConsole%MP1CPSwitch
-
- data%State%Pump(3)%Throttle = data%Equipments%DrillingConsole%MP1Throttle ![SPM] 0<MP1Throttle<data%State%Pump(3)%MaxSPM
- data%State%Pump(3)%Throttle = data%State%Pump(3)%Throttle*data%State%Pump(3)%Trans_Ratio ![RPM] 0<Pump(3)%Throttle<965 rpm
-
- !data%State%Pump(3)%PowerFailMalf = 0 !??????? motaghayere voroudi (Pump3 Malfunction ----> Power Failure) !dar CPumpProblemsVariables meghdardehi mishavad
-
- data%State%Pump(3)%Failure = data%Warnings%Pump3Failure !(Pump1 Warning ----> Failure)
-
- data%State%Pump(3)%N_new = data%State%Pump(3)%Throttle
-
-
-
-
-
-
- !>>>>>>>>>>>>>>>>>>>>>>> Total Pumps <<<<<<<<<<<<<<<<<<<<<<<<<<<
-
-
-
-
-
-
-
-
- end subroutine Pumps_Inputs
|