pm_class

Module Contents

Classes

PanelMethod

Attributes

current_directory

default_input_dict

default_mesh_path

output_options_dict

class pm_class.PanelMethod(solver_input_dict, threshold_angle=125.0, skip_geometry=False)

Bases: object

__assemble_input_dict__()
compute_TE_properties(threshold_angle=125, plot=False)

Computing trailing edge properties to set the Kutta condition

compute_cell_adjacency(radius=1e-10)

Computing cell adjacency informatiom.

declare_outputs(outputs)

Declare outputs to be saved

evaluate()

Function call to set up and run the panel method.

The output is a dictionary containing the string names set in self.declare_outputs()

generate_wake_connectivity()
import_mesh()

Importing the mesh using meshio.

insert_TE_properties(TE_properties)
insert_cell_adjacency(cell_adjacency_data)
insert_grid_data(mesh, cell_adjacency_data, TE_properties)
insert_mesh(mesh)
overwrite_mesh(mesh)
plot(data_to_plot, bounds=None, cmap='jet', camera=False, screenshot=False)

Plotting function for scalar field variables.

plot_unsteady(mesh, wake_mesh, surface_data, wake_data, wake_form='grid', bounds=None, cmap='jet', interactive=False, camera=False, screenshot=False, name='panel_method')
print_output_options(output_names=False)

Prints the output options with a description + shape If no input is provided, the entire dictionary is printed.

Inputs: - output_names: list

Returns the output options dictionary

setup_flow_properties()

Input velocity options - mach + sos to get V_inf - V_inf as a:

  • scalar

  • vector

  • grid

setup_grid_properties(threshold_angle=125, plot=False)

Sets up the mesh, cell adjacency, and trailing edge properties.

The trailing edge can be tweaked using the threshold angle input.

pm_class.current_directory
pm_class.default_input_dict
pm_class.default_mesh_path
pm_class.output_options_dict