IsPrimitiveStateCompatible Concept Reference

Developer Documentation: MeltPoolDG::CompressibleFlow::IsPrimitiveStateCompatible Concept Reference
Developer Documentation
MeltPoolDG::CompressibleFlow::IsPrimitiveStateCompatible Concept Reference

#include <data_types.hpp>

Concept definition

template<typename T, int dim>
concept MeltPoolDG::CompressibleFlow::IsPrimitiveStateCompatible = is_dealii_tensor<std::remove_cvref_t<T>>::value and
T::rank == 1 and T::dimension >= n_conserved_variables<dim>

Detailed Description

Concept ensuring compatibility of a type with the primitive variables of the compressible flow solver in dim dimensions.

This concept is similar to IsConservedStateCompatible and was created for convenience reasons.

Note
If this concept is used in the code base it is also assumed that the data stored in the type is indexed according to PrimitiveVariableIndex<dim>. However, it is not possible to enforce this assumption in the concept definition itself.