include/meltpooldg/utilities/amr_regions.hpp Source File
|
Developer Documentation
|
amr_regions.hpp
Go to the documentation of this file.
Type-erased wrapper representing a geometric region for adaptive mesh refinement.
Definition amr_regions.hpp:49
bool point_inside(const dealii::Point< dim, number > &p) const
Checks whether a given point lies inside this region.
Definition amr_regions.hpp:68
AMRRegion(T &®ion)
Constructs an AMRRegion from a user-defined region object.
Definition amr_regions.hpp:57
Represents a spherical region for adaptive mesh refinement.
Definition amr_regions.hpp:124
SphereAMRRegion(const dealii::Point< dim, number > ¢er, const number radius)
Construct a spherical AMR region.
Definition amr_regions.hpp:134
bool point_inside(const dealii::Point< dim, number > &p) const
Check whether a point lies inside the sphere.
Definition amr_regions.hpp:148
const dealii::Point< dim, number > center
Definition amr_regions.hpp:154
Represents a spherical shell region for adaptive mesh refinement (AMR).
Definition amr_regions.hpp:163
void serialize(Archive &ar, const unsigned int)
Serialize or deserialize the object's data members.
Definition amr_regions.hpp:215
number outer_radius
Definition amr_regions.hpp:225
SphericalShellAMRRegion()=default
Default constructor (required for boost serialization). Sets all members to 0.
dealii::Point< dim, number > center
Definition amr_regions.hpp:223
bool point_inside(const dealii::Point< dim, number > &p) const
Check whether a point lies inside the spherical shell.
Definition amr_regions.hpp:201
number inner_radius
Definition amr_regions.hpp:224
SphericalShellAMRRegion(const dealii::Point< dim, number > ¢er, const number inner_radius, const number outer_radius)
Construct a spherical shell AMR region.
Definition amr_regions.hpp:182
Definition amr.hpp:15
bool set_refinement_flags_in_regions(dealii::Triangulation< dim > &tria, const std::vector< AMRRegion< dim, number > > ®ions={}, bool do_coarsening=false)
Marks cells in a triangulation for refinement if their centers fall inside specified regions.
Definition amr_regions.hpp:247
Abstract base interface for all region types.
Definition amr_regions.hpp:80
virtual bool point_inside(const dealii::Point< dim, number > &p) const =0
virtual ~Concept()=default
Concrete wrapper around a user-defined region type.
Definition amr_regions.hpp:98
bool point_inside(const dealii::Point< dim, number > &p) const override
Definition amr_regions.hpp:104
T model
The actual object for describing the behavior of the region.
Definition amr_regions.hpp:111
Generated by