添加项目文件。

This commit is contained in:
xyy
2026-04-18 19:00:34 +08:00
parent 1d8ffa7192
commit 4f85aeee2f
19 changed files with 1084 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using CommunityToolkit.Mvvm.ComponentModel;
namespace ASTM_D7896_Tester.ViewModels;
public partial class MeasurementResult : ObservableObject
{
[ObservableProperty]
private int _index;
[ObservableProperty]
private double _thermalConductivity; // W/m·K
[ObservableProperty]
private double _thermalDiffusivity; // ×10⁻⁶ m²/s
[ObservableProperty]
private double _volumetricHeatCapacity; // kJ/m³·K (自动计算)
public void CalculateVhc()
{
if (_thermalDiffusivity > 0)
VolumetricHeatCapacity = _thermalConductivity / (_thermalDiffusivity * 1e-6) / 1000.0;
else
VolumetricHeatCapacity = 0;
}
}