Theory THERMODYNAMICS

A thermodynamics domain theory.

Theories included by Thermodynamics:

    Dme
       Cml
          Unary-Scalar-Functions
             Physical-Quantities
                Frame-Ontology
                   Kif-Relations
                      Kif-Sets
                      Kif-Lists
                         Kif-Numbers
                Abstract-Algebra
                   Frame-Ontology ...
             Standard-Units
                Physical-Quantities ...
          Standard-Units ...
    Cml ...

No theories include Thermodynamics.

122 classes defined:

    1-1-Control-Volume-Op-Mode
       Internally-Reversible-Adiabatic-Process
       Pump-Power-Input-Per-Mass-Approximation
    2-1-Open-Feedwater-Heater-System
    2-2-Closed-Feedwater-Heater-System
    2d-Stream-Operating-Mode
       Non-Saturated-Water-Stream-Enthalpy
       Saturated-Water-Stream-Enthalpy
       Saturated-Water-Stream-Entropy
       Saturated-Water-Stream-Specific-Volume
       2d-Stream-Mass-Flow-Rate
       2d-Stream-Enthalpy-Rate
       2d-Stream-Potential-Energy
       2d-Stream-Kinetic-Energy
    3-1-Open-Feedwater-Heater-System
    Air-Operating-Mode
       Control-Volume-Inlet-Stream-Thermodynamic-State
       Control-Volume-Outlet-Stream-Thermodynamic-State
    Boiler-System
    Compressor-System
    Control-Volume-Op-Mode
       Cycle-Heat-Input
       Cycle-Work-Output
       Control-Volume-Inlet-Stream-Ideal-Gas-Law
       Control-Volume-Outlet-Stream-Ideal-Gas-Law
       Control-Volume-Inlet-Stream-Thermodynamic-State
       Control-Volume-Outlet-Stream-Thermodynamic-State
       Control-Volume-Negligible-Pe-Change
       Control-Volume-Negligible-Ke-Change
    Earth-Bound-Model
       2d-Stream-Potential-Energy
    Extraction-Turbine-System
    Nozzle-System
    Pump-Operating-Mode
       Pump-Power-Input-Per-Mass-Approximation
    Pump-System
    Steam-Generator-With-Reheat-System
    Stream-Junction
    Substance
       Fuel
       Water
       Air
    Substance-Container
       Stream
          2d-Stream
       Control-Volume
          1-Input-Control-Volume
             1-1-Control-Volume
             1-2-Control-Volume
          1-Output-Control-Volume
             1-1-Control-Volume
             2-1-Control-Volume
             3-1-Control-Volume
          2-Input-Control-Volume
             3-Input-Control-Volume
                3-1-Control-Volume
             2-1-Control-Volume
             2-2-Control-Volume
          2-Output-Control-Volume
             1-2-Control-Volume
             2-2-Control-Volume
    System-With-Condensor
       Condensor-System
       Condensor-With-Heat-Transfer-System
    Thermal-Component-Op-Mode
       Cycle-Heat-Input
    Thermal-Cycle-Op-Mode
       Cycle-Heat-Input
       Cycle-Work-Output
    Thermal-Process
       Steady-State-Steady-Flow-Process
          Steady-Flow-Adiabatic-Process
             Steady-Flow-Isentropic-Process
             Steady-Flow-Adiabatic-Heat-Exchange
             Steady-Flow-Adiabatic-Expansion
             Steady-Flow-Adiabatic-Compression
             Steady-Flow-Throttling
             Steady-Flow-Adiabatic-Mixing
                Steady-Flow-Combustion-Process
             Steady-Flow-In-Nozzle
             Steady-Flow-In-Diffuser
          Steady-Flow-Isobaric-Process
             Steady-Flow-Isobaric-Heat-Transfer
          Steady-Flow-Isothermal-Process
          Steady-Flow-Heat-Transfer
             Steady-Flow-Isobaric-Heat-Transfer
          Steady-Flow-Expansion-Or-Compression
             Steady-Flow-Expansion
                Steady-Flow-Adiabatic-Expansion
                Steady-Flow-Throttling
                Steady-Flow-In-Nozzle
          Steady-Flow-Compression
             Steady-Flow-Adiabatic-Compression
             Steady-Flow-In-Diffuser
       Non-Steady-State-Flow-Process
    Thermal-Process-Op-Mode
       Cycle-Heat-Input
       Cycle-Work-Output
       Pump-Power-Input-Per-Mass-Approximation
    Thermal-System
       Thermal-Cycle
          Power-System-Eight-One
          Power-System-With-Reheat
          Power-System-With-Extraction-Turbines
       Thermal-Component
          Port
          1-Input-Thermal-Component
             1-1-Port-Thermal-Component
                Nozzle
                Simple-Turbine
                2-Port-Heat-Exchanger
                Compressor
                   Pump
                Pump
                Boiler
             1-2-Port-Thermal-Component
                Extraction-Turbine
          1-Output-Thermal-Component
             1-1-Port-Thermal-Component ...
             2-1-Port-Thermal-Component
                2-1-Open-Feedwater-Heater
             3-1-Port-Thermal-Component
                3-1-Open-Feedwater-Heater
          2-Input-Thermal-Component
             3-Input-Thermal-Component
                3-1-Port-Thermal-Component ...
             2-1-Port-Thermal-Component ...
             2-2-Port-Thermal-Component
                2-2-Open-Feedwater-Heater
                2-2-Closed-Feedwater-Heater
                Steam-Generator-With-Reheat
          2-Output-Thermal-Component
             1-2-Port-Thermal-Component ...
             2-2-Port-Thermal-Component ...
          Fuel-Consuming-Component
          Work-Consuming-Component
             Compressor ...
          Work-Producing-Component
             Internal-Combustion-Engine
             Turbine
                Simple-Turbine
                Extraction-Turbine
          Heating-Component
          Cooling-Component
          Rotating-Component
          Positive-Displacement-Component
             Reciprocating-Component
                Internal-Combustion-Engine
          Turbine ...
          Heat-Exchanger
             2-Port-Heat-Exchanger
             4-Port-Heat-Exchanger
             Open-Feedwater-Heater
                2-1-Open-Feedwater-Heater
                2-2-Open-Feedwater-Heater
                3-1-Open-Feedwater-Heater
             2-2-Closed-Feedwater-Heater
    Turbine-System
    Water-Operating-Mode
       Non-Saturated-Water-Stream-Enthalpy
       Saturated-Water-Stream-Enthalpy
       Saturated-Water-Stream-Entropy
       Saturated-Water-Stream-Specific-Volume

10 relations defined:

226 functions defined:

36 instances defined:

The following constants were used from included theories:

The following constants were undefined:

False True Adiabatic-Throttling State-Temperature *Dead-State*


Physical-dimension AMOUNT-DIMENSION

The SI dimension of amount, usually measured in moles.
Instance-Of: Physical-dimension

Physical-dimension CURRENT-DIMENSION

The SI dimension of electric current.
Instance-Of: Physical-dimension

Physical-dimension DIMENSIONLESS

The dimensionless dimension.
Instance-Of: Physical-dimension

Physical-dimension LENGTH-DIMENSION

The SI dimension of length.
Instance-Of: Physical-dimension

Physical-dimension LUMINOSITY-DIMENSION

The SI dimension of luminosity.
Instance-Of: Physical-dimension

Physical-dimension MASS-DIMENSION

The SI dimension of mass.
Instance-Of: Physical-dimension

Physical-dimension TEMPERATURE-DIMENSION

The SI dimension of temperature.
Instance-Of: Physical-dimension

Physical-dimension TIME-DIMENSION

The SI dimension of time.
Instance-Of: Physical-dimension

Physical-dimension MASS-RATE-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Mass-Rate-Dimension (/ Mass-Dimension Time-Dimension)) 


Physical-dimension VELOCITY-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Velocity-Dimension (/ Length-Dimension Time-Dimension)) 


Physical-dimension AREA-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Area-Dimension (Expt Length-Dimension 2)) 


Physical-dimension VOLUME-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Volume-Dimension (Expt Length-Dimension 3)) 


Physical-dimension SPECIFIC-VOLUME-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Specific-Volume-Dimension (/ Volume-Dimension Mass-Dimension)) 


Physical-dimension ENERGY-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Energy-Dimension
   (/ (* Mass-Dimension (Expt Length-Dimension 2)) 
      (Expt Time-Dimension 2) ))


Physical-dimension SPECIFIC-ENERGY-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Specific-Energy-Dimension (/ Energy-Dimension Mass-Dimension)) 


Physical-dimension ENERGY-RATE-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Energy-Rate-Dimension (/ Energy-Dimension Time-Dimension)) 


Physical-dimension WORK-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Work-Dimension Energy-Dimension) 


Physical-dimension POWER-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Power-Dimension (/ Work-Dimension Time-Dimension)) 


Physical-dimension ENTROPY-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Entropy-Dimension (/ Energy-Dimension Temperature-Dimension)) 


Physical-dimension SPECIFIC-ENTROPY-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Specific-Entropy-Dimension (/ Entropy-Dimension Mass-Dimension)) 


Physical-dimension ENTROPY-RATE-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Entropy-Rate-Dimension (/ Entropy-Dimension Time-Dimension)) 


Physical-dimension PRESSURE-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Pressure-Dimension
   (/ Mass-Dimension (* Length-Dimension (Expt Time-Dimension 2))) )


Constant-quantity METER

Instance-Of: Constant-quantity
Quantity.Dimension: Length-dimension

Constant-quantity KILOGRAM

Instance-Of: Constant-quantity
Quantity.Dimension: Mass-dimension

Constant-quantity SECOND

Instance-Of: Constant-quantity
Quantity.Dimension: Time-dimension

Constant-quantity AMPERE

Instance-Of: Constant-quantity
Quantity.Dimension: Current-dimension

Constant-quantity KELVIN

Instance-Of: Constant-quantity
Quantity.Dimension: Temperature-dimension

Constant-quantity MOLE

Instance-Of: Constant-quantity
Quantity.Dimension: Amount-dimension

Constant-quantity CANDELA

Instance-Of: Constant-quantity
Quantity.Dimension: Luminosity-dimension

Physical-dimension MOLECULAR-WEIGHT-DIMENSION

the dimension of mass/mole
Instance-Of: Physical-dimension
Axioms:
(= Molecular-Weight-Dimension (/ Mass-Dimension Amount-Dimension)) 


Constant-quantity KG/MOL

Instance-Of: Constant-quantity
Quantity.Dimension: Molecular-weight-dimension
Axioms:
(= Kg/Mol (/ Kilogram Mole)) 


Physical-dimension DENSITY-DIMENSION

the dimension of mass/volume
Instance-Of: Physical-dimension
Axioms:
(= Density-Dimension (/ Mass-Dimension Volume-Dimension)) 


Constant-quantity KG/M^3

Instance-Of: Constant-quantity
Quantity.Dimension: Density-dimension
Axioms:
(= Kg/M^3 (/ Kilogram (Expt Meter 3))) 


Physical-dimension ACCELERATION-DIMENSION

the dimension of acceleration
Instance-Of: Physical-dimension
Axioms:
(= Acceleration-Dimension (/ Velocity-Dimension Time-Dimension)) 


Constant-quantity M/S^2

Instance-Of: Constant-quantity
Quantity.Dimension: Acceleration-dimension
Axioms:
(= M/S^2 (/ Meter (Expt Second 2))) 


Physical-dimension FREQUENCY-DIMENSION

Instance-Of: Physical-dimension
Axioms:
(= Frequency-Dimension (Expt Time-Dimension -1)) 


Relation MUTUAL-DEPENDENCE

mutual-dependence is an n-ary operator. The meaning is not

well-defined right now. Eg: (mutual-dependence (stream-pressure

2d-stream-1) (stream-temperature 2d-stream-1) (specific-entropy

2d-stream-1) (specific-enthalpy 2d-stream-1) (specific-internal-energy 2d-stream-1) (specific-volume

2d-stream-1)) We don't know how to compute this yet. It will be a

call to an outside routine or a table lookup.

Arity: 6

Function COMPUTE-AIR-THERMODYNAMIC-STATE

Computes the specific enthalpy from the temperature. Eg: (compute-air-thermodynamic-state (stream-temperature 2d-stream-1))

We don't know how to compute this yet. It will be a call to an

outside routine or a table lookup.

Arity: 2

Function COMPUTE-SATURATED-VAPOR-ENTHALPY

Computes the specific enthalpy of saturated vapor from the quality (0 or 1) and the pressure. Eg: (compute-saturated-vapor-entropy (stream-pressure (stream-involved ?self)) (quality (stream-involved
?self))) We don't know how to compute this yet. It will be a call to an outside routine or a table lookup.
Arity: 2

Function COMPUTE-SATURATED-VAPOR-ENTROPY

Computes the specific entropy of saturated vapor from the quality (0 or 1) and the pressure.

Eg: (compute-saturated-vapor-entropy (stream-pressure (stream-involved ?self))
(quality (stream-involved ?self)))

We don't know how to compute this yet. It will be a call to an outside routine or a table lookup.

Arity: 2

Function COMPUTE-SATURATED-VAPOR-SPECIFIC-VOLUME

Computes the specific volume of saturated vapor from the quality (0 or 1) and the pressure.

Eg: (compute-saturated-vapor-specific-volume (stream-pressure (stream-involved ?self))
(quality (stream-involved ?self)))

We don't know how to compute this yet. It will be a call to an outside routine or a table lookup.

Arity: 2

Function COMPUTE-ENTHALPY-PRESSURE-SPECIFIC-ENTROPY

Computes the enthalpy from pressure and specific entropy. We don't

compute this yet. It will be a call to an outside routine or a

table lookup.

Arity: 2

Class THERMAL-SYSTEM

thermodynamic system
Subclass-Of: Entity, Thing
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-System ?Self) 
             (And (Thermal-System ?Self) (Active ?Time Thing ?Self)) ))


Relation COMPONENT-CV

the control-volume associated with the system
Instance-Of: Connection, Relation
Arity: 2
Domain: Thermal-system
Range: Control-volume

Class THERMAL-CYCLE

a thermodynamic system involving a cycle
Subclass-Of: Entity, Thermal-system
Arity: 1
Has-Quantity-Function:
Back-work-ratio, Cycle-mass-rate, Net-heat-input-rate, Net-heat-output-rate, Net-work-output-rate, Thermal-efficiency

Slots Of Instances:

Back-Work-Ratio:
Slot-Documentation: the ratio of the pump work inut tot the work developed by the turbine
Cycle-Mass-Rate:
Slot-Documentation: the mass flow rate of the main medium flowing through the thermal cycle
Net-Heat-Input-Rate:
Slot-Documentation: the net heat input rate into the cycle from outside including only actively added heat such as heat added to the boiler but not including heat such as heat lost from the condenser
Net-Heat-Output-Rate:
Slot-Documentation: the net heat output rate of the thermal cycle
Net-Work-Output-Rate:
Slot-Documentation: the net work output rate of the thermal cycle
Thermal-Efficiency:
Slot-Documentation: thermal efficiency of the whole cycle defined as 'sum of work / heat input to the cycle'
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Thermal-Cycle ?Self) 
            (= (/ (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Net-Work-Output-Rate ?Self) 
                                        ?T)))
                  1000000 )
               (- (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Net-Heat-Input-Rate ?Self) 
                                        ?T)))
                  (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Net-Heat-Output-Rate ?Self) 
                                        ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-Cycle ?Self) 
             (And (Thermal-Cycle ?Self) 
                  (Active ?Time Thermal-System ?Self) )))

(=> (Thermal-Cycle ?Self) 
    (And (Quantity.Dimension (Net-Heat-Output-Rate ?Self) 
                             Power-Dimension)
         (Quantity.Dimension (Net-Work-Output-Rate ?Self) 
                             Power-Dimension)
         (Quantity.Dimension (Net-Heat-Input-Rate ?Self) 
                             Power-Dimension)
         (Quantity.Dimension (Thermal-Efficiency ?Self) 
                             Dimensionless)
         (Quantity.Dimension (Back-Work-Ratio ?Self) Dimensionless) 
         (Quantity.Dimension (Cycle-Mass-Rate ?Self) 
                             Mass-Rate-Dimension)))


Function NET-HEAT-OUTPUT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-cycle
Range: Everywhere-continuous-quantity

Function NET-WORK-OUTPUT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-cycle
Range: Everywhere-continuous-quantity

Function NET-HEAT-INPUT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-cycle
Range: Everywhere-continuous-quantity

Function THERMAL-EFFICIENCY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-cycle
Range: Everywhere-continuous-quantity

Function BACK-WORK-RATIO

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-cycle
Range: Everywhere-continuous-quantity

Function CYCLE-MASS-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-cycle
Range: Everywhere-continuous-quantity

Relation CYCLE-PROCESSES

the set of all the processes that are part of the cycle
Arity: 2
Domain: Thermal-cycle
Range: Thermal-process

Class THERMAL-PROCESS-OP-MODE

the operating modes of thermal processes
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: Process-involved

Slots Of Instances:

