abaqus Package

abaqus Module

digraph inheritanceb5b3528239 { bgcolor=transparent; rankdir=LR; size=""; "pyNastran.converters.abaqus.abaqus.Abaqus" [URL="#pyNastran.converters.abaqus.abaqus.Abaqus",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 the abaqus reader"]; }

Defines the Abaqus class

class pyNastran.converters.abaqus.abaqus.Abaqus(log: SimpleLogger | None = None, debug: str | bool | None = True)[source]

Bases: object

defines the abaqus reader

read_abaqus_inp(abaqus_inp_filename: str, encoding: str | None = None)[source]

reads an abaqus model

read_assembly(iline: int, line0: str, lines: list[str], word: str) tuple[int, str, Assembly][source]

reads an Assembly object

write(abaqus_filename_out, is_2d=False)[source]
pyNastran.converters.abaqus.abaqus.get_nodes_nnodes_nelements(model: Abaqus, stop_for_no_elements: bool = True)[source]

helper method

pyNastran.converters.abaqus.abaqus.main()[source]

tests a simple abaqus model

pyNastran.converters.abaqus.abaqus.read_abaqus(abaqus_inp_filename, encoding=None, log=None, debug=False)[source]

reads an abaqus model

abaqus_cards Module

digraph inheritance7ef3a26d89 { bgcolor=transparent; rankdir=LR; size=""; "pyNastran.converters.abaqus.abaqus_cards.Assembly" [URL="#pyNastran.converters.abaqus.abaqus_cards.Assembly",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"]; "pyNastran.converters.abaqus.abaqus_cards.BeamSection" [URL="#pyNastran.converters.abaqus.abaqus_cards.BeamSection",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"]; "pyNastran.converters.abaqus.abaqus_cards.Boundary" [URL="#pyNastran.converters.abaqus.abaqus_cards.Boundary",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"]; "pyNastran.converters.abaqus.abaqus_cards.Frequency" [URL="#pyNastran.converters.abaqus.abaqus_cards.Frequency",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"]; "pyNastran.converters.abaqus.abaqus_cards.Mass" [URL="#pyNastran.converters.abaqus.abaqus_cards.Mass",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"]; "pyNastran.converters.abaqus.abaqus_cards.Material" [URL="#pyNastran.converters.abaqus.abaqus_cards.Material",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="a Material object is a series of nodes & elements (of various types)"]; "pyNastran.converters.abaqus.abaqus_cards.Orientation" [URL="#pyNastran.converters.abaqus.abaqus_cards.Orientation",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"]; "pyNastran.converters.abaqus.abaqus_cards.Part" [URL="#pyNastran.converters.abaqus.abaqus_cards.Part",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="a Part object is a series of nodes & elements (of various types)"]; "pyNastran.converters.abaqus.abaqus_cards.ShellSection" [URL="#pyNastran.converters.abaqus.abaqus_cards.ShellSection",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="A ShellSection defines thickness and a material for a PSHELL/PCOMP"]; "pyNastran.converters.abaqus.abaqus_cards.SolidSection" [URL="#pyNastran.converters.abaqus.abaqus_cards.SolidSection",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="a SolidSection defines depth and a material"]; "pyNastran.converters.abaqus.abaqus_cards.Step" [URL="#pyNastran.converters.abaqus.abaqus_cards.Step",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"]; "pyNastran.converters.abaqus.abaqus_cards.Surface" [URL="#pyNastran.converters.abaqus.abaqus_cards.Surface",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"]; "pyNastran.converters.abaqus.abaqus_cards.Tie" [URL="#pyNastran.converters.abaqus.abaqus_cards.Tie",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"]; "pyNastran.converters.abaqus.abaqus_cards.Transform" [URL="#pyNastran.converters.abaqus.abaqus_cards.Transform",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"]; }
defines:
  • SolidSection

  • ShellSection

  • Material

  • Assembly

  • Part

class pyNastran.converters.abaqus.abaqus_cards.Assembly(element_types, node_sets, element_sets)[source]

Bases: object

write(abq_file)[source]
class pyNastran.converters.abaqus.abaqus_cards.BeamSection(elset: str, material_name: str, section: str, dimensions: ndarray, x_vector: ndarray)[source]

Bases: object

section_name_to_npoints = {'PIPE': 2, 'RECT': 2}
class pyNastran.converters.abaqus.abaqus_cards.Boundary(nid_dof_to_value: dict[tuple[int, int], float])[source]

Bases: object

*BOUNDARY nid, dof1, dof2, displacement 1,1,,0 1,2,,0 1,3,,0 20,1,,0

classmethod from_data(slines: list[list[str]])[source]
  1. node or node set, first degree of freedom, last degree of freedom

  2. node or node set, first degree of freedom, last degree of freedom, value

write()[source]
class pyNastran.converters.abaqus.abaqus_cards.Frequency(solver: str, nmodes: int)[source]

Bases: object

class pyNastran.converters.abaqus.abaqus_cards.Mass(elset: str, value: float)[source]

Bases: object

class pyNastran.converters.abaqus.abaqus_cards.Material(name: str, sections: dict[str, float], density: float = 0.0, ndepvars: int | None = None, ndelete: int | None = None)[source]

Bases: object

a Material object is a series of nodes & elements (of various types)

write(abq_file) None[source]

*Material, name=Glassy828DEA *Density 1180., *Elastic

2.14078e+09, 0.42718

*Material, name=MAT1_828DEA_Dam *Density 1180., *Depvar, delete=4

20,

User Material, constants=16 * K CTELIN C10 C01 DAM_FORM FUNC_FORM EVOLF EVMF

3.2e+09, 5.667e-05, 3.75e+08, 0., 2., 1., 50000., 0.05 **EVM0ISO EVM0VOL EVM0VM DAM_METHOD ALPHA A B C

0., 0.5, 0.5, 1., 0., 0., 0.5, 0.6

*Material, name=Steel *Density 7800., *Elastic

2e+11, 0.3

class pyNastran.converters.abaqus.abaqus_cards.Orientation(name: str, system: str, origin: ndarray, x_axis=None, xy_plane=None, axis=None, alpha=None)[source]

Bases: object

class pyNastran.converters.abaqus.abaqus_cards.Part(name: str, nids: np.ndarray, nodes: np.ndarray, element_types: dict[str, np.ndarray], node_sets: dict[str, np.ndarray], element_sets: dict[str, tuple[np.ndarray, str]], beam_sections: list[BeamSection], solid_sections: list[SolidSection], shell_sections: list[ShellSection], log: SimpleLogger)[source]

Bases: object

a Part object is a series of nodes & elements (of various types)

creates a Part object

Parameters:
namestr

the name

element_typesdict[element_type](node_ids, set_name)
element_typestr

the element type

bars:

r2d2 : (nelements, 2) int ndarray b31 : (nelements, 2) int ndarray b31h : (nelements, 2) int ndarray

shells:

cpe3 : (nelements, 3) int ndarray cpe4 : (nelements, 4) int ndarray cpe4r : (nelements, 4) int ndarray cps3 : (nelements, 3) int ndarray cps4 : (nelements, 4) int ndarray cps4r : (nelements, 4) int ndarray coh2d4 : (nelements, 4) int ndarray cohax4 : (nelements, 4) int ndarray cax3 : (nelements, 3) int ndarray cax4r : (nelements, 4) int ndarray

solids:

c3d10h : (nelements, 10) int ndarray

check_materials(materials)[source]

validates the materials

write(abq_file, is_2d=False)[source]

writes a Part

class pyNastran.converters.abaqus.abaqus_cards.ShellSection(log: SimpleLogger, material_name: str, elset: str, thickness: list[float], orientation: int = -1, offset: float = 0.0)[source]

Bases: object

A ShellSection defines thickness and a material for a PSHELL/PCOMP

*SHELL SECTION, ELSET=PLATE, MATERIAL=A, ORIENTATION=GLOBAL, OFFSET=0.0 0.005 *SHELL SECTION, ELSET=CARBON_FIBER, ORIENTATION=GLOBAL, OFFSET=0.0 0.005,,CF 0.005,,CF 0.005,,CF

classmethod add_from_data_lines(param_map: dict[str, str], data_lines: list[str], log: SimpleLogger)[source]
class pyNastran.converters.abaqus.abaqus_cards.SolidSection(material_name: str, elset: str, thickness: float, log: SimpleLogger)[source]

Bases: object

a SolidSection defines depth and a material

classmethod add_from_data_lines(param_map: dict[str, str], data_lines: list[str], log: SimpleLogger)[source]
class pyNastran.converters.abaqus.abaqus_cards.Step(name: str, boundaries: list[Any], node_output: list[str], element_output: list[str], cloads: dict[str, Any], dloads: dict[str, Any], surfaces: list[Any], frequencies: list[Frequency], is_nlgeom: bool = False)[source]

Bases: object

*Step, name=Stretch, nlgeom=YES *Static 0.1, 1.0, 0.1, 0.1 *Boundary, op=MOD Block-1.Top, 1, 1, 0.0 Block-1.Top, 2, 2, 1.0 Block-1.Top, 3, 3, 0.0 NewBlock-1.Top, 1, 1, 0.0 NewBlock-1.Top, 2, 2, 1.0 NewBlock-1.Top, 3, 3, 0.0 *Output, field, variable=ALL *Output, history, variable=PRESELECT *End Step

write(abq_file: TextIO) None[source]

writes a Step

class pyNastran.converters.abaqus.abaqus_cards.Surface(name: str, surface_type: str, set_names: list[str], faces: list[str])[source]

Bases: object

class pyNastran.converters.abaqus.abaqus_cards.Tie(name: str, master: str, slave: str, position_tolerance: float)[source]

Bases: object

class pyNastran.converters.abaqus.abaqus_cards.Transform(Type: str, nset: str, pa: ndarray, pb: ndarray)[source]

Bases: object

classmethod from_data(transform_type: str, nset: str, tranform_fields: list[str])[source]
pyNastran.converters.abaqus.abaqus_cards.cast_nodes(nids_list: list[Any], nodes_list: list[Any], log: SimpleLogger, require: bool = True) tuple[np.ndarray, np.ndarray][source]
pyNastran.converters.abaqus.abaqus_cards.write_element_set_to_file(abq_file, set_name, values_array)[source]

writes an element set

pyNastran.converters.abaqus.abaqus_cards.write_name(name)[source]

Abaqus has odd rules for writing words without spaces vs. with spaces

pyNastran.converters.abaqus.abaqus_cards.write_node_set_to_file(abq_file, set_name, values_array)[source]

writes a node set

pyNastran.converters.abaqus.abaqus_cards.write_set_to_file(abq_file, values_array)[source]

writes 16 integer values per line to a set card

rpy_writer Module

pyNastran.converters.abaqus.rpy_writer.cmd_line()[source]
pyNastran.converters.abaqus.rpy_writer.write_rpy_file(fname_model, jobname, fname_user_subroutine=None, include=None)[source]