FFD+Wing-Only+GCS+Script

Click here to return to top level Code Management page.

code gd = Grid gd.read_grid(show=False) gd.read_connectivity(show=False) gd.read_map(show=False) gd.read_patch(show=False) save(gd, fn='gd.p') ax = opti.axial.make_axial_from_wing(wi, 'TE', 2, 1, (10, 5, 2), (3, 3, 1), [(0.02,0.02), (0,0.08), (0.027,0.027)]) ax.snap_ffd axials=[ax] for ax in axials: ax.ffd.embed(*gd.ptch) joints = opti.axial.make_joints_from_axials(axials) opti.axial.set_module_variables(axials, joints) opti.axial.write_axial_connectivity ffds = [ax.ffd for ax in axials] gd.write_patch(ffds)
 * 1) The commands in the script below are executed in GENAIR
 * 2) to create the Geometry Control System files needed
 * 3) for a wing-only FFD optimization with Jetstream:
 * 4) - axial.con, axial.b, ffd.b, patch.ffd.con
 * 5) A one-segment, linear axial curve is created.
 * 6) The axial curve is located at the wing trailing-edge.
 * 7) The FFD volume has five spanwise sections, each with
 * 8) 10 control pts for top half of section and 10 control
 * 9) pts for bottom half of section.
 * 10) Verify that the FFD volume is just large enough to
 * 11) envelope the entire wing surface and all patches.
 * 12) The size of the FFD volume can be adjusted by modifiying
 * 13) the offset values in the 'opti.axial.make_axial_from_wing' command.
 * 14) Prerequisites:
 * 15) 1) Must have grid files in your working directory:
 * 16) - grid.g, grid.con, grid.map, patch.con
 * 17) 2) Must have a wing object loaded in GENAIR named 'wi'
 * 18) load(fn='wing.p')
 * 19) wi=_[0]
 * 1) 1) Must have grid files in your working directory:
 * 2) - grid.g, grid.con, grid.map, patch.con
 * 3) 2) Must have a wing object loaded in GENAIR named 'wi'
 * 4) load(fn='wing.p')
 * 5) wi=_[0]
 * 1) load(fn='wing.p')
 * 2) wi=_[0]
 * 1) draw(wi,ax)
 * 1) draw(*(gd.ptch+axials+joints))

code