Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CTanksVariables.f90 989 B

1 year ago
1 year ago
1 year ago
1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. module CTanksVariables
  2. implicit none
  3. public
  4. Type :: TankType
  5. ! Input vars
  6. real(8) :: WaterRate
  7. real(8) :: CementTankVolume
  8. real(8) :: CementTankDensity
  9. real(8) :: TripTankVolume
  10. real(8) :: TripTankDensity
  11. logical :: ManualPumpPower
  12. logical :: Valve1
  13. logical :: Valve2
  14. logical :: Valve3
  15. logical :: Valve4
  16. logical :: Valve5
  17. logical :: Valve6
  18. logical :: Valve7
  19. logical :: Valve8
  20. logical :: Valve9
  21. logical :: Valve10
  22. logical :: Valve11
  23. End Type TankType
  24. Type(TankType)::Tank
  25. contains
  26. subroutine Set_ManualPumpPower(v)
  27. use CManifolds, only:ChangeValve
  28. implicit none
  29. logical, intent(in) :: v
  30. Tank%ManualPumpPower = v
  31. call ChangeValve(43, v)
  32. #ifdef deb
  33. print*, 'ManualPumpPower=', Tank%ManualPumpPower
  34. #endif
  35. end subroutine
  36. end module CTanksVariables