Process-Involved:
Slot-Documentation: the thermal process involved in the operating mode
Axioms:
(Forall (?Self ?Process-Involved) 
        (<=> (And (= (Process-Involved ?Self) ?Process-Involved) 
                  (Thermal-Process-Op-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) 
                  (Thermal-Process ?Process-Involved) )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-Process-Op-Mode ?Self) 
             (And (Thermal-Process-Op-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function PROCESS-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Thermal-process-op-mode

Class THERMAL-CYCLE-OP-MODE

the operating modes of thermal cycles
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: Cycle-involved

Slots Of Instances:

Cycle-Involved:
Slot-Documentation: the thermal cycle involved in the operating mode
Axioms:
(Forall (?Self ?Cycle-Involved) 
        (<=> (And (= (Cycle-Involved ?Self) ?Cycle-Involved) 
                  (Thermal-Cycle-Op-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) 
                  (Thermal-Cycle ?Cycle-Involved) )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-Cycle-Op-Mode ?Self) 
             (And (Thermal-Cycle-Op-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function CYCLE-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Thermal-cycle-op-mode

Class THERMAL-COMPONENT-OP-MODE

the operating modes of thermal components
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: Component-involved

Slots Of Instances:

Component-Involved:
Slot-Documentation: the thermal components involved in the operating mode
Axioms:
(Forall (?Self ?Component-Involved) 
        (<=> (And (= (Component-Involved ?Self) ?Component-Involved) 
                  (Thermal-Component-Op-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) 
                  (Thermal-Component ?Component-Involved) )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-Component-Op-Mode ?Self) 
             (And (Thermal-Component-Op-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function COMPONENT-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Thermal-component-op-mode

Class CYCLE-HEAT-INPUT

the operating mode of a thermal cycle for computing the net heat input rate
Subclass-Of:
Control-volume-op-mode, Model-fragment, Thermal-component-op-mode, Thermal-cycle-op-mode, Thermal-process-op-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Cycle-Heat-Input ?Self) 
             (And (Thermal-Process-Op-Mode ?Self) 
                  (Thermal-Cycle-Op-Mode ?Self) 
                  (Control-Volume-Op-Mode ?Self) 
                  (Thermal-Component-Op-Mode ?Self) 
                  (Process-Cv Process-Involved Cv-Involved) 
                  (Component-Cv Component-Involved Cv-Involved) 
                  (Connected-To-External-Heat-Source-P 
                      Component-Involved
                      True))))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Cycle-Heat-Input ?Self) 
        (C+ (Lambda (?T) 
                    (If (= ?T ?Time) 
                        (Value-At (Heat-Rate (Process-Involved ?Self) )
                                  ?T)))
            (Lambda 
                (?T) 
                (If (= ?T ?Time) 
                    (Value-At (Net-Heat-Input-Rate 
                                  (Cycle-Involved ?Self) )
                              ?T))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Cycle-Heat-Input ?Self) 
             (And (Cycle-Heat-Input ?Self) 
                  (Active ?Time Thermal-Process-Op-Mode ?Self) 
                  (Active ?Time Thermal-Cycle-Op-Mode ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) 
                  (Active ?Time Thermal-Component-Op-Mode ?Self) )))


Class CYCLE-WORK-OUTPUT

the operating mode of a thermal cycle for computing the net work output rate
Subclass-Of:
Control-volume-op-mode, Model-fragment, Thermal-cycle-op-mode, Thermal-process-op-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Cycle-Work-Output ?Self) 
             (And (Thermal-Process-Op-Mode ?Self) 
                  (Thermal-Cycle-Op-Mode ?Self) 
                  (Control-Volume-Op-Mode ?Self) 
                  (Process-Cv Process-Involved Cv-Involved) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Cycle-Work-Output ?Self) 
        (C+ (Lambda (?T) 
                    (If (= ?T ?Time) 
                        (Value-At (Work-Rate (Process-Involved ?Self) )
                                  ?T)))
            (Lambda 
                (?T) 
                (If (= ?T ?Time) 
                    (Value-At 
                        (Net-Work-Output-Rate (Cycle-Involved ?Self)) 
                        ?T))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Cycle-Work-Output ?Self) 
             (And (Cycle-Work-Output ?Self) 
                  (Active ?Time Thermal-Process-Op-Mode ?Self) 
                  (Active ?Time Thermal-Cycle-Op-Mode ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class THERMAL-COMPONENT

a thermodynamic device
Subclass-Of: Entity, Thermal-system
Arity: 1
Has-Quantity-Function: Capacity, Connected-to-external-heat-source-p, Efficiency

Slots Of Instances:

Capacity:
Slot-Documentation: the capacity of a thermal component, which is defined differently depending on the type of the component
Connected-To-External-Heat-Source-P:
Slot-Documentation: the attribute indicating that the control volume is connected to an active external heat source
Efficiency:
Slot-Documentation: the efficiency of a thermal component, which is defined differently depending on the type of component
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-Component ?Self) 
             (And (Thermal-Component ?Self) 
                  (Active ?Time Thermal-System ?Self) )))

(=> (Thermal-Component ?Self) 
    (Quantity.Dimension (Efficiency ?Self) Dimensionless) )


Function EFFICIENCY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-component
Range: Everywhere-continuous-quantity

Function CAPACITY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-component
Range: Everywhere-continuous-quantity

Function CONNECTED-TO-EXTERNAL-HEAT-SOURCE-P

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-component
Range: Everywhere-continuous-quantity

Class PORT

In the thermal domain, all the ports are fluid ports.

Unlike 'terminal' in DME, a port is independent of a component.

It is a combination of a 'joint' and a 'terminal'.

Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Port-area, Port-elevation

Slots Of Instances:

Port-Area:
Slot-Documentation: the area of the cross section of the port
Port-Elevation:
Slot-Documentation: the elevation of the port with respect to some reference point
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Port ?Self) 
             (And (Port ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Port ?Self) 
    (And (Quantity.Dimension (Port-Area ?Self) Area-Dimension) 
         (Quantity.Dimension (Port-Elevation ?Self) Length-Dimension) ))


Function PORT-AREA

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Port
Range: Everywhere-continuous-quantity

Function PORT-ELEVATION

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Port
Range: Everywhere-continuous-quantity

Class 1-INPUT-THERMAL-COMPONENT

the class of thermal components with one inlet
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Attribute-Function: Component-inlet

Slots Of Instances:

Component-Inlet:
Slot-Documentation: the inlet port
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-Input-Thermal-Component ?Self) 
             (And (1-Input-Thermal-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))


Function COMPONENT-INLET

An attribute function
Arity: 2
Attribute-Function-Of: 1-input-thermal-component

Class 1-OUTPUT-THERMAL-COMPONENT

the class of thermal components with one outlet
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Attribute-Function: Component-outlet

Slots Of Instances:

Component-Outlet:
Slot-Documentation: the outlet port
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-Output-Thermal-Component ?Self) 
             (And (1-Output-Thermal-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))


Function COMPONENT-OUTLET

An attribute function
Arity: 2
Attribute-Function-Of: 1-output-thermal-component

Class 2-INPUT-THERMAL-COMPONENT

the class of thermal components with two inlets
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Attribute-Function: Component-inlet1, Component-inlet2

Slots Of Instances:

Component-Inlet1:
Slot-Documentation: the first inlet port
Component-Inlet2:
Slot-Documentation: the second inlet port
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-Input-Thermal-Component ?Self) 
             (And (2-Input-Thermal-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))


Function COMPONENT-INLET1

An attribute function
Arity: 2
Attribute-Function-Of: 2-input-thermal-component

Function COMPONENT-INLET2

An attribute function
Arity: 2
Attribute-Function-Of: 2-input-thermal-component

Class 3-INPUT-THERMAL-COMPONENT

the class of thermal components with three inlets
Subclass-Of: 2-input-thermal-component, Entity
Arity: 1
Has-Attribute-Function: Component-inlet3

Slots Of Instances:

Component-Inlet3:
Slot-Documentation: the third inlet port
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 3-Input-Thermal-Component ?Self) 
             (And (3-Input-Thermal-Component ?Self) 
                  (Active ?Time 2-Input-Thermal-Component ?Self) )))


Function COMPONENT-INLET3

An attribute function
Arity: 2
Attribute-Function-Of: 3-input-thermal-component

Class 2-OUTPUT-THERMAL-COMPONENT

the class of thermal components with two outlets
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Attribute-Function: Component-outlet1, Component-outlet2

Slots Of Instances:

Component-Outlet1:
Slot-Documentation: the first outlet port
Component-Outlet2:
Slot-Documentation: the second outlet port
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-Output-Thermal-Component ?Self) 
             (And (2-Output-Thermal-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))


Function COMPONENT-OUTLET1

An attribute function
Arity: 2
Attribute-Function-Of: 2-output-thermal-component

Function COMPONENT-OUTLET2

An attribute function
Arity: 2
Attribute-Function-Of: 2-output-thermal-component

Class 1-1-PORT-THERMAL-COMPONENT

The class of thermal components with one inlet and one outlet.
Subclass-Of: 1-input-thermal-component, 1-output-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-1-Port-Thermal-Component ?Self) 
             (And (1-1-Port-Thermal-Component ?Self) 
                  (Active ?Time 1-Input-Thermal-Component ?Self) 
                  (Active ?Time 1-Output-Thermal-Component ?Self) )))


Class 1-2-PORT-THERMAL-COMPONENT

The class of thermal components with one inlet and two outlets.
Subclass-Of: 1-input-thermal-component, 2-output-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-2-Port-Thermal-Component ?Self) 
             (And (1-2-Port-Thermal-Component ?Self) 
                  (Active ?Time 1-Input-Thermal-Component ?Self) 
                  (Active ?Time 2-Output-Thermal-Component ?Self) )))


Class 2-1-PORT-THERMAL-COMPONENT

the class of thermal components with two inlets and one outlet
Subclass-Of: 1-output-thermal-component, 2-input-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-1-Port-Thermal-Component ?Self) 
             (And (2-1-Port-Thermal-Component ?Self) 
                  (Active ?Time 2-Input-Thermal-Component ?Self) 
                  (Active ?Time 1-Output-Thermal-Component ?Self) )))


Class 2-2-PORT-THERMAL-COMPONENT

the class of thermal components with two inlets and two outlets
Subclass-Of: 2-input-thermal-component, 2-output-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-2-Port-Thermal-Component ?Self) 
             (And (2-2-Port-Thermal-Component ?Self) 
                  (Active ?Time 2-Input-Thermal-Component ?Self) 
                  (Active ?Time 2-Output-Thermal-Component ?Self) )))


Class 3-1-PORT-THERMAL-COMPONENT

the class of thermal components with three inlets and one outlet
Subclass-Of: 1-output-thermal-component, 3-input-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 3-1-Port-Thermal-Component ?Self) 
             (And (3-1-Port-Thermal-Component ?Self) 
                  (Active ?Time 3-Input-Thermal-Component ?Self) 
                  (Active ?Time 1-Output-Thermal-Component ?Self) )))


Class FUEL

the fuel used in power systems
Subclass-Of: Entity, Substance
Arity: 1
Has-Quantity-Function: Heating-value

Slots Of Instances:

Heating-Value:
Slot-Documentation: the magnitude of the enthalpy of combustion of the fuel
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Fuel ?Self) 
             (And (Fuel ?Self) (Active ?Time Substance ?Self)) ))


Function HEATING-VALUE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Fuel
Range: Everywhere-continuous-quantity

Class FUEL-CONSUMING-COMPONENT

the class of components which require fuel input
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Fuel-supply-rate, Heat-supply-rate

Slots Of Instances:

Fuel-Supply-Rate:
Slot-Documentation: the rate at which fuel is supplied to the fuel-consuming component
Heat-Supply-Rate:
Slot-Documentation: the rate at which heat is supplied to the fuel-consuming component
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Fuel-Consuming-Component ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Heat-Supply-Rate ?Self) ?T) ))
               (* (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Fuel-Supply-Rate ?Self) ?T) ))
                  (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Heating-Value Fuel) ?T) ))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Fuel-Consuming-Component ?Self) 
             (And (Fuel-Consuming-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Fuel-Consuming-Component ?Self) 
    (And (Quantity.Dimension (Fuel-Supply-Rate ?Self) Mass-Dimension) 
         (Quantity.Dimension (Heat-Supply-Rate ?Self) 
                             Power-Dimension)))


Function FUEL-SUPPLY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Fuel-consuming-component
Range: Everywhere-continuous-quantity

Function HEAT-SUPPLY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Fuel-consuming-component
Range: Everywhere-continuous-quantity

Class WORK-CONSUMING-COMPONENT

the class of components which require work input
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Power-input

Slots Of Instances:

Power-Input:
Slot-Documentation: the power input into the work consuming component
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Work-Consuming-Component ?Self) 
             (And (Work-Consuming-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Work-Consuming-Component ?Self) 
    (Quantity.Dimension (Power-Input ?Self) Power-Dimension) )


Function POWER-INPUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Work-consuming-component
Range: Everywhere-continuous-quantity

Class WORK-PRODUCING-COMPONENT

This is the class of components which produce work output.
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Power-output

Slots Of Instances:

Power-Output:
Slot-Documentation: the power output of the work producing component
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Work-Producing-Component ?Self) 
             (And (Work-Producing-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Work-Producing-Component ?Self) 
    (Quantity.Dimension (Power-Output ?Self) Power-Dimension) )


Function POWER-OUTPUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Work-producing-component
Range: Everywhere-continuous-quantity

Class HEATING-COMPONENT

the class of components which supply heat
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Heating-rate

Slots Of Instances:

Heating-Rate:
Slot-Documentation: the rate at which the component supplies heat
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Heating-Component ?Self) 
             (And (Heating-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Heating-Component ?Self) 
    (Quantity.Dimension (Heating-Rate ?Self) Power-Dimension) )


Function HEATING-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heating-component
Range: Everywhere-continuous-quantity

Class COOLING-COMPONENT

the class of components which extract heat/provide cooling.
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Cooling-rate

Slots Of Instances:

Cooling-Rate:
Slot-Documentation: the rate at which the component extracts heat
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Cooling-Component ?Self) 
             (And (Cooling-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Cooling-Component ?Self) 
    (Quantity.Dimension (Cooling-Rate ?Self) Power-Dimension) )


Function COOLING-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Cooling-component
Range: Everywhere-continuous-quantity

Class ROTATING-COMPONENT

the class of components which are based on rotational motion
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function: Rotating-speed

Slots Of Instances:

Rotating-Speed:
Slot-Documentation: the speed at which the rotary part of the component rotates
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Rotating-Component ?Self) 
             (And (Rotating-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Rotating-Component ?Self) 
    (Quantity.Dimension (Rotating-Speed ?Self) Frequency-Dimension) )


Function ROTATING-SPEED

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Rotating-component
Range: Everywhere-continuous-quantity

Class POSITIVE-DISPLACEMENT-COMPONENT

the class of components which are positive-displacement machines
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function:
Clearance-volume, Compression-ratio, Cycles-rate, Displacement, Mean-effective-pressure, Speed, Volumetric-efficiency

Slots Of Instances:

Clearance-Volume:
Slot-Documentation: the minimum cylinder volume of the positive displacement machine
Compression-Ratio:
Slot-Documentation: the compression ratio of the positive displacement machine
Cycles-Rate:
Slot-Documentation: the cycle rate of the positive displacement machine
Displacement:
Slot-Documentation: the displacement of the positive displacement machine
Mean-Effective-Pressure:
Slot-Documentation: the theoretical constant pressure that, if it acted on the piston during the power stroke, would produce the same net work as actually developed in one cycle
Speed:
Slot-Documentation: the speed of the positive displacement machine
Volumetric-Efficiency:
Slot-Documentation: the volumetric efficiency of the positive displacement machine
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Positive-Displacement-Component ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Compression-Ratio ?Self) ?T) ))
               (/ (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Displacement ?Self) ?T) ))
                  (Lambda (?T) 
                          (If (= ?T ?Time) 
                              (Value-At (Clearance-Volume ?Self) ?T) ))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Positive-Displacement-Component ?Self) 
             (And (Positive-Displacement-Component ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Positive-Displacement-Component ?Self) 
    (And (Quantity.Dimension (Displacement ?Self) Volume-Dimension) 
         (Quantity.Dimension (Speed ?Self) Frequency-Dimension) 
         (Quantity.Dimension (Cycles-Rate ?Self) Frequency-Dimension) 
         (Quantity.Dimension (Mean-Effective-Pressure ?Self) 
                             Pressure-Dimension)
         (Quantity.Dimension (Volumetric-Efficiency ?Self) 
                             Dimensionless)
         (Quantity.Dimension (Clearance-Volume ?Self) Dimensionless) 
         (Quantity.Dimension (Compression-Ratio ?Self) Dimensionless) ))


Function DISPLACEMENT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Function SPEED

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Function CYCLES-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Function MEAN-EFFECTIVE-PRESSURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Function VOLUMETRIC-EFFICIENCY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Function CLEARANCE-VOLUME

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Function COMPRESSION-RATIO

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Positive-displacement-component
Range: Everywhere-continuous-quantity

Class INTERNAL-COMBUSTION-ENGINE

the class of components which includes diesel and petrol engines
Subclass-Of: Entity, Reciprocating-component, Work-producing-component
Arity: 1
Has-Quantity-Function: Air-fuel-ratio, Emissions-index

Slots Of Instances:

Air-Fuel-Ratio:
Slot-Documentation: the ratio of the amount of air in a reaction to the amount of ruel
Emissions-Index:
Slot-Documentation: the emissions index of the internal combustion engine
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Internal-Combustion-Engine ?Self) 
             (And (Internal-Combustion-Engine ?Self) 
                  (Active ?Time Reciprocating-Component ?Self) 
                  (Active ?Time Work-Producing-Component ?Self) )))

(=> (Internal-Combustion-Engine ?Self) 
    (Quantity.Dimension (Air-Fuel-Ratio ?Self) Dimensionless) )


Function AIR-FUEL-RATIO

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Internal-combustion-engine
Range: Everywhere-continuous-quantity

Function EMISSIONS-INDEX

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Internal-combustion-engine
Range: Everywhere-continuous-quantity

Class RECIPROCATING-COMPONENT

the class of components which are based on reciprocating motion,

such as reciprocating pumps, compressors, expanders, engines

Subclass-Of: Entity, Positive-displacement-component
Arity: 1
Has-Quantity-Function:
Bore, Bore-area, Stroke, Strokes-per-cycle

Slots Of Instances:

Bore:
Slot-Documentation: the diameter of the cylinder
Bore-Area:
Slot-Documentation: the cross sectional area of the inside of the cylinder
Stroke:
Slot-Documentation: the distance the piston moves in one direction
Strokes-Per-Cycle:
Slot-Documentation: the number of strokes executed by the piston for every two revolutions of the crankshaft
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Reciprocating-Component ?Self) 
             (And (Reciprocating-Component ?Self) 
                  (Active ?Time
                          Positive-Displacement-Component
                          ?Self))))

(=> (Reciprocating-Component ?Self) 
    (And (Quantity.Dimension (Stroke ?Self) Length-Dimension) 
         (Quantity.Dimension (Bore-Area ?Self) Area-Dimension) 
         (Quantity.Dimension (Bore ?Self) Length-Dimension) 
         (Quantity.Dimension (Strokes-Per-Cycle ?Self) Dimensionless) ))


Function STROKE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Reciprocating-component
Range: Everywhere-continuous-quantity

Function BORE-AREA

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Reciprocating-component
Range: Everywhere-continuous-quantity

Function BORE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Reciprocating-component
Range: Everywhere-continuous-quantity

Function STROKES-PER-CYCLE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Reciprocating-component
Range: Everywhere-continuous-quantity

Class NOZZLE

a flow passage of varying cross-sectional area in which the velocity of a gas of liquid increases in the direction of flow
Subclass-Of: 1-1-port-thermal-component, Entity
Arity: 1
Has-Quantity-Function: Outlet-velocity

Slots Of Instances:

Outlet-Velocity:
Slot-Documentation: velocity of the fluid at the outlet
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Nozzle ?Self) 
             (And (Nozzle ?Self) 
                  (Active ?Time 1-1-Port-Thermal-Component ?Self) )))

(=> (Nozzle ?Self) 
    (Quantity.Dimension (Outlet-Velocity ?Self) Velocity-Dimension) )


Function OUTLET-VELOCITY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Nozzle
Range: Everywhere-continuous-quantity

Class TURBINE

a thermal component in which work is developed as a result of a gas or liquid passing through a set of blades attached to a shaft free to rotate
Subclass-Of: Entity, Thermal-component, Work-producing-component
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Turbine ?Self) 
             (And (Turbine ?Self) 
                  (Active ?Time Thermal-Component ?Self) 
                  (Active ?Time Work-Producing-Component ?Self) )))


Class SIMPLE-TURBINE

a one-input one-output turbine
Subclass-Of: 1-1-port-thermal-component, Entity, Turbine
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Simple-Turbine ?Self) 
             (And (Simple-Turbine ?Self) 
                  (Active ?Time Turbine ?Self) 
                  (Active ?Time 1-1-Port-Thermal-Component ?Self) )))


Class EXTRACTION-TURBINE

a one-input two-output turbine
Subclass-Of: 1-2-port-thermal-component, Entity, Turbine
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Extraction-Turbine ?Self) 
             (And (Extraction-Turbine ?Self) 
                  (Active ?Time Turbine ?Self) 
                  (Active ?Time 1-2-Port-Thermal-Component ?Self) )))


Class HEAT-EXCHANGER

a device that transfer energy between fluids at different temperatures
Subclass-Of: Entity, Thermal-component
Arity: 1
Has-Quantity-Function:
Area, Heat-transfer-rate, Ideal-heat-rate, Max-heat-rate, Max-pressure, Max-temperature, Overall-heat-transfer-coefficient

Slots Of Instances:

Area:
Slot-Documentation: the surface area through heat is exchanged
Heat-Transfer-Rate:
Slot-Documentation: the rate at which heat is transfered inside the heat exchanger
Ideal-Heat-Rate:
Slot-Documentation: the ideal heat transfer rate
Max-Heat-Rate:
Slot-Documentation: the maximum heat transfer rate
Max-Pressure:
Slot-Documentation: the maximum pressure inside the heat exchanger
Max-Temperature:
Slot-Documentation: the maximum temperature inside the heat exchanger
Overall-Heat-Transfer-Coefficient:
Slot-Documentation: the overall heat transfer coefficient of the heat exchanger
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Heat-Exchanger ?Self) 
             (And (Heat-Exchanger ?Self) 
                  (Active ?Time Thermal-Component ?Self) )))

