geom4 Module

digraph inheritance4ac797eb01 { bgcolor=transparent; rankdir=LR; size=""; "pyNastran.op2.tables.geom.geom4.GEOM4" [URL="#pyNastran.op2.tables.geom.geom4.GEOM4",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 methods for reading op2 constraints"]; "pyNastran.op2.tables.geom.geom_common.GeomCommon" -> "pyNastran.op2.tables.geom.geom4.GEOM4" [arrowsize=0.5,style="setlinewidth(0.5)"]; "pyNastran.op2.tables.geom.geom_common.GeomCommon" [URL="pyNastran.op2.tables.geom.html#pyNastran.op2.tables.geom.geom_common.GeomCommon",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 readers for BDF objects in the OP2 GEOM4/GEOM4S table

class pyNastran.op2.tables.geom.geom4.GEOM4(op2: OP2Geom)[source]

Bases: GeomCommon

defines methods for reading op2 constraints

property factor: int
read_geom4_4(data: bytes, ndata: int) int[source]

reads the GEOM4/GEOM4OLD table

property size: int
pyNastran.op2.tables.geom.geom4.check_component(component: int, msg: str) None[source]
pyNastran.op2.tables.geom.geom4.fill_rbe3_wt_comp_gijs(i: int, j: int, idata, fdata) tuple[int, list[float], list[int], list[list[int]]][source]

helper for read_rbe3s_from_idata_fdata

pyNastran.op2.tables.geom.geom4.get_minus_2_index(idata) int[source]

helper for get_minus_2_index

pyNastran.op2.tables.geom.geom4.ints_to_secset1s(card_name: str, ints: ndarray) tuple[int, list[tuple[int, int, list[int]]]][source]

[61, 123456, 1, 610101, 610124] [100, 123, 0, 41, 42, -1,

200, 123, 0, 35, 36, -1] [ 1, 123456, 1, 1001, 1006,

1, 123456, 0, 1066, -1]

pyNastran.op2.tables.geom.geom4.read_rbe2s_from_idata_fdata(op2: OP2Geom, idata, fdata) list[RBE2][source]

Word Name Type Description 1 EID I Element identification number 2 GN I Grid point identification number for independent degrees-of-freedom 3 CM I Component numbers of dependent degrees of-freedom 4 GM I Grid point identification number for dependent degrees-of-freedom Word 4 repeats until End of Record 5 ALPHA RS Thermal expansion coefficient (optional) 6 TREF RS Reference temperature (optional if alpha exists)

data = (1, 1, 123456, 10000, -1, 0.0,
        2, 2, 123456, 20000, -1, 0.0,
        3, 3, 12345,  30000, 30001, 30002, 30003, 30004, 30005, -1, 0.0,
        4, 4, 123,    40000, 40001, 40010, 40011, 40020, 40021, -1, 0.0,
        5, 5, 123,    50000, 50001, 50010, 50011, 50020, 50021, -1, 0.0)
(1, 35, 2, 33, 34, 36, 37, 133, 134, 135, 136, 137, -1, 0.0,

3, 3, 2, 1, 2, 4, 5, 101, 102, 103, 104, 105, -1, 0.0, 5, 8, 2, 6, 7, 9, 10, 106, 107, 108, 109, 110, -1, 0.0, 6, 13, 2, 11, 12, 14, 15, 111, 112, 113, 114, 115, -1, 0.0 0, 9, 30, 2, 28, 29, 31, 32, 128, 129, 130, 131, 132, -1, 0.0, 10, 25, 2, 23, 24, 26, 27, 123, 124, 125, 126, 127, -1, 0.0)

idata = [

10101, 10101, 123456, 1, 2, -1, 10102, 10102, 123456, 3, 4, -1, 10103, 10103, 123456, 5, -1,

]

idata = [
132, 253, 123456,

4, 5, 6, 7, 8, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 57, 58, 59, 60, -1, 0,

133, 254, 123456,

126, 127, 128, 129, 138, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, -1, 0]

i=[ 0, 30] j=[29, 59]

idata = [
132, 253, 123456,

4, 5, 6, 7, 8, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 57, 58, 59, 60, -1, 0, 0,

133, 254, 123456,

126, 127, 128, 129, 138, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, -1, 0, 0,

] i=[ 0, 31] j=[29, 61]

idata = [

201, 5001, 123456, 201, -1, 221, 5002, 123456, 221, -1, 5001, 5001, 123, 1001, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1226, 1227, 1228, 1229, 1230, 1231, 1232, 1233, 1234, 1235, 1236, 1237, -1, 5002, 5002, 123, 2097, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2223, 2224, 2225, 2322, 2323, 2324, 2325, 2326, 2327, 2328, 2329, 2330, 2331, 2332, 2333, -1, 22222, 4455, 123456, 4467, 4443, -1

]

pyNastran.op2.tables.geom.geom4.read_rbe3s_from_idata_fdata(op2: OP2Geom, idata, fdata) list[RBE3][source]

1 EID I Element identification number 2 REFG I Reference grid point identification number 3 REFC I Component numbers at the reference grid point

4 WT1 RS Weighting factor for components of motion at G 5 C I Component numbers 6 G I Grid point identification number Word 6 repeats until -1 occurs

Words 4 through 6 repeat until -2 occurs

7 GM I Grid point identification number for dependent degrees-of-freedom 8 CM I Component numbers of dependent degrees-of-freedom

Words 7 through 8 repeat until -3 occurs

data = [99 99 123456 1.0 123 44 45 48 49 -1 -3] data = [61 71 123456 1.0 123 70 75 77 -1 -3

62 71 123456 1.0 123 58 59 72 -1 -3]

data = [1001100 1001100 123456 1.0 123456 10011 10002 -1 -2 -3

1002500 1002500 123456 1.0 123456 10025 10020 -1 -2 -3] eid refg refc wt c g …

data = [107, 1, 123456, 1.0, 1234, 10600, 10601, -1, -2, -3, 0/0.0,

207, 2, 123456, 1.0, 1234, 20600, 20601, -1, -2, -3, 0/0.0, 307, 3, 123456, 1.0, 1234, 30600, 30601, -1, -2, -3, 0/0.0]]

data = [

407, 4, 123, 1.0, 123, 41201, 41210, 41212, 41221, -1, -0.25, 123, 41200, 41202, 41220, 41222, -1, -2, -3, 0, 408, 4, 456, 1.0, 123, 41201, 41210, 41212, 41221, -1, 1.0, 123, 41200, 41202, 41220, 41222, -1, -2, -3, 0)

] RBE3 407 4 123 1.0 123 41201 41210

41212 41221 -.25 123 41200 41202 41220 41222

RBE3 408 4 456 1.0 123 41201 41210

41212 41221 +.25 123 41200 41202 41220 41222

idata = [130, 251, 123456, 1.0, 123, 12, 13, 14, 15, 16, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,

-1, -2, -3, 0.0, 0.0, 131, 252, 123456, 1.0, 123, 129, 130, 131, 132, 133, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 182, 183, 184, 185, -1, -2, -3, 0.0, 0.0]

pyNastran.op2.tables.geom.geom4.xset1_break_by_thru_type(data: ndarray) list[ndarray][source]

helper for read_xset1