DSAeroToolsSim.Models.Parasite package
DSAeroToolsSim.Models.Parasite.componentParasite module
Component-wise Parasite Drag Model
DSAeroToolsSim
REQUIRED INPUT STRUCTURE |
|
---|---|
Vehicle.GeometryModel.Sref |
|
Vehicle.GeometryModel.surfaces |
Defined automatically by GeometryModel |
Vehicle.ParasiteModel.cfType |
Optional, defaults to “prandtlTurb” |
Vehicle.ParasiteModel.formFactorType |
Optional, defaults to “hoernerWingLike” |
Vehicle.ParasiteModel.components |
Optional, list of <Component> |
List of additional drag-generating components |
|
Must have “length” or “mac” + “Swet” defined |
|
Vehicle.State.Trajectory.V[-1] |
Latest velocity must have been already appended |
Vehicle.State.Atmosphere.rho[-1] |
Latest density must have been already appended |
Vehicle.State.Atmosphere.mu[-1] |
Latest dynamic viscosity must have been appended |
- DSAeroToolsSim.Models.Parasite.componentParasite.JSONify(Vehicle)
JSONification of ParasiteModel
Called by Vehicle’s JSONify method. This function creates a JSON-compatible dictionary of the ParasiteModel attributes.
The function does not return the dictionary, but rather stores it in the Vehicle’s ParasiteModel.JSON attribute.
- Parameters:
Vehicle (Vehicle) – Vehicle whose ParasiteModel is being JSONified
- DSAeroToolsSim.Models.Parasite.componentParasite.componentParasite(Vehicle)
Parasitic Drag Coefficient Buildup
Appends ‘CD0’ to Vehicle.State.Aero.CD0.
User can specify what boundary layer friction coefficient and form factor correction to use.
- By default, the model uses:
Friction Coefficient: Prandtl’s Turbulent Flow Approximation
Form Factor: Hoerner’s Wing-like correction
Additional drag-generating components can be defined in the Vehicle.ParasiteModel.components list.
- Each additional component can specify its own friction coefficient and form factor correction with:
component.cfType
component.formFactorType
- ### Note: componentParasite requires the following variables to have already been appended to the state:
Vehicle.State.Trajectory.V
Vehicle.State.Atmosphere.rho
Vehicle.State.Atmosphere.mu
### Note: ParasiteDrag model does NOT return CD0. It is appended to the state for later use.
- Parameters:
Vehicle (Vehicle) – Vehicle from which the drag is being called for. Automatically passed when a call to the Wrapper is made.
DSAeroToolsSim.Models.Parasite.constantParasite module
Constant Parasite Drag Model
DSAeroToolsSim
REQUIRED INPUT STRUCTURE |
|
---|---|
Vehicle.ParasiteModel.CD0 |
- DSAeroToolsSim.Models.Parasite.constantParasite.JSONify(Vehicle)
JSONification of ParasiteModel
Called by Vehicle’s JSONify method. This function creates a JSON-compatible dictionary of the ParasiteModel attributes.
The function does not return the dictionary, but rather stores it in the Vehicle’s ParasiteModel.JSON attribute.
- Parameters:
Vehicle (Vehicle) – Vehicle whose ParasiteModel is being JSONified
- DSAeroToolsSim.Models.Parasite.constantParasite.constantParasite(Vehicle, *args)
Constant Parasite Drag Model
Appends ‘CD0’ to Vehicle.State.Aero.CD0.
Simplest model: constant CD0.
- Parameters:
Vehicle (Vehicle) – Vehicle from which the drag is being called for. Automatically passed when a call to the Wrapper is made.