(=> (Heat-Exchanger ?Self) 
    (And (Quantity.Dimension (Area ?Self) Area-Dimension) 
         (Quantity.Dimension (Overall-Heat-Transfer-Coefficient ?Self)
                             Dimensionless)
         (Quantity.Dimension (Heat-Transfer-Rate ?Self) 
                             Power-Dimension)
         (Quantity.Dimension (Max-Pressure ?Self) Pressure-Dimension) 
         (Quantity.Dimension (Max-Temperature ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (Max-Heat-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (Ideal-Heat-Rate ?Self) Power-Dimension) ))


Function AREA

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Function OVERALL-HEAT-TRANSFER-COEFFICIENT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Function HEAT-TRANSFER-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Function MAX-PRESSURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Function MAX-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Function MAX-HEAT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Function IDEAL-HEAT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Heat-exchanger
Range: Everywhere-continuous-quantity

Class 2-PORT-HEAT-EXCHANGER

a one-input one-output heat exchanger
Subclass-Of: 1-1-port-thermal-component, Entity, Heat-exchanger
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-Port-Heat-Exchanger ?Self) 
             (And (2-Port-Heat-Exchanger ?Self) 
                  (Active ?Time Heat-Exchanger ?Self) 
                  (Active ?Time 1-1-Port-Thermal-Component ?Self) )))


Class 4-PORT-HEAT-EXCHANGER

a two-input two-output heat exchanger with two separate flows
Subclass-Of: Entity, Heat-exchanger
Arity: 1
Has-Attribute-Function: Cold-flow, Hot-flow
Has-Quantity-Function:
Cold-flow-temperature-out, D-log-mean-temperature, D-pressure-cold, D-pressure-hot, Effectiveness, Hot-flow-temperature-in

Slots Of Instances:

Cold-Flow:
Slot-Documentation: the cold flow side of a heat exchanger with two separate flows
Cold-Flow-Temperature-Out:
Slot-Documentation: the output temperature of cold flow
D-Log-Mean-Temperature:
Slot-Documentation: log-mean temperature difference in the heat exchanger
D-Pressure-Cold:
Slot-Documentation: the pressure difference between inlet and outlet of cold flow
D-Pressure-Hot:
Slot-Documentation: the pressure difference between inlet and outlet of hot flow
Effectiveness:
Slot-Documentation: the ratio of the actual enthalpy increase of the compressor side of the regenerator to the maximum theoretical enthalpy increase when the heat exchanger is playing the role of a regenerator in a regenerative gas turbine cycle
Hot-Flow:
Slot-Documentation: the hot flow side of a heat exchanger with two separate flows
Hot-Flow-Temperature-In:
Slot-Documentation: the input temperature of the hot flow
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 4-Port-Heat-Exchanger ?Self) 
             (And (4-Port-Heat-Exchanger ?Self) 
                  (Active ?Time Heat-Exchanger ?Self) )))

(=> (4-Port-Heat-Exchanger ?Self) 
    (And (Quantity.Dimension (Effectiveness ?Self) Dimensionless) 
         (Quantity.Dimension (Hot-Flow-Temperature-In ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (Cold-Flow-Temperature-Out ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (D-Log-Mean-Temperature ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (D-Pressure-Hot ?Self) 
                             Pressure-Dimension)
         (Quantity.Dimension (D-Pressure-Cold ?Self) 
                             Pressure-Dimension)))


Function EFFECTIVENESS

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 4-port-heat-exchanger
Range: Everywhere-continuous-quantity

Function HOT-FLOW-TEMPERATURE-IN

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 4-port-heat-exchanger
Range: Everywhere-continuous-quantity

Function COLD-FLOW-TEMPERATURE-OUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 4-port-heat-exchanger
Range: Everywhere-continuous-quantity

Function D-LOG-MEAN-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 4-port-heat-exchanger
Range: Everywhere-continuous-quantity

Function D-PRESSURE-HOT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 4-port-heat-exchanger
Range: Everywhere-continuous-quantity

Function D-PRESSURE-COLD

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 4-port-heat-exchanger
Range: Everywhere-continuous-quantity

Function HOT-FLOW

An attribute function
Arity: 2
Attribute-Function-Of: 4-port-heat-exchanger

Function COLD-FLOW

An attribute function
Arity: 2
Attribute-Function-Of: 4-port-heat-exchanger

Class COMPRESSOR

a thermal component in which work is done on a gas passing through them in order to raise the pressure
Subclass-Of: 1-1-port-thermal-component, Entity, Work-consuming-component
Arity: 1
Has-Quantity-Function: Pressure-ratio

Slots Of Instances:

Pressure-Ratio:
Slot-Documentation: the pressure ratio of the compressor
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Compressor ?Self) 
             (And (Compressor ?Self) 
                  (Active ?Time Work-Consuming-Component ?Self) 
                  (Active ?Time 1-1-Port-Thermal-Component ?Self) )))

(=> (Compressor ?Self) 
    (Quantity.Dimension (Pressure-Ratio ?Self) Dimensionless) )


Function PRESSURE-RATIO

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Compressor
Range: Everywhere-continuous-quantity

Class PUMP

a compressor in which the work input is used to change the state of a liquid passing through
Subclass-Of: 1-1-port-thermal-component, Compressor, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Pump ?Self) 
             (And (Pump ?Self) 
                  (Active ?Time 1-1-Port-Thermal-Component ?Self) 
                  (Active ?Time Compressor ?Self) )))


Class BOILER

a thermal component in which a fluid changes its phase from liquid to vapor at constant temperature as a result of heat transfer from the hot reservoir
Subclass-Of: 1-1-port-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Boiler ?Self) 
             (And (Boiler ?Self) 
                  (Active ?Time 1-1-Port-Thermal-Component ?Self) )))


Class OPEN-FEEDWATER-HEATER

a heat exchanger which is a vessel in which hot and cold streams are mixed directly
Subclass-Of: Entity, Heat-exchanger
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Open-Feedwater-Heater ?Self) 
             (And (Open-Feedwater-Heater ?Self) 
                  (Active ?Time Heat-Exchanger ?Self) )))


Class 2-1-OPEN-FEEDWATER-HEATER

a two-input one-output open feedwater heater
Subclass-Of: 2-1-port-thermal-component, Entity, Open-feedwater-heater
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-1-Open-Feedwater-Heater ?Self) 
             (And (2-1-Open-Feedwater-Heater ?Self) 
                  (Active ?Time 2-1-Port-Thermal-Component ?Self) 
                  (Active ?Time Open-Feedwater-Heater ?Self) )))


Class 2-2-OPEN-FEEDWATER-HEATER

a two input two-output open feedwater heater
Subclass-Of: 2-2-port-thermal-component, Entity, Open-feedwater-heater
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-2-Open-Feedwater-Heater ?Self) 
             (And (2-2-Open-Feedwater-Heater ?Self) 
                  (Active ?Time 2-2-Port-Thermal-Component ?Self) 
                  (Active ?Time Open-Feedwater-Heater ?Self) )))


Class 3-1-OPEN-FEEDWATER-HEATER

a three-input one-output open feedwater heater
Subclass-Of: 3-1-port-thermal-component, Entity, Open-feedwater-heater
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 3-1-Open-Feedwater-Heater ?Self) 
             (And (3-1-Open-Feedwater-Heater ?Self) 
                  (Active ?Time 3-1-Port-Thermal-Component ?Self) 
                  (Active ?Time Open-Feedwater-Heater ?Self) )))


Class 2-2-CLOSED-FEEDWATER-HEATER

a two-input two-output closed heater, which is a shell-and-tube-type recuperators in which the feedwater temperature increases as the extracted stream condenses on the outside of the tubes carrying the feedwater
Subclass-Of: 2-2-port-thermal-component, Entity, Heat-exchanger
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-2-Closed-Feedwater-Heater ?Self) 
             (And (2-2-Closed-Feedwater-Heater ?Self) 
                  (Active ?Time 2-2-Port-Thermal-Component ?Self) 
                  (Active ?Time Heat-Exchanger ?Self) )))


Class STEAM-GENERATOR-WITH-REHEAT

a steam generator (i.e. a boiler-superheater combination) which also reheats the steam exiting the first-stage turbine
Subclass-Of: 2-2-port-thermal-component, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Steam-Generator-With-Reheat ?Self) 
             (And (Steam-Generator-With-Reheat ?Self) 
                  (Active ?Time 2-2-Port-Thermal-Component ?Self) )))


Class SUBSTANCE-CONTAINER

any component containing some substance such as water, air, etc.
Subclass-Of: Entity, Structural-element-model
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Substance-Container ?Self) 
             (And (Substance-Container ?Self) 
                  (Active ?Time Structural-Element-Model ?Self) )))


Relation SUBSTANCE-IN

the substance contained in the stream or control-volume
Instance-Of: Connection, Relation
Arity: 2
Domain: Substance-container
Range: Substance

Class STREAM

the boundary (control surfaces) of control volumes in a flow process
Subclass-Of: Entity, Substance-container
Arity: 1
Has-Quantity-Function:
Enthalpy-rate, Entropy-rate, Ke-rate, Mass-rate, Pe-rate, Quality, Saturated-p, Specific-enthalpy, Specific-entropy, Specific-internal-energy, Specific-volume, Stream-elevation, Stream-pressure, Stream-temperature, Velocity

Slots Of Instances:

Enthalpy-Rate:
Slot-Documentation: the enthalpy rate through the stream
Entropy-Rate:
Slot-Documentation: the entropy rate through the stream
Ke-Rate:
Slot-Documentation: the kinetic energy flow rate through the stream
Mass-Rate:
Slot-Documentation: the mass flow rate through the stream
Pe-Rate:
Slot-Documentation: the potential energy flow rate through the stream
Quality:
Slot-Documentation: the ratio of the mass of vapor present to the total mass of the vapor-liquid mixture
Saturated-P:
Slot-Documentation: the attribute indicating that the fluid in the stream is saturated
Specific-Enthalpy:
Slot-Documentation: the enthalpy per unit of mass
Specific-Entropy:
Slot-Documentation: the entropy per unit of mass
Specific-Internal-Energy:
Slot-Documentation: the internal energy of the fluid per unit of mass
Specific-Volume:
Slot-Documentation: the volume per unit mass of the fluid
Stream-Elevation:
Slot-Documentation: the elevation of the stream
Stream-Pressure:
Slot-Documentation: the pressure of the fluid through the stream
Stream-Temperature:
Slot-Documentation: the temperature of the fluid through the stream
Velocity:
Slot-Documentation: the velocity of the fluid through the stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Stream ?Self) 
             (And (Stream ?Self) 
                  (Active ?Time Substance-Container ?Self) )))

(=> (Stream ?Self) 
    (And (Quantity.Dimension (Stream-Elevation ?Self) 
                             Length-Dimension)
         (Quantity.Dimension (Enthalpy-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (Entropy-Rate ?Self) 
                             Entropy-Rate-Dimension)
         (Quantity.Dimension (Ke-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (Mass-Rate ?Self) Mass-Rate-Dimension) 
         (Quantity.Dimension (Pe-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (Stream-Pressure ?Self) 
                             Pressure-Dimension)
         (Quantity.Dimension (Specific-Enthalpy ?Self) 
                             Specific-Energy-Dimension)
         (Quantity.Dimension (Specific-Entropy ?Self) 
                             Specific-Entropy-Dimension)
         (Quantity.Dimension (Specific-Internal-Energy ?Self) 
                             Specific-Energy-Dimension)
         (Quantity.Dimension (Stream-Temperature ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (Velocity ?Self) Velocity-Dimension) 
         (Quantity.Dimension (Quality ?Self) Dimensionless) 
         (Quantity.Dimension (Specific-Volume ?Self) 
                             Specific-Volume-Dimension)))


Function STREAM-ELEVATION

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function ENTHALPY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function ENTROPY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function KE-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function MASS-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function PE-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function STREAM-PRESSURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function SPECIFIC-ENTHALPY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function SPECIFIC-ENTROPY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function SPECIFIC-INTERNAL-ENERGY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function STREAM-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function VELOCITY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function QUALITY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function SPECIFIC-VOLUME

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Function SATURATED-P

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Stream
Range: Everywhere-continuous-quantity

Class 2D-STREAM

a 2-dimensional stream
Subclass-Of: Entity, Stream, Terminal
Arity: 1
Has-Quantity-Function: Stream-area

Slots Of Instances:

Stream-Area:
Slot-Documentation: cross sectional area of the stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2d-Stream ?Self) 
             (And (2d-Stream ?Self) 
                  (Active ?Time Stream ?Self) 
                  (Active ?Time Terminal ?Self) )))

(=> (2d-Stream ?Self) 
    (Quantity.Dimension (Stream-Area ?Self) Area-Dimension) )


Function STREAM-AREA

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: 2d-stream
Range: Everywhere-continuous-quantity

Class STREAM-JUNCTION

a junction between streams
Subclass-Of: Entity, Junction
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Stream-Junction ?Self) 
        (And (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At (Mass-Rate Terminal) 
                                                ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Stream-Pressure Terminal) 
                                          ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda 
                              (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Specific-Enthalpy Terminal)
                                            ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda 
                              (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Specific-Entropy Terminal)
                                            ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda 
                              (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At 
                                      (Specific-Internal-Energy Terminal)
                                      ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda 
                              (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At 
                                      (Stream-Temperature Terminal) 
                                      ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At (Quality Terminal) 
                                                ?T)))))
             (All= (Setof Terminal
                          (Connected-Terminals ?Self) 
                          (Lambda (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Volume Terminal) 
                                          ?T))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Stream-Junction ?Self) 
             (And (Stream-Junction ?Self) 
                  (Active ?Time Junction ?Self) )))


Class CONTROL-VOLUME

a region of space through which mass may flow
Subclass-Of: Entity, Substance-container
Arity: 1
Has-Quantity-Function:
Cv-elevation, Cv-energy, Cv-enthalpy, Cv-entropy, Cv-internal-energy, Cv-ke, Cv-mass, Cv-pe, Cv-volume, D-entropy-rate, D-ke-rate, D-pe-rate, Energy-rate, Enthalpy-rate-in, Enthalpy-rate-out, Entropy-rate-in, Entropy-rate-out, Even-ke, Even-pe, Internal-energy-rate, Ke-rate-in, Ke-rate-out, Mass-rate-in, Mass-rate-out, Pe-rate-in, Pe-rate-out

Slots Of Instances:

Cv-Elevation:
Slot-Documentation: the elevation of the control volume with respect to some reference position
Cv-Energy:
Slot-Documentation: the total energy of the fluid in the control volume
Cv-Enthalpy:
Slot-Documentation: the enthalpy of the fluid in the control volume
Cv-Entropy:
Slot-Documentation: the entropy of the fluid in the control volume
Cv-Internal-Energy:
Slot-Documentation: the internal energy of the fluid in the control volume
Cv-Ke:
Slot-Documentation: the kinetic energy of the fluid in the control volume
Cv-Mass:
Slot-Documentation: the mass of the fluid in the control volume
Cv-Pe:
Slot-Documentation: the potential energy of the fluid in the control volume
Cv-Volume:
Slot-Documentation: the volume of the fluid in the control volume
D-Entropy-Rate:
Slot-Documentation: entropy differential across the control volume
D-Ke-Rate:
Slot-Documentation: the kinetic energy differential of the fluid across the control volume
D-Pe-Rate:
Slot-Documentation: the potential energy differential of the fluid across the control volume
Energy-Rate:
Slot-Documentation: the rate of change of the total energy of the fluid in the control volume
Enthalpy-Rate-In:
Slot-Documentation: the enthalpy flow rate into the control volume
Enthalpy-Rate-Out:
Slot-Documentation: the enthalpy flow rate out of the control volume
Entropy-Rate-In:
Slot-Documentation: the entropy flow rate into the control volume
Entropy-Rate-Out:
Slot-Documentation: the entropy flow rate out of the control volume
Even-Ke:
Slot-Documentation: the predicate indicating that the change in ke-rate is negligible
Even-Pe:
Slot-Documentation: the predicate indicating that the change in pe-rate is negligible
Internal-Energy-Rate:
Slot-Documentation: the rate of change in the internal energy o fthe fluid in the control volume
Ke-Rate-In:
Slot-Documentation: the kinetic energy flow rate into the control volume
Ke-Rate-Out:
Slot-Documentation: the kinetic energy flow rate out of the control volume
Mass-Rate-In:
Slot-Documentation: the mass flow rate into the control volume
Mass-Rate-Out:
Slot-Documentation: the mass flow rate out of the control volume
Pe-Rate-In:
Slot-Documentation: the potential energy flow rate into the control volume
Pe-Rate-Out:
Slot-Documentation: the potential energy flow rate out of the control volume
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Control-Volume ?Self) 
        (And (Forall 
                 (?X) 
                 (=> (Inlets ?Self ?X) 
                     (And (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Pe-Rate ?X) ?T) ))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Pe-Rate-In ?Self)
                                                    ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Ke-Rate ?X) ?T) ))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Ke-Rate-In ?Self)
                                                    ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Enthalpy-Rate ?X)
                                                    ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At (Enthalpy-Rate-In ?Self)
                                                ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Mass-Rate ?X) 
                                                    ?T)))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Mass-Rate-In ?Self)
                                                    ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Entropy-Rate ?X) 
                                                    ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At (Entropy-Rate-In ?Self)
                                                ?T)))))))
             (Forall 
                 (?X) 
                 (=> (Outlets ?Self ?X) 
                     (And (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Pe-Rate ?X) ?T) ))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Pe-Rate-Out ?Self)
                                                    ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Ke-Rate ?X) ?T) ))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Ke-Rate-Out ?Self)
                                                    ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Enthalpy-Rate ?X)
                                                    ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Enthalpy-Rate-Out ?Self) 
                                          ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Mass-Rate ?X) 
                                                    ?T)))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Mass-Rate-Out ?Self) 
                                              ?T))))
                          (C+ (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At (Entropy-Rate ?X) 
                                                    ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At (Entropy-Rate-Out ?Self)
                                                ?T)))))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (D-Entropy-Rate ?Self) ?T) ))
                (- (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Entropy-Rate-In ?Self) ?T) ))
                   (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Entropy-Rate-Out ?Self) ?T) ))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (D-Pe-Rate ?Self) ?T) ))
                (- (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Pe-Rate-Out ?Self) ?T) ))
                   (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Pe-Rate-In ?Self) ?T) ))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (D-Ke-Rate ?Self) ?T) ))
                (- (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Ke-Rate-Out ?Self) ?T) ))
                   (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Ke-Rate-In ?Self) ?T) )))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Control-Volume ?Self) 
             (And (Control-Volume ?Self) 
                  (Active ?Time Substance-Container ?Self) )))

