split_cbars_by_pin_flag
Module¶
- defines:
- model, pin_flag_map = split_cbars_by_pin_flag(
- bdf_filename, pin_flags_filename=None, bdf_filename_out=None)
-
pyNastran.bdf.mesh_utils.split_cbars_by_pin_flag.
split_cbars_by_pin_flag
(bdf_filename, pin_flags_filename=None, bdf_filename_out=None, debug=False)[source]¶ Splits bar elements if they have a pin flag. That way you can each side of the element (A/B) a unique color based on the pin flag. This doesn’t split non-pin flagged bars.
Parameters: - bdf_filename : str; BDF
str : use the
read_bdf
method BDF : assume it’s a model- pin_flags_filename : str; default=None
the pin flag file to write this is optional as you may need to define your own map
- bdf_filename_out : str; default=None
write the updated deck
- 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
Returns: - model : BDF()
the BDF object
- pin_flag_map : dict[eid]
- eid : int
the element id
- pin_flag : int
the bar pin flag