LaWGS Package

wgs_reader Module

digraph inheritance9009e9503a { bgcolor=transparent; rankdir=LR; size=""; "pyNastran.converters.lawgs.wgs_reader.LaWGS" [URL="#pyNastran.converters.lawgs.wgs_reader.LaWGS",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="defines a reader for the LaWGS legacy file format"]; "pyNastran.converters.lawgs.wgs_reader.Panel" [URL="#pyNastran.converters.lawgs.wgs_reader.Panel",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Parameters"]; }
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:
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

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

reads an lawgs file

write_as_plot3d(p3dname)[source]

writes a plot3d file

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

Bases: object

Parameters:
rotatefloat

rotates the patch

translatefloat

translates the patch

scalefloat

scales the patch

build_rotation_matrix(r)[source]

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

get_element(pointI, j, i)[source]
get_elements(pointI)[source]
get_points()[source]
update_points()[source]
write_as_plot3d(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