(=> (Control-Volume ?Self) 
    (And (Quantity.Dimension (Enthalpy-Rate-In ?Self) 
                             Power-Dimension)
         (Quantity.Dimension (Enthalpy-Rate-Out ?Self) 
                             Power-Dimension)
         (Quantity.Dimension (Entropy-Rate-In ?Self) 
                             Entropy-Rate-Dimension)
         (Quantity.Dimension (Entropy-Rate-Out ?Self) 
                             Entropy-Rate-Dimension)
         (Quantity.Dimension (D-Entropy-Rate ?Self) 
                             Entropy-Rate-Dimension)
         (Quantity.Dimension (Ke-Rate-In ?Self) Power-Dimension) 
         (Quantity.Dimension (Ke-Rate-Out ?Self) Power-Dimension) 
         (Quantity.Dimension (Mass-Rate-In ?Self) 
                             Mass-Rate-Dimension)
         (Quantity.Dimension (Mass-Rate-Out ?Self) 
                             Mass-Rate-Dimension)
         (Quantity.Dimension (Pe-Rate-In ?Self) Power-Dimension) 
         (Quantity.Dimension (Pe-Rate-Out ?Self) Power-Dimension) 
         (Quantity.Dimension (Cv-Elevation ?Self) Length-Dimension) 
         (Quantity.Dimension (Cv-Pe ?Self) Energy-Dimension) 
         (Quantity.Dimension (Cv-Ke ?Self) Energy-Dimension) 
         (Quantity.Dimension (Cv-Enthalpy ?Self) Energy-Dimension) 
         (Quantity.Dimension (Cv-Entropy ?Self) Entropy-Dimension) 
         (Quantity.Dimension (Cv-Internal-Energy ?Self) 
                             Energy-Dimension)
         (Quantity.Dimension (Cv-Energy ?Self) Energy-Dimension) 
         (Quantity.Dimension (Energy-Rate ?Self) 
                             Energy-Rate-Dimension)
         (Quantity.Dimension (Internal-Energy-Rate ?Self) 
                             Energy-Rate-Dimension)
         (Quantity.Dimension (Cv-Mass ?Self) Mass-Dimension) 
         (Quantity.Dimension (Cv-Volume ?Self) Volume-Dimension) 
         (Quantity.Dimension (D-Pe-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (D-Ke-Rate ?Self) Power-Dimension) ))


Function ENTHALPY-RATE-IN

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function ENTHALPY-RATE-OUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function ENTROPY-RATE-IN

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function ENTROPY-RATE-OUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function D-ENTROPY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function KE-RATE-IN

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function KE-RATE-OUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function MASS-RATE-IN

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function MASS-RATE-OUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function PE-RATE-IN

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function PE-RATE-OUT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-ELEVATION

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-PE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-KE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-ENTHALPY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-ENTROPY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-INTERNAL-ENERGY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-ENERGY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function ENERGY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function INTERNAL-ENERGY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-MASS

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function CV-VOLUME

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function D-PE-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function D-KE-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function EVEN-PE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Function EVEN-KE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Control-volume
Range: Everywhere-continuous-quantity

Relation INLETS

the set of inlet streams of the control-volume
Arity: 2
Domain: Control-volume
Range: 2d-stream

Relation OUTLETS

the set of outlet streams of the control-volume
Arity: 2
Domain: Control-volume
Range: 2d-stream

Relation UNDERGOING

the process the control-volume is undergoing
Arity: 2
Domain: Control-volume
Range: Steady-state-steady-flow-process

Relation CV-COMPONENT

the component associated with the control volume
Instance-Of: Connection, Relation
Arity: 2
Domain: Control-volume
Range: Thermal-component

Class 1-1-CONTROL-VOLUME-OP-MODE

the class of model fragments about a 1-1-contol-volume
Subclass-Of: Model-fragment
Arity: 1
Has-Participant-Function: 1-1-cv-involved

Slots Of Instances:

1-1-Cv-Involved:
Slot-Documentation: the control volume
Axioms:
(Forall (?1-1-Cv-Involved) 
        (<=> (1-1-Control-Volume ?1-1-Cv-Involved) 
             (Exists (?Self) 
                     (And (1-1-Control-Volume-Op-Mode ?Self) 
                          (= (1-1-Cv-Involved ?Self) 
                             ?1-1-Cv-Involved)))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-1-Control-Volume-Op-Mode ?Self) 
             (1-1-Control-Volume-Op-Mode ?Self) ))


Function 1-1-CV-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: 1-1-control-volume-op-mode

Class INTERNALLY-REVERSIBLE-ADIABATIC-PROCESS

description of an internally reversible-process
Subclass-Of: 1-1-control-volume-op-mode, Model-fragment
Arity: 1
Has-Participant-Function: Adiabatic-pr-involved

Slots Of Instances:

Adiabatic-Pr-Involved:
Slot-Documentation: the internally reversible adiabatic process
Axioms:
(Forall (?Self ?Adiabatic-Pr-Involved) 
        (<=> (And (= (Adiabatic-Pr-Involved ?Self) 
                     ?Adiabatic-Pr-Involved)
                  (Internally-Reversible-Adiabatic-Process ?Self) )
             (And (1-1-Control-Volume-Op-Mode ?Self) 
                  (Steady-Flow-Adiabatic-Process ?Adiabatic-Pr-Involved)
                  (Process-Cv ?Adiabatic-Pr-Involved 1-1-Cv-Involved) 
                  (Internally-Reversible-P ?Adiabatic-Pr-Involved
                                           True))))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Internally-Reversible-Adiabatic-Process ?Self) 
        (= (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At 
                       (Specific-Entropy 
                           (Outlet-Stream (1-1-Cv-Involved ?Self)) )
                       ?T)))
           (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At 
                       (Specific-Entropy 
                           (Inlet-Stream (1-1-Cv-Involved ?Self)) )
                       ?T))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Internally-Reversible-Adiabatic-Process
                     ?Self)
             (And (Internally-Reversible-Adiabatic-Process ?Self) 
                  (Active ?Time 1-1-Control-Volume-Op-Mode ?Self) )))


Function ADIABATIC-PR-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Internally-reversible-adiabatic-process

Class CONTROL-VOLUME-OP-MODE

the class of model fragments about a contol-volume
Subclass-Of: Model-fragment
Arity: 1
Has-Participant-Function: Cv-involved

Slots Of Instances:

Cv-Involved:
Slot-Documentation: the control volume
Axioms:
(Forall (?Cv-Involved) 
        (<=> (Control-Volume ?Cv-Involved) 
             (Exists (?Self) 
                     (And (Control-Volume-Op-Mode ?Self) 
                          (= (Cv-Involved ?Self) ?Cv-Involved) ))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Control-Volume-Op-Mode ?Self) 
             (Control-Volume-Op-Mode ?Self) ))


Function CV-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Control-volume-op-mode

Class CONTROL-VOLUME-INLET-STREAM-IDEAL-GAS-LAW

the operating mode model of a control volume to describe the fluid in its inlet stream as ideal gas
Subclass-Of: Control-volume-op-mode, Model-fragment
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Control-Volume-Inlet-Stream-Ideal-Gas-Law ?Self) 
             (And (Control-Volume-Op-Mode ?Self) 
                  (Ideal-Gas-P (Substance-In Cv-Involved) True) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time
                Control-Volume-Inlet-Stream-Ideal-Gas-Law
                ?Self)
        (Forall 
            (?X) 
            (=> (Inlets (Cv-Involved ?Self) ?X) 
                (= (* (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Stream-Pressure ?X) ?T) ))
                      (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Specific-Volume ?X) ?T) )))
                   (* (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Ideal-Gas-Constant 
                                      (Substance-In (Cv-Involved ?Self)))
                                  ?T)))
                      (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Stream-Temperature ?X) 
                                            ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Control-Volume-Inlet-Stream-Ideal-Gas-Law
                     ?Self)
             (And (Control-Volume-Inlet-Stream-Ideal-Gas-Law ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class CONTROL-VOLUME-OUTLET-STREAM-IDEAL-GAS-LAW

the operating mode model of a control volume to describe the fluid in its outlet stream as ideal gas
Subclass-Of: Control-volume-op-mode, Model-fragment
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Control-Volume-Outlet-Stream-Ideal-Gas-Law ?Self) 
             (And (Control-Volume-Op-Mode ?Self) 
                  (Ideal-Gas-P (Substance-In Cv-Involved) True) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time
                Control-Volume-Outlet-Stream-Ideal-Gas-Law
                ?Self)
        (Forall 
            (?X) 
            (=> (Outlets (Cv-Involved ?Self) ?X) 
                (= (* (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Stream-Pressure ?X) ?T) ))
                      (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Specific-Volume ?X) ?T) )))
                   (* (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Ideal-Gas-Constant 
                                      (Substance-In (Cv-Involved ?Self)))
                                  ?T)))
                      (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Stream-Temperature ?X) 
                                            ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Control-Volume-Outlet-Stream-Ideal-Gas-Law
                     ?Self)
             (And (Control-Volume-Outlet-Stream-Ideal-Gas-Law ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class AIR-OPERATING-MODE

the class of operating mode models of air
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: Air-involved

Slots Of Instances:

Air-Involved:
Slot-Documentation: the air involved
Axioms:
(Forall (?Self ?Air-Involved) 
        (<=> (And (= (Air-Involved ?Self) ?Air-Involved) 
                  (Air-Operating-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) (Air ?Air-Involved)) ))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Air-Operating-Mode ?Self) 
             (And (Air-Operating-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function AIR-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Air-operating-mode

Class WATER-OPERATING-MODE

the class of operating mode models of water
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: Water-involved

Slots Of Instances:

Water-Involved:
Slot-Documentation: the water involved
Axioms:
(Forall (?Self ?Water-Involved) 
        (<=> (And (= (Water-Involved ?Self) ?Water-Involved) 
                  (Water-Operating-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) 
                  (Water ?Water-Involved) )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Water-Operating-Mode ?Self) 
             (And (Water-Operating-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function WATER-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Water-operating-mode

Class CONTROL-VOLUME-INLET-STREAM-THERMODYNAMIC-STATE

the operating mode model of a control volume containing air to compute the thermodynamic state of its inlet stream
Subclass-Of: Air-operating-mode, Control-volume-op-mode, Model-fragment
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Control-Volume-Inlet-Stream-Thermodynamic-State ?Self) 
             (And (Air-Operating-Mode ?Self) 
                  (Control-Volume-Op-Mode ?Self) 
                  (Substance-In (Cv-Involved ?Self) 
                                (Air-Involved ?Self) ))))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time
                Control-Volume-Inlet-Stream-Thermodynamic-State
                ?Self)
        (Forall 
            (?X) 
            (=> (Inlets (Cv-Involved ?Self) ?X) 
                (= (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Specific-Enthalpy ?X) ?T) ))
                   (Compute-Air-Thermodynamic-State 
                       (Lambda (?T) 
                               (If (= ?T ?Time) 
                                   (Value-At (Stream-Temperature ?X) 
                                             ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Control-Volume-Inlet-Stream-Thermodynamic-State
                     ?Self)
             (And (Control-Volume-Inlet-Stream-Thermodynamic-State ?Self)
                  (Active ?Time Air-Operating-Mode ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class CONTROL-VOLUME-OUTLET-STREAM-THERMODYNAMIC-STATE

the operating mode model of a control volume containing air to compute the thermodynamic state of its oiutlet stream
Subclass-Of: Air-operating-mode, Control-volume-op-mode, Model-fragment
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Control-Volume-Outlet-Stream-Thermodynamic-State ?Self) 
             (And (Air-Operating-Mode ?Self) 
                  (Control-Volume-Op-Mode ?Self) 
                  (Substance-In (Cv-Involved ?Self) 
                                (Air-Involved ?Self) ))))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time
                Control-Volume-Outlet-Stream-Thermodynamic-State
                ?Self)
        (Forall 
            (?X) 
            (=> (Outlets (Cv-Involved ?Self) ?X) 
                (= (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Specific-Enthalpy ?X) ?T) ))
                   (Compute-Air-Thermodynamic-State 
                       (Lambda (?T) 
                               (If (= ?T ?Time) 
                                   (Value-At (Stream-Temperature ?X) 
                                             ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Control-Volume-Outlet-Stream-Thermodynamic-State
                     ?Self)
             (And (Control-Volume-Outlet-Stream-Thermodynamic-State ?Self)
                  (Active ?Time Air-Operating-Mode ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class 2D-STREAM-OPERATING-MODE

the class of operating mode models of 2d streams
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: 2d-stream-involved

Slots Of Instances:

2d-Stream-Involved:
Slot-Documentation: the 2d stream involved
Axioms:
(Forall (?Self ?2d-Stream-Involved) 
        (<=> (And (= (2d-Stream-Involved ?Self) ?2d-Stream-Involved) 
                  (2d-Stream-Operating-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) 
                  (2d-Stream ?2d-Stream-Involved) )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time 2d-Stream-Operating-Mode ?Self) 
             (And (2d-Stream-Operating-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function 2D-STREAM-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: 2d-stream-operating-mode

Class NON-SATURATED-WATER-STREAM-ENTHALPY

the operating mode model of a 2d stream containing non-saturated water to compute its enthalpy
Subclass-Of: 2d-stream-operating-mode, Model-fragment, Water-operating-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Non-Saturated-Water-Stream-Enthalpy ?Self) 
             (And (Water-Operating-Mode ?Self) 
                  (2d-Stream-Operating-Mode ?Self) 
                  (Substance-In 2d-Stream-Involved Water-Involved) 
                  (Saturated-P 2d-Stream-Involved False) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Non-Saturated-Water-Stream-Enthalpy ?Self) 
        (= (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At 
                       (Specific-Enthalpy (2d-Stream-Involved ?Self)) 
                       ?T)))
           (+ (Compute-Saturated-Vapor-Enthalpy 
                  (Lambda 
                      (?T) 
                      (If (= ?T ?Time) 
                          (Value-At 
                              (Stream-Pressure 
                                  (2d-Stream-Involved ?Self) )
                              ?T)))
                  0 )
              (* (Lambda (?T) 
                         (If (= ?T ?Time) 
                             (Value-At 
                                 (Quality (2d-Stream-Involved ?Self)) 
                                 ?T)))
                 (- (Compute-Saturated-Vapor-Enthalpy 
                        (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At 
                                    (Stream-Pressure 
                                        (2d-Stream-Involved ?Self) )
                                    ?T)))
                        1 )
                    (Compute-Saturated-Vapor-Enthalpy 
                        (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At 
                                    (Stream-Pressure 
                                        (2d-Stream-Involved ?Self) )
                                    ?T)))
                        0 )))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Non-Saturated-Water-Stream-Enthalpy ?Self) 
             (And (Non-Saturated-Water-Stream-Enthalpy ?Self) 
                  (Active ?Time Water-Operating-Mode ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) )))


Class SATURATED-WATER-STREAM-ENTHALPY

the operating mode model of a 2d stream containing saturated water to compute its enthalpy
Subclass-Of: 2d-stream-operating-mode, Model-fragment, Water-operating-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Saturated-Water-Stream-Enthalpy ?Self) 
             (And (2d-Stream-Operating-Mode ?Self) 
                  (Water-Operating-Mode ?Self) 
                  (Substance-In 2d-Stream-Involved Water-Involved) 
                  (Saturated-P 2d-Stream-Involved True) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Saturated-Water-Stream-Enthalpy ?Self) 
        (= (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At 
                       (Specific-Enthalpy (2d-Stream-Involved ?Self)) 
                       ?T)))
           (Compute-Saturated-Vapor-Enthalpy 
               (Lambda 
                   (?T) 
                   (If (= ?T ?Time) 
                       (Value-At 
                           (Stream-Pressure (2d-Stream-Involved ?Self))
                           ?T)))
               (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Quality (2d-Stream-Involved ?Self))
                                     ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Saturated-Water-Stream-Enthalpy ?Self) 
             (And (Saturated-Water-Stream-Enthalpy ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) 
                  (Active ?Time Water-Operating-Mode ?Self) )))


Class SATURATED-WATER-STREAM-ENTROPY

the operating mode model of a 2d stream containing saturated water to compute its entropy
Subclass-Of: 2d-stream-operating-mode, Model-fragment, Water-operating-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Saturated-Water-Stream-Entropy ?Self) 
             (And (2d-Stream-Operating-Mode ?Self) 
                  (Water-Operating-Mode ?Self) 
                  (Substance-In 2d-Stream-Involved Water-Involved) 
                  (Saturated-P 2d-Stream-Involved True) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Saturated-Water-Stream-Entropy ?Self) 
        (= (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At (Specific-Entropy 
                                 (2d-Stream-Involved ?Self) )
                             ?T)))
           (Compute-Saturated-Vapor-Entropy 
               (Lambda 
                   (?T) 
                   (If (= ?T ?Time) 
                       (Value-At 
                           (Stream-Pressure (2d-Stream-Involved ?Self))
                           ?T)))
               (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Quality (2d-Stream-Involved ?Self))
                                     ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Saturated-Water-Stream-Entropy ?Self) 
             (And (Saturated-Water-Stream-Entropy ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) 
                  (Active ?Time Water-Operating-Mode ?Self) )))


Class SATURATED-WATER-STREAM-SPECIFIC-VOLUME

the operating mode model of a 2d stream containing saturated water to compute its specific volume
Subclass-Of: 2d-stream-operating-mode, Model-fragment, Water-operating-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Saturated-Water-Stream-Specific-Volume ?Self) 
             (And (2d-Stream-Operating-Mode ?Self) 
                  (Water-Operating-Mode ?Self) 
                  (Substance-In 2d-Stream-Involved Water-Involved) 
                  (Saturated-P 2d-Stream-Involved True) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Saturated-Water-Stream-Specific-Volume ?Self) 
        (= (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At (Specific-Volume (2d-Stream-Involved ?Self))
                             ?T)))
           (Compute-Saturated-Vapor-Specific-Volume 
               (Lambda 
                   (?T) 
                   (If (= ?T ?Time) 
                       (Value-At 
                           (Stream-Pressure (2d-Stream-Involved ?Self))
                           ?T)))
               (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Quality (2d-Stream-Involved ?Self))
                                     ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Saturated-Water-Stream-Specific-Volume
                     ?Self)
             (And (Saturated-Water-Stream-Specific-Volume ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) 
                  (Active ?Time Water-Operating-Mode ?Self) )))


Class CONTROL-VOLUME-NEGLIGIBLE-PE-CHANGE

operating mode of a control-volume that says that the change in pe rate is negligible
Subclass-Of: Control-volume-op-mode, Model-fragment
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Control-Volume-Negligible-Pe-Change ?Self) 
             (And (Control-Volume-Op-Mode ?Self) 
                  (Even-Pe Cv-Involved True) )))

(Forall (?Self ?Time) 
        (=> (Active ?Time Control-Volume-Negligible-Pe-Change ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (D-Pe-Rate (Cv-Involved ?Self)) 
                                     ?T)))
               0 )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Control-Volume-Negligible-Pe-Change ?Self) 
             (And (Control-Volume-Negligible-Pe-Change ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class CONTROL-VOLUME-NEGLIGIBLE-KE-CHANGE

operating mode of a control-volume that says that the change in ke rate is negligible
Subclass-Of: Control-volume-op-mode, Model-fragment
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Control-Volume-Negligible-Ke-Change ?Self) 
             (And (Control-Volume-Op-Mode ?Self) 
                  (Even-Ke Cv-Involved True) )))

(Forall (?Self ?Time) 
        (=> (Active ?Time Control-Volume-Negligible-Ke-Change ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (D-Ke-Rate (Cv-Involved ?Self)) 
                                     ?T)))
               0 )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Control-Volume-Negligible-Ke-Change ?Self) 
             (And (Control-Volume-Negligible-Ke-Change ?Self) 
                  (Active ?Time Control-Volume-Op-Mode ?Self) )))


Class 1-INPUT-CONTROL-VOLUME

the control volume with one input stream
Subclass-Of: Control-volume, Entity
Arity: 1
Has-Attribute-Function: Inlet-stream

Slots Of Instances:

Inlet-Stream:
Slot-Documentation: the inlet stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-Input-Control-Volume ?Self) 
             (And (1-Input-Control-Volume ?Self) 
                  (Active ?Time Control-Volume ?Self) )))


Function INLET-STREAM

An attribute function
Arity: 2
Attribute-Function-Of: 1-input-control-volume

Class 1-OUTPUT-CONTROL-VOLUME

the control volume with one output stream
Subclass-Of: Control-volume, Entity
Arity: 1
Has-Attribute-Function: Outlet-stream

Slots Of Instances:

