Skip to content

Commit

Permalink
Re-sort vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Ahrenkiel authored and Phil Ahrenkiel committed Feb 15, 2024
1 parent 688c51e commit b098628
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
29 changes: 12 additions & 17 deletions src/HPWH.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1203,12 +1203,10 @@ class HPWH::HeatSource

HeatSource(const HeatSource& hSource); /// copy constructor
HeatSource& operator=(const HeatSource& hSource); /// assignment operator
/**< the copy constructor and assignment operator basically just checks if there
are backup/companion pointers - these can't be copied */

void setupAsResistiveElement(int node, double Watts, int condensitySize = CONDENSITY_SIZE);
/**< configure the heat source to be a resisive element, positioned at the
specified node, with the specified power in watts */
/// configure the heat source to be a resisive element, positioned at the
/// specified node, with the specified power in watts

bool isEngaged() const;
/**< return whether or not the heat source is engaged */
Expand Down Expand Up @@ -1293,8 +1291,8 @@ class HPWH::HeatSource
/// owner of the heat source, necessary to access HPWH variables
HPWH* hpwh;

HEATSOURCE_TYPE typeOfHeatSource; /**< compressor, resistance, extra, none */
COIL_CONFIG configuration; /**< submerged, wrapped, external */
HEATSOURCE_TYPE typeOfHeatSource; /// compressor, resistance, extra, none
COIL_CONFIG configuration; /// submerged, wrapped, external

// state/output variables

Expand Down Expand Up @@ -1403,14 +1401,12 @@ class HPWH::HeatSource
/// A list of points for the defrost derate factor ordered by increasing external temperature
std::vector<defrostPoint> defrostMap;

/// maximum output temperature at the minimum operating temperature (minT) of HPWH environment
struct maxOut_minAir
{
double outT_C;
double airT_C;
};

/// maximum output temperature at the minimum operating temperature (minT) of HPWH environment
maxOut_minAir maxOut_at_LowT;
} maxOut_at_LowT;

/// approximate a secondary
/// heat exchanger by adding extra input energy for the pump and an increase in the water to the
Expand Down Expand Up @@ -1466,18 +1462,17 @@ class HPWH::HeatSource
/// cop (not capacity) for cases where the air flow is restricted - typically ducting
double airflowFreedom;

/// The node height at which the external multipass or single pass HPWH
/// adds heated water to the storage tank, defaults to top for single pass.
/// The node height at which the external HPWH adds heated water to the storage tank.
/// Defaults to top for single pass.
int externalInletHeight;

/// The node height at which the external HPWH takes cold water out of the storage tank.
/// Defaults to bottom for single pass.
int externalOutletHeight;

/// number of the first non-zero condensity entry
int lowestNode;

/// The node height at which the external multipass or single pass
/// HPWH takes cold water out of the storage tank, defaults to
/// bottom for single pass.
int externalOutletHeight;

/// The multipass flow rate
double mpFlowRate_LPS;

Expand Down
5 changes: 0 additions & 5 deletions src/HPWHHeatSources.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,20 @@ HPWH::HeatSource::HeatSource(HPWH* hpwh_in /* = nullptr */)
, companionHeatSource(NULL)
, followedByHeatSource(NULL)
, Tshrinkage_C(1.)

, useBtwxtGrid(false)
, extrapolationMethod(EXTRAP_LINEAR)

, standbyLogic(NULL)
, maxOut_at_LowT {100, -273.15}

, secondaryHeatExchanger {0., 0., 0.}
, minT(-273.15)
, maxT(100)
, maxSetpoint_C(100.)
, hysteresis_dC(0)
, depressesTemperature(false)
, airflowFreedom(1.)

, externalInletHeight(-1)
, externalOutletHeight(-1)
, lowestNode(0)

, mpFlowRate_LPS(0.)
, isMultipass(true)
{
Expand Down

0 comments on commit b098628

Please sign in to comment.