18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 08:17:09 +01:00
Files
maszyna/physics/friction.h
T
Hirek 5a537e69f2 refactor(physics): McZapkie/ becomes physics/, its files get English names
The folder of the vehicle physics was named after the author of its first
version (2001). Its name now says what it holds, and so do its files:

  McZapkie/MOVER.h, Mover.cpp       -> physics/mover.h, mover.cpp
  McZapkie/hamulce.h, hamulce.cpp   -> physics/brakes.h, brakes.cpp
  McZapkie/Oerlikon_ESt.h, .cpp     -> physics/oerlikonest.h, .cpp
  friction, collision, couplerphysics, derailment: same names in physics/

Every include names the folder ("physics/mover.h"); the McZapkie include
directory is gone from CMakeLists.txt. The comments and documents that
named the old paths name the new ones. The credits to McZapkie stay.

Renames only: git sees every file as renamed (98-100%). 1142/1142 tests,
golden traces exact against staging 62f7a29b.
2026-11-27 17:11:46 +01:00

153 lines
1.8 KiB
C++

#pragma once
#ifndef INCLUDED_FRICTION_H
#define INCLUDED_FRICTION_H
/*wspolczynnik tarcia roznych materialow*/
/*
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
Friction coefficient.
Copyright (C) 2007-2013 Maciej Cierniak
*/
/*
(C) youBy
Co brakuje:
- hamulce tarczowe
- kompozyty
*/
/*
Zrobione:
1) zadeklarowane niektore typy
2) wzor jubaja na tarcie wstawek Bg i Bgu z zeliwa P10
3) hamulec tarczowy marki 152A ;)
*/
//uses hamulce;
class TFricMat
{
public:
virtual double GetFC(double N, double Vel);
virtual ~TFricMat() = default;
};
class TP10Bg: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TP10Bgu: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TP10yBg: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TP10yBgu: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TP10: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TFR513: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TFR510: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TCosid: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TDisk1: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
class TDisk2: public TFricMat
{
public:
double GetFC(double N, double Vel) override;
};
#endif//INCLUDED_FRICTION_H
//END