#include "region4.h"
#include "region1.h"
#include "region2.h"
#include "steamcalculator.h"
#include "steamcalculator_macros.h"
#include <stdio.h>
Defines | |
#define | INTERP_REGION4(FUNC, TYPE) |
Functions | |
INTERP_REGION4 (specvol, SpecificVolume) | |
INTERP_REGION4 (specienergy, SpecificEnergy) | |
INTERP_REGION4 (specentropy, SpecificEntropy) | |
INTERP_REGION4 (specenthalpy, SpecificEnergy) | |
INTERP_REGION4 (speccp, SpecHeatCap) | |
INTERP_REGION4 (speccv, SpecHeatCap) |
#define INTERP_REGION4 | ( | FUNC, | |||
TYPE | ) |
Value:
TYPE Region4::FUNC(const SteamCalculator &c) const{ \ ASSERT(c.x >= 0); \ ASSERT(c.x <= 1); \ SteamCalculator *g = c.gas; \ SteamCalculator *l = c.liq; \ TYPE sub = l->FUNC(); \ TYPE sup = g->FUNC(); \ return sub*(1 - c.x)+sup*(c.x); \ }
INTERP_REGION4 | ( | speccv | , | |
SpecHeatCap | ||||
) |
INTERP_REGION4 | ( | speccp | , | |
SpecHeatCap | ||||
) |
INTERP_REGION4 | ( | specenthalpy | , | |
SpecificEnergy | ||||
) |
INTERP_REGION4 | ( | specentropy | , | |
SpecificEntropy | ||||
) |
INTERP_REGION4 | ( | specienergy | , | |
SpecificEnergy | ||||
) |
INTERP_REGION4 | ( | specvol | , | |
SpecificVolume | ||||
) |