Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROMaterials: Skin/TPS selection inside Editor #22

Draft
wants to merge 53 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
9c04352
ROMaterials Module: change thermal prop. based on selected material
fluff-li Sep 16, 2023
0f61bd4
cleaned code comments, added Preset & PartUpgrade cfg + Notes
fluff-li Sep 16, 2023
d9e584d
ModuleROMaterials.cs & PresetROMaterials.cfg
fluff-li Sep 18, 2023
cd435cd
-Added:
fluff-li Sep 19, 2023
776120d
Added support for a list of attach nodes to be ignored when subtracti…
fluff-li Sep 20, 2023
f6cfb4a
more work on dyna-soar preset. Detailed information is scarce unlike …
fluff-li Sep 20, 2023
34df0cb
fixed excel sheet formula mistake & slightly improved accessibility
fluff-li Sep 20, 2023
5fa693c
heat capacity calculation overhaul
fluff-li Sep 21, 2023
da3b5bf
Fix NullReferenceException for Presets that are no longer available, …
fluff-li Sep 21, 2023
52f8643
Fix NullRef in caused by UpdateCoreForRealfuels();
fluff-li Sep 21, 2023
bfa1767
Don't override part.termalmass & -skinthermalmass on Gui Update
fluff-li Sep 21, 2023
0c81e90
fixed mistakes in set_PresetCore, made sure ApplyCorepreset doesn't g…
fluff-li Sep 21, 2023
8730063
tweaked Dyna-Soar layering configuration and added Space Shuttle to e…
fluff-li Sep 21, 2023
6e56232
- Implemented a workaround to wait for FARs voxelizaion when reading …
fluff-li Sep 23, 2023
20ba8e3
Let Editor know that mass has changed by fireing onEditorShipModified…
fluff-li Sep 23, 2023
deecfb1
Fix mass diplay lagging behind & more
fluff-li Sep 24, 2023
fda3792
-Use average heat capacity instead of the value on temperature limit
fluff-li Sep 24, 2023
0011896
Implemented automatic reentry tagging
fluff-li Sep 25, 2023
fe8dc6f
Experimenting on presets based on properties,
fluff-li Sep 25, 2023
9688f76
Added functionality to incorporate temperature-dependent thermal prop…
fluff-li Sep 29, 2023
d9679ff
implemented a minimum check for core mass to prevent negative thermal…
fluff-li Sep 29, 2023
d2d6ade
Implement min & max value handling for temperature dependent properties.
fluff-li Oct 1, 2023
e9d6e38
Changed skinHeightMin/Max to save in mm instead of m
fluff-li Oct 1, 2023
735b1ca
Updating Preset cfg & csv, created with github.com/fluff-li/RoMateria…
fluff-li Oct 1, 2023
68e1085
Handle another NaN value for heightFactor, which happens when skinHei…
fluff-li Oct 1, 2023
ae36f49
Removed duplicate SkinInternalConductivityDivGlobal multiplier
fluff-li Oct 2, 2023
b784b75
implemented temperature dependend porperties for core, rename presetT…
fluff-li Oct 2, 2023
8af1c34
Implemented PAW open & "Display Thermal Data in Action Menus" toggle …
fluff-li Oct 2, 2023
84057c7
Add PhysicsGlobals.ThermalDataDisplay check on guiActivator
fluff-li Oct 2, 2023
3f2b0f6
clean up
fluff-li Oct 2, 2023
37d344e
Removed 0.5 multiplier from SkinInternalConductivityDivGlobl, which e…
fluff-li Oct 3, 2023
2a8f9a2
- give priority to manualy enterd part surface area over far calculat…
fluff-li Oct 5, 2023
67e3424
Switched multidimensional arrays with more performant jagged array
fluff-li Oct 5, 2023
45146f4
Added exception handling and improved reading & saving of csv files
fluff-li Oct 5, 2023
3843eb4
Modified *DivGlobal variales to get methods & moved heatConductivity …
fluff-li Oct 5, 2023
c345f25
Unified all (PhysicsGlobals.StandardSpecificHeatCapacity * part.therm…
fluff-li Oct 6, 2023
490fb33
Fixed Nullref exceptions caused by using & instead of &&
fluff-li Oct 6, 2023
6a5b72b
Removed every Method of obtaining surface area besides of far & direc…
fluff-li Oct 6, 2023
3a2f084
Switched heatConductivityDivGlobal with heatConductivityDivGlobalSqrt…
fluff-li Oct 6, 2023
b9075d8
Restrucurted GameData folder & added new presets
fluff-li Oct 6, 2023
34383dd
Update .csproj
fluff-li Oct 6, 2023
fe28d5c
Merge branch 'KSP-RO:master' into master
fluff-li Oct 7, 2023
bc444d7
Replaced workaound for checking of far voxelization status with KSPEv…
fluff-li Oct 9, 2023
9004f3a
Overhauled SetSurfaceArea function as UpdateSurfaceArea & handling of…
fluff-li Oct 10, 2023
941c92b
Removed obsolete Editor EditorCordinator.cs from csproj
fluff-li Oct 10, 2023
cade007
Changed workings of flight debug display on part window & added entry…
fluff-li Oct 10, 2023
d751547
Expanded zero point entries to include preset reference & cost per area
fluff-li Oct 11, 2023
0b3b0ff
Implemented switching between UI_ChooseOption & alternative displayin…
fluff-li Oct 11, 2023
a1c200b
Implemented coreThermalMassFraction read from config; fixed bug in Up…
fluff-li Oct 12, 2023
14f4f75
Overhauled Harmony patch for UpdateMassStats
fluff-li Oct 12, 2023
c05beb3
Fixed core preset & skin height not persisting
fluff-li Oct 12, 2023
d9643dc
Increased significant figures of skin height slider
fluff-li Oct 12, 2023
eede269
Updated GameData/ & Notes/
fluff-li Oct 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Core/Aluminium_2024.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ROThermal_PRESET
{
name = Aluminium_2024
description = Aluminium alloy 2024
type = Core

maxTemp = 450
specificHeatCapacity = 955
thermalContactConductivity = 223.6

skinMaxTemp = 588
skinSpecificHeatCapacity = 955
thermalInsulance = 0.0704225352113 // 10 / 142
skinSkinConductivity = 142

restrictors = Tank-Sep-Al, Tank-Sep-Al-HP, Tank-Sep-Al2, Tank-Sep-Al2-HP, Tank-Sep-AlLi, Tank-Sep-AlLi-HP, Tank-Iso-Al, Tank-Iso-Al-HP, Tank-Iso-AlLi, Tank-Iso-AlLi-HP, Structural, Fuselage

}
17 changes: 17 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Core/Monel_K-500.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ROThermal_PRESET
{
name = Monel_K-500
description = Monel_K-500
type = Core

maxTemp = 873
specificHeatCapacity = 552.7
thermalContactConductivity = 34.2

skinMaxTemp = 1123
skinSpecificHeatCapacity = 778.7
thermalInsulance = 1
skinSkinConductivity = 43.1

restrictors = Structural, Fuselage
}
17 changes: 17 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Core/Titanium_6A1-1V.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ROThermal_PRESET
{
name = Titanium_6A1-1V
description = Titanium Alloy 6A1-4V
type = Core

maxTemp = 600
specificHeatCapacity = 641
thermalContactConductivity = 119

skinMaxTemp = 873
skinSpecificHeatCapacity = 641
thermalInsulance = 1
skinSkinConductivity = 119

restrictors = Structural, Fuselage
}
27 changes: 27 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Dyna-Soar X-20 Cockpit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ROThermal_PRESET
{
name = Dyna-Soar X-20 Cockpit
description =
type = Skin

skinMaxTemp = 1800
emissiveConstant = 0.86899936
absorptiveConstant = 0

skinHeightMin = 0.0027
skinMassPerArea = 18.153498
skinSpecificHeatCapacity = 272.49313
thermalInsulance = 16.298254

skinHeightMax = 0.0038
skinMassPerAreaMax = 18.258266
skinSpecificHeatCapacityMax = 276.6673
thermalInsulanceMax = 40.90601

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// Rene_Panel, 0.15, 0.0005, 0.0005
// TZM, 0.8, 0.0026, 0.0038
// Zirconia, 0.05, 0.011399999, 0.014
26 changes: 26 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Dyna-Soar X-20 Fuselage.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ROThermal_PRESET
{
name = Dyna-Soar X-20 Fuselage
description =
type = Skin

skinMaxTemp = 1533
emissiveConstant = 0.8510251
absorptiveConstant = 0

skinHeightMin = 0.0012
skinMassPerArea = 9.127664
skinSpecificHeatCapacity = 299.18692
thermalInsulance = 6.3079777

skinHeightMax = 0.0017
skinMassPerAreaMax = 9.168035
skinSpecificHeatCapacityMax = 302.91504
thermalInsulanceMax = 15.718763

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// Rene_Panel, 0.65, 0.0005, 0.0005
// TZM, 0.35, 0.0026, 0.0038
26 changes: 26 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Dyna-Soar X-20 Wing.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ROThermal_PRESET
{
name = Dyna-Soar X-20 Wing
description =
type = Skin

skinMaxTemp = 1533
emissiveConstant = 0.8643981
absorptiveConstant = 0

skinHeightMin = 0.0019
skinMassPerArea = 13.424233
skinSpecificHeatCapacity = 280.5725
thermalInsulance = 11.677549

skinHeightMax = 0.0026
skinMassPerAreaMax = 13.499207
skinSpecificHeatCapacityMax = 285.37817
thermalInsulanceMax = 29.154722

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// Rene_Panel, 0.35, 0.0005, 0.0005
// TZM, 0.65, 0.0026, 0.0038
29 changes: 29 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Shuttle Cockpit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ROThermal_PRESET
{
name = Shuttle Cockpit
description = OV-103 Discovery +
type = Skin

skinMaxTemp = 1920
emissiveConstant = 0.87128305
absorptiveConstant = 0.32

skinHeightMin = 0.0530
skinMassPerArea = 11.045517
skinSpecificHeatCapacity = 953.206
thermalInsulance = 403.95435

skinHeightMax = 0.0986
skinMassPerAreaMax = 17.716967
skinSpecificHeatCapacityMax = 979.94434
thermalInsulanceMax = 750.6112

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// AFRSI, 0.05, 0.01035, 0.01035
// HRSI_FRCI-12, 0.0312, 0.058244, 0.12944402
// HRSI_LI-900, 0.5688, 0.0532, 0.12944402
// LRSI, 0.25, 0.027843999, 0.027843999
// RCC_Nose, 0.1, 0.1345, 0.1345
29 changes: 29 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Shuttle Early Cockpit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ROThermal_PRESET
{
name = Shuttle Early Cockpit
description = OV-102 Columbia
type = Skin

skinMaxTemp = 1920
emissiveConstant = 0.8794405
absorptiveConstant = 0.32

skinHeightMin = 0.0530
skinMassPerArea = 11.246199
skinSpecificHeatCapacity = 959.22504
thermalInsulance = 401.24023

skinHeightMax = 0.0986
skinMassPerAreaMax = 18.273079
skinSpecificHeatCapacityMax = 985.5425
thermalInsulanceMax = 741.58636

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// FRSI, 0.05, 0.01035, 0.01035
// HRSI_LI-2200, 0.0312, 0.058244, 0.12944402
// HRSI_LI-900, 0.5688, 0.0532, 0.12944402
// LRSI, 0.25, 0.027843999, 0.027843999
// RCC_Nose, 0.1, 0.1345, 0.1345
27 changes: 27 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Shuttle Early Fuselage.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ROThermal_PRESET
{
name = Shuttle Early Fuselage
description = OV-102 Columbia
type = Skin

skinMaxTemp = 1590
emissiveConstant = 0.8482239
absorptiveConstant = 0.32

skinHeightMin = 0.0310
skinMassPerArea = 4.749059
skinSpecificHeatCapacity = 1021.5122
thermalInsulance = 305.87582

skinHeightMax = 0.0615
skinMassPerAreaMax = 9.140715
skinSpecificHeatCapacityMax = 1126.1777
thermalInsulanceMax = 538.3229

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// FRSI, 0.4, 0.01035, 0.01035
// HRSI_LI-900, 0.4, 0.0532, 0.12944402
// LRSI, 0.2, 0.027843999, 0.027843999
29 changes: 29 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Shuttle Early Wing.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ROThermal_PRESET
{
name = Shuttle Early Wing
description = OV-102 Columbia
type = Skin

skinMaxTemp = 1920
emissiveConstant = 0.8539324
absorptiveConstant = 0.32

skinHeightMin = 0.0516
skinMassPerArea = 8.933534
skinSpecificHeatCapacity = 1096.9866
thermalInsulance = 363.92664

skinHeightMax = 0.0969
skinMassPerAreaMax = 16.916435
skinSpecificHeatCapacityMax = 1070.6389
thermalInsulanceMax = 736.9737

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// FRSI, 0.24, 0.01035, 0.01035
// HRSI_LI-2200, 0.023, 0.058244, 0.12944402
// HRSI_LI-900, 0.437, 0.0532, 0.12944402
// LRSI, 0.22, 0.027843999, 0.027843999
// RCC, 0.08, 0.23063502, 0.35915
27 changes: 27 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Shuttle Fuselage.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
ROThermal_PRESET
{
name = Shuttle Fuselage
description = OV-103 Discovery +
type = Skin

skinMaxTemp = 1590
emissiveConstant = 0.79783785
absorptiveConstant = 0.32

skinHeightMin = 0.0275
skinMassPerArea = 4.3627787
skinSpecificHeatCapacity = 985.7947
thermalInsulance = 281.08868

skinHeightMax = 0.0580
skinMassPerAreaMax = 8.754434
skinSpecificHeatCapacityMax = 1112.9961
thermalInsulanceMax = 513.53577

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// AFRSI, 0.2, 0.01035, 0.01035
// FRSI, 0.4, 0.01035, 0.01035
// HRSI_LI-900, 0.4, 0.0532, 0.12944402
29 changes: 29 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/Shuttle Wing.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ROThermal_PRESET
{
name = Shuttle Wing
description = OV-103 Discovery +
type = Skin

skinMaxTemp = 1920
emissiveConstant = 0.79749995
absorptiveConstant = 0.32

skinHeightMin = 0.0478
skinMassPerArea = 8.30328
skinSpecificHeatCapacity = 1092.7083
thermalInsulance = 340.63077

skinHeightMax = 0.0930
skinMassPerAreaMax = 16.024166
skinSpecificHeatCapacityMax = 1067.0298
thermalInsulanceMax = 718.32996

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// AFRSI, 0.22, 0.01035, 0.01035
// FRSI, 0.24, 0.01035, 0.01035
// HRSI_FRCI-12, 0.023, 0.058244, 0.12944402
// HRSI_LI-900, 0.437, 0.0532, 0.12944402
// RCC, 0.08, 0.23063502, 0.35915
25 changes: 25 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/X-1 Cockpit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ROThermal_PRESET
{
name = X-1 Cockpit
description = Aluminium 7075 Frame
type = Skin

skinMaxTemp = 588
emissiveConstant = 0.19
absorptiveConstant = 0

skinHeightMin = 0.0012
skinMassPerArea = 3.3600001
skinSpecificHeatCapacity = 1045.8218
thermalInsulance = 0.008982443

skinHeightMax = 0.0030
skinMassPerAreaMax = 8.4
skinSpecificHeatCapacityMax = 1045.8218
thermalInsulanceMax = 0.022456106

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// Aluminium_7075, 1, 0.0012, 0.003
25 changes: 25 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/X-15 Cockpit.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ROThermal_PRESET
{
name = X-15 Cockpit
description = Inconel-X Insulated
type = Skin

skinMaxTemp = 1255.15
emissiveConstant = 0.9224296
absorptiveConstant = 0

skinHeightMin = 0.0015
skinMassPerArea = 8.3040285
skinSpecificHeatCapacity = 716.87823
thermalInsulance = 6.2476974

skinHeightMax = 0.0050
skinMassPerAreaMax = 33.168056
skinSpecificHeatCapacityMax = 716.3671
thermalInsulanceMax = 12.580006

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// Inconel-X_Insulated, 1, 0.0015, 0.0050000004
25 changes: 25 additions & 0 deletions GameData/ROLib/Data/ROMaterials/Part/X-15 Wing.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ROThermal_PRESET
{
name = X-15 Wing
description = -
type = Skin

skinMaxTemp = 1255.15
emissiveConstant = 0.9224296
absorptiveConstant = 0

skinHeightMin = 0.0005
skinMassPerArea = 4.1400003
skinSpecificHeatCapacity = 677.49274
thermalInsulance = 0.021839684

skinHeightMax = 0.0010
skinMassPerAreaMax = 8.280001
skinSpecificHeatCapacityMax = 677.49274
thermalInsulanceMax = 0.043679368

disableModAblator = false
costPerArea = 0
}
// Segment, Portion, Min Height, Max Height
// Inconel-X, 1, 0.0005, 0.001
Loading
Loading