mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-22 02:05:01 +01:00
Corrections to the TNESt3 distributor, checked against the ESt3 data and acceptance requirements (orange book tables 3-5, 3-7 and 3-9) and discussed with youBy: - The main control device settles at (control reservoir - pipe - 0.21) times the ratio instead of using a 0.05 bar offset. The 0.21 bar is the spring preload; without it the first stage came 0.2 bar of pipe drop too early. BVM is derived from the same offset, so a full service drop still gives MaxBP. - When the valve brakes it gives at least the minimum stage of 0.28 bar (acceptance tests 12 and 22 require 0.25-0.30 bar); when the target drops to zero the cylinder vents completely. - The automatic releaser vents the 15 l control reservoir from 5.0 to 0.4 bar in about 23 s (test 27: 23 +/- 3 s) instead of 5.6 s. - 12" cylinder fill nozzle dTN is 1.62, not 1.65 (typo). - With the AL2 relay the impulse chamber is 1 l and the cylinder nozzles are scaled so that the fill and release times meet table 3-9; before, the AL2 timings had been set by eye. On a valve test bench running the acceptance procedures, the number of results out of tolerance drops from 77 to 40. The remaining ones need parts that are not modelled yet (accelerator venting, ZP/ZS filling, intermediate chamber).
215 lines
6.3 KiB
C++
215 lines
6.3 KiB
C++
#pragma once
|
|
#ifndef INCLUDED_OERLIKON_EST_H
|
|
#define INCLUDED_OERLIKON_EST_H
|
|
/*fizyka hamulcow Oerlikon ESt dla symulatora*/
|
|
|
|
/*
|
|
This Source Code Form is subject to the
|
|
terms of the Mozilla Public License, v.
|
|
2.0. If a copy of the MPL was not
|
|
distributed with this file, You can
|
|
obtain one at
|
|
http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
/*
|
|
MaSzyna EU07 - SPKS
|
|
Brakes. Oerlikon ESt.
|
|
Copyright (C) 2007-2014 Maciej Cierniak
|
|
*/
|
|
|
|
#include <array>
|
|
#include <memory>
|
|
#include "hamulce.h" // Pascal unit
|
|
#include "friction.h" // Pascal unit
|
|
|
|
/*
|
|
(C) youBy
|
|
Co jest:
|
|
- glowny przyrzad rozrzadczy
|
|
- napelniacz zbiornika pomocniczego
|
|
- napelniacz zbiornika sterujacego
|
|
- zawor podskoku
|
|
- nibyprzyspieszacz
|
|
- tylko 16",14",12",10"
|
|
- nieprzekladnik rura
|
|
- przekladnik 1:1
|
|
- przekladniki AL2
|
|
- przeciwposlizgi
|
|
- rapid REL2
|
|
- HGB300
|
|
- inne srednice
|
|
Co brakuje:
|
|
- dobry przyspieszacz
|
|
- mozliwosc zasilania z wysokiego cisnienia ESt4
|
|
- ep: EP1 i EP2
|
|
- samoczynne ep
|
|
- PZZ dla dodatkowego
|
|
*/
|
|
|
|
static int const dMAX = 11; // dysze
|
|
static int const dON = 0; // osobowy napelnianie (+ZP)
|
|
static int const dOO = 1; // osobowy oproznianie
|
|
static int const dTN = 2; // towarowy napelnianie (+ZP)
|
|
static int const dTO = 3; // towarowy oproznianie
|
|
static int const dP = 4; // zbiornik pomocniczy
|
|
static int const dSd = 5; // zbiornik sterujacy
|
|
static int const dSm = 6; // zbiornik sterujacy
|
|
static int const dPd = 7; // duzy przelot zamykajcego
|
|
static int const dPm = 8; // maly przelot zamykajacego
|
|
static int const dPO = 9; // zasilanie pomocniczego O
|
|
static int const dPT = 10; // zasilanie pomocniczego T
|
|
|
|
// przekladniki
|
|
static int const p_none = 0;
|
|
static int const p_rapid = 1;
|
|
static int const p_pp = 2;
|
|
static int const p_al2 = 3;
|
|
static int const p_ppz = 4;
|
|
static int const P_ed = 5;
|
|
|
|
class TPrzekladnik : public TReservoir // przekladnik (powtarzacz)
|
|
|
|
{
|
|
public:
|
|
std::shared_ptr<TReservoir> BrakeRes;
|
|
std::shared_ptr<TReservoir> Next;
|
|
|
|
using TReservoir::TReservoir;
|
|
virtual void Update(double dt);
|
|
};
|
|
|
|
class TRura : public TPrzekladnik // nieprzekladnik, rura laczaca
|
|
|
|
{
|
|
public:
|
|
using TPrzekladnik::TPrzekladnik;
|
|
double P(void) override;
|
|
void Update(double dt) override;
|
|
};
|
|
|
|
class TPrzeciwposlizg : public TRura // przy napelnianiu - rura, przy poslizgu - upust
|
|
|
|
{
|
|
private:
|
|
bool Poslizg{false};
|
|
|
|
public:
|
|
void SetPoslizg(bool flag);
|
|
void Update(double dt) override;
|
|
};
|
|
|
|
// przekladnik dwustopniowy
|
|
class TRapid : public TPrzekladnik {
|
|
|
|
private:
|
|
bool RapidStatus = false; // status rapidu
|
|
double RapidMult = 0.0; // przelozenie (w dol)
|
|
// Komora2: real;
|
|
double DN = 0.0;
|
|
double DL = 0.0; // srednice dysz napelniania i luzowania
|
|
|
|
public:
|
|
void SetRapidParams(double mult, double size);
|
|
void SetRapidStatus(bool rs);
|
|
double GetRapidMult() const { return RapidMult; }
|
|
void Update(double dt) override;
|
|
using TPrzekladnik::TPrzekladnik;
|
|
};
|
|
|
|
// AL2
|
|
class TPrzekCiagly : public TPrzekladnik {
|
|
|
|
private:
|
|
double Mult = 0.0;
|
|
|
|
public:
|
|
void SetMult(double m);
|
|
void Update(double dt) override;
|
|
using TPrzekladnik::TPrzekladnik;
|
|
};
|
|
|
|
// podwojny zawor zwrotny
|
|
class TPrzek_PZZ : public TPrzekladnik {
|
|
|
|
private:
|
|
double LBP = 0.0;
|
|
|
|
public:
|
|
void SetLBP(double P);
|
|
void Update(double dt) override;
|
|
using TPrzekladnik::TPrzekladnik;
|
|
};
|
|
|
|
class TPrzekZalamany : public TPrzekladnik // Knicksventil
|
|
|
|
{
|
|
public:
|
|
using TPrzekladnik::TPrzekladnik;
|
|
};
|
|
|
|
// przy napelnianiu - rura, przy hamowaniu - upust
|
|
class TPrzekED : public TRura {
|
|
|
|
private:
|
|
double MaxP = 0.0;
|
|
|
|
public:
|
|
void SetP(double P);
|
|
void Update(double dt) override;
|
|
using TRura::TRura;
|
|
};
|
|
|
|
class TNESt3 : public TBrake {
|
|
|
|
private:
|
|
std::shared_ptr<TReservoir> CntrlRes; // zbiornik sterujacy
|
|
std::shared_ptr<TReservoir> Miedzypoj; // pojemnosc posrednia (urojona) do napelniania ZP i ZS
|
|
std::array<std::shared_ptr<TPrzekladnik>, 4> Przekladniki; // indeksowane od 1, indeks jest zarazem pojemnoscia
|
|
// bezposrednie wskazniki do przekladnikow dostrajanych w GetPF, inicjowane przy tworzeniu
|
|
std::shared_ptr<TRapid> PrzekRapid;
|
|
std::shared_ptr<TPrzeciwposlizg> PrzekPoslizg;
|
|
std::shared_ptr<TPrzekED> PrzekED;
|
|
std::shared_ptr<TPrzekCiagly> PrzekCiagly;
|
|
std::shared_ptr<TPrzek_PZZ> PrzekPZZ;
|
|
double Nozzles[ dMAX ]; // dysze
|
|
double BVM = 0.0; // przelozenie PG-CH
|
|
// ValveFlag: byte; //polozenie roznych zaworkow
|
|
bool Zamykajacy = true; // pamiec zaworka zamykajacego
|
|
// Przys_wlot: boolean; //wlot do komory przyspieszacza
|
|
bool Przys_blok = true; // blokada przyspieszacza
|
|
bool RapidStatus = true;
|
|
bool RapidStaly = true;
|
|
double LoadC = 0.0;
|
|
double TareM = 0.0; // masa proznego
|
|
double LoadM = 0.0; // masa pelnego
|
|
double TareBP = 0.0; // cisnienie dla proznego
|
|
double HBG300 = 0.0; // zawor ograniczajacy cisnienie
|
|
double Podskok = 0.0; // podskok preznosci poczatkowej
|
|
// HPBR: real; //zasilanie ZP z wysokiego cisnienia
|
|
bool autom = true; // odluzniacz samoczynny
|
|
double LBP = 0.0; // cisnienie hamulca pomocniczego
|
|
|
|
public:
|
|
using TBrake::TBrake;
|
|
void Init( double const PP, double const HPP, double const LPP, double const BP, int const BDF ) override;
|
|
double GetPF( double const PP, double const dt, double const Vel ) override; // przeplyw miedzy komora wstepna i PG
|
|
void EStParams(double i_crc) const; // parametry charakterystyczne dla ESt
|
|
double GetCRP() override;
|
|
double GetRapidRatio(double const Vel) const override;
|
|
double CelBCP(double const CVP, double const VVP) const; // docelowe cisnienie w cylindrze
|
|
void CheckState(double const BCP, double &dV1); // glowny przyrzad rozrzadczy
|
|
void CheckReleaser(double const dt); // odluzniacz
|
|
double CVs(double const BP) const; // napelniacz sterujacego
|
|
double BVs(double const BCP) const; // napelniacz pomocniczego
|
|
void SetSize( int const size, std::string const ¶ms ); // ustawianie dysz (rozmiaru ZR), przekladniki
|
|
void PLC(double const mass) override; // wspolczynnik cisnienia przystawki wazacej
|
|
void SetLP(double const TM, double const LM, double const TBP) override; // parametry przystawki wazacej
|
|
void ForceEmptiness() override; // wymuszenie bycia pustym
|
|
void SetLBP(double const P) override; // cisnienie z hamulca pomocniczego
|
|
};
|
|
|
|
extern double d2A( double const d );
|
|
|
|
#endif // INCLUDED_OERLIKON_EST_H
|
|
// END
|