HOHQMesh, the High Order Hex-Quad Mesher, is an open-source mesh generator that automatically creates quadrilateral/hexahedral meshes with high-order boundary information.
HOHQMesh can be used via HOHQMesh.jl, a Julia package that provides an interface to HOHQMesh and that supplies precompiled executables for Linux, macOS, Windows, and FreeBSD. If you would like to use HOHQMesh directly from the command line, please continue reading the next sections for instructions on how to obtain the sources and compile HOHQMesh yourself.
You can install HOHQMesh using the Spack package manager. To install the HOHQMesh with Spack,
git clone https://github.com/spack/spack.git ~/spack
source ~/spack/share/spack/setup-env.sh
spack install hohqmesh@main
This will install HOHQMesh and all of its dependencies (including FTObjectLibrary) from source code. Once installed, HOHQMesh can be added to your environment using
spack load hohqmesh
You can download the
latest HOHQMesh release
from GitHub. Make sure to get the tarball named HOHQMesh-vVERSION.tar.gz
, as
it already contains the required sources for the
FTObjectLibrary
dependency, and unpack it with tar xf HOHQMesh-vVERSION.tar.gz
.
Alternatively, you can build HOHQMesh directly from the latest sources in the
main
branch. In this case, you need enter the clone directory and execute
./Utilities/bootstrap
before proceeding, which will download the FTObjectLibrary
sources for you.
This step is required only once.
Enter the HOHQMesh directory and execute
make
This will build HOHQMesh using the gfortran
compiler by default.
The compiler choice can be overridden by passing FC=<pathToCompiler>
to
make
.
You can further pass the -jN
option to make
(with N
being a non-negative
integer), which will use N
parallel processes.
For example, to build HOHQMesh specifically with the Fortran compiler
gfortran-10
and with 4 parallel processes, execute
make -j 4 FC=gfortran-10
HOHQMesh is tested to run with the gfortran
and ifort
compilers. We recommend the gfortran
compiler. Our experience on the test suite is that it runs about 50% slower with the ifort
compiler.
After building HOHQMesh, you can verify that everything works as expected by running the internal test suite. To execute the tests, type
./HOHQMesh -test -path <pathToBenchmarks>
where <pathToBenchmarks>
is the path to the HOHQMesh directory. If you are
inside the HOHQMesh directory, you can also omit the -path
option, as it
defaults to .
.
To mesh a control file, type
./HOHQMesh -f <pathToControlFile>
where -f
allows you to provide the path to the control file for which you want
to create your mesh.
HOHQMesh was initiated by David A. Kopriva, who is also the principal developer. The full list of contributors can be found in AUTHORS.md.
HOHQMesh is licensed under the MIT license (see LICENSE.md).