Skip to content

HOHQMesh

Docs-dev Build Status Coveralls Codecov License: MIT

HOHQMesh, the High Order Hex-Quad Mesher, is an open-source mesh generator that automatically creates quadrilateral/hexahedral meshes with high-order boundary information.

Getting started

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.

Install with Spack

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

Obtaining the sources

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.

Building

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.

Testing

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 ..

Generating a mesh

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.

Authors

HOHQMesh was initiated by David A. Kopriva, who is also the principal developer. The full list of contributors can be found in the Authors section.

License and contributing

HOHQMesh is licensed under the MIT license (see the License section).