const Quadrature<dim - 1> & quadrature,
const UpdateFlags update_flags)
: n_quadrature_points(quadrature.size())
- , internal_fe_face_values(StaticMappingQ1<dim, spacedim>::mapping,
- fe,
- quadrature,
- update_flags)
- , internal_fe_subface_values(StaticMappingQ1<dim, spacedim>::mapping,
- fe,
- quadrature,
- update_flags)
- , internal_fe_face_values_neighbor(StaticMappingQ1<dim, spacedim>::mapping,
- fe,
- quadrature,
- update_flags)
- , internal_fe_subface_values_neighbor(StaticMappingQ1<dim, spacedim>::mapping,
- fe,
- quadrature,
- update_flags)
+ , internal_fe_face_values(
+ // TODO: We should query the default mapping for the kind of cell
+ // represented by 'fe' and 'q':
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ fe,
+ quadrature,
+ update_flags)
+ , internal_fe_subface_values(
+ // TODO: We should query the default mapping for the kind of cell
+ // represented by 'fe' and 'q':
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ fe,
+ quadrature,
+ update_flags)
+ , internal_fe_face_values_neighbor(
+ // TODO: We should query the default mapping for the kind of cell
+ // represented by 'fe' and 'q':
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ fe,
+ quadrature,
+ update_flags)
+ , internal_fe_subface_values_neighbor(
+ // TODO: We should query the default mapping for the kind of cell
+ // represented by 'fe' and 'q':
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ fe,
+ quadrature,
+ update_flags)
, fe_face_values(nullptr)
, fe_face_values_neighbor(nullptr)
{}
tr.begin_active()->set_refine_flag(RefinementCase<dim>(ref_case));
tr.execute_coarsening_and_refinement();
- FEValues<dim, spacedim> fine(StaticMappingQ1<dim, spacedim>::mapping,
- fe,
- q_fine,
- update_quadrature_points |
- update_JxW_values | update_values);
+ FEValues<dim, spacedim> fine(
+ // TODO: We should query the default mapping for the kind of cell
+ // represented by 'fe' and 'q':
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ fe,
+ q_fine,
+ update_quadrature_points | update_JxW_values | update_values);
typename Triangulation<dim, spacedim>::cell_iterator coarse_cell =
tr.begin(0);
double
volume(const Triangulation<dim, spacedim> &tria,
const Mapping<dim, spacedim> & mapping =
- (StaticMappingQ1<dim, spacedim>::mapping));
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Return an approximation of the diameter of the smallest active cell of a
*/
template <int dim, int spacedim>
double
- minimal_cell_diameter(const Triangulation<dim, spacedim> &triangulation,
- const Mapping<dim, spacedim> & mapping =
- (StaticMappingQ1<dim, spacedim>::mapping));
+ minimal_cell_diameter(
+ const Triangulation<dim, spacedim> &triangulation,
+ const Mapping<dim, spacedim> & mapping =
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Return an approximation of the diameter of the largest active cell of a
*/
template <int dim, int spacedim>
double
- maximal_cell_diameter(const Triangulation<dim, spacedim> &triangulation,
- const Mapping<dim, spacedim> & mapping =
- (StaticMappingQ1<dim, spacedim>::mapping));
+ maximal_cell_diameter(
+ const Triangulation<dim, spacedim> &triangulation,
+ const Mapping<dim, spacedim> & mapping =
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Given a list of vertices (typically obtained using
*/
template <int dim, int spacedim>
std::map<unsigned int, Point<spacedim>>
- extract_used_vertices(const Triangulation<dim, spacedim> &container,
- const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ extract_used_vertices(
+ const Triangulation<dim, spacedim> &container,
+ const Mapping<dim, spacedim> & mapping =
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Find and return the index of the closest vertex to a given point in the
const typename Triangulation<dim, spacedim>::active_cell_iterator &cell,
const Point<spacedim> & position,
const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Compute a globally unique index for each vertex and hanging node
*/
Cache(const Triangulation<dim, spacedim> &tria,
const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Destructor.
& function_map,
AffineConstraints<double> & constraints,
const Mapping<dim, spacedim> &mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* This function does the same as the
const std::set<types::boundary_id> &boundary_ids,
AffineConstraints<double> & constraints,
const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim,spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Compute the constraints that correspond to boundary conditions of the
& function_map,
AffineConstraints<double> & constraints,
const Mapping<dim, spacedim> &mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim,spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* Same as above for homogeneous tangential-flux constraints.
const std::set<types::boundary_id> &boundary_ids,
AffineConstraints<double> & constraints,
const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim,spacedim>(
+ ReferenceCell::get_hypercube(dim)));
//@}
} // namespace VectorTools
const std::vector<Point<dim>> & particle_reference_locations,
ParticleHandler<dim, spacedim> & particle_handler,
const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* A function that generates one particle at a random location in cell @p cell and with
const types::particle_index id,
std::mt19937 & random_number_generator,
const Mapping<dim, spacedim> &mapping =
- StaticMappingQ1<dim, spacedim>::mapping);
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)));
/**
* A function that generates particles randomly in the domain with a
const types::particle_index n_particles_to_create,
ParticleHandler<dim, spacedim> & particle_handler,
const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping,
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
const unsigned int random_number_seed = 5432);
*/
template <int dim, int spacedim = dim>
void
- dof_support_points(const DoFHandler<dim, spacedim> &dof_handler,
- const std::vector<std::vector<BoundingBox<spacedim>>>
- & global_bounding_boxes,
- ParticleHandler<dim, spacedim> &particle_handler,
- const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping,
- const ComponentMask &components = ComponentMask(),
- const std::vector<std::vector<double>> &properties = {});
+ dof_support_points(
+ const DoFHandler<dim, spacedim> &dof_handler,
+ const std::vector<std::vector<BoundingBox<spacedim>>>
+ & global_bounding_boxes,
+ ParticleHandler<dim, spacedim> &particle_handler,
+ const Mapping<dim, spacedim> & mapping =
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ const ComponentMask & components = ComponentMask(),
+ const std::vector<std::vector<double>> &properties = {});
/**
* A function that generates particles at the locations of the quadrature
*/
template <int dim, int spacedim = dim>
void
- quadrature_points(const Triangulation<dim, spacedim> &triangulation,
- const Quadrature<dim> & quadrature,
- const std::vector<std::vector<BoundingBox<spacedim>>>
- & global_bounding_boxes,
- ParticleHandler<dim, spacedim> &particle_handler,
- const Mapping<dim, spacedim> & mapping =
- StaticMappingQ1<dim, spacedim>::mapping,
- const std::vector<std::vector<double>> &properties = {});
+ quadrature_points(
+ const Triangulation<dim, spacedim> &triangulation,
+ const Quadrature<dim> & quadrature,
+ const std::vector<std::vector<BoundingBox<spacedim>>>
+ & global_bounding_boxes,
+ ParticleHandler<dim, spacedim> &particle_handler,
+ const Mapping<dim, spacedim> & mapping =
+ ReferenceCell::get_default_linear_mapping<dim, spacedim>(
+ ReferenceCell::get_hypercube(dim)),
+ const std::vector<std::vector<double>> &properties = {});
} // namespace Generators
} // namespace Particles