Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Nov 6, 2024
1 parent e5e9476 commit 3f760e5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion pyNastran/dev/bdf_vectorized3/alt_actor_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ def create_plotels(gui: MainWindow,
color = nastran_settings.plotel_color
name = 'plotel'
gui.create_alternate_vtk_grid(
name, color=color, linewidth=2, opacity=0.8,
name, color=color, line_width=2, opacity=0.8,
representation='point', is_visible=False, is_pickable=False)

ugrid = gui.alt_grids[name]
Expand Down
54 changes: 27 additions & 27 deletions pyNastran/dev/bdf_vectorized3/bdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import traceback

from typing import (
Sequence, Optional, Any, TYPE_CHECKING)
Sequence, Callable, Optional, Any, TYPE_CHECKING)
from pickle import load, dump, dumps # type: ignore

import numpy as np # type: ignore
Expand Down Expand Up @@ -2683,18 +2683,18 @@ def add_card(cls, card, comment=''):

# mpcs
'MPC': partial(self._prepare_card, self.mpc),
'MPCADD' : partial(self._prepare_card, self.mpcadd),
'MPCADD': partial(self._prepare_card, self.mpcadd),

'SPC': partial(self._prepare_card, self.spc),
'SPC1': partial(self._prepare_card, self.spc1),
'SPCADD' : partial(self._prepare_card, self.spcadd),
'SPCOFF' : partial(self._prepare_card_by_method, self.spcoff.add_set_card),
'SPCOFF1' : partial(self._prepare_card_by_method, self.spcoff.add_set1_card),
'BNDFIX' : partial(self._prepare_card_by_method, self.bndfix.add_set_card),
'BNDFIX1' : partial(self._prepare_card_by_method, self.bndfix.add_set1_card),
'BNDFREE' : partial(self._prepare_card_by_method, self.bndfree.add_set_card),
'BNDFREE1' : partial(self._prepare_card_by_method, self.bndfree.add_set1_card),
'BNDGRID' : partial(self._prepare_card_by_method, self.bndgrid.add_set1_card),
'SPCADD': partial(self._prepare_card, self.spcadd),
'SPCOFF': partial(self._prepare_card_by_method, self.spcoff.add_set_card),
'SPCOFF1': partial(self._prepare_card_by_method, self.spcoff.add_set1_card),
'BNDFIX': partial(self._prepare_card_by_method, self.bndfix.add_set_card),
'BNDFIX1': partial(self._prepare_card_by_method, self.bndfix.add_set1_card),
'BNDFREE': partial(self._prepare_card_by_method, self.bndfree.add_set_card),
'BNDFREE1': partial(self._prepare_card_by_method, self.bndfree.add_set1_card),
'BNDGRID': partial(self._prepare_card_by_method, self.bndgrid.add_set1_card),

#'BNDFIX' : (Crash, None),
#'BNDFIX1' : (Crash, None),
Expand All @@ -2703,32 +2703,32 @@ def add_card(cls, card, comment=''):
'ROTORG' : partial(self._prepare_card_by_method, self.rotorg.add_card),

# nx-contact
'BSURF' : partial(self._prepare_card_by_method, self.bsurf.add_card), # shell contact by element id
'BSURFS' : partial(self._prepare_card_by_method, self.bsurfs.add_card), # solid contact by element id
'BCPROP' : partial(self._prepare_card_by_method, self.bcprop.add_card), # shell contact by property id
'BCPROPS' : partial(self._prepare_card_by_method, self.bcprops.add_card), # solid contact by property id
'BSURF': partial(self._prepare_card_by_method, self.bsurf.add_card), # shell contact by element id
'BSURFS': partial(self._prepare_card_by_method, self.bsurfs.add_card), # solid contact by element id
'BCPROP': partial(self._prepare_card_by_method, self.bcprop.add_card), # shell contact by property id
'BCPROPS': partial(self._prepare_card_by_method, self.bcprops.add_card), # solid contact by property id
'BOUTPUT': partial(self._prepare_card_by_method, self.boutput.add_card), # output for sideline contact

# nx glue contact
'BGSET' : partial(self._prepare_card_by_method, self.bgset.add_card), # glue set
'BGADD' : partial(self._prepare_card_by_method, self.bgadd.add_card), # glue add set
'BEDGE' : partial(self._prepare_card, self.bedge),
'BGSET': partial(self._prepare_card_by_method, self.bgset.add_card), # glue set
'BGADD': partial(self._prepare_card_by_method, self.bgadd.add_card), # glue add set
'BEDGE': partial(self._prepare_card, self.bedge),

# nx general contact
'BCTSET' : partial(self._prepare_card_by_method, self.bctset.add_card),
'BCTADD' : partial(self._prepare_card_by_method, self.bctadd.add_card),
'BCTSET': partial(self._prepare_card_by_method, self.bctset.add_card),
'BCTADD': partial(self._prepare_card_by_method, self.bctadd.add_card),

# msc contact
'BCBODY' : partial(self._prepare_card, self.bcbody),
'BCBODY1' : partial(self._prepare_card, self.bcbody1),
'BCBODY': partial(self._prepare_card, self.bcbody),
'BCBODY1': partial(self._prepare_card, self.bcbody1),

# ??? contact
#'BCPARA' : (BCPARA, add_methods._add_bcpara_object),
'BCONP' : partial(self._prepare_card, self.bconp),
'BFRIC' : partial(self._prepare_card, self.bfric),
'BLSEG' : partial(self._prepare_card, self.blseg),
'BCRPARA' : partial(self._prepare_card, self.bcrpara),
'BCTPARA' : (BCTPARA, add_methods._add_bctpara_object),
#'BCPARA': (BCPARA, add_methods._add_bcpara_object),
'BCONP': partial(self._prepare_card, self.bconp),
'BFRIC': partial(self._prepare_card, self.bfric),
'BLSEG': partial(self._prepare_card, self.blseg),
'BCRPARA': partial(self._prepare_card, self.bcrpara),
'BCTPARA': (BCTPARA, add_methods._add_bctpara_object),

# cohesive zone
'CIFQDX': (RuntimeCrash, None),
Expand Down

0 comments on commit 3f760e5

Please sign in to comment.