DEM Output

sakarapu
sakarapu Member Posts: 3
First Comment
**

Is it possible to output particle position as well as it's radius using pyDPF linux version?

Tagged:

Answers

  • James Derrick
    James Derrick Administrator, Employee Posts: 283
    Ancient Membership 100 Comments 100 Likes 25 Answers
    admin

    Hi @sakarapu thanks for posting! I have pinged @AKD-Scripting-Team and hopefully one their members will be able to help you out.

  • Ayush Kumar
    Ayush Kumar Member, Moderator, Employee Posts: 468
    100 Answers 250 Likes 100 Comments Second Anniversary
    ✭✭✭✭

    @sakarapu DEM radius can't be found out using DPF for now, the developer is informed and it will be implemented in the next release. For nodal coordinates you can use the following code:

    from ansys.dpf import core as dpf
    
    d3plot = r”\Path\to\d3plot”
    ds = dpf.DataSources()
    ds.set_result_file_path(d3plot, "d3plot")
    model = dpf.Model(ds)
    print(model)
    
    ncoord_f = model.metadata.meshed_region.nodes.coordinates_field