Beispiel #1
0
    kernels.append(kernel.LinearSpringDashpot())
    kernels.append(kernel.NonLinearSpringDashpot())
    kernels.append(kernel.SingleCast(shapes))
    kernels.append(kernel.SpringDashpot())
    kernels.append(kernel.TemperatureIntegration())
    kernels.append(kernel.VelocityVerlet())
    kernels.append(kernel.VelocityVerletWithShape())

    ac = Accessor()
    for k in kernels:
        ac.mergeRequirements(k.getRequirements())
    ac.printSummary()

    comm = []
    comm.append(mpi.BroadcastProperty())
    comm.append(mpi.ClearNextNeighborSync())
    comm.append(mpi.ReduceContactHistory())
    comm.append(mpi.ReduceProperty())
    comm.append(mpi.SyncNextNeighbors(ps))

    ps.generate(args.path + "/src/mesa_pd/")
    ch.generate(args.path + "/src/mesa_pd/")
    lc.generate(args.path + "/src/mesa_pd/")
    ss.generate(args.path + "/src/mesa_pd/")

    for k in kernels:
        k.generate(args.path + "/src/mesa_pd/")

    for c in comm:
        c.generate(args.path + "/src/mesa_pd/")
Beispiel #2
0
                    "hyteg::PrimitiveID",
                    defValue="",
                    syncMode="ALWAYS")
    ps.add_property("startDoFType", "uint_t", defValue="", syncMode="ALWAYS")
    ps.add_property("startEdgeDoFOrientation",
                    "hyteg::edgedof::EdgeDoFOrientation",
                    defValue="",
                    syncMode="ALWAYS")
    ps.add_property("k",
                    "std::vector< walberla::mesa_pd::Vec3 >",
                    defValue="",
                    syncMode="ALWAYS")
    ps.add_property("finalTemperature",
                    "real_t",
                    defValue="",
                    syncMode="ALWAYS")
    ps.add_property("containingPrimitive",
                    "hyteg::PrimitiveID",
                    defValue="",
                    syncMode="ALWAYS")
    ps.add_property("outsideDomain", "int", defValue="0", syncMode="ALWAYS")

    mpd.add(mpi.Notifications(ps))
    mpd.add(mpi.SyncGhostOwners(ps))
    mpd.add(mpi.SyncNextNeighbors(ps))
    mpd.add(mpi.SyncNextNeighborsNoGhosts(ps))

    ps.print()

    mpd.generate(False)