Generated reference › EOM 6DOF Simple Variable Mass Wind Angles — Robotics/Equations Of Motion
kind: generated#block#robotics-equations-of-motion

EOM 6DOF Simple Variable Mass Wind Angles — Robotics/Equations Of Motion

Robotics/Equations_Of_Motion/EOM_6DOF_Simple_Variable_Mass_Wind_Angles · 3 input / 11 output port(s) at insert · exports to Python, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog, PLC Structured Text

Description#

The block's own DESCRIPTION_HTML, rendered verbatim — the same text the config dialog's info panel and the library navigator show. Fix a wrong sentence in the block's .cpp (R-D9), never here.

EOM 6DOF Simple Variable Mass Wind Angles

Robotics / Equations Of Motion

The six-degree-of-freedom equations of motion of a rigid body that burns fuel, carried in wind axes – the airspeed V with the incidence α and the sideslip β – with the attitude as the wind angles bank μ, flight-path angle γ and heading χ. The mass is a state driven by the mass flow rate and held between the empty and full masses; the inertia tensor follows it linearly. With a = F/m, the body rates ω = [p; q; r] and DCMwb the body-to-wind rotation of (α, β):

  • V' = ax
  • β' = p·sin α − r·cos α + ay/V
  • α' = q − (p·cos α + r·sin α)·tan β + az/(V·cos β)
  • [pw; qw; rw] = DCMwb·[p − β'·sin α; q − α'; r + β'·cos α]
  • μ' = pw + (qw·sin μ + rw·cos μ)·tan γ, γ' = qw·cos μ − rw·sin μ, χ' = (qw·sin μ + rw·cos μ)/cos γ
  • ω' = I−T(M − dI/dt·ω − ω × (Iω))
  • I(m) = Ie + (m − me)/(mf − me)·(If − Ie), dI/dt = dm/dt·(If − Ie)/(mf − me)
  • m' = dm/dt, except zero while the tank is empty and draining or full and filling
  • Xe' = DCMweT·[V; 0; 0]

Ports

  • F – the applied force in wind axes, [3,1].
  • M – the applied moment about the centre of gravity in body axes, [3,1].
  • m_dot – the mass flow rate dm/dt (negative while burning), a scalar [1,1].
  • Ve – the velocity in the flat-earth frame, DCMweT·[V; 0; 0], [3,1].
  • Xe – the position in the flat-earth frame, [3,1].
  • Wind – the wind angles [μ; γ; χ] in radians, [3,1].
  • DCMwe – the direction cosine matrix from the flat-earth frame to wind axes, [3,3].
  • Vw – the velocity in wind axes, [V; 0; 0], [3,1].
  • alpha_beta – [α; β] in radians, [2,1].
  • alpha_beta_dot – [α'; β'] in rad/s, [2,1].
  • wb – the body rates [p; q; r] in rad/s, [3,1].
  • wb_dot – the angular accelerations [p'; q'; r'] in rad/s², [3,1].
  • Ab – the acceleration in body axes, Vb × ω + DCMwbT·a with Vb = DCMwbT·[V; 0; 0], [3,1].
  • Fuel – the fuel tank status: 1 full (m ≥ mf), −1 empty (m ≤ me), 0 otherwise, [1,1].

Parameters

  • Units – Metric (MKS) (the default) or English (velocity in ft/s). The two are the same arithmetic, so the choice only says which units the numbers are in.
  • Initial Position [Xe Ye Ze] – three values. Defaults to [0 0 0].
  • Initial Velocity [V alpha beta] – the initial airspeed, incidence and sideslip (radians), three values. Defaults to [0 0 0]; the airspeed divides, so a run needs a nonzero one.
  • Initial Wind Angles [mu gamma chi] – the initial bank, flight-path and heading angles in radians, three values, with |γ| below 90°. Defaults to [0 0 0].
  • Initial Body Rates [p q r] – in rad/s, three values. Defaults to [0 0 0].
  • Initial Mass – m0, from the empty to the full mass. Defaults to 1.
  • Empty Mass – me, the lower limit. Defaults to 0.5.
  • Full Mass – mf, the upper limit, greater than the empty mass. Defaults to 2.
  • Empty Inertia – Ie, the invertible [3,3] tensor at the empty mass. Defaults to eye(3).
  • Full Inertia – If, the invertible [3,3] tensor at the full mass. Defaults to 2*eye(3).
  • Integration Substeps – M, how many fourth-order Runge-Kutta steps a sample is integrated with on the discrete solver and in exported code, a whole number of 1 or more. Defaults to 100. No Simulink counterpart.
  • Sampling Time (s) – zero or less inherits the solver's rate; a positive value runs the block at that period.

Code export

All ten targets: Python, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog and PLC Structured Text. A core holds the 13 states, publishes the eleven outputs from them and the current inputs, and integrates one sample with the inputs held and M Runge-Kutta substeps – with M = 100, the same computation as Simulink's fixed-step ode4 at one hundredth of the sample time, the fuel limit applied at every stage and the mass clamped after every substep exactly as the Simulink block does it. The inertia is interpolated and inverted in closed form at every derivative evaluation.

The three HDL targets are simulation-only real arithmetic, quantized at the port: a sine of a state has no Q16.16 form. The cores simulate correctly and are not offered as synthesizable.

Simulink bridge

Import and export, mapped to Aerospace Blockset's aerolib6dof2/Simple Variable Mass 6DOF Wind (Wind Angles): Units → units (Metric (MKS) 1:1, English (velocity in ft/s) ↔ English (Velocity in ft/s)), Initial Position [Xe Ye Ze] → xme_0, Initial Velocity [V alpha beta] → Vm_0, Initial Wind Angles [mu gamma chi] → wind_0, Initial Body Rates [p q r] → pm_0, Initial Mass → mass_0, Empty Mass → mass_e, Full Mass → mass_f, Empty Inertia → inertia_e and Full Inertia → inertia_f. Always emitted with mtype = Simple Variable, rep = Wind Angles and vre_flag and abi_flag off: each of those moves that block's port list, and this block has one. The dialog's inertia is not read at this mass type (measured) and is not offered; the knots unit system is not offered either, because it converts velocities inside the integration, and an imported one is reported. "Sampling Time (s)" does not cross: the Simulink block is continuous and defines no SampleTime.

Notes

  • Stateful, continuous and nonlinear: 13 continuous states. Three outputs – alpha_beta_dot, wb_dot and Ab – read the inputs, so the block has direct feedthrough, as the Simulink block does.
  • At a limit the mass stops, but the inertia's rate does not: the Simulink block computes it from the mass flow rate on the wire, whatever the tank is doing, and this block reproduces that. On the continuous solver the mass is held by the zero rate alone and can overshoot a limit by one solver step; the discrete solver and every exported core also clamp it, as Simulink does.
  • The angular acceleration uses the transpose of the inertia's inverse, I−T, as the Simulink block does. For a symmetric inertia – any physical one – that is I−1.
  • V = 0, β = ±90° and γ = ±90° are singular, as on the fixed-mass block.

Code facts#

FactValue
registered typeRobotics/Equations_Of_Motion/EOM_6DOF_Simple_Variable_Mass_Wind_Angles
familyRobotics/Equations_Of_Motion
solver environment classICoreBlock_0_Robotics_1_Equations_Of_Motion_2_EOM_6DOF_Simple_Variable_Mass_Wind_Angles
sourcesrc/ICoreBlocks/ICoreBlockLibrary/Blocks/Robotics/Equations_Of_Motion/EOM_6DOF_Simple_Variable_Mass_Wind_Angles/ICoreBlock_0_Robotics_1_Equations_Of_Motion_2_EOM_6DOF_Simple_Variable_Mass_Wind_Angles.cpp
headersrc/ICoreBlocks/ICoreBlockLibrary/Blocks/Robotics/Equations_Of_Motion/EOM_6DOF_Simple_Variable_Mass_Wind_Angles/ICoreBlock_0_Robotics_1_Equations_Of_Motion_2_EOM_6DOF_Simple_Variable_Mass_Wind_Angles.h
default size on canvas170 × 220 px
ports at insert3 in, 11 out
code generators implementedPython, MATLAB, Java, Rust, C, C++, VHDL, Verilog, SystemVerilog, PLC Structured Text

Ports#

#DirectionSignal typeDescription label
1inICoreDoubleF
2inICoreDoubleM
3inICoreDoublem_dot
4outICoreDoubleVe
5outICoreDoubleXe
6outICoreDoubleWind
7outICoreDoubleDCMwe
8outICoreDoubleVw
9outICoreDoublealpha_beta
10outICoreDoublealpha_beta_dot
11outICoreDoublewb
12outICoreDoublewb_dot
13outICoreDoubleAb
14outICoreDoubleFuel

Ports the constructor creates. A block whose port list changes with its configuration adds or removes ports at load time; the count above is the one a freshly inserted block has.

Configuration variables#

Config variableDefaultSimulink parameter
UnitsMetric (MKS)%~%English (velocity in ft/s)~~Metric (MKS)units
Initial Position [Xe Ye Ze][0 0 0]xme_0
Initial Velocity [V alpha beta][0 0 0]Vm_0
Initial Wind Angles [mu gamma chi][0 0 0]wind_0
Initial Body Rates [p q r][0 0 0]pm_0
Initial Mass1.0mass_0
Empty Mass0.5mass_e
Full Mass2.0mass_f
Empty Inertia[1 0 0; 0 1 0; 0 0 1]inertia_e
Full Inertia[2 0 0; 0 2 0; 0 0 2]inertia_f
Integration Substeps100not crossed

Every block also carries Sampling Time (s) from ICoreBlockSolverEnvironment: zero or less inherits the solver's rate, a positive value runs the block at that period.

supportSupport::Both
Simulink pathaerolib6dof2/Simple Variable Mass 6DOF Wind (Wind Angles)
port-count rulePortsParam::None
SampleTime parameterno — the counterpart defines none; the rate stays on the ICore side
deliberately not crossedIntegration Substeps
always setmtype = Simple Variable, rep = Wind Angles, vre_flag = off, abi_flag = off
ICore configSimulink parameterValue translation
UnitsunitsMetric (MKS) → Metric (MKS), English (velocity in ft/s) → English (Velocity in ft/s)
Initial Position [Xe Ye Ze]xme_0passes through
Initial Velocity [V alpha beta]Vm_0passes through
Initial Wind Angles [mu gamma chi]wind_0passes through
Initial Body Rates [p q r]pm_0passes through
Initial Massmass_0passes through
Empty Massmass_epasses through
Full Massmass_fpasses through
Empty Inertiainertia_epasses through
Full Inertiainertia_fpasses through

Caveat (shown to the user): aerolib6dof2/Simple Variable Mass 6DOF Wind (Wind Angles) is continuous and has NO SampleTime parameter (verified against the R2026a block dialog). mtype, rep, vre_flag and abi_flag are pinned because each moves that block's port list; the kts unit system is not offered because it converts velocities inside the integration; the dialog's inertia is not read at this mass type (measured); "Integration Substeps" is how this block integrates a sample and has no counterpart

Catalog contract: src/ICoreBlocks/ICoreCoder/ICoreCommandSystem/SimulinkBridge/ICoreSimulinkBlockCatalog.h

Description vs code#

The checker has a blind spot here — it could not resolve something (a grouped port bullet, a computed config name), which is reported and never counted as a pass. A reader has to settle it:

  • B0 every stimulus in the sample errored — cross-checks skipped

The verdict above is tools/docs/check_block_descriptions.py (P7.1), which compares LISTS. It cannot read a sentence: "stateless" on a block with a state, an initial-value semantic the recursion does not implement, a "not synthesizable" caveat the HDL banner contradicts. That is the agent audit (P7.3) on BLOCK_DESCRIPTION_AUDIT.md, and this tool's green is not a substitute for one.

File banner (developer view)#

The top comment of the block's .cpp — the maths, the realization and the export strategy, addressed to whoever changes it. It must not contradict the description above (P7.5).

Simple Variable Mass 6DOF Wind (Wind Angles) -- the wind-axes equations with a fuel tank The fixed-mass 6DOF Wind (Wind Angles) block's state and ten outputs, plus the mass as a limited thirteenth state driven by the mass flow rate, and an eleventh output carrying the tank's status. The equations and the measurement behind them are in ICoreEomWindAnglesSupport.cpp's banner; this block is that model at its Simple mass kind:

I(m) = I_e + ((m - m_e)/(m_f - m_e)) (I_f - I_e), Idot = ((I_f - I_e)/(m_f - m_e)) dm/dt m' = dm/dt, zeroed at every Runge-Kutta stage while the RAW stage mass is at or past the limit it is heading for; the state is clamped after every substep

⚠ MEASURED AGAINST R2026a at mtype = Simple Variable, ode4 at 1e-4 for 0.5 s, the tank emptied at dm/dt = -3 and filled at +3: all eleven outputs agree to 1.8e-15 through a crossing in either direction. Two findings out of the 24 candidates that were run:

  • everything downstream of the mass -- F/m and the interpolated inertia -- reads the CLAMPED

stage mass, not the raw one (the raw one was 5.4e-5 out);

  • the inertia's RATE is NOT zeroed at a limit. The mask's "Estimate Inertia Tensor" is wired to

the dm/dt PORT, so it keeps reporting a rate after the tank has stopped moving; zeroing it with the mass flow was out by 4.1 in q'. The dialog's inertia is not read at this mass type (measured) and is not offered.

Units, the pins, the I^-T solve and the ode4 equivalence are the fixed-mass block's. ⚠ V = 0, beta = +/-90 deg and gamma = +/-90 deg are singular, as in Simulink.

Sample results#

No stimulus produced a sampled output in this rig — Invalid input size at EOM 6DOF Simple Variable Mass Wind Angles block: ICore Blocks/Home/EOM 6DOF Simple Variable Mass Wind Angles. That is a fact about the single-block rig, not a verdict on the block: an offline batch fit, a block whose output only appears at onSolverFinish, or one that needs a driven environment cannot be exercised alone.

Category unsampled · sample time 0.1 · 60 steps · commit ae1a5a4f23bf9080195613e8ad1f6128ae5da42d · produced by docsSample --out <folder> --blocks Turbofan_Engine_System EOM_6DOF_Wind_Angles EOM_6DOF_Custom_Variable_Mass_Wind_Angles EOM_6DOF_Simple_Variable_Mass_Wind_Angles Surface_Fit Smoothing_Spline Thin_Plate_Spline LPC_To_LSF_LSP --steps 60

Sample data: docs/generated/samples/Robotics__Equations_Of_Motion__EOM_6DOF_Simple_Variable_Mass_Wind_Angles.json