Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Select Git revision
  • 75d147df025d7595886c71972ebfe08637f6c29a
  • stable default
  • feat-fchv-bus
  • fix-h2-ice-bus
  • powertrains-multiple-axles
  • amdm3/develop
  • issue-1039
  • amdm3/main
  • test/nuget_publish
  • IEPC-experiments
  • amdm2/main
  • amdm2/develop
  • aptngearbox-not-auto
  • playground
  • official/main
  • official/develop
  • issue-templates
  • pdf-reports
  • HEV-timeruns-dev
  • timerun-empower-hybrids
  • timerun-pwheel-hybrids
  • Release/v5.0.3
  • Release/v5.0.1
  • Release/5.0.0-RC
  • Nuget/v0.11.4-DEV
  • Release/v0.11.4-DEV
  • Release/4.3.4-DEV
  • Release/4.3.3
  • Release/4.3.2-RC
  • Release/v4.3.0-DEV
  • Release/4.2.7
  • XMLConverterTool/4.2.6.0
  • Release/4.2.6-RC
  • Release/v4.2.5
  • Release/v4.2.3
  • Release/v4.2.2.3539-RC
  • Release/v4.2.1.3469
  • Release/v0.11.2.3456-DEV
  • Release/v4.2.0.3448-RC
  • Release/v4.1.3.3415
  • Release/v4.1.1.3413
41 results

Constants.cs

Blame
  • Forked from VECTO / VECTO Sim
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Constants.cs 3.86 KiB
    /*
    * Copyright 2015, 2016 Graz University of Technology,
    * Institute of Internal Combustion Engines and Thermodynamics,
    * Institute of Technical Informatics
    *
    * Licensed under the EUPL (the "Licence");
    * You may not use this work except in compliance with the Licence.
    * You may obtain a copy of the Licence at:
    *
    * http://ec.europa.eu/idabc/eupl
    *
    * Unless required by applicable law or agreed to in writing, software 
    * distributed under the Licence is distributed on an "AS IS" basis,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the Licence for the specific language governing permissions and 
    * limitations under the Licence.
    */
    
    using System;
    using TUGraz.VectoCore.Utils;
    
    namespace TUGraz.VectoCore.Configuration
    {
    	public static class Constants
    	{
    		public const double RPMToRad = 2 * Math.PI / 60;
    		public const double Kilo = 1000;
    		public const double MeterPerSecondToKMH = 3.6;
    		public const double SecondsPerHour = 3600;
    
    		public static class Auxiliaries
    		{
    			public static class IDs
    			{
    				public const string Fan = "FAN";
    				public const string SteeringPump = "STP";
    				public const string ElectricSystem = "ES";
    				public const string HeatingVentilationAirCondition = "AC";
    				public const string PneumaticSystem = "PS";
    			}
    
    			public static class Names
    			{
    				public const string Fan = "Fan";
    				public const string SteeringPump = "Steering pump";
    				public const string ElectricSystem = "Electric System";
    				public const string HeatingVentilationAirCondition = "HVAC";
    				public const string PneumaticSystem = "Pneumatic System";
    			}
    		}
    
    		public static class FileExtensions
    		{
    			public const string ModDataFile = ".vmod";
    
    			public const string SumFile = ".vsum";
    
    			public const string VectoJobFile = ".vecto";
    
    			public const string EngineDataFile = ".veng";
    
    			public const string CycleFile = ".vdri";
    
    			public const string DriverAccelerationCurve = ".vacc";
    		}
    
    		public static class SimulationSettings
    		{
    			/// <summary>
    			/// base time interval for the simulation. the distance is estimated to reach this time interval as good as possible
    			/// </summary>
    			public static readonly Second TargetTimeInterval = 0.5.SI<Second>();
    
    			/// <summary>
    			/// simulation interval if the vehicle stands still
    			/// </summary>
    			public static readonly Meter DriveOffDistance = 1.SI<Meter>();
    
    			public static readonly Meter BrakeNextTargetDistance = 5.SI<Meter>();
    
    			public static readonly MeterPerSecond MinVelocityForCoast = 5.KMPHtoMeterPerSecond();
    
    			/// <summary>
    			/// threshold for changes in the road gradient. changes below this threshold will be considered to be equal for filtering out the driving cycle.
    			/// altitude computation is done before filtering! 
    			/// </summary>
    			public static readonly Radian DrivingCycleRoadGradientTolerance = 1E-12.SI<Radian>();
    
    			//VectoMath.InclinationToAngle(0.25 / 100.0).Value();
    
    			public const int DriverSearchLoopThreshold = 200;
    
    			public static readonly Watt EnginePowerSearchTolerance = 0.50.SI<Watt>(); // Watt
    
    			public const double CluchNormSpeed = 0.03;
    
    			public static readonly MeterPerSquareSecond MinimumAcceleration = 0.1.SI<MeterPerSquareSecond>();
    
    			public static Meter DriverActionDistanceTolerance = 0.25.SI<Meter>();
    
    			public static MeterPerSecond VehicleSpeedHaltTolerance = 1e-3.SI<MeterPerSecond>();
    
    			/// <summary>
    			/// The initial search interval for the operating point search in the driver.
    			/// </summary>
    			public static readonly MeterPerSquareSecond OperatingPointInitialSearchIntervalAccelerating =
    				0.1.SI<MeterPerSquareSecond>();
    
    			public static readonly PerSecond EngineIdlingSearchInterval = 10.SI<PerSecond>();
    
    			public const int EngineSearchLoopThreshold = 100;
    
    			public const int MaximumIterationCountForSimulationStep = 30;
    
    			public static readonly MeterPerSecond VehicleStopClutchDisengageSpeed = 10.KMPHtoMeterPerSecond();
    		}
    	}
    }