Jump to content

[1.4.x] Kerbal Launch Vehicles


jCoiley

Recommended Posts

  • 2 weeks later...

I made a quick lil config for people who use OPM along side the stock system

LAUNCHDESTINATIONS
{
	DESTINATION
	{
		ID = 0
		NAME = Low Kerbin Orbit
	}
	DESTINATION
	{
		ID = 1
		NAME = Keostationary Transfer
	}
	DESTINATION
	{
		ID = 2
		NAME = Munar Intercept
	}
	DESTINATION
	{
		ID = 3
		NAME = Minmus Intercept
	}
	DESTINATION
	{
		ID = 4
		NAME = Kerbin Escape
	}
	DESTINATION
	{
		ID = 5
		NAME = Eve Intercept
	}
	DESTINATION
	{
		ID = 6
		NAME = Duna Intercept
	}
	DESTINATION
	{
		ID = 7
		NAME = Dres Intercept
	}
	DESTINATION
	{
		ID = 8
		NAME = Moho Intercept
	}
	DESTINATION
	{
		ID = 9
		NAME = Jool Intercept
	}
	DESTINATION
	{
		ID = 10
		NAME = Sarnus Intercept
	}
	DESTINATION
	{
		ID = 11
		NAME = Urlum Intercept
	}
	DESTINATION
	{
		ID = 12
		NAME = Neidon Intercept
	}
	DESTINATION
	{
		ID = 13
		NAME = Plock Intercept
	}
}
LAUNCHFAMILIES
{
}

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...
  • 5 weeks later...
On 12/26/2020 at 7:35 PM, Craze said:

Will the mod be updated further?

I'm still on the forums and I do intend to come back to this mod at some point, but have no time to work on it in the near future... 

If anybody wants to create a compatible release for more recent version of KSP they are very welcome to :)

Link to comment
Share on other sites

On 1/26/2021 at 2:49 PM, jCoiley said:

I'm still on the forums and I do intend to come back to this mod at some point, but have no time to work on it in the near future... 

If anybody wants to create a compatible release for more recent version of KSP they are very welcome to :)

This is traditionally done by linuxgurugamer.  If you write to him, I think there will be no problems.

Link to comment
Share on other sites

  • 1 month later...

Hi everyone,

I created a Octave script (should work on Matlab as well) which calculates payload capacities of a launch vehicle and shows results in a KLV config format (to avoid slowly increasing NRAP weight when doing it manually). Required inputs are dV of destinations in descending order and destination ID as defined in klvconfig.cfg (targetdV matrix), structural mass of the stages (m_s ), fuel mass of the stages (m_f) and specific impulse of stages (Isp)

 

clear all; close all; clc;
g_t = 9.81;
targetdV = [[9295; 15], [9055; 14], [8870; 13], [8785; 12], [8270; 11], [7595; 10], [7475; 9], [7135; 3], [6940; 8], [6920; 7], [6770; 5], [6745; 4], [6400; 2], [5400; 1], [5200; 0], [0.01; -1]];

% launch vehicle Ardea 3-1 20210227
m_s = [3.488, 7.323, 3.4]
m_f = [12, 23.255, 21.045]
Isp = [350, 320, 255.71]

nStages = length(m_s);
results = [];

j = 1;
maxdVset = false;

for i = 0:0.02:200
  m_initial = i;
  dV = 0;
  for x = 1:1:nStages
    m_empty = m_s(x) + m_initial;
    m_initial = m_empty + m_f(x);
    dVpartial = Isp(x) * g_t * log(m_initial / m_empty);
    dV = dV + dVpartial;
  end

  % find first suitable dV requirement
  if maxdVset == false
    destinations = length(targetdV);
    for l = 1:1:destinations
      if targetdV(1,l) <= dV
        j = l;
        break
      end
    end
    maxdVset = true;
  end
  % write last result if dV requirement is broken
  if dV <= targetdV(1,j)
    if i > 0.5
      results = [results,[targetdV(2,j);lastValue]];
    endif
    j = j + 1;
  else
    lastValue = i;
    lastdV = dV;
  end
end

formatSpec = '            LAUNCHCONFIG\n            {\n                DESTINATION = %d\n                PAYLOADMASS = %.3f \n            }\n';
fprintf(formatSpec,results)

Link to comment
Share on other sites

  • 5 months later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...