Outlet-Stream:
Slot-Documentation: the outlet stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-Output-Control-Volume ?Self) 
             (And (1-Output-Control-Volume ?Self) 
                  (Active ?Time Control-Volume ?Self) )))


Function OUTLET-STREAM

An attribute function
Arity: 2
Attribute-Function-Of: 1-output-control-volume

Class 2-INPUT-CONTROL-VOLUME

the control volume with two input streams
Subclass-Of: Control-volume, Entity
Arity: 1
Has-Attribute-Function: Inlet-stream1, Inlet-stream2

Slots Of Instances:

Inlet-Stream1:
Slot-Documentation: the first inlet stream
Inlet-Stream2:
Slot-Documentation: the second inlet stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-Input-Control-Volume ?Self) 
             (And (2-Input-Control-Volume ?Self) 
                  (Active ?Time Control-Volume ?Self) )))


Function INLET-STREAM1

An attribute function
Arity: 2
Attribute-Function-Of: 2-input-control-volume

Function INLET-STREAM2

An attribute function
Arity: 2
Attribute-Function-Of: 2-input-control-volume

Class 3-INPUT-CONTROL-VOLUME

the control volume with three input streams
Subclass-Of: 2-input-control-volume, Entity
Arity: 1
Has-Attribute-Function: Inlet-stream3

Slots Of Instances:

Inlet-Stream3:
Slot-Documentation: the first inlet stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 3-Input-Control-Volume ?Self) 
             (And (3-Input-Control-Volume ?Self) 
                  (Active ?Time 2-Input-Control-Volume ?Self) )))


Function INLET-STREAM3

An attribute function
Arity: 2
Attribute-Function-Of: 3-input-control-volume

Class 2-OUTPUT-CONTROL-VOLUME

the control volume with two output streams
Subclass-Of: Control-volume, Entity
Arity: 1
Has-Attribute-Function: Outlet-stream1, Outlet-stream2

Slots Of Instances:

Outlet-Stream1:
Slot-Documentation: the first outlet stream
Outlet-Stream2:
Slot-Documentation: the second outlet stream
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-Output-Control-Volume ?Self) 
             (And (2-Output-Control-Volume ?Self) 
                  (Active ?Time Control-Volume ?Self) )))


Function OUTLET-STREAM1

An attribute function
Arity: 2
Attribute-Function-Of: 2-output-control-volume

Function OUTLET-STREAM2

An attribute function
Arity: 2
Attribute-Function-Of: 2-output-control-volume

Class 1-1-CONTROL-VOLUME

the one-input, one-output control volume
Subclass-Of: 1-input-control-volume, 1-output-control-volume, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-1-Control-Volume ?Self) 
             (And (1-1-Control-Volume ?Self) 
                  (Active ?Time 1-Input-Control-Volume ?Self) 
                  (Active ?Time 1-Output-Control-Volume ?Self) )))


Class 1-2-CONTROL-VOLUME

the one-input, two-output control volume
Subclass-Of: 1-input-control-volume, 2-output-control-volume, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 1-2-Control-Volume ?Self) 
             (And (1-2-Control-Volume ?Self) 
                  (Active ?Time 1-Input-Control-Volume ?Self) 
                  (Active ?Time 2-Output-Control-Volume ?Self) )))


Class 2-1-CONTROL-VOLUME

the two-input, one-output control volume
Subclass-Of: 1-output-control-volume, 2-input-control-volume, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-1-Control-Volume ?Self) 
             (And (2-1-Control-Volume ?Self) 
                  (Active ?Time 2-Input-Control-Volume ?Self) 
                  (Active ?Time 1-Output-Control-Volume ?Self) )))


Class 2-2-CONTROL-VOLUME

the two-input, two-output control volume
Subclass-Of: 2-input-control-volume, 2-output-control-volume, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-2-Control-Volume ?Self) 
             (And (2-2-Control-Volume ?Self) 
                  (Active ?Time 2-Input-Control-Volume ?Self) 
                  (Active ?Time 2-Output-Control-Volume ?Self) )))


Class 3-1-CONTROL-VOLUME

the three-input, one-output control volume
Subclass-Of: 1-output-control-volume, 3-input-control-volume, Entity
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 3-1-Control-Volume ?Self) 
             (And (3-1-Control-Volume ?Self) 
                  (Active ?Time 3-Input-Control-Volume ?Self) 
                  (Active ?Time 1-Output-Control-Volume ?Self) )))


Class SUBSTANCE

the class of all types of matter
Subclass-Of: Entity, Structural-element-model
Arity: 1
Has-Quantity-Function:
Critical-density, Critical-pressure, Critical-temperature, Ideal-gas-constant, Ideal-gas-p, Ideal-specific-heat, Molecular-weight, Reference-temperature, Saturation-pressure, Saturation-temperature

Slots Of Instances:

Critical-Density:
Slot-Documentation: the density of the substance at its critical point
Critical-Pressure:
Slot-Documentation: the pressure at the critical point of the substance
Critical-Temperature:
Slot-Documentation: the maximum temperature at which liquid and vapor phases can coexist in equilibrium
Ideal-Gas-Constant:
Slot-Documentation: the gas constant (universal gas constant / molecular weight) of the substance when it is modeled as ideal gas
Ideal-Gas-P:
Slot-Documentation: the attribute indicating that the particular instance of the substance can be regarded as ideal gas
Ideal-Specific-Heat:
Slot-Documentation: the specific heat of the substance when it is modeled as ideal gas
Molecular-Weight:
Slot-Documentation: the molecular weight of the substance
Reference-Temperature:
Slot-Documentation: the temperature of the reference state, which is the thermodynamic state with respect to which the values of the state variables, internal energy, specific enthalpy, and specific entropy in all other states are computed
Saturation-Pressure:
Slot-Documentation: the pressure at which a phase change takes place at a given temperature
Saturation-Temperature:
Slot-Documentation: the temperature at which a phase change takes place at a given pressure
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Substance ?Self) 
             (And (Substance ?Self) 
                  (Active ?Time Structural-Element-Model ?Self) )))

(=> (Substance ?Self) 
    (And (Quantity.Dimension (Saturation-Pressure ?Self) 
                             Pressure-Dimension)
         (Quantity.Dimension (Saturation-Temperature ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (Ideal-Specific-Heat ?Self) 
                             Specific-Energy-Dimension)
         (Quantity.Dimension (Molecular-Weight ?Self) 
                             Amount-Dimension)
         (Quantity.Dimension (Critical-Temperature ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (Critical-Pressure ?Self) 
                             Pressure-Dimension)
         (Quantity.Dimension (Critical-Density ?Self) 
                             Density-Dimension)
         (Quantity.Dimension (Reference-Temperature ?Self) 
                             Temperature-Dimension)))


Function SATURATION-PRESSURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function SATURATION-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function IDEAL-SPECIFIC-HEAT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function MOLECULAR-WEIGHT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function CRITICAL-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function CRITICAL-PRESSURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function CRITICAL-DENSITY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function REFERENCE-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function IDEAL-GAS-CONSTANT

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Function IDEAL-GAS-P

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Substance
Range: Everywhere-continuous-quantity

Relation CONTAINED-IN

the thing that can contain a substance such as stream and control volume
Arity: 2
Domain: Substance
Range: Substance-container

Class WATER

the substance water
Subclass-Of: Entity, Substance
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Water ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Molecular-Weight ?Self) 
                                          ?T)))
                    18.016 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Critical-Temperature ?Self)
                                          ?T)))
                    647.286 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Critical-Pressure ?Self) 
                                          ?T)))
                    22.089 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Critical-Density ?Self) 
                                          ?T)))
                    317.0 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Reference-Temperature ?Self)
                                          ?T)))
                    273.16 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Ideal-Gas-Constant ?Self) 
                                          ?T)))
                    461.51 ))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Water ?Self) 
             (And (Water ?Self) (Active ?Time Substance ?Self)) ))


Class AIR

the substance air
Subclass-Of: Entity, Substance
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Air ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Molecular-Weight ?Self) 
                                          ?T)))
                    28.97 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Critical-Temperature ?Self)
                                          ?T)))
                    133 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Critical-Pressure ?Self) 
                                          ?T)))
                    37.7 )
                 (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Ideal-Gas-Constant ?Self) 
                                          ?T)))
                    286.99 ))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Air ?Self) 
             (And (Air ?Self) (Active ?Time Substance ?Self)) ))


Class 2D-STREAM-MASS-FLOW-RATE

the operating mode model of the 2d stream to express the relation between mass rate, specific volume, area, and velocity
Subclass-Of: 2d-stream-operating-mode, Model-fragment
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time 2d-Stream-Mass-Flow-Rate ?Self) 
        (= (* (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At (Mass-Rate 
                                        (2d-Stream-Involved ?Self) )
                                    ?T)))
              (Lambda 
                  (?T) 
                  (If (= ?T ?Time) 
                      (Value-At 
                          (Specific-Volume (2d-Stream-Involved ?Self) )
                          ?T))))
           (* (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At 
                              (Stream-Area (2d-Stream-Involved ?Self) )
                              ?T)))
              (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At (Velocity (2d-Stream-Involved ?Self))
                                    ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time 2d-Stream-Mass-Flow-Rate ?Self) 
             (And (2d-Stream-Mass-Flow-Rate ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) )))


Class 2D-STREAM-ENTHALPY-RATE

the operating mode model of the 2d stream to express the relation between enthalpy rate, mass rate and specific enthalpy
Subclass-Of: 2d-stream-operating-mode, Model-fragment
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time 2d-Stream-Enthalpy-Rate ?Self) 
        (= (Lambda (?T) 
                   (If (= ?T ?Time) 
                       (Value-At 
                           (Enthalpy-Rate (2d-Stream-Involved ?Self)) 
                           ?T)))
           (* (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At (Mass-Rate 
                                        (2d-Stream-Involved ?Self) )
                                    ?T)))
              (Lambda 
                  (?T) 
                  (If (= ?T ?Time) 
                      (Value-At 
                          (Specific-Enthalpy (2d-Stream-Involved ?Self))
                          ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time 2d-Stream-Enthalpy-Rate ?Self) 
             (And (2d-Stream-Enthalpy-Rate ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) )))


Class EARTH-BOUND-MODEL

an abstract class of model fragments whose sole purpose is to have the gravitational acceleration due to earth.
Subclass-Of: Model-fragment
Arity: 1
Has-Quantity-Function: Acceleration-due-to-gravity

Slots Of Instances:

Acceleration-Due-To-Gravity:
Slot-Documentation: the gravitational acceleration on earth
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Earth-Bound-Model ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Acceleration-Due-To-Gravity ?Self)
                                     ?T)))
               9.81 )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Earth-Bound-Model ?Self) 
             (Earth-Bound-Model ?Self) ))

(=> (Earth-Bound-Model ?Self) 
    (Quantity.Dimension (Acceleration-Due-To-Gravity ?Self) 
                        Acceleration-Dimension))


Function ACCELERATION-DUE-TO-GRAVITY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Earth-bound-model
Range: Everywhere-continuous-quantity

Class 2D-STREAM-POTENTIAL-ENERGY

the operating mode model of the 2d stream to express the relation between the mass rate, elevation and gravitational acceleration
Subclass-Of: 2d-stream-operating-mode, Earth-bound-model, Model-fragment
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time 2d-Stream-Potential-Energy ?Self) 
        (= (Lambda (?T) 
                   (If (= ?T ?Time) 
                       (Value-At (Pe-Rate (2d-Stream-Involved ?Self)) 
                                 ?T)))
           (* (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At (Mass-Rate 
                                        (2d-Stream-Involved ?Self) )
                                    ?T)))
              (Lambda 
                  (?T) 
                  (If (= ?T ?Time) 
                      (Value-At 
                          (Stream-Elevation (2d-Stream-Involved ?Self))
                          ?T)))
              (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At (Acceleration-Due-To-Gravity ?Self)
                                    ?T)))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time 2d-Stream-Potential-Energy ?Self) 
             (And (2d-Stream-Potential-Energy ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) 
                  (Active ?Time Earth-Bound-Model ?Self) )))


Class 2D-STREAM-KINETIC-ENERGY

the operating mode model of the 2d stream to express the relation between kinetic energy rate, mass rate and velocity
Subclass-Of: 2d-stream-operating-mode, Model-fragment
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time 2d-Stream-Kinetic-Energy ?Self) 
        (= (Lambda (?T) 
                   (If (= ?T ?Time) 
                       (Value-At (Ke-Rate (2d-Stream-Involved ?Self)) 
                                 ?T)))
           (* 0.5 
              (Lambda (?T) 
                      (If (= ?T ?Time) 
                          (Value-At (Mass-Rate 
                                        (2d-Stream-Involved ?Self) )
                                    ?T)))
              (Expt (Lambda 
                        (?T) 
                        (If (= ?T ?Time) 
                            (Value-At 
                                (Velocity (2d-Stream-Involved ?Self)) 
                                ?T)))
                    2 )))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time 2d-Stream-Kinetic-Energy ?Self) 
             (And (2d-Stream-Kinetic-Energy ?Self) 
                  (Active ?Time 2d-Stream-Operating-Mode ?Self) )))


Class THERMAL-PROCESS

the class of all thermal processes
Subclass-Of: Model-fragment
Arity: 1
Has-Quantity-Function:
Entropy-generation-rate, Heat-rate, Heat-transfer-temperature, Internally-reversible-p, Irreversibility-rate, Work-rate

Slots Of Instances:

Entropy-Generation-Rate:
Slot-Documentation: the rate at which entropy is generated by the process
Heat-Rate:
Slot-Documentation: the rate at which energy is transferred in across the system boundary by heat transfer
Heat-Transfer-Temperature:
Slot-Documentation: the temperatue at which energy is transferred in across the system boundary by heat transfer
Internally-Reversible-P:
Slot-Documentation: the attribute indicating that the process is internally reversible
Irreversibility-Rate:
Slot-Documentation: the rate of the destruction of availability due to ierreversibilities within the process
Work-Rate:
Slot-Documentation: the rate at which energy is trasferred out across the system boundary by work
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Thermal-Process ?Self) 
             (Thermal-Process ?Self) ))

(=> (Thermal-Process ?Self) 
    (And (Quantity.Dimension (Work-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (Heat-Rate ?Self) Power-Dimension) 
         (Quantity.Dimension (Heat-Transfer-Temperature ?Self) 
                             Temperature-Dimension)
         (Quantity.Dimension (Entropy-Generation-Rate ?Self) 
                             Entropy-Rate-Dimension)
         (Quantity.Dimension (Irreversibility-Rate ?Self) 
                             Power-Dimension)))


Function WORK-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-process
Range: Everywhere-continuous-quantity

Function HEAT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-process
Range: Everywhere-continuous-quantity

Function HEAT-TRANSFER-TEMPERATURE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-process
Range: Everywhere-continuous-quantity

Function ENTROPY-GENERATION-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-process
Range: Everywhere-continuous-quantity

Function IRREVERSIBILITY-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-process
Range: Everywhere-continuous-quantity

Function INTERNALLY-REVERSIBLE-P

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Thermal-process
Range: Everywhere-continuous-quantity

Relation PROCESS-CV

Instance-Of: Connection, Relation
Arity: 2
Domain: Thermal-process
Range: Control-volume

Class STEADY-STATE-STEADY-FLOW-PROCESS

the model of a steady flow in steady state employing the first law of thermodynamics (Energy conservation) and mass conservation
Subclass-Of: Model-fragment, Thermal-process
Arity: 1
Has-Quantity-Function: Power-input-per-mass

Slots Of Instances:

Power-Input-Per-Mass:
Slot-Documentation: the rate of power input per unit of mass passing through the cv associated with the process
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Steady-State-Steady-Flow-Process ?Self) 
        (And (Forall (?Cv) 
                     (=> (Process-Cv ?Self ?Cv) 
                         (= (- (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Heat-Rate ?Self)
                                                     ?T)))
                               (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Work-Rate ?Self)
                                                     ?T))))
                            (+ (- (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Enthalpy-Rate-Out ?Cv) 
                                              ?T)))
                                  (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Enthalpy-Rate-In ?Cv) 
                                              ?T))))
                               (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (D-Pe-Rate ?Cv) 
                                                     ?T)))
                               (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (D-Ke-Rate ?Cv) 
                                                     ?T)))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At 
                                    (Entropy-Generation-Rate ?Self) 
                                    ?T)))
                        (+ (- (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Entropy-Rate-Out ?Cv) 
                                              ?T)))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Entropy-Rate-In ?Cv) 
                                              ?T))))
                           (- (/ (Lambda (?T) 
                                         (If (= ?T ?Time) 
                                             (Value-At (Heat-Rate ?Self)
                                                       ?T)))
                                 (Lambda 
                                     (?T) 
                                     (If (= ?T ?Time) 
                                         (Value-At 
                                             (Heat-Transfer-Temperature ?Self)
                                             ?T)))))))))
             (Forall (?Cv) 
                     (=> (Process-Cv ?Self ?Cv) 
                         (= (Lambda (?T) 
                                    (If (= ?T ?Time) 
                                        (Value-At (Mass-Rate-In ?Cv) 
                                                  ?T)))
                            (Lambda (?T) 
                                    (If (= ?T ?Time) 
                                        (Value-At (Mass-Rate-Out ?Cv) 
                                                  ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-State-Steady-Flow-Process ?Self) 
             (And (Steady-State-Steady-Flow-Process ?Self) 
                  (Active ?Time Thermal-Process ?Self) )))


Function POWER-INPUT-PER-MASS

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Steady-state-steady-flow-process
Range: Everywhere-continuous-quantity

Class STEADY-FLOW-ADIABATIC-PROCESS

An adiabatic process is one for which there is no heat transfer with

the surroundings

Subclass-Of: Model-fragment, Steady-state-steady-flow-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-Adiabatic-Process ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Heat-Rate ?Self) ?T) ))
               0 )))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Adiabatic-Process ?Self) 
             (And (Steady-Flow-Adiabatic-Process ?Self) 
                  (Active ?Time
                          Steady-State-Steady-Flow-Process
                          ?Self))))


Class STEADY-FLOW-ISENTROPIC-PROCESS

An isentropic process is one for which there is no heat transfer with

the surroundings, and no change in entropy

Subclass-Of: Model-fragment, Steady-flow-adiabatic-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-Isentropic-Process ?Self) 
            (Forall (?Cv) 
                    (=> (Process-Cv ?Self ?Cv) 
                        (= (Lambda (?T) 
                                   (If (= ?T ?Time) 
                                       (Value-At (D-Entropy-Rate ?Cv) 
                                                 ?T)))
                           0 )))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Isentropic-Process ?Self) 
             (And (Steady-Flow-Isentropic-Process ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))


Class STEADY-FLOW-ADIABATIC-HEAT-EXCHANGE

This process model describes the process in a CV encompassing an

entire closed heat exchanger, from which there is no heat transfer with the

surroundings.

Subclass-Of: Model-fragment, Steady-flow-adiabatic-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-Adiabatic-Heat-Exchange ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Work-Rate ?Self) ?T) ))
                    0 )
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (D-Ke-Rate ?Cv) 
                                                      ?T)))
                                0 )))
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (D-Pe-Rate ?Cv) 
                                                      ?T)))
                                0 ))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Adiabatic-Heat-Exchange ?Self) 
             (And (Steady-Flow-Adiabatic-Heat-Exchange ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))


Class STEADY-FLOW-ISOBARIC-PROCESS

