References

Contents

Index

CarnotCycles.Compute_cycle_errorMethod

Compute_cycle_error(p_source,h_source,p_sink,h_sink;reltol = 1e-8) * Computes cycle end point mismatch in states - between sink and source.

returns `nothing`

Shows error incase of mismatch
source
CarnotCycles.CoolantPortMethod

Makes node for port connections. This node is Pressure,Enthalpy, Mass flow rate and mass fraction of first fluid (incase of Clapyeron Mixture).

source
CarnotCycles.IsentropicCompressionMethod

IsentropicCompression(πc, h_in, p_in,fluid,η)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
    5. η : Isentropic Efficiency
  • returns : Outlet enthalpy after isentropic compression

source
CarnotCycles.IsentropicCompressionClapeyronMethod

IsentropicCompressionClapeyron(πc, h_in, p_in,z,fluid,η)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
    5. z : Moles
    6. η : Isentropic Efficiency
  • returns : Outlet enthalpy after isentropic compression

source
CarnotCycles.IsentropicExpansionMethod

IsentropicExpansion(πc, h_in, p_in,fluid,η)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
    5. η : Isentropic Efficiency
  • returns : Outlet enthalpy after isentropic expansion

source
CarnotCycles.IsentropicExpansionClapeyronMethod

IsentropicExpansionClapeyron(πc, h_in, p_in,z,fluid,η)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
    5. z : Moles
    6. η : Isentropic Efficiency
  • returns : Outlet enthalpy after isentropic expansion

source
CarnotCycles.IsochoricCompressionMethod

IsochoricCompression(πc, h_in, p_in,fluid)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
  • Output -> Outlet enthalpy after isochoric compression

source
CarnotCycles.IsochoricCompressionClapeyronMethod

IsochoricCompressionClapeyron(πc, h_in, p_in,z::Array,fluid::EoSModel)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. z : Moles
    5. fluid: Fluid
  • Output -> Outlet enthalpy after isochoric compression

source
CarnotCycles.IsochoricExpansionMethod

IsochoricExpansion(πc, h_in, p_in,fluid)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
  • Output -> Outlet enthalpy after isochoric expansion

source
CarnotCycles.IsochoricExpansionClapeyronMethod

IsochoricExpansionClapeyron(πc, h_in, p_in,z::Array,fluid::EoSModel)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. z : Moles
    5. fluid: Fluid
  • Output -> Outlet enthalpy after isochoric expansion

source
CarnotCycles.IsothermalCompressionMethod

IsothermalCompression(πc, h_in, p_in,fluid)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
  • Output -> Outlet enthalpy after Isothermal Compression

source
CarnotCycles.IsothermalCompressionClapeyronMethod

IsothermalCompressionClapeyron(πc, h_in, p_in,z,fluid::EoSModel)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. z : Moles
    5. fluid: Fluid
  • Output -> Outlet enthalpy after Isothermal compression

source
CarnotCycles.IsothermalExpansionMethod

IsothermalExpansion(πc, h_in, p_in,fluid)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. fluid: Fluid
  • Output -> Outlet enthalpy after Isothermal Expansion

source
CarnotCycles.IsothermalExpansionClapeyronMethod

IsothermalExpansionClapeyron(πc, h_in, p_in,z,fluid::EoSModel)

  • Arguments:

    1. πc : Pressure Ratio
    2. h_in : Inlet Enthalpy
    3. p_in : Inlet Pressure
    4. z : Moles
    5. fluid: Fluid
  • Output -> Outlet enthalpy after Isothermal expansion

source
CarnotCycles.MassSourceMethod

MassSource - Initilizes cycle start point. Requires initial enthalpy,pressure and Mass flow rate if CoolProp fluid is used else uses enthalpy,pressure, Mass flow rate, and mass fraction of first fluid if Clapeyron Fluid is used.

source
CarnotCycles.PT_IsentropicExpansionClapeyronMethod

PT_IsentropicExpansionClapeyron(model::EoSModel,T_in,p_in,z,πc,η)

  • Arguments:

    1. πc : Pressure Ratio
    2. T_in : Inlet Temperature
    3. p_in : Inlet Pressure
    4. fluid: Fluid
    5. z : Moles
    6. η : Isentropic Efficiency
  • returns : Outlet Temperature after isentropic expansion

source
CarnotCycles.RefPortMethod

Makes node for port connections. This node is Pressure,Temperature, Mass flow rate and mass fraction of first fluid (incase of Clapyeron Mixture). Use this when the two-phase details of the fluid are not necessary.

source
CarnotCycles.StoragePortMethod

Storage port that connect the storage HTF to the thermal storage. Contains Temperature and mass flow rate of the HTF.

source
CarnotCycles.load_fluidMethod

load_fluid(x::Clapeyron.EoSModel) - fixes fluid for simulation through components using Clapeyron as backend

source
CarnotCycles.mass_to_molesMethod

mass_to_moles(model::EoSModel,x,mass) : convert mass of fluid to number of moles based on the composition of 1st fluid by mass x

source