# TSAdaptDSPSetFilter
Sets internal parameters corresponding to the named filter 
## Synopsis
```
#include "petscts.h" 
PetscErrorCode TSAdaptDSPSetFilter(TSAdapt adapt, const char *name)
```
Collective on TSAdapt


## Input Parameters

- ***adapt -*** adaptive controller context
- ***name -*** filter name





## References

- **** -*** http://dx.doi.org/10.1145/641876.641877



## Notes
Valid filter names are

- ***"basic" -*** similar to TSADAPTBASIC but with different criteria for step rejections.
- ***"PI30", "PI42", "PI33", "PI34" -*** PI controllers.
- ***"PC11", "PC47", "PC36" -*** predictive controllers.
- ***"H0211", "H211b", "H211PI" -*** digital filters with orders dynamics=2, adaptivity=1, filter=1.
- ***"H0312", "H312b", "H312PID" -*** digital filters with orders dynamics=3, adaptivity=1, filter=2.
- ***"H0321", "H321" -*** digital filters with orders dynamics=3, adaptivity=2, filter=1.



## Options Database

- ***-ts_adapt_dsp_filter <name> -*** Sets predefined controller by name; use -help for a list of available controllers



## See Also
 `TS`, `TSAdapt`, `TSGetAdapt()`, `TSAdaptDSPSetPID()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/adapt/impls/dsp/adaptdsp.c.html#TSAdaptDSPSetFilter">src/ts/adapt/impls/dsp/adaptdsp.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/adapt/impls/dsp/adaptdsp.c.html#TSAdaptDSPSetFilter_DSP">TSAdaptDSPSetFilter_DSP in src/ts/adapt/impls/dsp/adaptdsp.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ts/adapt/impls/dsp/adaptdsp.c)


[Index of all TS routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
