write_mesh Module
digraph inheritance827dac02b1 {
bgcolor=transparent;
rankdir=LR;
size="";
"pyNastran.bdf.bdf_interface.write_mesh.Writer" [URL="#pyNastran.bdf.bdf_interface.write_mesh.Writer",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"];
}
- class pyNastran.bdf.bdf_interface.write_mesh.Writer(model: BDF)[source]
Bases:
object- write_aero(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the aero cards
- write_aero_control(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the aero control surface cards
- write_aero_control_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the aero control surface cards
- write_aero_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the aero cards
- write_bulk_data(bdf_file, size: int = 8, is_double: bool = False, interspersed: bool = False, enddata: bool | None = None, close: bool = True, coords_size: int | None = None, nodes_size: int | None = None, elements_size: int | None = None, loads_size: int | None = None, table_size: int | None = None, flfact_size: int | None = None, sort_cards: bool = True, is_long_ids: bool = False, is_csv: bool = False) None[source]
Writes the BDF.
- Parameters:
- bdf_filevaries
file - a file object StringIO() - a StringIO object
- sizeint; {8, 16}
the field size
- is_doublebool; default=False
False : small field True : large field
- interspersedbool; default=True
Writes a bdf with properties & elements interspersed like how Patran writes the bdf. This takes slightly longer than if interspersed=False, but makes it much easier to compare to a Patran-formatted bdf and is more clear.
- enddatabool; default=None
bool - enable/disable writing ENDDATA None - depends on input BDF
- sort_cardsbool; default=True
sort the nodes, elements, … to make finding things easier
- closebool; default=True
should the output file be closed
- .. note:: is_long_ids is only needed if you have ids longer
than 8 characters. It’s an internal parameter, but if you’re calling the new sub-function, you might need it. Chances are you won’t.
- write_common(bdf_file: TextFile, size: int = 8, coords_size: int = 8, table_size: int = 8, flfact_size: int = 8, is_double: bool = False, is_csv: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Write the common outputs so none get missed…
- Parameters:
- bdf_filefile
the file object
- sizeint; default=8
the field width
- is_doublebool; default=False
is this double precision
- coords_size: int; default=8
takes priority over size
- table_size: int; default=8
takes priority over size
- flfact_size: int; default=8
takes priority over size
- write_common_file(bdf_files: TextFile, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Write the common outputs so none get missed…
- Parameters:
- bdf_filefile
the file object
- sizeint (default=8)
the field width
- is_doublebool (default=False)
is this double precision
- write_constraints(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the constraint cards sorted by ID
- write_constraints_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the constraint cards sorted by ID
- write_contact(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the contact cards sorted by ID
- write_contact_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the contact cards sorted by ID
- write_coords(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None, breakout_coords: bool = False) None[source]
Writes the coordinate cards in a sorted order
- write_coords_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the coordinate cards in a sorted order
- write_dloads(bdf_file: TextFile, size: int = 8, is_double: bool = False, is_csv: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the dload cards sorted by ID
- write_dloads_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the dload cards sorted by ID
- write_dmigs(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the DMIG cards
- Parameters:
- sizeint
large field (16) or small field (8)
- write_dmigs_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the DMIG cards
- Parameters:
- sizeint
large field (16) or small field (8)
- write_dynamic(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the dynamic cards sorted by ID
- write_dynamic_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the dynamic cards sorted by ID
- write_elements(bdf_file: TextIO, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the elements in a sorted order
- write_elements_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the elements in a sorted order
- write_elements_interspersed(bdf_file: TextIO, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the elements and properties in and interspersed order
- write_flutter(bdf_file: TextFile, size: int = 8, flfact_size: int = 8, is_double: bool = False, sort_cards: bool = True, write_aero_in_flutter: bool = True, is_long_ids: bool | None = None) None[source]
Writes the flutter cards
- write_flutter_file(bdf_files: Any, size: int = 8, is_double: bool = False, write_aero_in_flutter: bool = True, is_long_ids: bool | None = None) None[source]
Writes the flutter cards
- write_grids(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None, write_as_cid0: bool = False, is_csv: bool = False) None[source]
Writes the GRID-type cards
- write_grids_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the GRID-type cards
- write_gust(bdf_file: TextFile, size: int = 8, is_double: bool = False, write_aero_in_gust: bool = True, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the gust cards
- write_gust_file(bdf_files: Any, size: int = 8, is_double: bool = False, write_aero_in_gust: bool = True, is_long_ids: bool | None = None) None[source]
Writes the gust cards
- write_header(bdf_file: TextIO, encoding: str, write_header: bool = True) None[source]
Writes the executive and case control decks.
- write_loads(bdf_file: TextFile, size: int = 8, is_double: bool = False, is_csv: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the load cards sorted by ID
- write_loads_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the load cards sorted by ID
- write_masses(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the mass cards sorted by ID
- write_masses_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the mass cards sorted by ID
- write_matcids(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the MATCID cards in a sorted order
- write_materials(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the materials in a sorted order
- write_materials_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the materials in a sorted order
- write_nodes(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None, is_csv: bool = False) None[source]
Writes the NODE-type cards
- write_nodes_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the NODE-type cards
- write_nsm(bdf_file: TextIO, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the nsm in a sorted order
- write_nsm_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the nsm in a sorted order
- write_optimization(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the optimization cards sorted by ID
- write_optimization_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the optimization cards sorted by ID
- write_parametric(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the optimization cards sorted by ID
- write_params(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the PARAM cards
- write_params_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the PARAM cards
- write_properties(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the properties in a sorted order
- write_properties_by_element_type(bdf_file: TextFile, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the properties in a sorted order by property type grouping
TODO: Missing some property types.
- write_properties_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the properties in a sorted order
- write_rejects(bdf_file: TextFile, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the rejected (processed) cards and the rejected unprocessed cardlines
- write_rejects_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the rejected (processed) cards and the rejected unprocessed cardlines
- write_rigid_elements(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None, is_csv: bool = False) None[source]
Writes the rigid elements in a sorted order
- write_rigid_elements_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the rigid elements in a sorted order
- write_sets(bdf_file: TextFile, size: int = 8, is_double: bool = False, is_csv: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the SETx cards sorted by ID
- write_sets_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the SETx cards sorted by ID
- write_static_aero(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the static aero cards
- write_static_aero_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the static aero cards
- write_superelements(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the Superelement cards
- Parameters:
- sizeint
large field (16) or small field (8)
- write_superelements_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the Superelement cards
- Parameters:
- sizeint
large field (16) or small field (8)
- write_tables(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the TABLEx cards sorted by ID
- write_tables_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the TABLEx cards sorted by ID
- write_thermal(bdf_file: TextFile, size: int = 8, is_double: bool = False, sort_cards: bool = True, is_long_ids: bool | None = None) None[source]
Writes the thermal cards
- write_thermal_file(bdf_files: Any, size: int = 8, is_double: bool = False, is_long_ids: bool | None = None) None[source]
Writes the thermal cards
- pyNastran.bdf.bdf_interface.write_mesh.delete_optimization_data(model: BDF) tuple[list[Any], list[Any], list[DESVAR]][source]
removes optimization referenced data (that will be in the PCH file)