25#ifndef __BITPIT_VOLUNSTRUCTURED_HPP__
26#define __BITPIT_VOLUNSTRUCTURED_HPP__
31#include "bitpit_patchkernel.hpp"
41#if BITPIT_ENABLE_MPI==1
43 VolUnstructured(
int dimension, MPI_Comm communicator, std::size_t haloSize = 1);
44 VolUnstructured(
int id,
int dimension, MPI_Comm communicator, std::size_t haloSize = 1);
51 std::unique_ptr<PatchKernel>
clone()
const override;
61 bool isPointInside(
const std::array<double, 3> &point)
const override;
62 bool isPointInside(
long id,
const std::array<double, 3> &point)
const override;
63 long locatePoint(
const std::array<double, 3> &point)
const override;
67 void _dump(std::ostream &stream)
const override;
68 void _restore(std::istream &stream)
override;
70#if BITPIT_ENABLE_MPI==1
void setExpert(bool expert)
long locatePoint(double x, double y, double z) const
The VolUnstructured class defines a dummy unstructured volume patch.
std::array< double, 3 > evalInterfaceNormal(long id) const override
std::unique_ptr< PatchKernel > clone() const override
double evalInterfaceArea(long id) const override
std::size_t _getMaxHaloSize() override
double evalCellSize(long id) const override
bool isPointInside(const std::array< double, 3 > &point) const override
double evalCellVolume(long id) const override
void _dump(std::ostream &stream) const override
void _restore(std::istream &stream) override
VolUnstructured(MPI_Comm communicator, std::size_t haloSize=1)
long locatePoint(const std::array< double, 3 > &point) const override
int _getDumpVersion() const override
The VolumeKernel class provides an interface for defining volume patches.
bool isPointInside(double x, double y, double z) const