43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
|
|
#pragma once
|
|
|
|
#include "fluid_holder.hpp"
|
|
#include "evaporator.hpp"
|
|
#include "condenser.hpp"
|
|
|
|
namespace Sim::Coolant
|
|
{
|
|
|
|
class CondenserSecondary : public FluidHolder
|
|
{
|
|
Condenser* const primary;
|
|
Evaporator* const source;
|
|
|
|
public:
|
|
|
|
CondenserSecondary(Condenser* primary, Evaporator* source);
|
|
|
|
virtual double add_heat(double m, double t) { return source->add_heat(m, t); }
|
|
virtual double extract_fluid(double amount) { return source->extract_fluid(amount); }
|
|
virtual void add_gas(double steam, double gas, double t) { return source->add_gas(steam, gas, t); }
|
|
|
|
virtual double add_fluid(double amount, double heat);
|
|
|
|
virtual double get_volume() const { return source->get_volume(); }
|
|
virtual double get_level() const { return source->get_level(); }
|
|
virtual double get_heat() const { return source->get_heat(); } // celsius
|
|
virtual double get_steam() const { return source->get_steam(); } // grams
|
|
virtual double get_air() const { return source->get_air(); } // grams
|
|
virtual double get_gas() const { return source->get_gas(); } // grams
|
|
virtual double get_gas_volume() const { return source->get_gas_volume(); } // litres
|
|
virtual double get_mass() const { return source->get_mass(); } // grams
|
|
virtual double get_thermal_mass() const { return source->get_thermal_mass(); } // grams
|
|
virtual double get_pressure() const { return source->get_pressure(); } // pascals
|
|
virtual double get_gas_density() const { return source->get_gas_density(); } // g/L
|
|
|
|
void update(double dt);
|
|
};
|
|
|
|
};
|
|
|