An isobaric process is a constant pressure process
Subclass-Of: Model-fragment, Steady-state-steady-flow-process
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Steady-Flow-Isobaric-Process ?Self) 
        (Forall 
            (?Cv) 
            (=> (Process-Cv ?Self ?Cv) 
                (= (Lambda 
                       (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Stream-Pressure (Inlet-Stream ?Cv))
                                     ?T)))
                   (Lambda 
                       (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Stream-Pressure 
                                         (Outlet-Stream ?Cv) )
                                     ?T))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Isobaric-Process ?Self) 
             (And (Steady-Flow-Isobaric-Process ?Self) 
                  (Active ?Time
                          Steady-State-Steady-Flow-Process
                          ?Self))))


Class STEADY-FLOW-ISOTHERMAL-PROCESS

An isothermal process is a constant temperature process
Subclass-Of: Model-fragment, Steady-state-steady-flow-process
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Steady-Flow-Isothermal-Process ?Self) 
        (Forall 
            (?Cv) 
            (=> (Process-Cv ?Self ?Cv) 
                (= (Lambda 
                       (?T) 
                       (If (= ?T ?Time) 
                           (Value-At 
                               (Stream-Temperature (Inlet-Stream ?Cv) )
                               ?T)))
                   (Lambda 
                       (?T) 
                       (If (= ?T ?Time) 
                           (Value-At 
                               (Stream-Temperature (Outlet-Stream ?Cv))
                               ?T))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Isothermal-Process ?Self) 
             (And (Steady-Flow-Isothermal-Process ?Self) 
                  (Active ?Time
                          Steady-State-Steady-Flow-Process
                          ?Self))))


Class STEADY-FLOW-HEAT-TRANSFER

Generic heat transfer process
Subclass-Of: Model-fragment, Steady-state-steady-flow-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-Heat-Transfer ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Work-Rate ?Self) ?T) ))
                    0 )
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (D-Ke-Rate ?Cv) 
                                                      ?T)))
                                0 )))
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (D-Pe-Rate ?Cv) 
                                                      ?T)))
                                0 ))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Heat-Transfer ?Self) 
             (And (Steady-Flow-Heat-Transfer ?Self) 
                  (Active ?Time
                          Steady-State-Steady-Flow-Process
                          ?Self))))


Class STEADY-FLOW-ISOBARIC-HEAT-TRANSFER

the isobaric process a single fluid stream undergoes within a heat exchanger
Subclass-Of: Model-fragment, Steady-flow-heat-transfer, Steady-flow-isobaric-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Isobaric-Heat-Transfer ?Self) 
             (And (Steady-Flow-Isobaric-Heat-Transfer ?Self) 
                  (Active ?Time Steady-Flow-Heat-Transfer ?Self) 
                  (Active ?Time Steady-Flow-Isobaric-Process ?Self) )))


Class STEADY-FLOW-EXPANSION-OR-COMPRESSION

the class of steady flow processes including expansion and compression
Subclass-Of: Model-fragment, Steady-state-steady-flow-process
Arity: 1
Has-Quantity-Function: Ideal-isentropic-enthalpy, Isentropic-efficiency

Slots Of Instances:

Ideal-Isentropic-Enthalpy:
Slot-Documentation: the enthalpy of the ideal gas undergoing the process if the process is an isentropic process
Isentropic-Efficiency:
Slot-Documentation: the measure of comparison between the actual performance of a device and the performance that would be achieved under idealized circumstances for the same inlet state and the same exit pressure
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Steady-Flow-Expansion-Or-Compression
                     ?Self)
             (And (Steady-Flow-Expansion-Or-Compression ?Self) 
                  (Active ?Time
                          Steady-State-Steady-Flow-Process
                          ?Self))))

(=> (Steady-Flow-Expansion-Or-Compression ?Self) 
    (And (Quantity.Dimension (Isentropic-Efficiency ?Self) 
                             Dimensionless)
         (Quantity.Dimension (Ideal-Isentropic-Enthalpy ?Self) 
                             Energy-Dimension)))


Function ISENTROPIC-EFFICIENCY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Steady-flow-expansion-or-compression
Range: Everywhere-continuous-quantity

Function IDEAL-ISENTROPIC-ENTHALPY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Steady-flow-expansion-or-compression
Range: Everywhere-continuous-quantity

Class STEADY-FLOW-EXPANSION

An expansion process involves decrease of pressure from inlet to outlet
Subclass-Of: Model-fragment, Steady-flow-expansion-or-compression
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Expansion ?Self) 
             (And (Steady-Flow-Expansion ?Self) 
                  (Active ?Time
                          Steady-Flow-Expansion-Or-Compression
                          ?Self))))


Class STEADY-FLOW-ADIABATIC-EXPANSION

the class of steady flow expansion processes taking place without interacting thermally with the external world
Subclass-Of: Model-fragment, Steady-flow-adiabatic-process, Steady-flow-expansion
Arity: 1
Has-Quantity-Function: Expansion-isentropic-efficiency

Slots Of Instances:

Expansion-Isentropic-Efficiency:
Slot-Documentation: the isentropic efficiency of the expansion process
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Steady-Flow-Adiabatic-Expansion ?Self) 
        (And (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At 
                                        (Quality (Outlet-Stream ?Cv)) 
                                        ?T)))
                        (/ (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Entropy 
                                              (Outlet-Stream ?Cv) )
                                          ?T)))
                              (Compute-Saturated-Vapor-Entropy 
                                  (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Stream-Pressure 
                                                  (Outlet-Stream ?Cv) )
                                              ?T)))
                                  0 ))
                           (- (Compute-Saturated-Vapor-Entropy 
                                  (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Stream-Pressure 
                                                  (Outlet-Stream ?Cv) )
                                              ?T)))
                                  1 )
                              (Compute-Saturated-Vapor-Entropy 
                                  (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Stream-Pressure 
                                                  (Outlet-Stream ?Cv) )
                                              ?T)))
                                  0 ))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Isentropic-Efficiency ?Self)
                                          ?T)))
                        (/ (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Outlet-Stream ?Cv) )
                                          ?T))))
                           (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Ideal-Isentropic-Enthalpy ?Self)
                                          ?T))))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At 
                                    (Expansion-Isentropic-Efficiency ?Self)
                                    ?T)))
                        (/ (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Outlet-Stream ?Cv) )
                                          ?T))))
                           (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Ideal-Isentropic-Enthalpy ?Self)
                                          ?T)))))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Adiabatic-Expansion ?Self) 
             (And (Steady-Flow-Adiabatic-Expansion ?Self) 
                  (Active ?Time Steady-Flow-Expansion ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))

(=> (Steady-Flow-Adiabatic-Expansion ?Self) 
    (Quantity.Dimension (Expansion-Isentropic-Efficiency ?Self) 
                        Dimensionless))


Function EXPANSION-ISENTROPIC-EFFICIENCY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Steady-flow-adiabatic-expansion
Range: Everywhere-continuous-quantity

Class STEADY-FLOW-COMPRESSION

A compression process involves increase of pressure from inlet to outlet
Subclass-Of: Model-fragment, Steady-state-steady-flow-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Compression ?Self) 
             (And (Steady-Flow-Compression ?Self) 
                  (Active ?Time
                          Steady-State-Steady-Flow-Process
                          ?Self))))


Class STEADY-FLOW-ADIABATIC-COMPRESSION

the class of steady flow compression processes taking place without interacting thermally with the external world
Subclass-Of: Model-fragment, Steady-flow-adiabatic-process, Steady-flow-compression
Arity: 1
Has-Quantity-Function: Compression-isentropic-efficiency

Slots Of Instances:

Compression-Isentropic-Efficiency:
Slot-Documentation: the isentropic efficiency of the compression process
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Steady-Flow-Adiabatic-Compression ?Self) 
        (And (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At 
                                    (Compression-Isentropic-Efficiency ?Self)
                                    ?T)))
                        (/ (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Ideal-Isentropic-Enthalpy ?Self)
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T))))
                           (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Outlet-Stream ?Cv) )
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T))))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Isentropic-Efficiency ?Self)
                                          ?T)))
                        (/ (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Outlet-Stream ?Cv) )
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T))))
                           (- (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Ideal-Isentropic-Enthalpy ?Self)
                                          ?T)))
                              (Lambda 
                                  (?T) 
                                  (If (= ?T ?Time) 
                                      (Value-At 
                                          (Specific-Enthalpy 
                                              (Inlet-Stream ?Cv) )
                                          ?T))))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At 
                                        (Power-Input-Per-Mass ?Self) 
                                        ?T)))
                        (- (Lambda 
                               (?T) 
                               (If (= ?T ?Time) 
                                   (Value-At 
                                       (Specific-Enthalpy 
                                           (Outlet-Stream ?Cv) )
                                       ?T)))
                           (Lambda 
                               (?T) 
                               (If (= ?T ?Time) 
                                   (Value-At 
                                       (Specific-Enthalpy 
                                           (Inlet-Stream ?Cv) )
                                       ?T))))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Adiabatic-Compression ?Self) 
             (And (Steady-Flow-Adiabatic-Compression ?Self) 
                  (Active ?Time Steady-Flow-Compression ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))

(=> (Steady-Flow-Adiabatic-Compression ?Self) 
    (Quantity.Dimension (Compression-Isentropic-Efficiency ?Self) 
                        Dimensionless))


Function COMPRESSION-ISENTROPIC-EFFICIENCY

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Steady-flow-adiabatic-compression
Range: Everywhere-continuous-quantity

Class PUMP-OPERATING-MODE

the class of operating mode models of the pump
Subclass-Of: Model-fragment, Operating-mode-model
Arity: 1
Has-Participant-Function: Pump-involved

Slots Of Instances:

Pump-Involved:
Slot-Documentation: the pump involved in the operating mode
Axioms:
(Forall (?Self ?Pump-Involved) 
        (<=> (And (= (Pump-Involved ?Self) ?Pump-Involved) 
                  (Pump-Operating-Mode ?Self) )
             (And (Operating-Mode-Model ?Self) (Pump ?Pump-Involved)) ))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Pump-Operating-Mode ?Self) 
             (And (Pump-Operating-Mode ?Self) 
                  (Active ?Time Operating-Mode-Model ?Self) )))


Function PUMP-INVOLVED

A participant function
Arity: 2
Participant-Function-Of: Pump-operating-mode

Class PUMP-POWER-INPUT-PER-MASS-APPROXIMATION

the operating mode model of a pump expressing the relation among the power input per unit mass, specific volume, and the pressure differential across the pump
Subclass-Of:
1-1-control-volume-op-mode, Model-fragment, Pump-operating-mode, Thermal-process-op-mode
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Pump-Power-Input-Per-Mass-Approximation ?Self) 
             (And (Pump-Operating-Mode ?Self) 
                  (1-1-Control-Volume-Op-Mode ?Self) 
                  (Thermal-Process-Op-Mode ?Self) 
                  (Component-Cv Pump-Involved 1-1-Cv-Involved) 
                  (Process-Cv Process-Involved 1-1-Cv-Involved) )))

(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Pump-Power-Input-Per-Mass-Approximation ?Self) 
        (= (Lambda 
               (?T) 
               (If (= ?T ?Time) 
                   (Value-At 
                       (Power-Input-Per-Mass (Process-Involved ?Self) )
                       ?T)))
           (* (Lambda 
                  (?T) 
                  (If (= ?T ?Time) 
                      (Value-At 
                          (Specific-Volume 
                              (Inlet-Stream (1-1-Cv-Involved ?Self)) )
                          ?T)))
              (/ (- (Lambda 
                        (?T) 
                        (If (= ?T ?Time) 
                            (Value-At 
                                (Stream-Pressure 
                                    (Outlet-Stream 
                                        (1-1-Cv-Involved ?Self) ))
                                ?T)))
                    (Lambda 
                        (?T) 
                        (If (= ?T ?Time) 
                            (Value-At 
                                (Stream-Pressure 
                                    (Inlet-Stream 
                                        (1-1-Cv-Involved ?Self) ))
                                ?T))))
                 1000 )))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Pump-Power-Input-Per-Mass-Approximation
                     ?Self)
             (And (Pump-Power-Input-Per-Mass-Approximation ?Self) 
                  (Active ?Time Pump-Operating-Mode ?Self) 
                  (Active ?Time 1-1-Control-Volume-Op-Mode ?Self) 
                  (Active ?Time Thermal-Process-Op-Mode ?Self) )))


Class STEADY-FLOW-THROTTLING

the steady flow process involving a reduction in pressure without enthalpy change such as flow through a valve
Subclass-Of: Model-fragment, Steady-flow-adiabatic-process, Steady-flow-expansion
Arity: 1
Axioms:
(Forall (?Self) 
        (<=> (Steady-Flow-Throttling ?Self) 
             (And (Steady-Flow-Expansion ?Self) 
                  (Steady-Flow-Adiabatic-Process ?Self) 
                  (Process-Cv ?Self ?Cv) 
                  (Undergoing Adiabatic-Throttling ?Cv) )))

(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-Throttling ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Work-Rate ?Self) ?T) ))
                    0 )
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-Out ?Cv)
                                                      ?T)))
                                (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-In ?Cv)
                                                      ?T))))))
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Ke-Rate-Out ?Cv)
                                                      ?T)))
                                (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Ke-Rate-In ?Cv)
                                                      ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Throttling ?Self) 
             (And (Steady-Flow-Throttling ?Self) 
                  (Active ?Time Steady-Flow-Expansion ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))


Class STEADY-FLOW-ADIABATIC-MIXING

Adiabatic Mixing of fluid streams into one outlet. Also used for

modeling of open heat exchangers

Subclass-Of: Model-fragment, Steady-flow-adiabatic-process
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-Adiabatic-Mixing ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Work-Rate ?Self) ?T) ))
                    0 )
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Ke-Rate-Out ?Cv)
                                                      ?T)))
                                (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Ke-Rate-In ?Cv)
                                                      ?T))))))
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-Out ?Cv)
                                                      ?T)))
                                (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-In ?Cv)
                                                      ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Adiabatic-Mixing ?Self) 
             (And (Steady-Flow-Adiabatic-Mixing ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))


Class STEADY-FLOW-IN-NOZZLE

Model of nozzle flow
Subclass-Of: Model-fragment, Steady-flow-adiabatic-process, Steady-flow-expansion
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-In-Nozzle ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Work-Rate ?Self) ?T) ))
                    0 )
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-Out ?Cv)
                                                      ?T)))
                                (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-In ?Cv)
                                                      ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-In-Nozzle ?Self) 
             (And (Steady-Flow-In-Nozzle ?Self) 
                  (Active ?Time Steady-Flow-Expansion ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))


Class STEADY-FLOW-IN-DIFFUSER

Model of diffuser flow
Subclass-Of: Model-fragment, Steady-flow-adiabatic-process, Steady-flow-compression
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Steady-Flow-In-Diffuser ?Self) 
            (And (= (Lambda (?T) 
                            (If (= ?T ?Time) 
                                (Value-At (Work-Rate ?Self) ?T) ))
                    0 )
                 (Forall (?Cv) 
                         (=> (Process-Cv ?Self ?Cv) 
                             (= (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-Out ?Cv)
                                                      ?T)))
                                (Lambda (?T) 
                                        (If (= ?T ?Time) 
                                            (Value-At (Pe-Rate-In ?Cv)
                                                      ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-In-Diffuser ?Self) 
             (And (Steady-Flow-In-Diffuser ?Self) 
                  (Active ?Time Steady-Flow-Compression ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Process ?Self) )))


Class STEADY-FLOW-COMBUSTION-PROCESS

Model of combustion, say in the furnace of a boiler, or the combustor

of a gas turbine plant

Subclass-Of: Model-fragment, Steady-flow-adiabatic-mixing
Arity: 1
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Steady-Flow-Combustion-Process ?Self) 
             (And (Steady-Flow-Combustion-Process ?Self) 
                  (Active ?Time Steady-Flow-Adiabatic-Mixing ?Self) )))


Class NON-STEADY-STATE-FLOW-PROCESS

the general (i.e. non-steady state) flow process model employing the first law of thermodynamics (Energy conservation) and mass conservation.
Subclass-Of: Model-fragment, Thermal-process
Arity: 1
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Non-Steady-State-Flow-Process ?Self) 
        (And (Forall (?Cv) 
                     (=> (Process-Cv ?Self ?Cv) 
                         (= (- (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Heat-Rate ?Self)
                                                     ?T)))
                               (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Work-Rate ?Self)
                                                     ?T))))
                            (+ (- (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Enthalpy-Rate-Out ?Cv) 
                                              ?T)))
                                  (Lambda 
                                      (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Enthalpy-Rate-In ?Cv) 
                                              ?T))))
                               (- (Lambda (?T) 
                                          (If (= ?T ?Time) 
                                              (Value-At 
                                                  (Pe-Rate-Out ?Cv) 
                                                  ?T)))
                                  (Lambda (?T) 
                                          (If (= ?T ?Time) 
                                              (Value-At (Pe-Rate-In ?Cv)
                                                        ?T))))
                               (- (Lambda (?T) 
                                          (If (= ?T ?Time) 
                                              (Value-At 
                                                  (Ke-Rate-Out ?Cv) 
                                                  ?T)))
                                  (Lambda (?T) 
                                          (If (= ?T ?Time) 
                                              (Value-At (Ke-Rate-In ?Cv)
                                                        ?T))))
                               (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Energy-Rate ?Cv)
                                                     ?T)))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At (Energy-Rate ?Cv) ?T) ))
                        (+ (Lambda 
                               (?T) 
                               (If (= ?T ?Time) 
                                   (Value-At (Internal-Energy-Rate ?Cv)
                                             ?T)))
                           (Lambda (?T) 
                                   (If (= ?T ?Time) 
                                       (Value-At (Ke-Rate ?Cv) ?T) ))
                           (Lambda (?T) 
                                   (If (= ?T ?Time) 
                                       (Value-At (Pe-Rate ?Cv) ?T) ))))))
             (Forall 
                 (?Cv) 
                 (=> (Process-Cv ?Self ?Cv) 
                     (= (Lambda 
                            (?T) 
                            (If (= ?T ?Time) 
                                (Value-At 
                                    (Entropy-Generation-Rate ?Self) 
                                    ?T)))
                        (+ (- (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Entropy-Rate-Out ?Cv) 
                                              ?T)))
                              (Lambda (?T) 
                                      (If (= ?T ?Time) 
                                          (Value-At 
                                              (Entropy-Rate-In ?Cv) 
                                              ?T))))
                           (- (/ (Lambda (?T) 
                                         (If (= ?T ?Time) 
                                             (Value-At (Heat-Rate ?Self)
                                                       ?T)))
                                 (Lambda 
                                     (?T) 
                                     (If (= ?T ?Time) 
                                         (Value-At 
                                             (Heat-Transfer-Temperature ?Self)
                                             ?T)))))
                           (Lambda (?T) 
                                   (If (= ?T ?Time) 
                                       (Value-At (Entropy-Rate ?Cv) 
                                                 ?T)))))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (Irreversibility-Rate ?Self) 
                                      ?T)))
                (* (Lambda (?T) 
                           (If (= ?T ?Time) 
                               (Value-At (Entropy-Generation-Rate ?Self)
                                         ?T)))
                   (State-Temperature *Dead-State*) ))
             (Forall (?Cv) 
                     (=> (Process-Cv ?Self ?Cv) 
                         (= (Lambda (?T) 
                                    (If (= ?T ?Time) 
                                        (Value-At (Mass-Rate ?Cv) ?T) ))
                            (- (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Mass-Rate-In ?Cv)
                                                     ?T)))
                               (Lambda (?T) 
                                       (If (= ?T ?Time) 
                                           (Value-At (Mass-Rate-Out ?Cv)
                                                     ?T))))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Non-Steady-State-Flow-Process ?Self) 
             (And (Non-Steady-State-Flow-Process ?Self) 
                  (Active ?Time Thermal-Process ?Self) )))


Class COMPRESSOR-SYSTEM

