I'm following the code linked here which simulates the aerodynamics of an ahmed body. There's specifically a section where it calculates the drag force right here: session.tui.solve.report_definitions.add( "cd-mon1", "drag", "thread-names", "*ahmed*", "()", "scaled?", "yes", "force-vector", "1 0 0", "q", )
After this code is ran, it prints this in the terminal:
<solver_session>.solution.report_definitions.drag["cd-mon1"] = {} solver.solution.report_definitions.drag['cd-mon1'] = {"zones" : ["wall_ahmed_body_main", "wall_ahmed_body_front", "wall_ahmed_body_rear"]}
But I want to get more than that information, like lift and the coefficients. I added my own code to calculate the lift force here:
session.tui.solve.report_definitions.add( "cl-mon1", "force", "thread-names", "*ahmed*", "()", "scaled?", "yes", "force-vector", "0 1 0", # Lift force is along the y-direction "q", )
When this line is run, the program completely freezes and I have no idea why. I think it might have something to do with the solver settings, because each specific "zone" is defined from what I can tell from the terminal, but it never specifically says in the code that the cd-mon1 is defined to "wall_ahmed_body_main", "wall_ahmed_body_front", "wall_ahmed_body_rear" (at least from what I can tell). All in all, I'm having trouble calculating the other forces.