class SMesh(Mesh): type = String('structured') cartesianGrid = Instance(CartesianGrid) group = Dict(UserName, Instance(SGroup)) groupGroup = Dict(UserName, Instance(SGroupGroup))
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))
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))
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)))
class MeshGroup(IsGroup): children = Dict(UserName, Instance(Mesh))
class Mesh(IsModel): type = String groupGroup = Dict(UserName, Instance(GroupGroup))
class ArraySet(FloatingType): flatingtype = String('arrayset') data = Array ds = Dict(String(regex='dim[0-9]+'), Array(shape=(None, )))
class Parameter(IsModel): simple_attrs = Dict(UserName, Enum(Int, Float, String, Complex)) complex_attrs = Dict(UserName, Enum(Array))