test Package

all_tests Module

bdf_test Module

pyNastran.bdf.test.bdf_test.get_file_names_from_file_number(fds)[source]
pyNastran.bdf.test.bdf_test.get_open_fds()[source]
pyNastran.bdf.test.bdf_test.main()[source]
pyNastran.bdf.test.bdf_test.remove_marc_files(files)[source]

bdf_unit_tests Module

Inheritance diagram of pyNastran.bdf.test.bdf_unit_tests

class pyNastran.bdf.test.bdf_unit_tests.BaseCard_Test(methodName='runTest')[source]

Bases: pyNastran.bdf.test.bdf_unit_tests.Tester

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_base_card_01_collapse_thru()[source]

tests collapse_thru method used by SETx cards

class pyNastran.bdf.test.bdf_unit_tests.TestBDF(methodName='runTest')[source]

Bases: pyNastran.bdf.test.bdf_unit_tests.Tester

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

_compare_mass_cg_I(fem1, reference_point=None, sym_axis=None)[source]
test_bdf_01()[source]
test_bdf_02()[source]
test_bdf_03()[source]
test_bdf_04()[source]
test_bdf_05()[source]
test_bdf_06()[source]
class pyNastran.bdf.test.bdf_unit_tests.Tester(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

run_all_files_in_folder(folder, xref=False, cid=None, debug=False)[source]
run_bdf(folder, bdfFilename, xref=False, cid=None, meshForm=u'combined', debug=False, dynamic_vars={})[source]

compare_card_content Module

pyNastran.bdf.test.compare_card_content.assert_fields(card1, card2)[source]
pyNastran.bdf.test.compare_card_content.compare_aero_content(fem1, fem2)[source]
pyNastran.bdf.test.compare_card_content.compare_card_content(fem1, fem2)[source]
pyNastran.bdf.test.compare_card_content.compare_matrices(fem1, fem2)[source]
pyNastran.bdf.test.compare_card_content.compare_optimization_content(fem1, fem2)[source]
pyNastran.bdf.test.compare_card_content.compare_thermal_content(fem1, fem2)[source]

get_uniq_fields Module

Inheritance diagram of pyNastran.bdf.test.get_uniq_fields

class pyNastran.bdf.test.get_uniq_fields.BDFuniqCard(log, fingset)[source]

Bases: pyNastran.bdf.bdf.BDF

Attributes

Methods

add_card(card_lines, card_name, comment='')[source]
cross_reference(xref)[source]
is_reject(cardName)[source]

Can the card be read

write_bdf()[source]

run_nastran_double_precision Module

Inheritance diagram of pyNastran.bdf.test.run_nastran_double_precision

pyNastran.bdf.test.run_nastran_double_precision.cmd_line()[source]
pyNastran.bdf.test.run_nastran_double_precision.main(bdf_name, run_first_nastran=True, debug=True)[source]
class pyNastran.bdf.test.run_nastran_double_precision.remove_prints[source]

Bases: object

Methods

flush()[source]
write(msg)[source]
pyNastran.bdf.test.run_nastran_double_precision.update_bdf(model, post=-1)[source]

test_bdf Module

pyNastran.bdf.test.test_bdf.compare(fem1, fem2, xref=True, check=True, print_stats=True)[source]
pyNastran.bdf.test.test_bdf.compare_card_count(fem1, fem2, print_stats=False)[source]
pyNastran.bdf.test.test_bdf.compare_params(fem1, fem2)[source]
pyNastran.bdf.test.test_bdf.compute(cards1, cards2)[source]
pyNastran.bdf.test.test_bdf.compute_ints(cards1, cards2, fem1)[source]
pyNastran.bdf.test.test_bdf.divide(value1, value2)[source]
pyNastran.bdf.test.test_bdf.get_element_stats(fem1, fem2)[source]

verifies that the various element methods work

pyNastran.bdf.test.test_bdf.get_matrix_stats(fem1, fem2)[source]
pyNastran.bdf.test.test_bdf.main()[source]
pyNastran.bdf.test.test_bdf.memory_usage_psutil()[source]
pyNastran.bdf.test.test_bdf.print_points(fem1, fem2)[source]
pyNastran.bdf.test.test_bdf.run_all_files_in_folder(folder, debug=False, xref=True, check=True, punch=False, cid=None, nastran=u'')[source]
pyNastran.bdf.test.test_bdf.run_bdf(folder, bdfFilename, debug=False, xref=True, check=True, punch=False, cid=None, meshForm=u'combined', isFolder=False, print_stats=False, sum_load=False, size=8, is_double=False, reject=False, nastran=u'', dynamic_vars=None)[source]
pyNastran.bdf.test.test_bdf.run_fem1(fem1, bdfModel, meshForm, xref, punch, sum_load, size, is_double, cid)[source]
pyNastran.bdf.test.test_bdf.run_fem2(bdfModel, outModel, xref, punch, sum_load, size, is_double, reject, debug=False, log=None)[source]
pyNastran.bdf.test.test_bdf.run_lots_of_files(filenames, folder=u'', debug=False, xref=True, check=True, punch=False, cid=None, nastran=u'')[source]

test_case_control_deck Module

Inheritance diagram of pyNastran.bdf.test.test_case_control_deck

class pyNastran.bdf.test.test_case_control_deck.CaseControlTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_case_control_01()[source]
test_case_control_02()[source]
test_case_control_03()[source]
test_case_control_04()[source]
test_case_control_05()[source]

test_field_writer Module

Inheritance diagram of pyNastran.bdf.test.test_field_writer

class pyNastran.bdf.test.test_field_writer.Testfield_writer_8(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_2()[source]
test_card_double()[source]
test_field_defaults()[source]
test_field_vals_8()[source]
test_float_16()[source]
test_float_8()[source]
test_floats_negative_8()[source]
test_floats_positive_8()[source]
test_ints_16()[source]
test_ints_8()[source]
test_print_card_8()[source]
test_same()[source]
test_scientific_16()[source]
test_strings_16()[source]
test_strings_8()[source]
pyNastran.bdf.test.test_field_writer.compare(valueIn)[source]

test_openmdao Module

Inheritance diagram of pyNastran.bdf.test.test_openmdao

class pyNastran.bdf.test.test_openmdao.BDFUpdater[source]

Bases: pyNastran.bdf.bdf.BDF

Attributes

Methods

update_card(Type, iType, ifield, value)[source]
class pyNastran.bdf.test.test_openmdao.TestOpenMDAO(methodName='runTest')[source]

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

Methods

test_openmaod_bad_3()[source]
test_openmdao_bad_1()[source]
test_openmdao_bad_2()[source]
test_openmdao_good_1()[source]