GenericRVE

The GenericRVE provides a class definition for an RVE generation using Python and Gmsh. The class inherits from the GenericModel class and extends it in order order to handle the problems that are connected with the generation of models with periodicity constraints.

Currently, the class is restricted to RVEs with rectangular (2D)/ box-shaped (3D) domains (explicitly assumed within the setupPeriodicity() method).

Class Definition

class gmshModel.Model.GenericRVE.GenericRVE(size=None, origin=[0, 0, 0], periodicityFlags=[1, 1, 1], gmshConfigChanges={})[source]

Bases: GenericModel

Generic class for RVEs created using the Gmsh-Python-API

Based on the GenericModel class, this class provides extra attributes and methods that all box-shaped RVEs should have: the definition of size, origin and periodicityFlags as additional attributes facilitates an update of the parents class placeholder method setupPeriodicity().

Attributes:

dimension: int

dimension of the model instance

size: list/array

size of the box-shaped RVE model -> size=[Lx, Ly, (Lz)]

origin: list/array

origin of the box-shaped RVE model -> origin=[Ox, Oy, (Oz)]

periodicityFlags: list/array

flags indicating the periodic axes of the box-shaped RVE model -> periodicityFlags=[0/1, 0/1, 0/1]

setupPeriodicity()[source]

Overwritten method of the parent GenericModel class to define periodicity constraints for the model