MOTOR

Create Motor

Creates a new motor

Args

models.Motor JSON

For liquid/hybrid motors the tanks field supports three geometry kinds via the geometry_kind discriminator and a scalar-or-sampled fluid density:

{
  "motor_kind": "LIQUID",
  ...
  "tanks": [{
    "geometry": {
      "geometry_kind": "cylindrical",    // or "spherical", "custom"
      "radius": 0.1, "height": 0.5
    },
    "liquid": {
      "name": "LOX",
      "density": [[90.0, 1141.0], [120.0, 1091.0]]   // or scalar
    },
    "gas": {"name": "N2", "density": 1.2},
    "tank_kind": "LEVEL",
    "liquid_height": 0.25,
    ...
  }]
}
post/motors/

Request

  • Base URL: https://api.rocketpy.org (the document declares no server; this is the origin it was published from)
  • URL: https://api.rocketpy.org/motors/
  • Auth: none declared

Request body

burn_timenumber nullable
nozzle_radiusnumber required
dry_massnumber required
center_of_dry_mass_positionnumber required
motor_kind'HYBRID' | 'SOLID' | 'GENERIC' | 'LIQUID' required
chamber_radiusnumber nullable
chamber_heightnumber nullable
chamber_positionnumber nullable
propellant_initial_massnumber nullable
nozzle_positionnumber nullable
grain_numberinteger nullable
grain_densitynumber nullable
grain_outer_radiusnumber nullable
grain_initial_inner_radiusnumber nullable
grain_initial_heightnumber nullable
grains_center_of_mass_positionnumber nullable
grain_separationnumber nullable
throat_radiusnumber nullable
interpolation_method'linear' | 'spline' | 'akima' | 'polynomial' | 'shepard' | 'rbf'
coordinate_system_orientation'nozzle_to_combustion_chamber' | 'combustion_chamber_to_nozzle'

Response

Successful Response

messagestring
motor_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.