diff --git a/CSE/Calculation/Minor_routines_calculate.vb b/CSE/Calculation/Minor_routines_calculate.vb index 2bf5d3dfe3a4736512ff07cba1428d44674c56d8..e3a19a25c71334aecc9755721e7c4382acf5839a 100644 --- a/CSE/Calculation/Minor_routines_calculate.vb +++ b/CSE/Calculation/Minor_routines_calculate.vb @@ -350,7 +350,7 @@ Module Minor_routines_calculate Dim vline(), Line() As String ' Output on the GUI - logme(5, False, "Read altitude file") + logme(3, False, "Read altitude file") ' Open the MSC spezification file If Not FileInAlt.OpenRead(File) Then diff --git a/CSE/IO/cCriteria.vb b/CSE/IO/cCriteria.vb index b35e287ad264c532b127a67df09493956094f7f9..4dbe7af6c98d47c1d1550d898595042da561dc91 100644 --- a/CSE/IO/cCriteria.vb +++ b/CSE/IO/cCriteria.vb @@ -105,7 +105,7 @@ Public Class cCriteria "description": "When True, applies gradient correction.", }, "hz_out": {"type": "integer", "required": true, - "description": "The sampling-rate of the result files.", + "description": "The output-rate of the result files.", "units": "Hz", }, "rr_corr_factor": {"type": "number", "required": true, diff --git a/CSE/IO/cJob.vb b/CSE/IO/cJob.vb index 3e47212db21d6e238808feb9ad5e67dc25e49ea3..bd282db5d339f7b80328f617b585aeecb53e8849 100644 --- a/CSE/IO/cJob.vb +++ b/CSE/IO/cJob.vb @@ -37,7 +37,6 @@ Public Class cJob b.low2_fpath = "" b.Criteria = New cCriteria().Body - 'b.Results = New cResults().Body b.fv_veh = 0 b.fa_pe = 1 b.fv_pe = 0 @@ -108,74 +107,74 @@ Public Class cJob <%= IIf(requireFPathExts, "'pattern': '^\\s*$|\\.csdat$', ", "") %> "description": "File-path to a measurement-file (*.csdat)", }, - "Criteria": <%= cCriteria.JSchemaStr(isStrictBody) %>, - - "properties": { - "Calibration": { - "type": "object", - "required": true, - "additionalProperties": <%= allowAdditionalProps_str %>, - "properties": { - "fv_veh": {"type": "number", "required": true, - "description": "Calibration factor for vehicle speed.", - }, - "fv_pe": {"type": "number", "required": true, - "description": "Calibration factor for air speed (position error).", - }, - "fa_pe": {"type": "number", "required": true, - "description": "Position error correction factor for measured air inflow angle (beta).", - }, - "beta_ame": {"type": "number", "required": true, - "description": "Calibration factor for beta (misalignment).", - "units": "°", - }, - } + "fv_veh": { + "type": "number", + "description": "Calibration factor for vehicle speed.", + 'default': 0, + }, + "fv_pe": { + "type": "number", + "description": "Calibration factor for air speed (position error).", + 'default': 0, + }, + "fa_pe": { + "type": "number", + "description": "Position error correction factor for measured air inflow angle (beta).", + 'default': 1, + }, + "beta_ame": { + "type": "number", + "description": "Calibration factor for beta (misalignment).", + 'default': 0, + "units": "°", + }, + "CdxA": { + "type": "number", + "description": "Average CdxA before yaw angle correction", + 'default': 0, + "units": "m^2", + }, + "beta": { + "type": "number", + "description": "Average absolute yaw angle from high speed tests.", + 'default': 0, + "units": "m^2", + }, + "delta_CdxA": { + "type": "number", + "description": "Correction of CdxA for yaw angle.", + 'default': 0, + "units": "m^2", + }, + "CdxA0": { + "type": "number", + "description": "Correction of CdxA for zero yaw angle.", + 'default': 0, + "units": "m^2", + }, + "CdxA0_opt2": { + "type": "number", + "description": "Average CdxA for zero yaw angle (yaw angle correction performed before averaging of measurement sections).", + 'default': 0, + "units": "m^2", + }, + "valid_t_tire": { + "type": "boolean", + "description": "Invalid if the maximum ambient temperature exceeded.", + 'default': true, }, - "Evaluation": { - "type": "object", - "required": true, - "additionalProperties": <%= allowAdditionalProps_str %>, - "properties": { - "CdxA": {"type": "number", "required": true, - "description": "Average CdxA before yaw angle correction", - "units": "m^2", - }, - "beta": {"type": "number", "required": true, - "description": "Average absolute yaw angle from high speed tests.", - "units": "m^2", - }, - "delta_CdxA": {"type": "number", "required": true, - "description": "Correction of CdxA for yaw angle.", - "units": "m^2", - }, - "CdxA0": {"type": "number", "required": true, - "description": "Correction of CdxA for zero yaw angle.", - "units": "m^2", - }, - "CdxA0_opt2": {"type": "number", "required": true, - "description": "Average CdxA for zero yaw angle (yaw angle correction performed before averaging of measurement sections).", - "units": "m^2", - }, - } + "valid_t_amb": { + "type": "boolean", + "description": "Invalid if the ambient temperature fallen below minimum.", + 'default': true, }, - "Validity": { - "type": "object", - "required": true, - "additionalProperties": <%= allowAdditionalProps_str %>, - "properties": { - "valid_t_tire": {"type": "boolean", "required": true, - "description": "Invalid if the maximum ambient temperature exceeded.", - }, - "valid_t_amb": {"type": "boolean", "required": true, - "description": "Invalid if the ambient temperature fallen below minimum.", - }, - "valid_RRC": {"type": "boolean", "required": true, - "description": "Invalid if the ambient temperature higher than allowed.", - }, - } + "valid_RRC": { + "type": "boolean", + "description": "Invalid if the ambient temperature higher than allowed.", + 'default': true, }, - }, - } + "Criteria": <%= cCriteria.JSchemaStr(isStrictBody) %>, + } }</json>.Value '"": { ' "type": "string", @@ -275,10 +274,13 @@ Public Class cJob Protected Overrides Sub OnBeforeContentStored() Dim b As Object = Me.Body - b.v_air_f = Me.v_air_f - b.v_air_d = Me.v_air_d - b.beta_f = Me.beta_f - b.beta_d = Me.beta_d + Dim a As Object = New JObject() + a.v_air_f = Me.v_air_f + a.v_air_d = Me.v_air_d + a.beta_f = Me.beta_f + a.beta_d = Me.beta_d + + b.Anemometer = a b.fv_veh = Math.Round(fv_veh, 3) b.fa_pe = Math.Round(fa_pe, 3) @@ -294,7 +296,6 @@ Public Class cJob b.valid_RRC = valid_RRC End Sub - Public Property vehicle_fpath As String Get Return getRootedPath(Me.Body("vehicle_fpath"), Prefs.workingDir) @@ -306,9 +307,6 @@ Public Class cJob If value Is Nothing Then Me.Body("vehicle_fpath") = Nothing Else Me.Body("vehicle_fpath") = value End Set End Property - - - Public Property ambient_fpath As String Get Return getRootedPath(Me.Body("ambient_fpath"), Prefs.workingDir) @@ -342,7 +340,6 @@ Public Class cJob If value Is Nothing Then Me.Body("calib_run_fpath") = Nothing Else Me.Body("calib_run_fpath") = value End Set End Property - Public Property coast_track_fpath As String Get Return getRootedPath(Me.Body("coast_track_fpath"), Prefs.workingDir) @@ -387,14 +384,12 @@ Public Class cJob If value Is Nothing Then Me.Body("low2_fpath") = Nothing Else Me.Body("low2_fpath") = value End Set End Property - Public ReadOnly Property coasting_fpaths As String() Get Return {low1_fpath, high_fpath, low2_fpath} End Get End Property - ''' <summary>Do not invoke this method in vain...</summary> Property Criteria As cCriteria Get @@ -405,8 +400,6 @@ Public Class cJob End Set End Property - - ' Function for reading the jobfile Public Sub fReadOldJobFile(ByVal jobFile As String) ' Declarations diff --git a/Docs/VECTO_CSE-User Manual.docx b/Docs/VECTO_CSE-User Manual.docx index a203194df8922384f17a353dfacb3dee5951be9d..4442f3996913ad0f12a873599e6642b461690da0 100644 Binary files a/Docs/VECTO_CSE-User Manual.docx and b/Docs/VECTO_CSE-User Manual.docx differ