🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::BlockMass类 参考

#include <BlockMass.hpp>

+ 类 ast::BlockMass 继承关系图:

Public 成员函数

 BlockMass (double mass)
 
errc_t run (const SimTime &simTime) final
 
- Public 成员函数 继承自 ast::BlockDerivative
 ~BlockDerivative () override=default
 
const std::vector< DataPort > & getDerivativePorts () const
 
std::vector< DataPort > & getDerivativePorts ()
 
- Public 成员函数 继承自 ast::FuncBlock
const std::vector< DataPort > & getInputPorts () const
 
std::vector< DataPort > & getInputPorts ()
 
const std::vector< DataPort > & getOutputPorts () const
 
std::vector< DataPort > & getOutputPorts ()
 
size_t getNumInputPorts () const
 
size_t getNumOutputPorts () const
 
DataPortgetInputPort (StringView portName)
 
DataPortgetOutputPort (StringView portName)
 
DataPortgetInputPort (size_t portIndex)
 
DataPortgetOutputPort (size_t portIndex)
 
DataPort::EValueType getInputPortDataType (size_t portIndex)
 
DataPort::EValueType getOutputPortDataType (size_t portIndex)
 
void * getInputPortSignal (size_t portIndex)
 
void * getOutputPortSignal (size_t portIndex)
 
double * getInputPortRealSignal (size_t portIndex)
 
double * getOutputPortRealSignal (size_t portIndex)
 
int getInputPortWidth (size_t portIndex)
 
int getOutputPortWidth (size_t portIndex)
 

Protected 属性

double * massPtr_ {&mass_}
 
double mass_ {}
 
- Protected 属性 继承自 ast::BlockDerivative
std::vector< DataPortderivativePorts_
 
- Protected 属性 继承自 ast::FuncBlock
std::vector< DataPortinputPorts_
 
std::vector< DataPortoutputPorts_
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 ast::FuncBlock
static errc_t connect (FuncBlock *src, StringView srcPortName, FuncBlock *dst, StringView dstPortName)
 
static errc_t connect (FuncBlock *src, size_t srcPortIndex, FuncBlock *dst, size_t dstPortIndex)
 

详细描述

质量函数块

提供固定的航天器质量值,通过输出端口供其他力模型块(BlockDrag、BlockSRP)使用。

当前为恒定质量模型,未来可扩展为变质量模型(考虑燃料消耗)。

输出端口:

  • "Mass":航天器质量(标量)
注解
run() 为空操作,质量值在构造时固定

成员函数说明

◆ run()

errc_t ast::BlockMass::run ( const SimTime & simTime)
inlinefinalvirtual

计算函数块

参数
simTime仿真时间
返回
错误码

实现了 ast::FuncBlock.


该类的文档由以下文件生成: