This tutorial covers a new feature of NekMesh introduced in the two-dimensional mesh generator. This feature focuses on the creation of a NACA profile surrounded by a rectangular bounding box as well as its meshing.
NekMesh: High-order mesh generation (from
STEP)
before proceeding. This chapter however includes a reminder of the steps required to
generate a mesh and run the solver.To achieve the goals of this tutorial you will need an installation of the latest master
version
of Nektar++, available at nektar.info. This is because the features you will be using are
relatively new and have yet to be included in the latest release. Standard installation
instructions are applicable as described in the user guide, with one addition that CMake
should be configured to include NEKTAR_USE_MESHGEN=ON
. This will activate the installation of
the relevant meshing routines.
Homebrew: brew install homebrew/science/oce
MacPorts: port install oce
Ubuntu/Debian: sudo apt-get install liboce-foundation-dev
liboce-modeling-dev
Other Linux installations have a version of OCE in their package manager, usually
called liboce
.
Nektar++ will be able to pick up on any of these OCE installations. Installation of NekMesh on Windows with mesh generation is not possible due to the OpenCascade requirements at this time.
This tutorial additionally requires:
Nektar++ IncNavierStokesSolver with pre- and post-processing tools,
After the completion of this tutorial, you will be familiar with:
the generation of a 2D mesh from the NACA generator;
the visualisation of the mesh in Paraview or VisIt
running a simple simulation on this mesh with IncNavierStokesSolver; and
the post-processing of the data and the visualisation of the results in Paraview or VisIt.
Installed and tested Nektar++ v5.7.0 compiled from source. We will refer to the
directory where you installed Nektar++ as $NEK
for the remainder of the tutorial.
Make a directory of your choosing, for example tutorial
, and download the
tutorial files from mesh-generation-2d-naca.tar.gz into this directory.
Unpack the tutorial files by using
tar -xzvf mesh-generation-2d-naca.tar.gz
to produce a directory 2d-naca
with subdirectories called tutorial
and complete
.
The tutorial folder contains:
an .mcf file;
a session file which will run the NACA mesh.