31 #include "TCDExterno.h"
36 TCDExterno::TCDExterno() :
43 TCDExterno::~TCDExterno() {
49 TCDExterno::TCDExterno(
TCDExterno *Origen,
int Valvula) :
52 FCDEInicial = Origen->FCDEInicial;
53 FCDSInicial = Origen->FCDSInicial;
54 FCTorbInicial = Origen->FCTorbInicial;
59 FNumeroOrden = Origen->FNumeroOrden;
66 void TCDExterno::LeeDatosIniciales(
const char *FileWAM, fpos_t &filepos,
int norden,
bool HayMotor,
69 FILE *fich = fopen(FileWAM,
"r");
70 fsetpos(fich, &filepos);
72 fscanf(fich,
"%lf %lf %lf ", &FCDEInicial, &FCDSInicial, &FCTorbInicial);
74 fgetpos(fich, &filepos);
77 }
catch(exception &N) {
78 std::cout <<
"ERROR: LeeDatosIniciales CDExterno" << std::endl;
88 void TCDExterno::CalculaCD() {
90 FCDTubVol = FCDEntMatlab;
91 FCDVolTub = FCDSalMatlab;
93 }
catch(exception &N) {
94 std::cout <<
"ERROR: CalculaCD CDExterno" << std::endl;
101 #pragma package(smart_init)