Skip to content

Commit

Permalink
remove used functions
Browse files Browse the repository at this point in the history
  • Loading branch information
HBShaoUFZ committed Sep 27, 2018
1 parent b15386f commit e721c28
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 53 deletions.
5 changes: 0 additions & 5 deletions ProcessLib/HeatTransportBHE/BHE/BHEAbstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,6 @@ class BHEAbstract : public BHE_Net_ELE_Abstract
* whether external R values are supplied by the user
*/
const bool user_defined_R_vals;

/**
* for BHEs, the RHS value is zero
*/
double get_RHS_value() { return 0; }
};
} // end of namespace BHE
} // end of namespace HeatTransportBHE
Expand Down
2 changes: 0 additions & 2 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_Abstract.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ class BHE_Net_ELE_Abstract

double get_penalty_factor() { return _penalty_factor; }

virtual double get_flowrate() = 0;

protected:
/**
* how the inlet flow rate is determined.
Expand Down
5 changes: 0 additions & 5 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_Distributor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,3 @@ BHE_Net_ELE_Distributor::BHE_Net_ELE_Distributor(
_vec_inlet_ratio = vec_Inlet_Ratio;
_vec_outlet_ratio = vec_Outlet_Ratio;
}

double BHE_Net_ELE_Distributor::get_RHS_value()
{
return 0;
}
2 changes: 0 additions & 2 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_Distributor.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class BHE_Net_ELE_Distributor : public BHE_Net_ELE_Abstract
BHE_Net_ELE_Distributor(std::string& name, Eigen::VectorXd& vec_Inlet_Ratio,
Eigen::VectorXd& vec_Outlet_Ratio);

double get_RHS_value();

double set_BC(double /*T_in*/, double /*current_time*/) { return 0; }

double get_flowrate() { return 0; }
Expand Down
18 changes: 0 additions & 18 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_HeatPump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,3 @@ double BHE_Net_ELE_HeatPump::set_BC(double T_in, double /*current_time*/)

return T_out;
}

double BHE_Net_ELE_HeatPump::get_RHS_value()
{
double rt_RHS_val = 0.0;

// depending on the boundary condition,
// calculate the RHS value
switch (_heat_pump_BC_type)
{
case HEAT_PUMP_BOUND_POWER_FIXED_DT:
rt_RHS_val = _delta_T_val;
break;
case HEAT_PUMP_BOUND_POWER_FIXED_FLOWRATE:
// TODO
break;
}
return rt_RHS_val;
}
2 changes: 0 additions & 2 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_HeatPump.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ class BHE_Net_ELE_HeatPump : public BHE_Net_ELE_Abstract

double get_flowrate() { return _flowrate; }

double get_RHS_value();

void set_delta_T_val(double new_T_val) { _delta_T_val = new_T_val; }

double get_delta_T_val() { return _delta_T_val; }
Expand Down
5 changes: 0 additions & 5 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_Pipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ BHE_Net_ELE_Pipe::BHE_Net_ELE_Pipe(std::string& name, BHE_NET_ELE::type type)
{
this->set_penalty_factor(1.0e6);
}

double BHE_Net_ELE_Pipe::get_RHS_value()
{
return 0;
}
14 changes: 0 additions & 14 deletions ProcessLib/HeatTransportBHE/BHE/BHE_Net_ELE_Pipe.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,6 @@ class BHE_Net_ELE_Pipe : public BHE_Net_ELE_Abstract
*/
BHE_Net_ELE_Pipe(std::string& name,
BHE_NET_ELE::type type = BHE_NET_ELE::BHE_NET_PIPE);

double get_RHS_value();

/*
double set_BC(double T_in, double current_time)
{
return 0;
}
double get_flowrate()
{
return 0;
}
*/
};
} // namespace BHE
} // namespace HeatTransportBHE
Expand Down

0 comments on commit e721c28

Please sign in to comment.