Path: SC/Disturbances
% Add a surface to the data structure.
--------------------------------------------------------------------------
Form:
x = AddSurf( id, name, area, cP, normal, rhoAbsp, rhoSpec, rhoDiff, x )
--------------------------------------------------------------------------
------
Inputs
------
id (1,1) Identification number
area (1,1) Surface area
normal (3,1) Surface outward unit normal
rhoAbsp (1,1) Absorption coefficient
rhoSpec (1,1) Specular reflection coefficient
rhoDiff (1,1) Diffuse reflection coefficient
x (:,:) Element data structure
x.id (1,1) Surface id number
x.name (1,:) Surface name
x.area (1,1) Surface area
x.cP (3,1) Center-of-pressure
x.normal (3,1) Outward normal
x.rhoAbsp (1,1) Absorption coefficient
x.rhoSpec (1,1) Specular reflection coefficient
x.rhoDiff (1,1) Diffuse reflection coefficient
-------
Outputs
-------
x (:,:) Updated data structure (with individual forces
and torques)
--------------------------------------------------------------------------
Math: Linear/Unit
Back to the SC Module page