panair Package

agps Module

Inheritance diagram of pyNastran.converters.panair.agps
defines:
  • AGPS(log=None, debug=False)

class pyNastran.converters.panair.agps.AGPS(log=None, debug=False)[source]

Bases: object

Interface to the AGPS file

Initializes the AGPS object

Parameters
debugbool/None; default=True
used to set the logger if no logger is passed in

True: logs debug/info/error messages False: logs info/error messages None: logs error messages

loglogging module object / None

if log is set, debug is ignored and uses the settings the logging object has

read_agps(infilename)[source]

Loads an AGPS file

panair_grid Module

Inheritance diagram of pyNastran.converters.panair.panair_grid
defines:
  • PanairGrid(log=None, debug=False)

class pyNastran.converters.panair.panair_grid.PanairGrid(log=None, debug=True)[source]

Bases: object

defines the PanairGrid class

Initializes the PanairGrid object

Parameters
debugbool/None; default=True
used to set the logger if no logger is passed in

True: logs debug/info/error messages False: logs info/error messages None: logs error messages

loglogging module object / None

if log is set, debug is ignored and uses the settings the logging object has

add_patch(network_name, kt, cp_norm, xyz)[source]
add_wake_patch(network_name, options, xyz)[source]
find_patch_by_name(network_name)[source]
get_patch(patch_id)[source]
get_points_elements_regions(get_wakes=False)[source]
group_sections(sections, section_names)[source]
model_type = 'panair'
property npanels
property npatches
print_abutments()[source]
print_file()[source]
print_grid_summary()[source]
print_options()[source]
print_out_header()[source]
read_panair(infilename)[source]

reads a panair input file

set_alphas(alphas, alpha_compressibility)[source]
set_betas(betas, beta_compressibility)[source]
set_mach(mach)[source]
split_points(lines, nfull_lines, npartial_lines)[source]

reads the points

update_cases()[source]

reduces confusion by only printing cases that will run

write_alphas()[source]
write_betas()[source]
write_cases()[source]
write_data_check()[source]
write_end()[source]
write_liberalized_abutments()[source]
write_mach()[source]
write_panair(out_filename)[source]

writes the panair file

write_plot3d(p3dname, is_binary=False, is_iblank=False)[source]
write_printout()[source]
write_reference_quantities()[source]
write_title()[source]
pyNastran.converters.panair.panair_grid.remove_comments(lines, log)[source]

Comment lines in Panair begin with an equal (=) sign. The file is easier to parse if we remove them.

pyNastran.converters.panair.panair_grid.split_into_sections(lines)[source]

panair_grid_patch Module

Inheritance diagram of pyNastran.converters.panair.panair_grid_patch
class pyNastran.converters.panair.panair_grid_patch.PanairPatch(inetwork, network_name, kt, cp_norm, xyz, log)[source]

Bases: object

Used for physical surfaces

fix_point(point_in)[source]
get_edge(edge_number)[source]

gets all the points associated with a given edge

        edge1
      0  1  2   -> i (row)
edge4 3  4  5
      6  7  8  edge2
      9  10 11
    |   edge3
    j
get_edges()[source]
get_elements(unused_ipoint)[source]
get_header()[source]
get_ipoint(ipoint)[source]
get_point(row, col)[source]
get_points()[source]
is_wake()[source]
property npanels
property npoints
process()[source]
quick_summary(cum_pts, cum_pn)[source]
write_as_plot3d()[source]
write_plot3d(f, dim)[source]

..todo: is the normal defined correctly? ..todo: will this load into tecplot

write_point(point1)[source]
write_points(point1, point2)[source]
class pyNastran.converters.panair.panair_grid_patch.PanairWakePatch(inetwork, network_name, options, xyz, log)[source]

Bases: pyNastran.converters.panair.panair_grid_patch.PanairPatch

Used for explicit wakes

is_wake()[source]
pyNastran.converters.panair.panair_grid_patch.elements_from_quad(nx, ny)[source]

creates quad elements for the gui

pyNastran.converters.panair.panair_grid_patch.print_float(value)[source]

int represented as a short float

to_p3d Module

pyNastran.converters.panair.to_p3d.run()[source]