50 TCDFijo::TCDFijo(
TCDFijo *Origen,
int Valvula) :
53 FCDEntrada = Origen->FCDEntrada;
54 FCDSalida = Origen->FCDSalida;
55 FActivaDiamRef = Origen->FActivaDiamRef;
56 FDiametroRef = Origen->FDiametroRef;
57 FNumeroOrden = Origen->FNumeroOrden;
61 FDiamRef = FDiametroRef;
66 FCDTubVol = FCDEntrada;
67 FCDVolTub = FCDSalida;
75 void TCDFijo::LeeDatosIniciales(
const char *FileWAM, fpos_t &filepos,
int norden,
bool HayMotor,
TBloqueMotor *Engine) {
78 FActivaDiamRef =
false;
80 FILE *fich = fopen(FileWAM,
"r");
81 fsetpos(fich, &filepos);
83 FNumeroOrden = norden;
85 fscanf(fich,
"%lf %lf %d ", &FCDEntrada, &FCDSalida, &tmp);
87 FActivaDiamRef =
true;
88 fscanf(fich,
"%lf ", &FDiametroRef);
91 fgetpos(fich, &filepos);
94 }
catch(exception &N) {
95 std::cout <<
"ERROR: LeeDatosIniciales CDFijo" << std::endl;
105 void TCDFijo::CalculaCD() {
108 FCDTubVol = FCDEntrada * FSectionRatio;
109 FCDVolTub = FCDSalida * FSectionRatio;
111 FCDTubVol = FCDEntrada;
112 FCDVolTub = FCDSalida;
114 }
catch(exception &N) {
115 std::cout <<
"ERROR: TCDFijo::CalculaCD " << std::endl;
121 #pragma package(smart_init)