adapt¶
-
dolfin.cpp.fem.
adapt
(*args)¶ Overloaded versions
adapt(mesh)
Refine mesh uniformly
adapt(mesh, cell_markers)
Refine mesh based on cell markers
adapt(space)
Refine function space uniformly
adapt(space, cell_markers)
Refine function space based on cell markers
adapt(space, adapted_mesh)
Refine function space based on refined mesh
adapt(function, adapted_mesh, interpolate=true)
Adapt Function based on adapted mesh
- Arguments
- function (
Function
) The function that should be adapted
- adapted_mesh (
Mesh
) The new mesh
- interpolate (bool)
Optional argument, default is true. If false, the function’s function space is adapted, but the values are not interpolated.
- function (
- Returns
Function
The adapted function
adapt(function, adapted_mesh)
Refine GenericFunction based on refined mesh
adapt(mesh_function, adapted_mesh)
Refine mesh function<std::size_t> based on mesh
adapt(bc, adapted_mesh, S)
Refine Dirichlet bc based on refined mesh
adapt(form, adapted_mesh, adapt_coefficients=true)
Adapt form based on adapted mesh
adapt(problem, adapted_mesh)
Refine linear variational problem based on mesh
adapt(problem, adapted_mesh)
Refine nonlinear variational problem based on mesh
adapt(ec, adapted_mesh, adapt_coefficients=true)
Adapt error control object based on adapted mesh
- Arguments
- ec (
ErrorControl
) The error control object to be adapted
- adapted_mesh (
Mesh
) The new mesh
- adapt_coefficients (bool)
Optional argument, default is true. If false, any form coefficients are not explicitly adapted, but pre-adapted coefficients will be transferred.
- ec (
- Returns
ErrorControl
The adapted error control object