I'd like to use pyfluent to export moment. The output is moment coefficient, not moment.

Rachel Zhang
Rachel Zhang Member Posts: 1 **

The code I used is as following:
solver.solution.report_definitions.moment['fanmoment']={}
solver.solution.report_definitions.moment['fanmoment'].thread_names=momboundary
solver.solution.report_definitions.moment['fanmoment'].mom_axis=[1,0,0]
solver.solution.report_definitions.moment['fanmoment'].mom_center=[1.0,2.0,3.0]

I try to print state of the definitions and find out the moment is not available. The output of print_state() is:

name : fanmoment
scaled : True
average_over : 1
per_zone : False
thread_names :
0 : fan-layer
1 : fan-layer-shadow
mom_axis :
0 : 1
1 : 0
2 : 0
mom_center :
0 : 1.0
1 : 2.0
2 : 3.0

Tagged:

Answers

  • Mainak
    Mainak Member, Employee Posts: 5
    First Anniversary First Comment Ansys Employee
    ✭✭✭

    To compute the moment, execute:
    solver.solution.report_definitions.compute(report_defs=["fanmoment"])