# PetscFVSetType
Builds a particular `PetscFV` 
## Synopsis
```
#include "petscfv.h" 
PetscErrorCode PetscFVSetType(PetscFV fvm, PetscFVType name)
```
Collective on fvm


## Input Parameters

- ***fvm  -*** The `PetscFV` object
- ***name -*** The type of FVM space



## Options Database Key

- ***-petscfv_type <type> -*** Sets the `PetscFVType`; use -help for a list of available types





## See Also
 `PetscFV`, `PetscFVType`, `PetscFVGetType()`, `PetscFVCreate()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/fv/interface/fv.c.html#PetscFVSetType">src/dm/dt/fv/interface/fv.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ts/tutorials/ex52.c.html">src/ts/tutorials/ex52.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/fv/interface/fv.c)


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