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.

name

Name of the SG.

Type:

str

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

analysis

Analysis configurations. * 0 - homogenization (default) * 1 - dehomogenization/localization/recover * 2 - failure (SwiftComp only)

Type:

int

fn_gmsh_msh

File name of the Gmsh mesh file.

Type:

str

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

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

geo_correct

Flag of geometrically corrected shell model.

Type:

bool

do_damping

Flag of damping computation.

Type:

int

is_temp_nonuniform

Flag of uniform temperature.

Type:

int

force_flag

Force flag.

Type:

float

steer_flag

Steer flag.

Type:

float

initial_twist

Initial twist (beam only).

Type:

float

initial_curvature

Initial curvature.

Type:

list of floats

oblique

Oblique (beam only).

Type:

list of floats

lame_params

Lame parameters for geometrically corrected shell model.

Type:

list of floats

materials

Dictionary of materials.

Type:

dict

mocombos

Dictionary of material-orientation combinations.

Type:

dict

mesh

Mesh of the SG.

Type:

Mesh

ndim_degen_elem

Number of degenerate elements.

Type:

int

num_slavenodes

Number of slave nodes.

Type:

int

omega

Omega (see SwiftComp manual).

Type:

float

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

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.

property use_elem_local_orient

Flag of using element local orientation.