Class Module for MSM Structure Genome

import msmsg

Structure Genome

class msmsg.StructureGenome(name, micro, macro)

A structure genome in the theory of MSG

analysis = None

Type of analysis

degen_element = None

Flag of the type of elements (SC)

elements = None

Elemental connectivities {eid: [nid1, nid2, …], …}

global_mesh_size = None

Global mesh size

macro = None

Macroscopic structure (1: beam, 2: plate/shell, 3: solid/block)

micro = None

Microscopic dimension of the SG (1, 2, 3)

model = None

Macroscopic structural model (default: classical)

name = None

Name of the SG

nodes = None

Nodal coordinates {nid: [y1, y2, y3], …}

num_elements = None

Number of elements

num_materials = None

Number of materials

num_nodes = None

Number of nodes

num_slavenodes = None

Number of slave nodes

trans_element = None

Flag of transformation of elements

uniform_temperature = None

Flag of uniform temperature

Cross Section (2D Structure Genome)

class msmsg.SGCrossSection(name)

Stores all information of a cross section.

This object is used to store and pass data of a cross section between VABS/SC, GEBT, and preprocessors.

printResults()

Print analysis results

readPreVABSIn(fn_prevabs_in_main, fn_prevabs_in_baseline, fn_prevabs_in_layup)

Read data from a PreVABS input file

Parameters:
  • fn_prevabs_in_main (string) – File name of the PreVABS main input
  • fn_prevabs_in_baseline (string) – File name of the PreVABS base lines input
  • fn_prevabs_in_layup – File name of the PreVABS layups input
readSCOutHomo(fn_sc_in='', macro_dim=1)

Read SwiftComp homogenization results.

Parameters:
  • fn_swiftcomp_in (string) – SwiftComp input file (e.g. example.sc)
  • macro_dim (int) – Dimension of the structural model
readVABSIn(fn_vabs_in='')

Read data from the VABS input file

Parameters:fn_vabs_in (string) – File name of the VABS input file
readVABSOutHomo(fn_vabs_in='')

Read VABS homogenization results

Parameters:fn_vabs_in (str) – VABS input file name (e.g. example.dat)
updateXMLElementTree(analysis)

Update the element tree for PreVABS input

Parameters:analysis (string) – Analysis step (h, d, f)
writePreVABSIn(fn_prevabs_in)

Write data to a PreVABS input file

Parameters:fn_prevabs_in (string) – File name of the PreVABS main input
cos11 = None

Obliqueness. Cosine of the angle between y_1 and x_1

cos21 = None

Obliqueness. Cosine of the angle between y_2 and x_1

eccm = None

Effective classical compliance matrix (4x4)

ecsm = None

Effective classical stiffness matrix (4x4)

eden = None

Effective density (mass per unit length)

etcm = None

Effective timoshenko compliance matrix (6x6)

etsm = None

Effective timoshenko stiffness matrix (6x6)

fn_gmsh_msh = None

File name of the Gmsh mesh file

fn_sc_in = None

File name of the SwiftComp input

fn_vabs_in = None

File name of the VABS input

gc = None

Geometric center

gdforces = None

Global distributed forces (VABS) [[f1, f2, f3], [d1f1, d1f2, d1f3], [d2f1, d2f2, d2f3], [d3f1, d3f2, d3f3]]

gdisplacements = None

Global displacements [u1, u2, u3]

gdmoments = None

Global distributed moments (VABS) [[m1, m2, m3], [d1m1, d1m2, d1m3], [d2m1, d2m2, d2m3], [d3m1, d3m2, d3m3]]

gforces = None

Global forces (VABS) [F1, F2, F3]

gmoments = None

Global moments (VABS) [M1, M2, M3]

grotations = None

Global rotations [[c11, c12, c13], [c21, c22, c23], [c31, c32, c33]]

gstrains = None

Global straints (SwiftComp) []

k11 = None

Initial twist k_{11}

k12 = None

Initial curvature k_{12}

k13 = None

Initial curvature k_{13}

masc = None

Mass matrix at mass center (6x6)

mass = None

Mass matrix (6x6)

mc = None

Mass center

name_baseline = None

Base name of the base lines file

name_layup = None

Base name of the layups file

name_template = None

Base name of the main input file template

pitch = None

Pitch angle of the cross section

sc = None

Shear center

tc = None

Tension center