36 use utils,
only: neko_type_error
40 use json_utils,
only : json_get
41 use utils,
only : concat_string_array, neko_error
45 character(len=20) :: MAPPING_KNOWN_TYPES(3) = [character(len=20) :: &
55 module subroutine mapping_factory(object, json, coef)
56 class(mapping_t),
allocatable,
intent(inout) :: object
57 type(json_file),
intent(inout) :: json
58 type(coef_t),
intent(inout) :: coef
59 character(len=:),
allocatable :: type_name
61 call json_get(json,
"type", type_name)
63 select case (trim(type_name))
71 call neko_type_error(
"Mapping function", type_name, mapping_known_types)
75 call object%init(json, coef)
77 end subroutine mapping_factory
79end submodule mapping_fctry
A linear mapping of coefficients.
Mappings to be applied to a scalar field.
A RAMP mapping of coefficients.
A linear mapping of coefficients $f(x) = f_{min} + (f_{max} - f_{min}) x$.
A PDE based filter mapping , see Lazarov & O. Sigmund 2010, by solving an equation of the form .
A RAMP mapping of coefficients This is the standard RAMP described in https://doi....