Skip to content

Tests general

The general test section launch all the test. Set base arguments as the time for calculation (tf), the time step for numerical integration (dt), the initial velocity for computation (v0), the slope angle in radian (angle) and the error for the pass fail test.

The test general input file must have following format.

You can download the template file and save it to your workspace. The content of this file is shown hereafter.

##########################
# SECTION 1: Analysis Type
analysis_type : test

################################
# INFO level: 
out_level: 1

################################
# SECTION 2: Analysis inputs
values:
  force: gravitational potential   # aero, rolling friction, gravitational potential, mechanical, inertia
  arguments:
    dt: 1     # Time step in [s]
    v0: 20    # Initial velocity in [m/s]
    angle: 0.05  # Initial angle in [rad]
    nv: 1     # type of function for speed
    ntheta: 1 # type of function for angle
    tf: 120   # Final time in [s]
    dt min: 0.1 # Minimum time step in [s]
    dt max: 10  # Maximum time step in [s]


# Input the vehicle characteristics
vehicle:
  mass: 405         # Total mass of the vehicle + driver + luggage in [kg]
  radius: 0.25        # Wheel radius in [m]
  Cx: 0.325            # Total vehicle Drag coefficient [dimensionless]
  Crr: 0.01          # Totale vehicule rolling resistance coefficient [dimensionless]
  S: 1.5               # vehicle aerodynamic cross section perpendicular to vehicle velocity in [m^2]
  nbr: 1             # Number of driving wheel
  V_int: 4      # Total interior volume of the vehicle [m^3]
  S_tot: 5           # Total exterior surface [m^2]

  P_headlight: 80    # Headlight power [W]
  dmdt: 0.05         # Flow rate of air through vents in [kg/s]
  ktherm: 10         # thermal conductivity coefficient in [W/m^2/K]
  T_int: 300         # intern temperature [K]
  T_ext: 280         # external temperature [K]

  I_sun: 1000     # Solar heat flux [W/m^2]
  S_windows: 2         # Glass total surface [m^2]
  A_windows: 0.6       # Glass absorption coefficient [dimensionless]

  n_motor: 1        # number of motors [dimensionless]
  efficiency_map: Valeo 415001  # file path to the motor efficiency map. The map is a torque - rotation velocity - efficiency map.

  transmission_ratio: 12         # Total transmission ratio between motor pulley and motorised wheel gear [dimensionless]
  eta_battery: 0.95 # Batterie efficiency [dimensionless]
  eta_transmission: 0.96 # transmission axe efficiency [dimensionless]
  eta_motordrive: 0.96 # onduleur efficiency [dimensionless]
  R_int: 0.08       # internal batterie resistance in [ohm]

  Inertia_Mat: # Inertia matrix of the sprung mass, in the vehicle coordinate system [kg.m^2]
  - [44, 2, 2]
  - [2, 72, 2]
  - [2, 2, 80]
  Wheel_Base: 1.60 # Wheelbase = distance between front and rear axle [m]

  Track: 1.10  # Track = distance between the contact points of the 2 front wheels [m]

  Height: 1.70  # Height of the vehicle [m]

  X_Cog: 1.10  # X coordinate of the vehicle center of gravity, in the vehicle coordinate system [m]

  Y_Cog: -0.05  # Y coordinate of the vehicle center of gravity, in the vehicle coordinate system [m]

  Z_Cog: 0.40  # Z coordinate of the vehicle center of gravity, in the vehicle coordinate system [m]

  Stiff_Front: 100000  # Front suspensions stiffness [N/m]

  Stiff_Rear: 100000 # Rear suspension stiffness [N/m]

  Damp_Front: 1000  # Front suspensions damping coefficient [N.s/m]

  Damp_Rear: 1000  # Rear suspension damping coefficient [N.s/m]