mapping.discrete_gallery#
Functions#
|
Create a SplineMapping by interpolating one of the available analytical mappings. |
|
Get a list of |
Classes#

|
Details#
- get_available_mappings(ldim)[source]#
Get a list of
mappingvalues accepted as argument todiscrete_mapping.- Parameters:
- ldimint
The number of logical dimensions of the topological domain.
- Returns:
- tuple
All the accepted values for the
mappingparameter.
- discrete_mapping(mapping, ncells, degree, *, comm=<mpi4py.MPI.Intracomm object>, mpi_dims_mask=None, return_space=False)[source]#
Create a SplineMapping by interpolating one of the available analytical mappings.
- Parameters:
- mappingstr
The name of the mapping. See
available_mappingsto get the options.- ncellsIterable[int]
The number of cells along each logical dimension.
- degreeIterable[int]
The spline degree along each logical dimension.
- commMPI.Intracomm, optional
The MPI intracommunicator.
- mpi_dims_maskIterable[bool], optional
True if the dimension is to be used in the domain decomposition (=default for each dimension). If mpi_dims_mask[i]=False, the i-th dimension will not be decomposed.
- return_spacebool, optional
Whether this function should also return the discrete space it creates.
- Returns:
- map_discreteSplineMapping
The spline mapping created.
- spaceTensorFemSpace
The space of the components of the spline mapping. Only returned if
return_spaceis True.