Immutable multi-surface aerodynamics, producing a single external-force batch. @ownership Copies geometry/polar values; stores no world/body or control-input pointers. @thread Build with immutable inputs on any thread; prepare on simulation owner outside callbacks. @reentrancy No callbacks, scripts or locks; failures never change bodies or partially apply surfaces. 更多...
#include <WingAssembly.h>
Public 成员函数 | |
| Result< ForceBatch > | prepare (World &world, PhysicsLink body, std::span< const double > deflections, ForceVector wind) const |
| Prepare planar surface forces; centers, local axes and wind must have z=0. | |
| Result< ForceBatch > | prepare (World3D &world, PhysicsLink body, std::span< const double > deflections, ForceVector wind) const |
| Prepare spatial wing forces, transforming local axes and points from the actual body pose. | |
静态 Public 成员函数 | |
| static Result< WingAssembly > | build (std::span< const WingSurface > surfaces) |
| Validate and copy local surface descriptions in deterministic input order. | |
详细描述
Immutable multi-surface aerodynamics, producing a single external-force batch. @ownership Copies geometry/polar values; stores no world/body or control-input pointers. @thread Build with immutable inputs on any thread; prepare on simulation owner outside callbacks. @reentrancy No callbacks, scripts or locks; failures never change bodies or partially apply surfaces.
Each surface samples actual body point velocity including omega cross r, minus uniform world wind. Controls rotate chord toward normal by the corresponding angle (radians), around the local span axis. Values are held for this prepared step; commit before moving bodies or changing controls/wind. This section model does not simulate wake interaction, downwash between surfaces, or CFD.
在文件 WingAssembly.h 第 23 行定义.
成员函数说明
◆ build()
|
static |
Validate and copy local surface descriptions in deterministic input order.
- 返回
- Owning assembly or InvalidArgument for invalid geometry/polar values. @cost Linear validation/storage per surface; build once and reuse for fixed steps.
在文件 WingAssembly.cpp 第 78 行定义.
引用了 eve::Result< T >::failure(), eve::Result< T >::success(), surfaces , 以及 eve::physics::ForceModels::wing().
◆ prepare() [1/2]
| Result< ForceBatch > eve::physics::WingAssembly::prepare | ( | World & | world, |
| PhysicsLink | body, | ||
| std::span< const double > | deflections, | ||
| ForceVector | wind | ||
| ) | const |
Prepare planar surface forces; centers, local axes and wind must have z=0.
- 参数
-
deflections One finite angle per surface, including zero for fixed wings.
- 返回
- Atomic force batch or invalid/stale/dimension/overflow error. @cost Linear surface sampling plus batch aggregation per fixed step.
在文件 WingAssembly.cpp 第 86 行定义.
引用了 body.
◆ prepare() [2/2]
| Result< ForceBatch > eve::physics::WingAssembly::prepare | ( | World3D & | world, |
| PhysicsLink | body, | ||
| std::span< const double > | deflections, | ||
| ForceVector | wind | ||
| ) | const |
Prepare spatial wing forces, transforming local axes and points from the actual body pose.
- 参数
-
deflections One finite angle per surface, including zero for fixed wings.
- 返回
- Atomic force batch or invalid/stale/dimension/overflow error. @cost Linear surface sampling plus batch aggregation per fixed step.
在文件 WingAssembly.cpp 第 90 行定义.
引用了 body.
该类的文档由以下文件生成:
- src/modules/physics/forces/WingAssembly.h
- src/modules/physics/forces/WingAssembly.cpp