Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
PART
{
name = kerbalism-gravityring
module = Part
author = Mehka

title = #kerbalism-gravityring_Part_title // #kerbalism-gravityring_Part_title = Gravity Ring
manufacturer = Generic
description = #kerbalism-gravityring_Part_description // #kerbalism-gravityring_Part_description = Artificial gravity can delay the inevitable consequences of zero-g on the body. If you don't mind the Coriolis.
category = Utility
subcategory = 0

RSSROConfig = True

mesh = model.mu
rescaleFactor = 1.0

attachRules = 1,0,1,0,0
node_stack_bottom = 0.0, -0.2, 0.0, 0.0, -1.0, 0.0, 2
node_stack_top = 0.0, 2.5, 0.0, 0.0, 1.0, 0.0, 1

bulkheadProfiles = size2, size1
dragModelType = default
maximum_drag = 0.20
minimum_drag = 0.20
angularDrag = 4
crashTolerance = 8
maxTemp = 1000
skinMaxTemp = 2000

TechRequired = improvedOrbitalConstruction
entryCost = 32000
cost = 16000
mass = 8.0
CrewCapacity = 1

MODULE
{
name = GravityRing
ec_rate = 2.5
deploy = open
rotate = rotate
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PART
author = Yemo, zzz

title = #kerbalism-greenhouse_Part_title // #kerbalism-greenhouse_Part_title = Greenhouse
manufacturer = #kerbalism-greenhouse_Part_manufacturer // #kerbalism-greenhouse_Part_manufacturer = TripleZeta Workshops
manufacturer = Generic
description = #kerbalism-greenhouse_Part_description // #kerbalism-greenhouse_Part_description = Grow crops in the deeps of space or on the surface of some desolate rock.
category = Utility
subcategory = 0
Expand All @@ -28,8 +28,8 @@ PART
breakingTorque = 50
maxTemp = 1200

TechRequired = advExploration
TechRequired = improvedLifeSupport
entryCost = 24000
cost = 6000
mass = 2.5
mass = 3.0
}
2 changes: 1 addition & 1 deletion GameData/KerbalismConfig/Parts/ISRU/kerbalism-ISRU.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PART
node_stack_bottom = 0.0, -1.5, 0.0, 0.0, -1.0, 0.0, 1
attachRules = 1,0,1,1,0

TechRequired = lifesupportNF
TechRequired = advancedLifeSupport
entryCost = 8000
cost = 2000
subcategory = 0
Expand Down
205 changes: 197 additions & 8 deletions GameData/KerbalismConfig/Profiles/ROKerbalism.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,24 @@ Supply
input = ElectricCharge@0.1
input = WasteWater@0.00004458 // Matched to single crew output
output = Water@0.0000336 // ISS currently achieves 75% Water recovery
output = Ammonia@0.00000104 // Based on Wikipedia, we assume 4.21% of WasteWater is solids and 55% of solids are Urea
dump_valve = Water
}

// Urea in urine hydrolysed to ammonia and stripped out as plant fertilizer
// convention: 1 capacity = urine of 1 crew member
// source: NASA/TP-2015-218570/REV2 (Life Support BVAD)
// urine: 1.481 kg/crew-day = 0.00001714 units/s
// urea: 13.4 g/L (Table 4-25) * 1.481 L = 19.85 g/day -> 11.25 g NH3/day (2 NH3 per urea)
// 85% recovered (stripping reaches 80-95%) = 9.56 g NH3/day = 0.000143925 units/s
// Water: 75% recovery, as the water recycler
Process
{
name = nitrogen recovery
modifier = _NitrogenRecovery
input = ElectricCharge@0.15 // 150W estimate for pumps, aeration and distillation
input = WasteWater@0.00001714
output = Water@0.00001286
output = Ammonia@0.000143925
dump_valve = Water,Ammonia,Water&Ammonia
}

Expand Down Expand Up @@ -540,11 +557,13 @@ Supply

// source: https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20190031739.pdf
// based on 100L unit, food value based on algae output mass minus 95% water content recovered during processing
// EC: 2.67 mol O2/day -> 80 g biomass/day at 1 g per mol photons (range 0.5-1.5) -> 89 mol photons/day at 90% capture
// LEDs at 2.7 umol/J: 382W, plus 20W pumps = 0.4 kW
Process
{
name = algae bioreactor
modifier = _algae
input = ElectricCharge@0.016
input = ElectricCharge@0.4
input = CarbonDioxide@0.0003642625469
input = WasteWater@0.000001736111111
output = Oxygen@0.0006932114657
Expand All @@ -553,15 +572,38 @@ Supply
dump_valve = Oxygen,Water,Food,Oxygen&Water,Oxygen&Food,Water&Food,Oxygen&Water&Food
}

// Based on the University of Arizona Prototype Lunar Greenhouse
// source: https://www.ag.arizona.edu/lunargreenhouse/Documents/2012-07-20_01_Giacomelli.pdf
// convention: 1 capacity = 24 m^3 growing volume, food for 0.5 crew and oxygen for 1 crew
// Food: 0.5 * 5.84928 units/day = 0.00003385 units/s
// CO2 in = O2 out (1 mol each per mol CH2O)
// EC: 26.4 mol O2/day -> 0.79 kg biomass/day at 0.8 g per mol photons (Wheeler et al. 2008, range 0.4-1.0)
// -> 1240 mol photons/day at 80% canopy capture. LEDs at 2.7 umol/J: 5.3 kW, plus 0.7 kW pumps and fans = 6 kW
// Water: net loss only, transpired water is recovered. 0.5 units per unit Food, as the old Default profile
// Ammonia: BVAD Table 4-94, 95 kg fertilizer salt per person-year at 9% N -> 14.26 g NH3/day = 0.000214618 units/s
// One crew's urine through nitrogen recovery covers 67% of this
Process
{
name = hydroponics
modifier = _Hydroponics
input = ElectricCharge@6.0
input = Water@0.000016925
input = CarbonDioxide@0.00685
input = Ammonia@0.000214618
output = Food@0.00003385
output = Oxygen@0.00685
dump_valve = Oxygen
}

// source: https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20150016088.pdf
// 3 processes since both mass and efficiency change with size.
Process
{
name = molten regolith pyrolosis
modifier = _MRP
input = ElectricCharge@1.444247885
input = Regolith@0.0000027667584
output = Oxygen@0.007 //44% oxygen recovered, remaining mass discarded
input = Regolith@0.0000259737 // 0.19 kg O2 per kg regolith, Schreiner et al. "A parametric sizing model for Molten Regolith Electrolysis reactors to produce oxygen on the Moon"
output = Oxygen@0.007 // remaining mass discarded
}

// source: https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20170001808.pdf
Expand Down Expand Up @@ -917,16 +959,18 @@ Supply
dump = true
}

// Stress cures below are a share of the 8e-9/s stress build-up, per patient. Inputs are per crew seat.
// Gravity comforts: together with Near Future Quarters (67%) and Exercise (3%) they cure 100%
Process
{
name = colony-life
title = Comforts
title = Rest Facility
modifier = _SickbayColony,landed
input = ElectricCharge@0.1 // 100W for miscellaneous high efficiency electronics and comforts
input = Water@0.00011574 // 10L per day for personal hygiene, washing clothes, and more relaxed water use
output = WasteWater@0.00011574
dump = true
cures = stress@0.0000000084 // 5% margin, to cover almost any astronaut. Some may still accumulate some stress
cures = stress@0.0000000024 // 30%
}

Process
Expand All @@ -938,7 +982,78 @@ Supply
input = Water@0.00005787 // 5L per day for zero-g shower, washing clothes, and more relaxed water use
output = WasteWater@0.00005787
dump = true
cures = stress@0.000000008 // no margin, so a bit more astronauts will accumulate some stress
cures = stress@0.0000000024 // 30%, smaller rings get less (System/Sickbay.cfg)
}

// Small cures for crew in a part with the matching comfort (System/Sickbay.cfg)
Process
{
name = comfort-exercise
title = Exercise relief
modifier = _ComfortExercise
cures = stress@0.00000000024 // 3%
}

Process
{
name = comfort-panorama
title = Panorama relief
modifier = _ComfortPanorama
cures = stress@0.00000000016 // 2%
}

Process
{
name = comfort-plants
title = Plants relief
modifier = _ComfortPlants
cures = stress@0.00000000016 // 2%
}

