Plot

This routine creates a new result for this DAResult object and then loops over each element and node setting the value obtained from the passed in dictionary.

def Plot(DAResult, ValuesDictionary):
    ResultSet = DAResult.CreateDAResultSet()
    
    for Element in DA.MeshData.Elements():
        for Node in Element.Nodes():
            Value = ValuesDictionary[Element.Id,Node.Id]
            ResultSet.SetElementNodalValue(Element.Id,Node.Id,1,Value)

When the script is run, a contour plot is generated for each DA Result.


Release 18.2 - © ANSYS, Inc. All rights reserved.