Esempio n. 1
0
class SMesh(Mesh):
    type = String('structured')

    cartesianGrid = Instance(CartesianGrid)

    group = Dict(UserName, Instance(SGroup))
    groupGroup = Dict(UserName, Instance(SGroupGroup))
Esempio n. 2
0
class UMesh(Mesh):
    type = String('unstructured')

    nodes = Array(shape=(None, None), dtype=ah5_float)
    elementTypes = Array(shape=(None, ), dtype=ah5_int)
    elementNodes = Array(Shape=(None, ), dtype=ah5_int)

    group = Dict(UserName, Instance(UGroup))
    groupGroup = Dict(UserName, Instance(UGroupGroup))
Esempio n. 3
0
class Amelet(IsModel):
    AMELETHDF_FORMAT_VERSION = String("1.0.0")
    FORMAT = String('AMELETHDF')
    
    entryPoint = PathWhere(EntryPointIndex)
    
    floatingType = Dict(UserName, Instance(FloatingType))
    simulation = Dict(UserName, Instance(Simulation))
    mesh = Dict(UserName, Instance(MeshGroup))
Esempio n. 4
0
class ComplexContainer(IsModel):
    """genetic model class 
    """
    const = String('MODEL')

    # data set
    array = Array

    #
    subContainer = Instance(SimpleContainer)

    #
    list_of = Dict(UserName, Instance(ConstContainer))
    #
    list_indexed = List(Instance(AA))

    #
    table_t = List(Tuple(Instance(String), Instance(Int)))
Esempio n. 5
0
class MeshGroup(IsGroup):
    children = Dict(UserName, Instance(Mesh))
Esempio n. 6
0
class Mesh(IsModel):
    type = String

    groupGroup = Dict(UserName, Instance(GroupGroup))
Esempio n. 7
0
class ArraySet(FloatingType):
    flatingtype = String('arrayset')

    data = Array
    ds = Dict(String(regex='dim[0-9]+'), Array(shape=(None, )))
Esempio n. 8
0
class Parameter(IsModel):
    simple_attrs = Dict(UserName, Enum(Int, Float, String, Complex))
    complex_attrs = Dict(UserName, Enum(Array))