the system consisting of a compressor, an associated control-volume, and a compression process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function:
Air-in-cmpsr, Cmpsn-prcs, Cmpsr, Cmpsr-cv

Slots Of Instances:

Air-In-Cmpsr:
Slot-Documentation: the air flowing through the compressor
Cmpsn-Prcs:
Slot-Documentation: the compression process of the compressor system
Cmpsr:
Slot-Documentation: the compressor
Cmpsr-Cv:
Slot-Documentation: the control volume associated with the compressor in the compressor system
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Compressor-System ?Self) 
             (And (Compressor-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Compressor-System ?Self) 
    (And (Cv-Component (Cmpsr-Cv ?Self) (Cmpsr ?Self)) 
         (Component-Cv (Cmpsr ?Self) (Cmpsr-Cv ?Self)) 
         (Process-Cv (Cmpsn-Prcs ?Self) (Cmpsr-Cv ?Self)) 
         (Substance-In (Cmpsr-Cv ?Self) (Air-In-Cmpsr ?Self)) ))


Function CMPSR

An attribute function
Arity: 2
Attribute-Function-Of: Compressor-system

Function CMPSR-CV

An attribute function
Arity: 2
Attribute-Function-Of: Compressor-system

Function CMPSN-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Compressor-system

Function AIR-IN-CMPSR

An attribute function
Arity: 2
Attribute-Function-Of: Compressor-system

Class 2-1-OPEN-FEEDWATER-HEATER-SYSTEM

the system consisting of an open feedwater heater, an associated control-volume, and an adiabatic mixing process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Adbtc-mxng-prcs, Opn-fwt-htr, Opn-fwt-htr-cv

Slots Of Instances:

Adbtc-Mxng-Prcs:
Slot-Documentation: the adiabatic mixing process
Opn-Fwt-Htr:
Slot-Documentation: the open feedwater heater of the 2-1-open feedwater heater system
Opn-Fwt-Htr-Cv:
Slot-Documentation: the control volume associated with the open feedwater heater
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-1-Open-Feedwater-Heater-System ?Self) 
             (And (2-1-Open-Feedwater-Heater-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (2-1-Open-Feedwater-Heater-System ?Self) 
    (And (Cv-Component (Opn-Fwt-Htr-Cv ?Self) (Opn-Fwt-Htr ?Self)) 
         (Component-Cv (Opn-Fwt-Htr ?Self) (Opn-Fwt-Htr-Cv ?Self)) 
         (Process-Cv (Adbtc-Mxng-Prcs ?Self) (Opn-Fwt-Htr-Cv ?Self)) ))


Function OPN-FWT-HTR

An attribute function
Arity: 2
Attribute-Function-Of: 2-1-open-feedwater-heater-system

Function OPN-FWT-HTR-CV

An attribute function
Arity: 2
Attribute-Function-Of: 2-1-open-feedwater-heater-system

Function ADBTC-MXNG-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: 2-1-open-feedwater-heater-system

Class 3-1-OPEN-FEEDWATER-HEATER-SYSTEM

the system consisting of an open feedwater heater, an associated control-volume, and an adiabatic mixing process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Fwt-htr, Fwt-htr-cv, Mxng-prcs

Slots Of Instances:

Fwt-Htr:
Slot-Documentation: the open feedwater heater
Fwt-Htr-Cv:
Slot-Documentation: the control volume associated with the open feedwater heater
Mxng-Prcs:
Slot-Documentation: the adiabatic mixing process
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 3-1-Open-Feedwater-Heater-System ?Self) 
             (And (3-1-Open-Feedwater-Heater-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (3-1-Open-Feedwater-Heater-System ?Self) 
    (And (Cv-Component (Fwt-Htr-Cv ?Self) (Fwt-Htr ?Self)) 
         (Component-Cv (Fwt-Htr ?Self) (Fwt-Htr-Cv ?Self)) 
         (Process-Cv (Mxng-Prcs ?Self) (Fwt-Htr-Cv ?Self)) ))


Function FWT-HTR

An attribute function
Arity: 2
Attribute-Function-Of: 3-1-open-feedwater-heater-system

Function FWT-HTR-CV

An attribute function
Arity: 2
Attribute-Function-Of: 3-1-open-feedwater-heater-system

Function MXNG-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: 3-1-open-feedwater-heater-system

Class 2-2-CLOSED-FEEDWATER-HEATER-SYSTEM

the system consisting of an open feedwater heater, an associated control-volume, and an adiabatic mixing process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Chtr-cv, Cls-fwt-htr, Ht-xchg-prcs

Slots Of Instances:

Chtr-Cv:
Slot-Documentation: the control volume associated with the closed feedwater heater in the system
Cls-Fwt-Htr:
Slot-Documentation: the closed feedwater heater
Ht-Xchg-Prcs:
Slot-Documentation: the adiabatic heat-exchange
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time 2-2-Closed-Feedwater-Heater-System ?Self) 
             (And (2-2-Closed-Feedwater-Heater-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (2-2-Closed-Feedwater-Heater-System ?Self) 
    (And (Cv-Component (Chtr-Cv ?Self) (Cls-Fwt-Htr ?Self)) 
         (Component-Cv (Cls-Fwt-Htr ?Self) (Chtr-Cv ?Self)) 
         (Process-Cv (Ht-Xchg-Prcs ?Self) (Chtr-Cv ?Self)) ))


Function CLS-FWT-HTR

An attribute function
Arity: 2
Attribute-Function-Of: 2-2-closed-feedwater-heater-system

Function CHTR-CV

An attribute function
Arity: 2
Attribute-Function-Of: 2-2-closed-feedwater-heater-system

Function HT-XCHG-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: 2-2-closed-feedwater-heater-system

Class STEAM-GENERATOR-WITH-REHEAT-SYSTEM

the system consisting of a steam generator reheater, an associated control volume and a heat-transfer process
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Sgen, Sgen-cv, Stmgen-htsr-prcs

Slots Of Instances:

Sgen:
Slot-Documentation: steam generator with reheater
Sgen-Cv:
Slot-Documentation: the control volume associated with the steam generator with reheat
Stmgen-Htsr-Prcs:
Slot-Documentation: the adiabatic mixing process
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Steam-Generator-With-Reheat-System ?Self) 
             (And (Steam-Generator-With-Reheat-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Steam-Generator-With-Reheat-System ?Self) 
    (And (Cv-Component (Sgen-Cv ?Self) (Sgen ?Self)) 
         (Component-Cv (Sgen ?Self) (Sgen-Cv ?Self)) 
         (Process-Cv (Stmgen-Htsr-Prcs ?Self) (Sgen-Cv ?Self)) ))


Function SGEN

An attribute function
Arity: 2
Attribute-Function-Of: Steam-generator-with-reheat-system

Function SGEN-CV

An attribute function
Arity: 2
Attribute-Function-Of: Steam-generator-with-reheat-system

Function STMGEN-HTSR-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Steam-generator-with-reheat-system

Class PUMP-SYSTEM

the system consisting of a pump, an associated control-volume, and an adiabatic compression process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function:
Adbtc-cmpsn-prcs, Pmp, Pmp-cv, Water-in-pmp

Slots Of Instances:

Adbtc-Cmpsn-Prcs:
Slot-Documentation: the adiabatic compression process
Pmp:
Slot-Documentation: the pump
Pmp-Cv:
Slot-Documentation: the control volume associated with the pump in the pump system
Water-In-Pmp:
Slot-Documentation: the water flowing through the pump
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Pump-System ?Self) 
             (And (Pump-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Pump-System ?Self) 
    (And (Cv-Component (Pmp-Cv ?Self) (Pmp ?Self)) 
         (Component-Cv (Pmp ?Self) (Pmp-Cv ?Self)) 
         (Process-Cv (Adbtc-Cmpsn-Prcs ?Self) (Pmp-Cv ?Self)) 
         (Substance-In (Pmp-Cv ?Self) (Water-In-Pmp ?Self)) 
         (Substance-In (Inlet-Stream (Pmp-Cv ?Self)) 
                       (Water-In-Pmp ?Self) )
         (Substance-In (Outlet-Stream (Pmp-Cv ?Self)) 
                       (Water-In-Pmp ?Self) )))


Function PMP

An attribute function
Arity: 2
Attribute-Function-Of: Pump-system

Function PMP-CV

An attribute function
Arity: 2
Attribute-Function-Of: Pump-system

Function ADBTC-CMPSN-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Pump-system

Function WATER-IN-PMP

An attribute function
Arity: 2
Attribute-Function-Of: Pump-system

Class SYSTEM-WITH-CONDENSOR

the class of systems containing a condensor and an associated control volume
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Cnd

Slots Of Instances:

Cnd:
Slot-Documentation: the condensor
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time System-With-Condensor ?Self) 
             (And (System-With-Condensor ?Self) 
                  (Active ?Time System-Model ?Self) )))


Function CND

An attribute function
Arity: 2
Attribute-Function-Of: System-with-condensor

Class CONDENSOR-SYSTEM

the system consisting of a condensor, an associated control-volume, and an adiabatic heat-exchange process
Subclass-Of: Entity, System-with-condensor
Arity: 1
Has-Attribute-Function:
Adbtc-hxg-prcs, Cf-cv, Cnd-cv, Hf-cv, Water-in-cnd
Has-Quantity-Function: Condensor-heat-out-rate

Slots Of Instances:

Adbtc-Hxg-Prcs:
Slot-Documentation: the aidiabatic heat exchange process
Cf-Cv:
Slot-Documentation: the control volume of the cold flow
Cnd-Cv:
Slot-Documentation: the control volume of the condensor
Condensor-Heat-Out-Rate:
Slot-Cardinality: 1
Hf-Cv:
Slot-Documentation: the control volume of the hot flow
Water-In-Cnd:
Slot-Documentation: the water flowing through the condensor
Axioms:
(Forall (?Self ?Time) 
        (=> (Active ?Time Condensor-System ?Self) 
            (= (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Mass-Rate-In (Hf-Cv ?Self)) ?T) ))
               (Lambda (?T) 
                       (If (= ?T ?Time) 
                           (Value-At (Mass-Rate-Out (Hf-Cv ?Self)) 
                                     ?T))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Condensor-System ?Self) 
             (And (Condensor-System ?Self) 
                  (Active ?Time System-With-Condensor ?Self) )))

(=> (Condensor-System ?Self) 
    (And (Quantity.Dimension (Condensor-Heat-Out-Rate ?Self) 
                             Power-Dimension)
         (Cv-Component (Cnd-Cv ?Self) (Cnd ?Self)) 
         (Component-Cv (Cnd ?Self) (Cnd-Cv ?Self)) 
         (Process-Cv (Adbtc-Hxg-Prcs ?Self) (Cnd-Cv ?Self)) 
         (Cv-Component (Cf-Cv ?Self) (Cold-Flow (Cnd ?Self))) 
         (Component-Cv (Cold-Flow (Cnd ?Self)) (Cf-Cv ?Self)) 
         (Cv-Component (Hf-Cv ?Self) (Hot-Flow (Cnd ?Self))) 
         (Component-Cv (Hot-Flow (Cnd ?Self)) (Hf-Cv ?Self)) 
         (Substance-In (Cnd-Cv ?Self) (Water-In-Cnd ?Self)) 
         (Substance-In (Hf-Cv ?Self) (Water-In-Cnd ?Self)) 
         (Substance-In (Inlet-Stream (Hf-Cv ?Self)) 
                       (Water-In-Cnd ?Self) )
         (Substance-In (Outlet-Stream (Hf-Cv ?Self)) 
                       (Water-In-Cnd ?Self) )
         (Substance-In (Cf-Cv ?Self) (Water-In-Cnd ?Self)) 
         (Substance-In (Inlet-Stream (Cf-Cv ?Self)) 
                       (Water-In-Cnd ?Self) )
         (Substance-In (Outlet-Stream (Cf-Cv ?Self)) 
                       (Water-In-Cnd ?Self) )))


Function CONDENSOR-HEAT-OUT-RATE

A quantity function
Instance-Of: Function, Quantity-function
Arity: 2
Quantity-Function-Of: Condensor-system
Range: Everywhere-continuous-quantity

Function CND-CV

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-system

Function ADBTC-HXG-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-system

Function CF-CV

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-system

Function HF-CV

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-system

Function WATER-IN-CND

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-system

Class CONDENSOR-WITH-HEAT-TRANSFER-SYSTEM

the system consisting of a condensor, an associated control-volume, and a heat-transfer process.
Subclass-Of: Entity, System-with-condensor
Arity: 1
Has-Attribute-Function: Cnd-tfr-prcs, Cndsr-cv

Slots Of Instances:

Cnd-Tfr-Prcs:
Slot-Documentation: the heat transfer process in the condensor
Cndsr-Cv:
Slot-Documentation: the control volume associated with the condensor in the condensor-with-heat-transfer-system
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Condensor-With-Heat-Transfer-System ?Self) 
             (And (Condensor-With-Heat-Transfer-System ?Self) 
                  (Active ?Time System-With-Condensor ?Self) )))


Function CNDSR-CV

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-with-heat-transfer-system

Function CND-TFR-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Condensor-with-heat-transfer-system

Class NOZZLE-SYSTEM

the system consisting of a nozzle, an associated control-volume, and a throttling process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Nzl, Nzl-cv, Thrtlng-prcs

Slots Of Instances:

Nzl:
Slot-Documentation: the nozzle
Nzl-Cv:
Slot-Documentation: the control volume associated with the nozzle in the nozzle-system
Thrtlng-Prcs:
Slot-Documentation: the throttling process
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Nozzle-System ?Self) 
             (And (Nozzle-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Nozzle-System ?Self) 
    (And (Cv-Component (Nzl-Cv ?Self) (Nzl ?Self)) 
         (Component-Cv (Nzl ?Self) (Nzl-Cv ?Self)) 
         (Process-Cv (Thrtlng-Prcs ?Self) (Nzl-Cv ?Self)) ))


Function NZL

An attribute function
Arity: 2
Attribute-Function-Of: Nozzle-system

Function NZL-CV

An attribute function
Arity: 2
Attribute-Function-Of: Nozzle-system

Function THRTLNG-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Nozzle-system

Class TURBINE-SYSTEM

the system consisting of a turbine, an associated control-volume, and a throttling process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function:
Expsn-prcs, Tbn, Tbn-cv, Water-in-tbn

Slots Of Instances:

Expsn-Prcs:
Slot-Documentation: the expansion process
Tbn:
Slot-Documentation: the turbine
Tbn-Cv:
Slot-Documentation: the control volume associated with the turbine in the turbine-system
Water-In-Tbn:
Slot-Documentation: the water flowing through the turbine
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Turbine-System ?Self) 
             (And (Turbine-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Turbine-System ?Self) 
    (And (Cv-Component (Tbn-Cv ?Self) (Tbn ?Self)) 
         (Component-Cv (Tbn ?Self) (Tbn-Cv ?Self)) 
         (Process-Cv (Expsn-Prcs ?Self) (Tbn-Cv ?Self)) 
         (Substance-In (Tbn-Cv ?Self) (Water-In-Tbn ?Self)) 
         (Substance-In (Inlet-Stream (Tbn-Cv ?Self)) 
                       (Water-In-Tbn ?Self) )
         (Substance-In (Outlet-Stream (Tbn-Cv ?Self)) 
                       (Water-In-Tbn ?Self) )))


Function TBN

An attribute function
Arity: 2
Attribute-Function-Of: Turbine-system

Function TBN-CV

An attribute function
Arity: 2
Attribute-Function-Of: Turbine-system

Function EXPSN-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Extraction-turbine-system, Turbine-system

Function WATER-IN-TBN

An attribute function
Arity: 2
Attribute-Function-Of: Turbine-system

Class EXTRACTION-TURBINE-SYSTEM

the system consisting of a turbine, an associated control-volume, and a throttling process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function: Expsn-prcs, Xtbn, Xtbn-cv

Slots Of Instances:

Expsn-Prcs:
Slot-Documentation: the expansion process
Xtbn:
Slot-Documentation: the turbine
Xtbn-Cv:
Slot-Documentation: the control volume associated with the extraction turbine in the extraction-turbine-system
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Extraction-Turbine-System ?Self) 
             (And (Extraction-Turbine-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Extraction-Turbine-System ?Self) 
    (And (Cv-Component (Xtbn-Cv ?Self) (Xtbn ?Self)) 
         (Component-Cv (Xtbn ?Self) (Xtbn-Cv ?Self)) 
         (Process-Cv (Expsn-Prcs ?Self) (Xtbn-Cv ?Self)) ))


Function XTBN

An attribute function
Arity: 2
Attribute-Function-Of: Extraction-turbine-system

Function XTBN-CV

An attribute function
Arity: 2
Attribute-Function-Of: Extraction-turbine-system

Class BOILER-SYSTEM

the system consisting of a boiler, an associated control-volume, and a ?? process.
Subclass-Of: Entity, System-model
Arity: 1
Has-Attribute-Function:
Blr, Blr-cv, Htfr-prcs, Water-in-blr

Slots Of Instances:

Blr:
Slot-Documentation: the boiler
Blr-Cv:
Slot-Documentation: the control volume associated with the boiler in the boiler-system
Htfr-Prcs:
Slot-Documentation: the heat transfer process in the boiler
Water-In-Blr:
Slot-Documentation: the water flowing through the boiler
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Boiler-System ?Self) 
             (And (Boiler-System ?Self) 
                  (Active ?Time System-Model ?Self) )))

(=> (Boiler-System ?Self) 
    (And (Cv-Component (Blr-Cv ?Self) (Blr ?Self)) 
         (Component-Cv (Blr ?Self) (Blr-Cv ?Self)) 
         (Process-Cv (Htfr-Prcs ?Self) (Blr-Cv ?Self)) 
         (Substance-In (Blr-Cv ?Self) (Water-In-Blr ?Self)) 
         (Substance-In (Inlet-Stream (Blr-Cv ?Self)) 
                       (Water-In-Blr ?Self) )
         (Substance-In (Outlet-Stream (Blr-Cv ?Self)) 
                       (Water-In-Blr ?Self) )))


Function BLR

An attribute function
Arity: 2
Attribute-Function-Of: Boiler-system

Function BLR-CV

An attribute function
Arity: 2
Attribute-Function-Of: Boiler-system

Function HTFR-PRCS

An attribute function
Arity: 2
Attribute-Function-Of: Boiler-system

Function WATER-IN-BLR

An attribute function
Arity: 2
Attribute-Function-Of: Boiler-system

Class POWER-SYSTEM-EIGHT-ONE

the system consisting of a boiler, a simple turbine, a condenser, and a pump
Subclass-Of: Entity, Thermal-cycle
Arity: 1
Has-Attribute-Function:
Blr-system, Blr-tbn-junction, Cdnsr-system, Cnd-pmp-junction, Pmp-blr-junction, Pmp-system, Tbn-cnd-junction, Tbn-system, Working-fluid-in-cycle

Slots Of Instances:

