upxo.meshing.mesher_2d module

class upxo.meshing.mesher_2d.mesh_mcgs2d(getFEControlsFromUPXO=True, getGridControlsFromUPXO=True, meshInfo={'FESoftware': 'abaqus', 'elementType': 'quad4', 'mesher': 'UPXO', 'reduced_integration': False}, gridInfo={'xinc': 1, 'xmax': 10, 'xmin': 0, 'yinc': 1, 'ymax': 5, 'ymin': 0}, gsInfo={'grainAreas': numpy.random.random, 'm': 10}, lfi=numpy.random.randint)[source]

Bases: object

This is a core mcgs.meshing class Intended only for Monte-Carlo simulation grain structures Works only on square lattice. For non-square lattices, interpolate to a square lattice and use

meshing_package:

# UPXO, GMSH, PYGMSH

gb_conformity:

# Conformal or Non-conformal

element_type:

# Type of finite element

target_fe_software:

# Abaqus or Moose

reduced_integration:

# BOOL: Flag for reduced integration

m:

# Temporal slice

coords_element_nodes:

# Coordinates of FE nodes

nodal_connectivity:

DEscription

meshInfo: dict

General mesh information

ABQ_NODES:

# Nodes contained in ABAQUS friendly format

ABQ_ELEMENTS:

# Elements contained in ABAQUS friendly format

__uimesh:

# Private copy of pxtal.uimesh

__uigrid:

# Private copy of pxtal.uigrid

xgrid:

DEscription

ygrid:

DEscription

lfi:

DEscription

dim:

DEscription

elsets:

Element sets of features

ndsets:

Nodal sets

meshInfo
gridInfo
gsInfo
lfi
mesher_brancher()[source]

Mesher brancher.

abaqus_mesher_brancher()[source]

Abaqus mesher brancher.

upxo_abaqus_nonconformal_mesher()[source]

Upxo abaqus nonconformal mesher.

mesh_abaqus_upxo_nonconformal_quad4()[source]

Generates ABAQUS compatible mesh data-structure inside UPXO targetted at non-conformal mesh with 4 noded quadrilateral elements.

map_elements_grainids()[source]

This makes a map of grain ids and the pixel ids. Map is stored in a dictionary. grain id forms the keys and pixel ids for the values

This is akin to the element-set defined in ABAQUS

abaqus_make_element_sets()[source]

Abaqus make element sets.

meshing_package
element_type
target_fe_software
reduced_integration
coords_element_nodes
nodal_connectivity
ABQ_NODES
ABQ_ELEMENTS
xgrid
ygrid
dim
elsets
ndsets
info()[source]

Info.

export_abaqus_inp_file(folder='DATABASE_FEMESH', file='UPXO_ABQ_MESH.inp')[source]

Export or convert to ort abaqus inp file.