How to get Von Mises equivalent stresses in a random vibration analysis using DPF?

Options
Javier Vique
Javier Vique Member, Employee Posts: 78
First Answer First Anniversary Name Dropper 5 Likes
edited June 2023 in Structures

If we try to use stress_von_mises results, we are getting different values than Mechanical. Why?

Tagged:

Answers

  • Javier Vique
    Javier Vique Member, Employee Posts: 78
    First Answer First Anniversary Name Dropper 5 Likes
    Options

    As you might know, for getting Von Mises equivalent stresses we make use of Segalman formulation. That's why we need to make use of that operator to get same results as Mechanical. Below the script to be used:

    def define_dpf_workflow(analysis):
        import mech_dpf
        import Ans.DataProcessing as dpf
        mech_dpf.setExtAPI(ExtAPI)
        dataSource = dpf.DataSources(analysis.ResultFileName)
        timeScoping = dpf.Scoping()
        timeScoping = [2]
        s = dpf.operators.result.stress()
        s.inputs.data_sources.Connect(dataSource)
        s.inputs.time_scoping.Connect(timeScoping)
        s.inputs.requested_location.Connect('ElementalNodal')
        op = dpf.operators.invariant.segalman_von_mises_eqv_fc()
        op.inputs.fields_container.Connect(s.outputs.fields_container)
        my_fields_container = op.outputs.fields_container
        dpf_workflow = dpf.Workflow()
        dpf_workflow.Add(op)
        dpf_workflow.SetOutputContour(my_fields_container)
        dpf_workflow.Record('wf_id', False)
        this.WorkflowId = dpf_workflow.GetRecordedId()