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
Commit 22217408 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Merge pull request #39 in VECTO/vecto-dev from VECTO/mq_vecto-dev:develop to develop

* commit '0f30d052':
  building new VECTO version
  compiling help file, disable automatic help generation for deploy
  bugfix em-off signal, em-off time share, ice-off time share, max startgear selection
parents 383df14d 0f30d052
Branches
Tags Build/v0.7.3.2171
No related merge requests found
Showing
with 237 additions and 67 deletions
...@@ -47,11 +47,13 @@ ...@@ -47,11 +47,13 @@
<Message Text="Generating Release Notes PDF"/> <Message Text="Generating Release Notes PDF"/>
<Exec Command="cscript &quot;$(solutiondir)documentation\user manual source\convertpptxtopdf.vbs&quot; &quot;$(solutiondir)documentation\user manual source\release notes vecto3.x.pptx&quot; &quot;$(solutiondir)documentation\user manual source\release notes vecto3.x.pdf&quot;"/> <Exec Command="cscript &quot;$(solutiondir)documentation\user manual source\convertpptxtopdf.vbs&quot; &quot;$(solutiondir)documentation\user manual source\release notes vecto3.x.pptx&quot; &quot;$(solutiondir)documentation\user manual source\release notes vecto3.x.pdf&quot;"/>
</Target> </Target>
<!--
<Target Name="GenerateHelpHTML" BeforeTargets="AfterBuild" Condition="$(Configuration) == 'Deploy'"> <Target Name="GenerateHelpHTML" BeforeTargets="AfterBuild" Condition="$(Configuration) == 'Deploy'">
<Message Text="Generating Help"/> <Message Text="Generating Help"/>
<Exec Command="&quot;$(solutiondir)documentation\user manual\convert.bat&quot;" WorkingDirectory="$(solutiondir)documentation\user manual"/> <Exec Command="&quot;$(solutiondir)documentation\user manual\convert.bat&quot;" WorkingDirectory="$(solutiondir)documentation\user manual"/>
<Exec Command="&quot;$(solutiondir)documentation\VectoHashingTool\convert.bat&quot;" WorkingDirectory="$(solutiondir)documentation\VectoHashingTool"/> <Exec Command="&quot;$(solutiondir)documentation\VectoHashingTool\convert.bat&quot;" WorkingDirectory="$(solutiondir)documentation\VectoHashingTool"/>
</Target> </Target>
-->
<Target Name="AfterBuild" Condition="$(Configuration) == 'Deploy'"> <Target Name="AfterBuild" Condition="$(Configuration) == 'Deploy'">
<ItemGroup> <ItemGroup>
......
No preview for this file type
This diff is collapsed.
...@@ -30,5 +30,5 @@ ...@@ -30,5 +30,5 @@
*/ */
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("0.2.0.2108")] [assembly: AssemblyVersion("0.2.0.2171")]
[assembly: AssemblyFileVersion("0.2.0.2108")] [assembly: AssemblyFileVersion("0.2.0.2171")]
...@@ -30,5 +30,5 @@ ...@@ -30,5 +30,5 @@
*/ */
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("0.7.1.2108")] [assembly: AssemblyVersion("0.7.3.2171")]
[assembly: AssemblyFileVersion("0.7.1.2108")] [assembly: AssemblyFileVersion("0.7.3.2171")]
\ No newline at end of file \ No newline at end of file
...@@ -30,5 +30,5 @@ ...@@ -30,5 +30,5 @@
*/ */
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("1.2.0.2108")] [assembly: AssemblyVersion("1.2.0.2171")]
[assembly: AssemblyFileVersion("1.2.0.2108")] [assembly: AssemblyFileVersion("1.2.0.2171")]
...@@ -30,5 +30,5 @@ ...@@ -30,5 +30,5 @@
*/ */
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("0.7.1.2108")] [assembly: AssemblyVersion("0.7.3.2171")]
[assembly: AssemblyFileVersion("0.7.1.2108")] [assembly: AssemblyFileVersion("0.7.3.2171")]
\ No newline at end of file \ No newline at end of file
...@@ -385,7 +385,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Data ...@@ -385,7 +385,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Data
[ModalResultField(typeof(SI), caption: "T_{0}-em_drive_max [Nm]")] T_EM_electricMotor_drive_max_, [ModalResultField(typeof(SI), caption: "T_{0}-em_drive_max [Nm]")] T_EM_electricMotor_drive_max_,
[ModalResultField(typeof(SI), caption: "T_{0}-em_gen_max [Nm]")] T_EM_electricMotor_gen_max_, [ModalResultField(typeof(SI), caption: "T_{0}-em_gen_max [Nm]")] T_EM_electricMotor_gen_max_,
[ModalResultField(typeof(SI), caption: "P_{0}-em_gen_max_ [kW]", outputFactor: 1e-3)] P_EM_electricMotor_gen_max_, [ModalResultField(typeof(SI), caption: "P_{0}-em_gen_max [kW]", outputFactor: 1e-3)] P_EM_electricMotor_gen_max_,
[ModalResultField(typeof(SI), caption: "P_{0}-em_drive_max [kW]", outputFactor: 1e-3)] P_EM_electricMotor_drive_max_, [ModalResultField(typeof(SI), caption: "P_{0}-em_drive_max [kW]", outputFactor: 1e-3)] P_EM_electricMotor_drive_max_,
[ModalResultField(typeof(SI), caption: "P_{0}-em_mech [kW]", outputFactor: 1e-3)] P_EM_electricMotor_em_mech_, [ModalResultField(typeof(SI), caption: "P_{0}-em_mech [kW]", outputFactor: 1e-3)] P_EM_electricMotor_em_mech_,
......
...@@ -299,7 +299,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -299,7 +299,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
if (!dryRun) { if (!dryRun) {
CurrentState.EMSpeed = emSpeed; CurrentState.EMSpeed = emSpeed;
CurrentState.EMTorque = emTorque; CurrentState.EMTorque = emOff ? null : emTorque;
CurrentState.EmTorqueMap = emTorqueMap; CurrentState.EmTorqueMap = emTorqueMap;
CurrentState.DragMax = maxRecuperationTorqueEmMap; CurrentState.DragMax = maxRecuperationTorqueEmMap;
CurrentState.DriveMax = maxDriveTorqueEmMap; CurrentState.DriveMax = maxDriveTorqueEmMap;
...@@ -391,7 +391,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -391,7 +391,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
container[ModalResultField.P_EM_electricMotor_gen_max_, Position] = (CurrentState.DragMax ?? 0.SI<NewtonMeter>()) * avgEMSpeed; container[ModalResultField.P_EM_electricMotor_gen_max_, Position] = (CurrentState.DragMax ?? 0.SI<NewtonMeter>()) * avgEMSpeed;
container[ModalResultField.P_EM_electricMotor_drive_max_, Position] = (CurrentState.DriveMax ?? 0.SI<NewtonMeter>()) * avgEMSpeed; container[ModalResultField.P_EM_electricMotor_drive_max_, Position] = (CurrentState.DriveMax ?? 0.SI<NewtonMeter>()) * avgEMSpeed;
container[ModalResultField.P_EM_electricMotor_em_mech_, Position] = CurrentState.EMTorque * avgEMSpeed; container[ModalResultField.P_EM_electricMotor_em_mech_, Position] = (CurrentState.EMTorque ?? 0.SI<NewtonMeter>() ) * avgEMSpeed;
container[ModalResultField.P_EM_electricMotor_em_mech_map_, Position] = (CurrentState.EmTorqueMap ?? 0.SI<NewtonMeter>()) * avgEMSpeed; container[ModalResultField.P_EM_electricMotor_em_mech_map_, Position] = (CurrentState.EmTorqueMap ?? 0.SI<NewtonMeter>()) * avgEMSpeed;
...@@ -419,7 +419,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -419,7 +419,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
protected override void DoCommitSimulationStep(Second time, Second simulationInterval) protected override void DoCommitSimulationStep(Second time, Second simulationInterval)
{ {
var avgSpeed = (PreviousState.EMSpeed + CurrentState.EMSpeed) / 2; var avgSpeed = (PreviousState.EMSpeed + CurrentState.EMSpeed) / 2;
var losses = CurrentState.EMTorque * avgSpeed - CurrentState.ElectricPowerToBattery; var losses = (CurrentState.EMTorque ?? 0.SI<NewtonMeter>()) * avgSpeed - CurrentState.ElectricPowerToBattery;
ThermalBuffer += (losses - ContinuousPowerLoss) * simulationInterval; ThermalBuffer += (losses - ContinuousPowerLoss) * simulationInterval;
if (ThermalBuffer < 0) { if (ThermalBuffer < 0) {
ThermalBuffer = 0.SI<Joule>(); ThermalBuffer = 0.SI<Joule>();
......
...@@ -318,6 +318,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -318,6 +318,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
runData.VehicleData.DynamicTyreRadius; runData.VehicleData.DynamicTyreRadius;
var minEngineSpeed = (runData.EngineData.FullLoadCurves[0].RatedSpeed - runData.EngineData.IdleSpeed) * var minEngineSpeed = (runData.EngineData.FullLoadCurves[0].RatedSpeed - runData.EngineData.IdleSpeed) *
Constants.SimulationSettings.ClutchClosingSpeedNorm + runData.EngineData.IdleSpeed; Constants.SimulationSettings.ClutchClosingSpeedNorm + runData.EngineData.IdleSpeed;
MaxStartGear = GearList.First();
foreach (var gear in GearList.Reverse()) { foreach (var gear in GearList.Reverse()) {
var gearData = GearboxModelData.Gears[gear.Gear]; var gearData = GearboxModelData.Gears[gear.Gear];
if (GearshiftParams.StartSpeed * transmissionRatio * gearData.Ratio <= minEngineSpeed) if (GearshiftParams.StartSpeed * transmissionRatio * gearData.Ratio <= minEngineSpeed)
......
...@@ -552,7 +552,7 @@ namespace TUGraz.VectoCore.OutputData ...@@ -552,7 +552,7 @@ namespace TUGraz.VectoCore.OutputData
public static Scalar ICEOffTimeShare(this IModalDataContainer data) public static Scalar ICEOffTimeShare(this IModalDataContainer data)
{ {
var iceOn = data.GetValues(x => new { var iceOn = data.GetValues(x => new {
dt = x[ModalResultField.ICEOn.GetName()] is DBNull dt = x[ModalResultField.ICEOn.GetName()] is DBNull || !x.Field<Boolean>(ModalResultField.ICEOn.GetName())
? 0.SI<Second>() ? 0.SI<Second>()
: x.Field<Second>(ModalResultField.simulationInterval.GetName()) : x.Field<Second>(ModalResultField.simulationInterval.GetName())
}).Sum(x => x.dt) ?? 0.SI<Second>(); }).Sum(x => x.dt) ?? 0.SI<Second>();
...@@ -562,7 +562,7 @@ namespace TUGraz.VectoCore.OutputData ...@@ -562,7 +562,7 @@ namespace TUGraz.VectoCore.OutputData
public static Scalar ElectricMotorOffTimeShare(this IModalDataContainer data, PowertrainPosition pos) public static Scalar ElectricMotorOffTimeShare(this IModalDataContainer data, PowertrainPosition pos)
{ {
var emOff = data.GetValues(x => new { var emOff = data.GetValues(x => new {
dt = x[string.Format(ModalResultField.EM_Off_.GetCaption(), pos.GetName())] is DBNull dt = x[string.Format(ModalResultField.EM_Off_.GetCaption(), pos.GetName())] is DBNull || !x.Field<Scalar>(string.Format(ModalResultField.EM_Off_.GetCaption(), pos.GetName())).IsEqual(1)
? 0.SI<Second>() ? 0.SI<Second>()
: x.Field<Second>(ModalResultField.simulationInterval.GetName()) : x.Field<Second>(ModalResultField.simulationInterval.GetName())
}).Sum(x => x.dt) ?? 0.SI<Second>(); }).Sum(x => x.dt) ?? 0.SI<Second>();
......
...@@ -30,5 +30,5 @@ ...@@ -30,5 +30,5 @@
*/ */
using System.Reflection; using System.Reflection;
[assembly: AssemblyVersion("0.7.1.2108")] [assembly: AssemblyVersion("0.7.3.2171")]
[assembly: AssemblyFileVersion("0.7.1.2108")] [assembly: AssemblyFileVersion("0.7.3.2171")]
...@@ -47,7 +47,7 @@ namespace TUGraz.VectoCore.Utils ...@@ -47,7 +47,7 @@ namespace TUGraz.VectoCore.Utils
public static string VersionNumber public static string VersionNumber
{ {
get { get {
return "0.7.2.2118" + SUFFIX; return "0.7.3.2171" + SUFFIX;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment