CADToSimParameters:

Path: CubeSat/Simulation

% Convert CAD model to CubeSat arrays.
 The resulting data structure can be used by the dynamical model.

 If the CAD model has 'solar panel' components they will be converted to
 the power model. The mapping is:
   power.electricalConversionEfficiency to solarCellEff
   power.powerOn                        to consumption
   
--------------------------------------------------------------------------
   Form:
   d = CADToSimParameters( fileName, batteryCapacity, powerConversionEff )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   fileName            (1,:)   CAD mat file name
   batteryCapacity     (1,1)   Battery capacity (J)
   powerConversionEff	(1,1)   Power conversion efficiency

   -------
   Outputs
   -------
   d          (.)    Data structure including
                       .mass       (1,1)  Total CubeSat Mass (kg)
                       .inertia    (3,3)  Inertia tensor matrix
                       .surfData    (.)   Surface properties
                         .cM              (3,1)  Center of mass (m)
                         .area            (1,n)  Area for each of n faces (m^2)
                         .nFace           (3,n)  Unit normal for each face
                         .r               (3,n)  Position of centroid of each
                                               face (m) 
                         .cD              (1)    Coefficient of drag
                         .sigma           (3,n)  Optical coefficients
                       .power      (.)    Power data structure
                         .solarCellNormal (3,N) Normal vector of each solar cell
                         .solarCellArea   (1,N) Area of each cell (m^2)
                         .solarCellEff    (1,N) Efficiency of each cell
                         .consumption     (1,1) Total power consumption (W)
                         .batteryCapacity (1,1) Battery capacity (J)
                         .effPowerConversion (1,1) Conversion efficiency

--------------------------------------------------------------------------
 See also: RHSCubeSat, SolarCellPower
--------------------------------------------------------------------------

Children:

CubeSat: Simulation/CubeSatAero
CubeSat: Simulation/RHSCubeSat
Math: Linear/DupVect

Back to the CubeSat Module page