Structure Gene

class sgio.StructureGene(name='', sgdim=None, smdim=None, spdim=None)

Bases: object

A finite element level structure gene model in the theory of MSG.

findComboByMaterialOrientation(name, angle)

Find material-orientation combination.

Parameters:
name : str

Material name.

angle : float

Orientation angle.

Returns:

Combination id. 0 if not found.

Return type:

int

findMaterialByName(name)

Find material by name.

Parameters:
name : str

Material name.

Returns:

Material id. 0 if not found.

Return type:

int

translate(v)

Translate the mesh.

Parameters:
v : array_like

Translation vector.

Return type:

None

analysis

Analysis configurations

  • 0 - homogenization (default)

  • 1 - dehomogenization/localization/recover

  • 2 - failure (SwiftComp only)

Type:

int

do_damping

Flag of damping computation

Type:

int

fn_gmsh_msh

File name of the Gmsh mesh file

force_flag

Force flag

Type:

float

geo_correct

Flag of geometrically corrected shell model

Type:

int

initial_curvature

Initial curvature

Type:

list of floats

initial_twist

Initial twist (beam only)

Type:

float

is_temp_nonuniform

Flag of uniform temperature

Type:

int

lame_params

Lame parameters for geometrically corrected shell model

Type:

list of floats

materials

Materials

Type:

dict of {int, msgpi.sg.MaterialProperty}

mocombos

Material-orientation (deg) combinations

{cid: [mid, orientation], …}

Type:

dict of {int, list of (int, float)}

model

Macroscopic structural model

  • 0 - classical (default)

  • 1 - refined (e.g. generalized Timoshenko)

  • 2 - Vlasov model (beam only)

  • 3 - trapeze effect (beam only)

Type:

int

name

Name of the SG.

Type:

str

ndim_degen_elem

Flag of the type of elements (SC)

Type:

int

property nelems

Number of elements in the mesh.

property nma_combs

Number of material-orientation combinations.

property nmates

Number of materials.

property nnodes

Number of nodes in the mesh.

num_slavenodes

Number of slave nodes

Type:

int

oblique

Oblique (beam only)

Type:

list of floats

omega

Omega (see SwiftComp manual).

Type:

float

physics

Physics included in the analysis

  • 0 - elastic (default)

  • 1 - thermoelastic

  • 2 - conduction

  • 3 - piezoelectric/piezomagnetic

  • 4 - thermopiezoelectric/thermopiezomagnetic

  • 5 - piezoelectromagnetic

  • 6 - thermopiezoelectromagnetic

Type:

int

sgdim

Dimension of the SG.

Type:

int

smdim

Dimension of the material/structural model.

Type:

int

spdim

Dimension of the space containing SG

Type:

int

steer_flag

Steer flag

Type:

float

property use_elem_local_orient

Flag of using element local orientation.