User Tools

Site Tools


tutunint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutunint [2012/02/15 16:28] – created ramcdonatutunint [2018/04/01 14:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Unintersected Component Wireframes ====== ====== Unintersected Component Wireframes ======
  
 +This installment of the Cart3D tutorial will walk through the process of generating an unintersected component wireframe in VSP and then using Cart3D's intersect utility to process the geometry into a single watertight body.  If you haven't built the Onera M6 wing, or you don't have your own geometry to analyze, you should go back to the [[OneraM6|geometry generation]] phase of the tutorial or you can download a ready-to-go [[http://hangar.openvsp.org/vspfiles/108|Onera M6 geometry]] from the VSP Hangar.
  
 +Although Cart3D's intersect tool is very robust, there are some cases it does not handle.  One of these cases is when surfaces of two parts are perfectly coincident.  This situation occurs at the wing root of the Onera M6 model created in the tutorial; the root surface of the left and right wing halves are perfectly coincident.
  
-Use the intersect tool.+One common fix for this situation would be to move the parts slightly (say 10^-6) in the spanwise direction so the root surfaces are no longer coincident.  Since the wing roots are normally buried inside a fuselage component, the gap between the wing halves would be insignificant.  However, the Onera M6 geometry has no fuselage and any positive offset would result in a gap between the wings and any negative offset would result in intersection artifacts at the wing root.  Furthermore, demonstrating the intersect tool with two parts that don't really intersect is not very useful.
  
-[[http://people.nas.nasa.gov/~aftosmis/cart3d/surfaceModeling.html|Cart3D documentation ]]+Consequently, for this installment of the tutorial, a pod component will be added to the geometry to play the role of a fuselage in the model.  This obviously would not be appropriate for matching the Onera M6 wind tunnel results, but it should do well for the purposes of this tutorial. 
 + 
 +==== Generating an Unintersected Component Wireframe ==== 
 + 
 +As you proceed through the tutorial to mesh the Onera M6, remember that images have been included as thumbnails, so any place you see a picture, click on it for a larger version. 
 + 
 +  - Onera M6 start 
 +     * Start with the Onera M6 model from the end of the model building tutorial. \\ {{:13_name.png?direct&200|}} 
 +  - Refine airfoil points 
 +     * The triangulated wireframe is created by connecting the diagonals of the quadrilateral wireframe shown on screen.  Consequently, the resolution of the triangulated wireframe is determined by the resolution of the quadrilateral wireframe shown on screen. 
 +     * As discussed in the [[MeshOverview|Mesh Generation]] discussion of the tutorial, Cart3D has unique mesh resolution and quality requirements which make it particularly well suited to VSP and this approach. 
 +     - In the 'Multi Sect Wing Geom' window, under the 'Gen' tab, enter 101 in the box to the right of 'Num Points:' \\ {{:1_airfoil_points.png?direct&200|}} 
 +  - Refine spanwise wireframe 
 +     - Select the 'Sect' tab and then click one of the right-facing arrows under 'Num Interpolated XSecs' until there are 40 interpolated cross sections. \\ {{:2_spanwise_points.png?direct&200|}} 
 +  - Add a pod 
 +     * A pod component at the wing root will give the intersect routine something to do for this demonstration and will also allow the wing halves to be offset slightly in the spanwise direction. 
 +     - In the 'Geom Browser' window, select 'POD' from the pulldown next to the 'Add' button. 
 +     - Click the 'Add' button. 
 +     - In the 'Pod Geom' window, go to the 'Design' tab and change 'Length' to 1.0. 
 +     - Go to the 'XForm' tab and shift the pod forward by changing 'X Loc' to -0.1. \\ {{:1_add_pod.png?direct&200|}} 
 +  - Refine the pod 
 +     * Like the wing, the wireframe resolution of the pod will determine the resolution of the triangulation. 
 +     - In the 'Gen' tab of the 'Pod Geom' window, change 'Num XSecs:' and 'Num Points:' to 50. \\ {{:2_ref_pod.png?direct&200|}} 
 +  - Offset the wings 
 +     * The wing components must be offset slightly in the spanwise direction so the root faces of the opposite wing halves are not perfectly coincident. 
 +     - In the 'Geom Browser', select the wing component to bring up the 'Multi Section Wing Geom'
 +     - Under the 'XForm' tab, change the 'Y Loc' to 0.0001. \\ {{:3_shift_wings.png?direct&200|}} 
 +  - Export unintersected file 
 +     * An unintersected triangulated surface can be exported from VSP by attempting to export a triangulated format when no triangulated mesh exists.  In this situation, VSP will create an unintersected triangulated mesh on-the-fly. 
 +     - From the 'File' menu, select 'Export...'. \\ {{:4_click_export.png?direct&200|}} 
 +     - From the displayed list of export options, choose 'CART3d File (.tri)' Unintersected triangulated meshes must be written in TRI format.\\ {{:4.5_export_options.png?direct&200|}} 
 +     - In the 'Select File' dialog, navigate to the save location and choose a file name.  When you are satisfied, click 'Accept'. \\ {{:5_pick_file.png?direct&200|}} 
 +     * After the export has completed, VSP will display the unintersected mesh that was created on-the-fly.  The mesh shown on screen exactly corresponds to the information written to the file.  Note that the original geometry components are still present, but they have automatically been hidden. \\ {{:6_after_export.png?direct&200|}} 
 +     * Zooming in on the nose-region of the model demonstrates that no intersection or trimming operation has been performed. \\ {{:7_unintersected_proof.png?direct&200|}} 
 +   
 +==== Generating an Unintersected Wireframe from the Command Line ==== 
 + 
 +The VSP interface is the best way to set up and adjust the wireframe resolution, but once that is established, you may want to generate the wireframe from the command prompt. 
 + 
 +To generate an unintersected triangulated wireframe from the command line, enter the following command: 
 + 
 +<file> 
 +vsp -batch infile.vsp -tri 
 +</file> 
 + 
 +This command will generate the unintersected wireframe and write 'infile.tri'
 + 
 +==== Intersecting the Wireframe ==== 
 + 
 +Cart3D's intersect tool is used to intersect the triangulated components and create a single watertight body.  This tool is more thoroughly documented in the [[http://people.nas.nasa.gov/~aftosmis/cart3d/surfaceModeling.html|Cart3D documentation]]. 
 + 
 +If you copy the unintersected triangulated wireframe file from VSP to 'Components.tri' you can run Cart3D's intersect utility with no command-line options.  Otherwise, execute intersect with the following command: 
 + 
 +<file> 
 +intersect -i infile.tri 
 +</file> 
 + 
 +This command will intersect the components in 'infile.tri' and will write the result out to 'Components.i.tri' ready for analysis. 
 + 
 +===== Next Steps ===== 
 + 
 +Once you have successfully intersected the model, continue to the [[TutSetup|Cart3D Setup Tutorial]]. 
 + 
 +Or, feel free to jump to your topic of choice. 
 + 
 +  - [[OneraM6|Geometry Generation]] 
 +  - [[MeshOverview|Mesh Generation]] 
 +    * [[TutGenMesh|Isotropic Generated Mesh]] 
 +    * Unintersected Component Wireframe (This Page) 
 +    * [[TutCompGeom|Intersected Component Wireframe]] 
 +  - [[TutSTLtoTRI|STL to TRI Conversion]] 
 +  - [[TutSetup|Cart3D Setup]] 
 +  - [[TutRunCart3D|Cart3D Execution]]
tutunint.1329352132.txt.gz · Last modified: 2018/04/01 14:40 (external edit)