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:
debug : bool/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

log : logging module object / None

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

read_agps(self, 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:
debug : bool/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

log : logging module object / None

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

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

reads a panair input file

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

reads the points

update_cases(self)[source]

reduces confusion by only printing cases that will run

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

writes the panair file

write_plot3d(self, p3dname, is_binary=False, is_iblank=False)[source]
write_printout(self)[source]
write_reference_quantities(self)[source]
write_title(self)[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(self, point_in)[source]
get_edge(self, 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(self)[source]
get_elements(self, unused_ipoint)[source]
get_header(self)[source]
get_ipoint(self, ipoint)[source]
get_point(self, row, col)[source]
get_points(self)[source]
is_wake(self)[source]
npanels
npoints
process(self)[source]
quick_summary(self, cum_pts, cum_pn)[source]
write_as_plot3d(self)[source]
write_plot3d(self, f, dim)[source]

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

write_point(self, point1)[source]
write_points(self, 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(self)[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