User Tools

Site Tools


files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
files [2019/09/05 22:38]
cibin [csv] Add section on DegenGeom.csv
files [2019/09/05 23:02] (current)
cibin [csv] Add section on DegenGeom.m with Octave example
Line 234: Line 234:
  
 Background images can also be displayed when editing a fuselage cross section. ​ Finally, JPEG images can be used as textures applied to the surface of the model. Background images can also be displayed when editing a fuselage cross section. ​ Finally, JPEG images can be used as textures applied to the surface of the model.
 +
 +==== m ====
 +
 +== DegenGeom.m ==
 +
 +When DegenGeom is executed, it can produce a coordinate definitions file of degenerate geometries like the surface, plate, stick and point models as detailed [[http://​www.openvsp.org/​wiki/​lib/​exe/​fetch.php?​media=degen_geom.pdf|here]]. This file can be opened using [[https://​www.mathworks.com/​products/​matlab.html|Matlab]] or [[https://​www.gnu.org/​software/​octave/​|GNU Octave]] and may be used for discretization of geometries in several different physical applications such as Euler-Bernoulli beam theory and vortex lattice solvers. Panel and wing camber surface coordinates,​ panel areas, and similar information are available in a structure array data type named ''​degenGeom''​. This file contains the same information as DegenGeom.csv. ​
 +
 +An example of Unnamed_DegenGeom.m file executed in Octave is included below.
 +
 +<​file>​
 +octave:​1>​ Unnamed_DegenGeom
 +octave:​2>​ degenGeom
 +degenGeom =
 +
 +  1x2 struct array containing the fields:
 +
 +    type
 +    name
 +    geom_id
 +    surf_index
 +    main_surf_index
 +    sym_copy_index
 +    flip_normal
 +    transmat
 +    surf
 +    plate
 +    stick
 +    point
 +
 +octave:​3>​ size(degenGeom(1).surf.x) ​  % Size of array containing x-coordinates of surfaces in Component 1
 +ans =
 +
 +    6   33
 +</​file>​
  
 ==== msh ==== ==== msh ====
files.txt ยท Last modified: 2019/09/05 23:02 by cibin