Automated Meshing with WebUI
1.4. 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 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:
Create the Geometry and Surface Mesh from *.csm and *.json input files
1.4.1. 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:
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.
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.
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.
1.4.2. Volume Mesh#
Under the Action heading, select New Volume Mesh as shown below:
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.
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.
As shown below, select New Case under the Actions heading.
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.
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.
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.
Force convergence histories are shown below for this example ONERA M6 Wing.
When the simulation status is “completed”, the simulation results (with contour plots) can be viewed under the Visualization tab as shown below.