Preprocessor
Last updated
Last updated
he APM Preprocessor reads the mesh of the body and assigns a type to each element. The mesh must satisfy the following requirements:
The mesh must be watertight (unless using the symmetry option)
The surface normals of the body must point outward i.e. into the flow
If the mesh includes a wake, the wake normals should point in the negative z-direction
The mesh must be in a body-fixed coordinate system i.e. the x-axis must point forward, the y-axis must point to the right wing and the z-axis must point down
The mesh must be in STL file format
More information about the format of the mesh file is available in the mesh file section. The image below shows an unstructured mesh of a fixed-wing UAV.
The mesh should be in a body-fixed coordinate system, should be watertight and the mesh normals should point outward i.e. into the flow.
After running the APM Preprocessor each element of the mesh is assigned a type. A list of the element types is given in the table below.
The image below shows the element types for the fixed-wing UAV.
To find trailing edge elements the APM Preprocessor compares the angle between the normals of two adjacent elements to the trailing_edge_angle
option in the .conf file. If the angle is greater than the one specified by the trailing_edge_angle
option the elements are marked as trailing edge elements. Trailing edge elements are used by the APM Solver to enforce the Kutta condition. If the mesh contains a wake, as in the fixed-wing UAV example, the APM Preprocessor will find all elements which have more than 3 neighbours. Such elements exist along the trailing edges and at the location where the wake meets the body. Elements belonging to flat surfaces (e.g the wing and tail tips and the fuselage base) should be type 6. The APM Preprocessor is unable to detect type 6 elements automatically. You need to manually specify elements of type 6. For the fixed-wing UAV example, the elements at the fuselage base must be type 6. To set the type of all elements belonging to the base you need to determine the identifier (ID) of at least one element belonging to the base. You can easily determine the identifier by opening the .stl file in a data analysis and visualization application such as ParaView.
Run the APM Preprocessor without specifying identifiers for type 6 elements. Open the created .vtu or .dat files and find the identifier of at least one element belonging to a flat surface. Add the identifier to the tip_panels option in the .conf file and re-run the APM Preprocessor.
After you obtain the identifier of at least one element belonging to the base, add it to the tip_panels
option in the .conf file. You can add multiple identifiers if you have multiple flat surfaces in your model. Make sure the identifiers are separated by a comma.
After the APM Preprocessor runs it will create a .mdl file. The format for the .mdl file is specific to the Aviumtechnologies Panel Method and contains the element vertices, types, and neighbours. The APM Solver uses the .mdl file to solve for the potential flow around the body.
To make use of the symmetry option, you need to mesh only half of your geometry. Your geometry must lie entirely in the -y or the +y direction. The preprocessor will mirror the mesh, including the panel types, across the x-y plane accordingly. The image below shows half of the mesh of a fixed-wing UAV.
Type
Description
1
Body element
2
Upper trailing edge element (normal points in negative z-direction)
3
Lower trailing edge element (normal points in positive z-direction)
4
Upper intersection edge element (at locations where the wake elements intersect the body elements)
5
Lower intersection edge element (at locations where the wake elements intersect the body elements)
6
Element belonging to a flat surface (wing tip, tail tip, fuselage boom base, etc.)