This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cfdmesh [2014/01/20 23:33] psmeyer created |
cfdmesh [2018/04/01 14:41] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
Once you have created your own geometry or have download a geometry from the hangar, you can create a triangulated surface mesh for use in CFD. To begin, open the CFD Mesh interface from the Geom pulldown menu. The CFD Mesh interface will then open, and you will begin on the " | Once you have created your own geometry or have download a geometry from the hangar, you can create a triangulated surface mesh for use in CFD. To begin, open the CFD Mesh interface from the Geom pulldown menu. The CFD Mesh interface will then open, and you will begin on the " | ||
+ | |||
+ | Present on all tabs of the CFD Mesh window are the output window and the "Mesh and Export" | ||
Line 16: | Line 18: | ||
* Growth Ratio Limit | * Growth Ratio Limit | ||
- | Among these, the parameters for Maximum Edge Length, Minimum Edge Length, and Maximum Allowable Gap are scaled parameters. Number of Circular Segments and the Growth Ratio Limit are non-scaled parameters. | + | Among these, the parameters for Maximum Edge Length, Minimum Edge Length, and Maximum Allowable Gap are scaled parameters. Number of Circular Segments and the Growth Ratio Limit are non-scaled parameters. |
+ | |||
+ | Maximum Edge Length controls the maximum edge length for any triangle produced on the surface of the given geometry. This maximum length holds for all components of the geometry. Maximum Edge Length holds highest priority in determining triangles, and will overrule any other parameter. | ||
+ | |||
+ | Minimum Edge Length controls the minimum edge length for any triangle produced on the surface of the given geometry. Like Maximum Edge Length, this minimum length holds for all components of the geometry. Minimum Edge Length holds priority over all following parameters. The main purpose of minimum edge length is for control in geometries where the Maximum Allowable Gap and Number of Circular Segments would drive the triangle lengths infinitesimally small. It also allows for a basic control on the overall number of triangles to be produced in the surface mesh. | ||
+ | |||
+ | Maximum Allowable Gap controls the maximum distance between the mathematically defined surface of the input geometry and the actual triangles produced during CFD meshing. This allows a user to set how well defined the triangulated mesh matches the given geometry. As said before, this parameter will only be implemented up to the limits set by Minimum Edge Length. It has equal priority to Number of Circular Segments and priority over Growth Ratio Limit. | ||
+ | |||
+ | Number of Circular Segments defines the minimum number of segments required for a given radius of curvature. Like Maximum Allowable Gap, this parameter generally controls the precision between given mathematical geometry and the output triangulated mesh. Again, this parameter is limited by the Minimum Edge Length parameter and has priority over the Growth Ratio Limit. | ||
+ | |||
+ | The lowest parameter in terms of priority, Growth Ratio Limit determines how quickly the edge lengths of the triangles within the mesh can grow. When not withheld by the other parameters, triangles will be allowed to grow relative to their previous triangle up to this ratio. In essence, this parameter controls how smoothly triangles grow in size when moving away for complex portions of a given geometry. This can also be a useful tool in limiting the number of triangles produced when geometries have only small areas of complexity. | ||
+ | |||
+ | Also included on the Global tab are options for Rigorous 3D Growth Limiting and controls for Length and Radius of sources. Rigorous 3D Growth Limiting applies the Growth Ratio in a 3D sense such that components of a geometry that are not directly connected still must obey the Growth Ratio where they are near a portion of a geometry with smaller triangles. This can be useful in complex geometries, or geometries with multiple bodies. The Global Source Control Adjustments control the length and radius of all sources in the given geometry. The impacts of these parameters will be further discussed in the Source section. | ||
==== Display Tab ==== | ==== Display Tab ==== | ||
+ | |||
+ | The Display tab contains basic controls over what is seen in the main GUI window. Each button is self explanatory and will either show or hide the given aspect of the CFD mesh. The "Show Mesh" button is a global control that will either show or hide the entire mesh. The "Show Bad Edges and Triangles" | ||
==== Output Tab ==== | ==== Output Tab ==== | ||
+ | |||
+ | The Output tab controls the exported files from a given mesh. The file types supported are described in greater detail in the [[files|File Formats]] section of this wiki. | ||
+ | |||
+ | In general, turning on a given file type will export the final mesh to a file of this type. The " | ||
+ | |||
+ | Currently, OpenVSP does not automatically append the file extension to a given file type when a custom name for export is used. Keep this in mind when setting up the output settings for a CFD Mesh. | ||
==== Source Tab ==== | ==== Source Tab ==== | ||
+ | |||
+ | The Source tab allows for the addition and control of sources within the meshing of a geometry. Sources are a good way to add additional triangles to an area of increased complexity in a given geometry. The main features used in defining all sources are the length and radius parameters. The radius parameter controls the size of the area of influence for a given source, while the length parameter controls the maximum edge length while within this area of influence. Sources can be attached to any component of the input geometry and come in three main styles: | ||
+ | * Point Source | ||
+ | * Line Source | ||
+ | * Box Source | ||
+ | |||
+ | These styles behave as their names suggest. Point sources are concentrated at a single point and act only within the sphere like area of influence. Line sources take a point source and extend it along a single dimension. Box sources then create a box for the area of influence defined by the two corners of bounding box. Sources can be seen in the main GUI window while the "Show Sources and Wakes" button is active under the Display tab. This can be used to ensure that the source is located properly and will behave as expected. | ||
+ | |||
+ | Sources are added by first selecting which component to add sources to. The type of source is then selected in the " | ||
+ | |||
+ | Instead of adding sources manually, the "Add Default Sources" | ||
+ | |||
+ | Once sources are added to the geometry, their behavior can be adjusted with the sliders below. The Radius and Length sliders control behavior as described above. The U and W sliders control the location of each defining source for the different source types. As a point source is only a single source, adjusting the parameters for the second source will have no effect while a point source is selected. For a line source, each of the positions defines the sources at the endpoints of the line. For a box source, the positions define the sources located at the bounding vertices of the box that their position defines. | ||
+ | |||
+ | As said before, the behavior of all sources can also be adjust through the global tab. These controls are limited to radius and length controls, but can be useful for quickly adjusting the resolution of the overall mesh once an initial set of sources have been set. | ||
==== Domain Tab ==== | ==== Domain Tab ==== | ||
+ | |||
+ | The Domain tab contains controls that allow a far field to be defined for either direct import to CFD codes or for import into other volume meshing programs. When first moved to, all of the options are blanked out. These options will remain inactive until an option is selected that requires input to them. For instance, clicking the " | ||
+ | |||
+ | The top two buttons, " | ||
+ | |||
+ | For the Far Field, the first controls are similar to those encountered under the Global tab. These are the Maximum Edge Length, Maximum Allowable Gap and Number of Circle Segments controls. These behave exactly the same as their global counterparts, | ||
+ | |||
+ | The next main choice for the user is to select the type of far field to be created. Far fields can be produced in two ways: by selecting a component from the input geometry or by allowing VSP to automatically create a far field based on the input geometry. Also under the far the far field type is an " | ||
+ | |||
+ | A component type far field behaves as expected. It uses any component selected from the main geometry as use for the far field. The component to be used is selected from the dropdown menu. Any component type can be used The size and shape of this far field are controlled through the input geometry. The only controls over this type of far field under the Domain tab are used for resolution control. | ||
+ | |||
+ | The automatically produced far field is the " | ||
+ | |||
+ | As you'll notice in changing these values, the selection of relative or absolute size doesn' | ||
+ | |||
+ | Another choice for the user is the location of the far field box. If the far field is a component type, its location must be set through the geometry interface just like placing any other component. If it is of the box type, the far field location can either be defined automatically by VSP or manually by the user. The automatic location option is default and is selected with the " | ||
==== Wakes Tab ==== | ==== Wakes Tab ==== | ||
+ | The Wakes tab contains controls for defining wakes in the CFD Mesh. Wakes can only be attached to wing components and are treated as a transparent surface. This means that they are not seen by the rest of the components within CFD Mesh, and will not interact with them. | ||
+ | |||
+ | When defining a wake, the first thing to be done is selecting which component to attach the wake to. This is done by selecting a component from the dropdown menu of components. Once a component is selected, click the "Add Wake" button to add a wake to the selected input. If the "Show Sources and Wake Preview" | ||
+ | |||
+ | The other options to set are the Wake Scale and Wake Angle Parameters. The Wake Scale parameter behaves similarly to the relative size option of the far field scale. This will tell the meshing tool how large to make the trailing wake in relation to the X-direction length of the geometry' | ||
+ | |||
+ | ==== Best Practices ==== | ||
+ | |||
+ | In general, the simpler the mesh the better when created isotropic triangulated meshes in OpenVSP. In this way, the interface was created to allow more advanced options as you move to the right through the tabs in the CFD Mesh window. In many cases, only the first three tabs (Global, Display, and Output) are necessary to create a satisfactory mesh. | ||
+ | |||
+ | When first creating a mesh, it is often helpful to work with each parameter on the global page independently. In this way, the user can obtain a better understanding of what each parameter actually does. Generally, it is a good idea to begin at the top of the global parameters and work your way down until the produced mesh is satisfactory. To begin, Maximum Edge Length can be isolated and adjusted until it is set to a point that will give a good minimum resolution of the mesh. This isolation can be done by increasing the Minimum Edge Length and Maximum Allowable Gap (keeping in mind that these are scaled values) to very large values and Number of Circular Segments to a very low value. If Minimum Edge Length is set such that it is equal to or greater than the Maximum Edge length, than all triangles will be produced at the Maximum edge length. | ||
+ | |||
+ | Once the maximum length has been set, a minimum length can be set. It is often best to set a minimum length of roughly 10-20 times smaller than the maximum length. This value can be further adjusted once the geometry based parameters of Maximum Gap and Circular Segments are set to find a balance between resolution and file size. | ||
+ | |||
+ | In general, the Maximum Allowable Gap and Number of Circular Segments accomplish the same thing. In this way, it is helpful to set only one or the other, with the choice being mainly personal preference. Each offers its advantages and disadvantages. Maximum Allowable Gap is a more physical parameter and may be easier to understand and see its effects. However, as a scaled value, it may need to be reset as a geometry changes. Number of Circular Segments is a non-scaled parameter, so it can be set for a wide range of geometry scales without modification, | ||
+ | |||
+ | The options present under the other tabs are more advanced than the options under the Global tab. The best practices for each depend on the intended use of the triangulated mesh. Varying uses make it difficult to set a general set of best practices for each, so these options are only suggested for users with greater experience in CFD meshing or for use in specialized cases where the options are required. |