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
  • e506738d071fd26feb8fa84e34f88452dd4611e2
  • feat/1061_vtp
  • fix/1058_maxwindowsize
  • fix/1065_vehicle_co2_group
  • release/5_0_3
  • prepare/release_5_0_1
  • fix/1067_fchv_conditioning
  • fix/b100_density
  • fix/ngtank_reader_fchv
  • fix/1058_op_point_v5
  • fix/1047_g10_range
  • fix/fchv_adapter_develop
  • feat/1044_add_fuel_b100_single_july
  • feat/1044_add_fuel_b100_single
  • fix/h2_storage_tech
  • amdm3/develop
  • fix/aux_fchv
  • feat/1044_add_fuel_b100
  • fix/fchv_run
  • prepare/5_0_0_rc
  • fix/not_calculate_weights_fchv
  • 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
  • Release/v4.1.0.3392-RC
  • Release/v4.0.3.3330
  • Release/v4.0.2.3275
  • Release/v4.0.2.3273
  • Release/v0.11.1.3228-DEV
  • Project_VECTO_FD_II/FMI/HybridController
  • Project_VECTO_FD_II/FMI/AMTShiftStrategy
  • Release/v4.0.1.3217
  • Release/v4.0.0.3211
  • Release/v0.11.0.3193-DEV
  • Release/v4.0.0.3161-RC
  • Release/v4.0.0.3106-RC
  • Release/v3.3.15.3102
  • Release/v4.0.0.3078-RC
  • Release/v3.3.15.3073-RC
41 results

EngineFanAuxTest.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.
    EngineFanAuxTest.cs 2.50 KiB
    /*
    * This file is part of VECTO.
    *
    * Copyright © 2012-2019 European Union
    *
    * Developed by Graz University of Technology,
    *              Institute of Internal Combustion Engines and Thermodynamics,
    *              Institute of Technical Informatics
    *
    * VECTO is licensed under the EUPL, Version 1.1 or - as soon they will be approved
    * by the European Commission - subsequent versions of the EUPL (the "Licence");
    * You may not use VECTO except in compliance with the Licence.
    * You may obtain a copy of the Licence at:
    *
    * https://joinup.ec.europa.eu/community/eupl/og_page/eupl
    *
    * Unless required by applicable law or agreed to in writing, VECTO
    * 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.
    *
    * Authors:
    *   Stefan Hausberger, hausberger@ivt.tugraz.at, IVT, Graz University of Technology
    *   Christian Kreiner, christian.kreiner@tugraz.at, ITI, Graz University of Technology
    *   Michael Krisper, michael.krisper@tugraz.at, ITI, Graz University of Technology
    *   Raphael Luz, luz@ivt.tugraz.at, IVT, Graz University of Technology
    *   Markus Quaritsch, markus.quaritsch@tugraz.at, IVT, Graz University of Technology
    *   Martin Rexeis, rexeis@ivt.tugraz.at, IVT, Graz University of Technology
    */
    
    using NUnit.Framework;
    using TUGraz.VectoCommon.Utils;
    using TUGraz.VectoCore.Models.SimulationComponent.Impl;
    
    namespace TUGraz.VectoCore.Tests.Models.SimulationComponent
    {
    	[TestFixture]
    	[Parallelizable(ParallelScope.All)]
    	public class EngineFanAuxTest
    	{
    
    		[TestCase(200 ,  53.998),
    			TestCase(500,    843.713),
    			TestCase(1000,   6749.700),
    			TestCase(1300,   14829.091),
    			TestCase(1500,   22780.238)]
    		public void TestEngineFanPowerDemand(double fanSpeedRPM, double expectedPowerDemand)
    		{
    			var engineFan = new EngineFanAuxiliary(new[] { 5.5e-7, 14.62, 108.5 }, 0.225.SI<Meter>());
    
    			Assert.AreEqual(expectedPowerDemand, engineFan.PowerDemand(fanSpeedRPM.RPMtoRad()).Value(), 1e-3);
            }
    
            [
            TestCase(14, 14.7),
            TestCase(28, 29.4),
            TestCase(7, 7.35)
            ]
            public void TestEngineFanPowerDemandWithElectricalPower(double fanElectricalPower, double expectedPowerDemand)
            {
    			var engineFan = new EngineFanAuxiliary(new[] { 5.5e-7, 14.62, 108.5 }, 0.225.SI<Meter>());
    
    			Assert.AreEqual(expectedPowerDemand, engineFan.PowerDemand(fanElectricalPower.SI<Watt>()).Value(), 1e-3);
    		}
    
        }
    }