adapt.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
std::shared_ptr<Mesh>
adapt
(const Mesh &mesh)¶ Refine mesh uniformly @param[in] mesh (Mesh)
Input mesh@return std::shared_ptr<Mesh> adapted mesh
-
std::shared_ptr<Mesh>
adapt
(const Mesh &mesh, const MeshFunction<bool> &cell_markers)¶ Refine mesh based on cell markers @param[in] mesh (Mesh)
Input mesh- @param[in] cell_markers (MeshFunction<bool>)
- Markers denoting cells to be refined
-
std::shared_ptr<FunctionSpace>
adapt
(const FunctionSpace &space)¶ Refine function space uniformly @param[in] space (FunctionSpace) @return FunctionSpace
-
std::shared_ptr<FunctionSpace>
adapt
(const FunctionSpace &space, const MeshFunction<bool> &cell_markers)¶ Refine function space based on cell markers @param[in] space (FunctionSpace&) @param[in] cell_markers (MehsFunction<bool>&) @return FunctionSpace
Refine function space based on refined mesh @param[in] space (FunctionSpace&) @param[in] adapted_mesh (std::sahred_ptr<const Mesh>) @return FunctionSpace
Adapt Function based on adapted mesh
- @param[in] function (Function&)
- The function that should be adapted
- @param[in] adapted_mesh (std::shared_ptr<const Mesh>)
- The new mesh
- @param[in] interpolate (bool)
- Optional argument, default is true. If false, the function’s function space is adapted, but the values are not interpolated.
- @return
Function
- The adapted function
Refine GenericFunction based on refined mesh
- @param[in] function (GeericFunction)
- The function that should be adapted
- @param[in] adapted_mesh (Mehs)
- The new mesh
- @return
GenericFunction
- The adapted function
Refine mesh function<std::size_t> based on mesh
Refine Dirichlet bc based on refined mesh
-
void
adapt_markers
(std::vector<std::size_t> &refined_markers, const Mesh &adapted_mesh, const std::vector<std::size_t> &markers, const Mesh &mesh)¶ Helper function for refinement of boundary conditions
Adapt form based on adapted mesh
- @param[in] form (
Form
) - The form that should be adapted
- @param[in] adapted_mesh (
Mesh
) - The new mesh
- @param[in] adapt_coefficients (bool)
- Optional argument, default is true. If false, the form coefficients are not explicitly adapted, but pre-adapted coefficients will be transferred.
- @return
Form
- The adapted form
- @param[in] form (
Refine linear variational problem based on mesh
Refine nonlinear variational problem based on mesh
Adapt error control object based on adapted mesh
- @param ec (
ErrorControl
) - The error control object to be adapted
- @param adapted_mesh (
Mesh
) - The new mesh
- @param adapt_coefficients (bool)
- Optional argument, default is true. If false, any form coefficients are not explicitly adapted, but pre-adapted coefficients will be transferred.
- @return
ErrorControl
- The adapted error control object
- @param ec (