// Crew quarters (System/CrewFacilities.cfg). Time to breakdown is the best case.
// _StressRelief is a dumped dummy output: without an output Kerbalism doesn't limit the cure by EC
Process
{
name = quarters-basic
title = Spartan Quarters
modifier = _QuartersBasic
input = ElectricCharge@0.04 // 40W comms terminal and laptop for family calls
output = _StressRelief@1
dump = true
cures = stress@0.00000000016 // 2%, breakdown after 4.0 yr
}

Process
{
name = quarters-expanded
title = Expanded Quarters
modifier = _QuartersExpanded
input = ElectricCharge@0.3 // 300W lighting, ventilation, exercise equipment and entertainment
output = _StressRelief@1
dump = true
cures = stress@0.00000000216 // 27%, breakdown after 5.4 yr
}

Process
{
name = quarters-modern
title = Modern Quarters
modifier = _QuartersModern
input = ElectricCharge@0.5 // 500W: ISS crew quarters use 153W each (NTRS 20100017014), plus exercise devices, galley and lighting
output = _StressRelief@1
dump = true
cures = stress@0.00000000376 // 47%, breakdown after 7.5 yr
}

Process
{
name = quarters-nf
title = Near Future Quarters
modifier = _QuartersNF
input = ElectricCharge@0.6 // 600W larger private volume, VR and entertainment
output = _StressRelief@1
dump = true
cures = stress@0.00000000536 // 67%, breakdown after 12 yr
}
}

Expand Down Expand Up @@ -2230,6 +2345,28 @@ RESOURCE_DEFINITION
@tags ^=:$:, algae, algae bioreactor, bioreactor, food
}

RESOURCE_DEFINITION
{
name = _Hydroponics
density = 0.0
isVisible = false
}
@PART:HAS[@MODULE[ProcessController]:HAS[#resource[_Hydroponics]]]:NEEDS[ProfileRealismOverhaul]:LAST[Kerbalism]
{
@tags ^=:$:, hydroponics, greenhouse, food
}

RESOURCE_DEFINITION
{
name = _NitrogenRecovery
density = 0.0
isVisible = false
}
@PART:HAS[@MODULE[ProcessController]:HAS[#resource[_NitrogenRecovery]]]:NEEDS[ProfileRealismOverhaul]:LAST[Kerbalism]
{
@tags ^=:$:, nitrogen, ammonia, urine, recycler, greenhouse
}


RESOURCE_DEFINITION
{
Expand Down Expand Up @@ -2617,7 +2754,7 @@ RESOURCE_DEFINITION
}
@PART:HAS[@MODULE[Sickbay]:HAS[#resource[_SickbayColony]]]:NEEDS[ProfileRealismOverhaul]:LAST[Kerbalism]
{
@tags ^=:$:, sickbay, stress, colony, habitation
@tags ^=:$:, sickbay, stress, colony, habitation, rest, recreation
}

RESOURCE_DEFINITION
Expand All @@ -2630,6 +2767,58 @@ RESOURCE_DEFINITION
{
@tags ^=:$:, sickbay, stress, colony, habitation
}

// Comfort cures and crew quarters. Their parts are patched at FINAL, so System/Sickbay.cfg and
// System/CrewFacilities.cfg set the tags themselves.
RESOURCE_DEFINITION
{
name = _ComfortExercise
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _ComfortPanorama
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _ComfortPlants
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _QuartersBasic
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _QuartersExpanded
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _QuartersModern
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _QuartersNF
density = 0.0
isVisible = false
}
RESOURCE_DEFINITION
{
name = _StressRelief
density = 0.0
isVisible = false
}

//Don't let the fuel dump valve touch kerbalism hidden resources
@RESOURCE_DEFINITION[_*]:NEEDS[ProfileRealismOverhaul]:LAST[Kerbalism]
{
Expand Down
12 changes: 12 additions & 0 deletions GameData/KerbalismConfig/Support/SSPX.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,18 @@
}
}

@PART[sspx-cupola-1875-1]:HAS[!MODULE[Comfort]:HAS[#bonus[panorama]]]:NEEDS[StationPartsExpansionRedux,ProfileRealismOverhaul,FeatureComfort]:FINAL
{
MODULE
{
name = Comfort
bonus = panorama
desc = The observation module offers a relaxing panoramic view of the void of space.
}

@tags ^= :$: comfort:
}

@PART[sspx-observation-1875-1]:NEEDS[StationPartsExpansionRedux,ProfileRealismOverhaul]:AFTER[RealismOverhaul]
{
%capsuleScrubbers = true
Expand Down
Loading