Blr-System:
Slot-Documentation: the boiler subsystem of power-system-eight-one power cycle
Blr-Tbn-Junction:
Slot-Documentation: a stream junction
Cdnsr-System:
Slot-Documentation: the condensor subsystem of the power-system-eight-one power cycle
Cnd-Pmp-Junction:
Slot-Documentation: a stream junction
Pmp-Blr-Junction:
Slot-Documentation: a stream junction
Pmp-System:
Slot-Documentation: the pump subsystem of the power-system-eight-one power cycle
Tbn-Cnd-Junction:
Slot-Documentation: a stream junction
Tbn-System:
Slot-Documentation: the turbine subsystem of power-system-eight-one power cycle
Working-Fluid-In-Cycle:
Slot-Documentation: water vapor
Axioms:
(Forall 
    (?Self ?Time) 
    (=> (Active ?Time Power-System-Eight-One ?Self) 
        (And (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (Thermal-Efficiency ?Self) ?T) ))
                (/ (- (- (Lambda 
                             (?T) 
                             (If (= ?T ?Time) 
                                 (Value-At 
                                     (Specific-Enthalpy 
                                         (Outlet-Stream 
                                             (Blr-Cv (Blr-System ?Self))))
                                     ?T)))
                         (Lambda 
                             (?T) 
                             (If (= ?T ?Time) 
                                 (Value-At 
                                     (Specific-Enthalpy 
                                         (Outlet-Stream 
                                             (Tbn-Cv (Tbn-System ?Self))))
                                     ?T))))
                      (- (Lambda 
                             (?T) 
                             (If (= ?T ?Time) 
                                 (Value-At 
                                     (Specific-Enthalpy 
                                         (Outlet-Stream 
                                             (Pmp-Cv (Pmp-System ?Self))))
                                     ?T)))
                         (Lambda 
                             (?T) 
                             (If (= ?T ?Time) 
                                 (Value-At 
                                     (Specific-Enthalpy 
                                         (Outlet-Stream 
                                             (Hf-Cv (Cdnsr-System ?Self))))
                                     ?T)))))
                   (- (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Blr-Cv (Blr-System ?Self)) ))
                                  ?T)))
                      (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Pmp-Cv (Pmp-System ?Self)) ))
                                  ?T))))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (Back-Work-Ratio ?Self) ?T) ))
                (/ (- (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Pmp-Cv (Pmp-System ?Self)) ))
                                  ?T)))
                      (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Hf-Cv (Cdnsr-System ?Self) )))
                                  ?T))))
                   (- (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Blr-Cv (Blr-System ?Self)) ))
                                  ?T)))
                      (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Tbn-Cv (Tbn-System ?Self)) ))
                                  ?T))))))
             (= (Lambda 
                    (?T) 
                    (If (= ?T ?Time) 
                        (Value-At (Heat-Rate 
                                      (Htfr-Prcs (Blr-System ?Self)) )
                                  ?T)))
                (* (Lambda 
                       (?T) 
                       (If (= ?T ?Time) 
                           (Value-At 
                               (Mass-Rate-In (Blr-Cv (Blr-System ?Self)))
                               ?T)))
                   (- (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Blr-Cv (Blr-System ?Self)) ))
                                  ?T)))
                      (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Pmp-Cv (Pmp-System ?Self)) ))
                                  ?T))))
                   (/ 1 3600000) ))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (Cycle-Mass-Rate ?Self) ?T) ))
                (* 3.6 
                   (/ (Lambda (?T) 
                              (If (= ?T ?Time) 
                                  (Value-At (Net-Work-Output-Rate ?Self)
                                            ?T)))
                      (- (- (Lambda 
                                (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At 
                                        (Specific-Enthalpy 
                                            (Outlet-Stream 
                                                (Blr-Cv 
                                                    (Blr-System ?Self))))
                                        ?T)))
                            (Lambda 
                                (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At 
                                        (Specific-Enthalpy 
                                            (Outlet-Stream 
                                                (Tbn-Cv 
                                                    (Tbn-System ?Self))))
                                        ?T))))
                         (- (Lambda 
                                (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At 
                                        (Specific-Enthalpy 
                                            (Outlet-Stream 
                                                (Pmp-Cv 
                                                    (Pmp-System ?Self))))
                                        ?T)))
                            (Lambda 
                                (?T) 
                                (If (= ?T ?Time) 
                                    (Value-At 
                                        (Specific-Enthalpy 
                                            (Outlet-Stream 
                                                (Hf-Cv (Cdnsr-System ?Self))))
                                        ?T))))))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (Cycle-Mass-Rate ?Self) ?T) ))
                (Lambda 
                    (?T) 
                    (If (= ?T ?Time) 
                        (Value-At (Mass-Rate-In 
                                      (Blr-Cv (Blr-System ?Self)) )
                                  ?T))))
             (= (Lambda (?T) 
                        (If (= ?T ?Time) 
                            (Value-At (Cycle-Mass-Rate ?Self) ?T) ))
                (Lambda 
                    (?T) 
                    (If (= ?T ?Time) 
                        (Value-At (Mass-Rate-In 
                                      (Tbn-Cv (Tbn-System ?Self)) )
                                  ?T))))
             (= (Lambda 
                    (?T) 
                    (If (= ?T ?Time) 
                        (Value-At 
                            (Condensor-Heat-Out-Rate 
                                (Cdnsr-System ?Self) )
                            ?T)))
                (* (Lambda 
                       (?T) 
                       (If (= ?T ?Time) 
                           (Value-At 
                               (Cycle-Mass-Rate 
                                   (Hf-Cv (Cdnsr-System ?Self)) )
                               ?T)))
                   (- (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Tbn-Cv (Tbn-System ?Self)) ))
                                  ?T)))
                      (Lambda 
                          (?T) 
                          (If (= ?T ?Time) 
                              (Value-At 
                                  (Specific-Enthalpy 
                                      (Outlet-Stream 
                                          (Hf-Cv (Cdnsr-System ?Self) )))
                                  ?T)))))))))

(Forall (?Self ?Time) 
        (<=> (Active ?Time Power-System-Eight-One ?Self) 
             (And (Power-System-Eight-One ?Self) 
                  (Active ?Time Thermal-Cycle ?Self) )))

(=> (Power-System-Eight-One ?Self) 
    (And (Connected-Terminals (Blr-Tbn-Junction ?Self) 
                              (Outlet-Stream (Blr-Cv (Blr-System ?Self))))
         (Connected-Terminals (Blr-Tbn-Junction ?Self) 
                              (Inlet-Stream (Tbn-Cv (Tbn-System ?Self))))
         (Connected-Terminals (Tbn-Cnd-Junction ?Self) 
                              (Outlet-Stream (Tbn-Cv (Tbn-System ?Self))))
         (Connected-Terminals (Tbn-Cnd-Junction ?Self) 
                              (Inlet-Stream (Hf-Cv (Cdnsr-System ?Self))))
         (Connected-Terminals (Cnd-Pmp-Junction ?Self) 
                              (Outlet-Stream (Hf-Cv (Cdnsr-System ?Self))))
         (Connected-Terminals (Cnd-Pmp-Junction ?Self) 
                              (Inlet-Stream (Pmp-Cv (Pmp-System ?Self))))
         (Connected-Terminals (Pmp-Blr-Junction ?Self) 
                              (Outlet-Stream (Pmp-Cv (Pmp-System ?Self))))
         (Connected-Terminals (Pmp-Blr-Junction ?Self) 
                              (Inlet-Stream (Blr-Cv (Blr-System ?Self))))))


Function BLR-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function TBN-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function CDNSR-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function PMP-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function CND-PMP-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function BLR-TBN-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function TBN-CND-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function PMP-BLR-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Function WORKING-FLUID-IN-CYCLE

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-eight-one

Class POWER-SYSTEM-WITH-REHEAT

the system consisting of a steam-generator/reheater, first-stage and second-stage turbines, a condenser, and a pump
Subclass-Of: Entity, Thermal-cycle
Arity: 1
Has-Attribute-Function:
Cnd-sys, Cp-junction, Pmp-sgen-junction, Pmp-sys, Sgen-sys, Sgen-tbn1-junction, Sgen-tbn2-junction, Tbn-sys1, Tbn-sys2, Tbn1-sgen-junction, Tbn2-cnd-junction

Slots Of Instances:

Cnd-Sys:
Slot-Documentation: the condensor subsystem of the power-system-with-reheat power cycle
Cp-Junction:
Slot-Documentation: a stream junction
Pmp-Sgen-Junction:
Slot-Documentation: a stream junction
Pmp-Sys:
Slot-Documentation: the pump subsystem of the power-system-with-reheat power cycle
Sgen-Sys:
Slot-Documentation: the steam generator with reheat subsystem of the power-system-with-reheat power cycle
Sgen-Tbn1-Junction:
Slot-Documentation: a stream junction
Sgen-Tbn2-Junction:
Slot-Documentation: a stream junction
Tbn-Sys1:
Slot-Documentation: the first-stage turbine subsystem of the power-system-with-reheat power cycle
Tbn-Sys2:
Slot-Documentation: the second-stage turbine subsystem of the power-system-with-reheat power cycle
Tbn1-Sgen-Junction:
Slot-Documentation: a stream junction
Tbn2-Cnd-Junction:
Slot-Documentation: a stream junction
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time Power-System-With-Reheat ?Self) 
             (And (Power-System-With-Reheat ?Self) 
                  (Active ?Time Thermal-Cycle ?Self) )))

(=> (Power-System-With-Reheat ?Self) 
    (And (Connected-Terminals (Sgen-Tbn1-Junction ?Self) 
                              (Outlet-Stream1 (Sgen-Cv (Sgen-Sys ?Self))))
         (Connected-Terminals (Sgen-Tbn1-Junction ?Self) 
                              (Inlet-Stream (Tbn-Cv (Tbn-Sys1 ?Self)) ))
         (Connected-Terminals (Tbn1-Sgen-Junction ?Self) 
                              (Outlet-Stream (Tbn-Cv (Tbn-Sys1 ?Self) )))
         (Connected-Terminals (Tbn1-Sgen-Junction ?Self) 
                              (Inlet-Stream2 (Sgen-Cv (Sgen-Sys ?Self))))
         (Connected-Terminals (Sgen-Tbn2-Junction ?Self) 
                              (Outlet-Stream2 (Sgen-Cv (Sgen-Sys ?Self))))
         (Connected-Terminals (Sgen-Tbn2-Junction ?Self) 
                              (Inlet-Stream (Tbn-Cv (Tbn-Sys2 ?Self)) ))
         (Connected-Terminals (Tbn2-Cnd-Junction ?Self) 
                              (Outlet-Stream (Tbn-Cv (Tbn-Sys2 ?Self) )))
         (Connected-Terminals (Tbn2-Cnd-Junction ?Self) 
                              (Inlet-Stream (Cndsr-Cv (Cnd-Sys ?Self) )))
         (Connected-Terminals (Cp-Junction ?Self) 
                              (Outlet-Stream (Cndsr-Cv (Cnd-Sys ?Self))))
         (Connected-Terminals (Cp-Junction ?Self) 
                              (Inlet-Stream (Pmp-Cv (Pmp-Sys ?Self))) )
         (Connected-Terminals (Pmp-Sgen-Junction ?Self) 
                              (Outlet-Stream (Pmp-Cv (Pmp-Sys ?Self)) ))
         (Connected-Terminals (Pmp-Sgen-Junction ?Self) 
                              (Inlet-Stream1 (Sgen-Cv (Sgen-Sys ?Self))))))


Function SGEN-SYS

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function TBN-SYS1

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function TBN-SYS2

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function CND-SYS

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function PMP-SYS

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function SGEN-TBN1-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function TBN1-SGEN-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function SGEN-TBN2-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function TBN2-CND-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function CP-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Function PMP-SGEN-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-reheat

Class POWER-SYSTEM-WITH-EXTRACTION-TURBINES

the system consisting of a steam-generator/reheater, first-stage and second-stage extraction turbines, a condenser, a pump, an open heater, a second pump, and a closed heater, and a trap, modeled as a nozzle
Subclass-Of: Entity, Thermal-cycle
Arity: 1
Has-Attribute-Function:
Chtr-sgen-junction, Chtr-system, Chtr-trp-junction, Cnd-pmp1-junction, Cnd-system, Ohtr-pmp2-junction, Ohtr-system, Pmp-system1, Pmp-system2, Pmp1-ohtr-junction, Pmp2-chtr-junction, Sgen-system, Sgen-xtbn1-junction, Sgen-xtbn2-junction, Trp-ohtr-junction, Trp-system, Xtbn-system1, Xtbn-system2, Xtbn1-chtr-junction, Xtbn1-sgen-junction, Xtbn2-cnd-junction, Xtbn2-ohtr-junction

Slots Of Instances:

Chtr-Sgen-Junction:
Slot-Documentation: a stream junction
Chtr-System:
Slot-Documentation: the closed feedwater heater subsystem of the power-system-with-extraction-turbine power cycle
Chtr-Trp-Junction:
Slot-Documentation: a stream junction
Cnd-Pmp1-Junction:
Slot-Documentation: a stream junction
Cnd-System:
Slot-Documentation: the condensor subsystem of the power-system-with-extraction-turbine power cycle
Ohtr-Pmp2-Junction:
Slot-Documentation: a stream junction
Ohtr-System:
Slot-Documentation: the open feedwater heater subsystem of the power-system-with-extraction-turbine power cycle
Pmp-System1:
Slot-Documentation: the first pump subsystem of the power-system-with-extraction-turbine power cycle
Pmp-System2:
Slot-Documentation: the second pump subsystem of the power-system-with-extraction-turbine power cycle
Pmp1-Ohtr-Junction:
Slot-Documentation: a stream junction
Pmp2-Chtr-Junction:
Slot-Documentation: a stream junction
Sgen-System:
Slot-Documentation: the steam generator subsystem of the power-system-with-extraction-turbine power cycle
Sgen-Xtbn1-Junction:
Slot-Documentation: a stream junction
Sgen-Xtbn2-Junction:
Slot-Documentation: a stream junction
Trp-Ohtr-Junction:
Slot-Documentation: a stream junction
Trp-System:
Slot-Documentation: the trap subsystem of the power-system-with-extraction-turbine power cycle
Xtbn-System1:
Slot-Documentation: the first-stage extraction turbine subsystem of the power-system-with-extraction-turbine power cycle
Xtbn-System2:
Slot-Documentation: the second-stage extraction turbine subsystem of the power-system-with-extraction-turbine power cycle
Xtbn1-Chtr-Junction:
Slot-Documentation: a stream junction
Xtbn1-Sgen-Junction:
Slot-Documentation: a stream junction
Xtbn2-Cnd-Junction:
Slot-Documentation: a stream junction
Xtbn2-Ohtr-Junction:
Slot-Documentation: a stream junction
Axioms:
(Forall (?Self ?Time) 
        (<=> (Active ?Time
                     Power-System-With-Extraction-Turbines
                     ?Self)
             (And (Power-System-With-Extraction-Turbines ?Self) 
                  (Active ?Time Thermal-Cycle ?Self) )))

(=> (Power-System-With-Extraction-Turbines ?Self) 
    (And (Connected-Terminals (Sgen-Xtbn1-Junction ?Self) 
                              (Outlet-Stream1 
                                  (Sgen-Cv (Sgen-System ?Self)) ))
         (Connected-Terminals (Sgen-Xtbn1-Junction ?Self) 
                              (Inlet-Stream (Xtbn-Cv 
                                                (Xtbn-System1 ?Self) )))
         (Connected-Terminals 
             (Xtbn1-Chtr-Junction ?Self) 
             (Outlet-Stream2 (Xtbn-Cv (Xtbn-System1 ?Self))) )
         (Connected-Terminals (Xtbn1-Chtr-Junction ?Self) 
                              (Inlet-Stream2 (Chtr-Cv 
                                                 (Chtr-System ?Self) )))
         (Connected-Terminals 
             (Xtbn1-Sgen-Junction ?Self) 
             (Outlet-Stream1 (Xtbn-Cv (Xtbn-System1 ?Self))) )
         (Connected-Terminals (Xtbn1-Sgen-Junction ?Self) 
                              (Inlet-Stream2 (Sgen-Cv 
                                                 (Sgen-System ?Self) )))
         (Connected-Terminals (Sgen-Xtbn2-Junction ?Self) 
                              (Outlet-Stream2 
                                  (Sgen-Cv (Sgen-System ?Self)) ))
         (Connected-Terminals (Sgen-Xtbn2-Junction ?Self) 
                              (Inlet-Stream (Xtbn-Cv 
                                                (Xtbn-System2 ?Self) )))
         (Connected-Terminals 
             (Xtbn2-Ohtr-Junction ?Self) 
             (Outlet-Stream2 (Xtbn-Cv (Xtbn-System2 ?Self))) )
         (Connected-Terminals 
             (Xtbn2-Ohtr-Junction ?Self) 
             (Inlet-Stream2 (Fwt-Htr-Cv (Ohtr-System ?Self))) )
         (Connected-Terminals 
             (Xtbn2-Cnd-Junction ?Self) 
             (Outlet-Stream1 (Xtbn-Cv (Xtbn-System2 ?Self))) )
         (Connected-Terminals (Xtbn2-Cnd-Junction ?Self) 
                              (Inlet-Stream (Cndsr-Cv (Cnd-System ?Self))))
         (Connected-Terminals (Cnd-Pmp1-Junction ?Self) 
                              (Outlet-Stream (Cndsr-Cv 
                                                 (Cnd-System ?Self) )))
         (Connected-Terminals (Cnd-Pmp1-Junction ?Self) 
                              (Inlet-Stream (Pmp-Cv (Pmp-System1 ?Self))))
         (Connected-Terminals (Pmp1-Ohtr-Junction ?Self) 
                              (Outlet-Stream (Pmp-Cv (Pmp-System1 ?Self))))
         (Connected-Terminals 
             (Pmp1-Ohtr-Junction ?Self) 
             (Inlet-Stream1 (Fwt-Htr-Cv (Ohtr-System ?Self))) )
         (Connected-Terminals 
             (Ohtr-Pmp2-Junction ?Self) 
             (Outlet-Stream (Fwt-Htr-Cv (Ohtr-System ?Self))) )
         (Connected-Terminals (Ohtr-Pmp2-Junction ?Self) 
                              (Inlet-Stream (Pmp-Cv (Pmp-System2 ?Self))))
         (Connected-Terminals (Pmp2-Chtr-Junction ?Self) 
                              (Outlet-Stream (Pmp-Cv (Pmp-System2 ?Self))))
         (Connected-Terminals (Pmp2-Chtr-Junction ?Self) 
                              (Inlet-Stream1 (Chtr-Cv 
                                                 (Chtr-System ?Self) )))
         (Connected-Terminals (Chtr-Sgen-Junction ?Self) 
                              (Outlet-Stream1 
                                  (Chtr-Cv (Chtr-System ?Self)) ))
         (Connected-Terminals (Chtr-Sgen-Junction ?Self) 
                              (Inlet-Stream1 (Sgen-Cv 
                                                 (Sgen-System ?Self) )))
         (Connected-Terminals (Chtr-Trp-Junction ?Self) 
                              (Outlet-Stream2 
                                  (Chtr-Cv (Chtr-System ?Self)) ))
         (Connected-Terminals (Chtr-Trp-Junction ?Self) 
                              (Inlet-Stream (Nzl-Cv (Trp-System ?Self))))
         (Connected-Terminals (Trp-Ohtr-Junction ?Self) 
                              (Outlet-Stream (Nzl-Cv (Trp-System ?Self))))
         (Connected-Terminals 
             (Trp-Ohtr-Junction ?Self) 
             (Inlet-Stream3 (Fwt-Htr-Cv (Ohtr-System ?Self))) )))


Function SGEN-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function XTBN-SYSTEM1

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function XTBN-SYSTEM2

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function CND-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function PMP-SYSTEM1

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function OHTR-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function PMP-SYSTEM2

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function CHTR-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function TRP-SYSTEM

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function SGEN-XTBN1-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function XTBN1-CHTR-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function XTBN1-SGEN-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function SGEN-XTBN2-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function XTBN2-OHTR-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function XTBN2-CND-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function CND-PMP1-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function PMP1-OHTR-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function OHTR-PMP2-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function PMP2-CHTR-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function CHTR-SGEN-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function CHTR-TRP-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines

Function TRP-OHTR-JUNCTION

An attribute function
Arity: 2
Attribute-Function-Of: Power-system-with-extraction-turbines


This document was generated using Ontolingua.
Formatting and translation code was written by
François Gerbaux and Tom Gruber