LaWGS Package

wgs_reader Module

Inheritance diagram of pyNastran.converters.lawgs.wgs_reader
defines:
  • Panel()
  • read_lawgs(wgs_filename, log=None, debug=False)
  • LaWGS(self, log=None, debug=False)
class pyNastran.converters.lawgs.wgs_reader.LaWGS(log=None, debug=False)[source]

Bases: object

defines a reader for the LaWGS legacy file format

Initializes the LaWGS 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

get_points_elements(self)[source]
get_points_elements_regions(self)[source]
model_type = 'LaWGS'
read_lawgs(self, wgs_filename)[source]

reads an lawgs file

write_as_plot3d(self, p3dname)[source]

writes a plot3d file

class pyNastran.converters.lawgs.wgs_reader.Panel(key, header, lines, log)[source]

Bases: object

Parameters:
rotate : float

rotates the patch

translate : float

translates the patch

scale : float

scales the patch

build_rotation_matrix(self, r)[source]

Form the rotation matrix used for geometrical transformations Taken from NASA TM 85767 defining LaWGS.

get_element(self, pointI, j, i)[source]
get_elements(self, pointI)[source]
get_points(self)[source]
update_points(self)[source]
write_as_plot3d(self, p3d_file)[source]

writes a plot3d section

pyNastran.converters.lawgs.wgs_reader.read_lawgs(wgs_filename, log=None, debug=False)[source]

reads an lawgs file