.. _om6_wing_quickstart_webUI: .. |deg| unicode:: U+000B0 .. DEGREE SIGN :trim: .. |br| raw:: html
Automated Meshing with WebUI **************************** This page will demonstrate how to run a simulation of the ONERA M6 Wing using the Web UI with geometry built in Engineering Sketch Pad (ESP). More information about ESP installation is available :ref:`here `. To build the geometry through ESP, we use a series of statements and commands in a scripted fashion. This gives users the ability to rebuild and modify the model most efficiently. All ESP statements and commands are held in a \*.csm file. ESP uses the OpenCSM (Open-source Constructive Solid Modeling) system which is a feature-based, associative, parametric solid modeler. The input to OpenCSM is an ASCII, human-readable \*.csm file that is used to describe the model through a series of design parameters and a build prescription. This quick start will guide users through the following steps: #. :ref:`Create the Geometry and Surface Mesh from \*.csm and \*.json input files ` #. :ref:`Create the Volume Mesh from the Surface Mesh ` #. :ref:`Run the Case from the Volume Mesh ` .. figure:: Figures/om6Model.png :width: 700px :align: center :alt: ONERA M6 Wing in ESP *ONERA M6 Wing generated in ESP* **Flow condition** - Reynolds: 14.6e+6 - Mach: 0.84 - AoA: 3.06 |deg| .. _SurfaceMesh: Geometry and Surface Mesh ^^^^^^^^^^^^^^^^^^^^^^^^^ To begin, upload a geometry model built in CSM format. To do this, simply sign in to Flow360 at `flow360.simulation.cloud `_ and click the **Surface Mesh** tab. Then, click the **Upload** icon as displayed below: .. figure:: Figures/uploadCSM.png :align: center |br| This will open an upload panel. Select **Upload**, navigate to and then select the CSM file. The ONERA M6 Wing ESP Model used in this quick start tutorial can be downloaded here: `om6wing.csm `_. Provide a name for the surface mesh in the "Surface Mesh Name:" field. In the "Release history:" dropdown, select the solver version. This can be left blank here to use the latest released solver version (default). Then click **Choose File** to upload the JSON file for surface mesh generation. For this case, an example surface mesh parameters JSON file is `om6SurfaceMesh.json `_. Finally, select **Submit**. .. figure:: Figures/submitSurfaceMesh.png :align: center |br| The processing status of the submitted surface mesh can be monitored below the **Status** heading. When the surface mesh is fully processed, generating the volume mesh can be continued. .. note:: Please note that status "uploaded" occurs prior to "processed". First, Flow360 receives the necessary files and then starts processing them. Once processing is complete the surface mesh is ready for use. .. _VolumeMesh: Volume Mesh ^^^^^^^^^^^ Under the **Action** heading, select **New Volume Mesh** as shown below: .. figure:: Figures/volumeMesh.png :align: center |br| This will open the volume mesh panel as shown below. In the panel, a name can be added to the volume mesh in the "Volume Mesh Name:" field and the solver version selected in the "Release History:" dropdown (leave blank here). In the "JSON Config:" field, when the mouse is held at the right bottom corner, an option to select and upload a volume mesh parameters JSON file can be seen. Click **Select file** to upload the JSON file for volume mesh generation. For this case, an example volume mesh parameters JSON file is `om6VolumeMesh.json `_. Finally, click **Submit**. .. figure:: Figures/submitVolumeMesh.png :align: center |br| The processing status of the submitted volume mesh can then be monitored in the **Volume Mesh** tab. Once processed, the CFD case can be submitted. .. _webUI_launch_case: .. _RunCase: Simulation ^^^^^^^^^^ As shown below, select **New Case** under the **Actions** heading. .. figure:: Figures/case.png :align: center |br| This will open the case panel shown below. Select **Upload JSON file** to upload a case configuration JSON file. An example case configuration JSON file with parameters specified for the ONERA M6 Wing CFD simulation is `om6Case.json `_. .. figure:: Figures/uploadCase.png :align: center |br| After selecting the case JSON file, the case upload panel shown below will open. In this panel, the simulation can be given a name in the "Case Name:" field. Finally, press **Submit** to launch the CFD simulation. .. figure:: Figures/submitCase.png :align: center |br| The new simulation status will display in the **Case** tab. When it is "running", click on the case under the **Name** heading to monitor convergence of the simulation in the **Convergence** and **Forces** tabs as shown below. .. figure:: Figures/convergence.png :width: 600px :align: center Force convergence histories are shown below for this example ONERA M6 Wing. .. figure:: Figures/CL_CD.png :width: 700px :align: center .. figure:: Figures/CF.png :width: 700px :align: center .. figure:: Figures/CM.png :width: 700px :align: center |br| When the simulation status is "completed", the simulation results (with contour plots) can be viewed under the **Visualization** tab as shown below. .. figure:: Figures/cpVisualization.png :width: 800px :align: center