download_cgns_multi#
- download_cgns_multi(load: bool = True) MultiBlock | str[source]#
Download a multielement airfoil with a cell centered solution.
Originally downloaded from CFD General Notation System Example Files
- Parameters:
- Returns:
- output
pyvista.MultiBlock|str Structured, 4 blocks, 2D (2 planes in third dimension) multielement airfoil, with cell centered solution. If
loadisFalse, then the path of the example CGNS file is returned.
- output
Examples#
Download Python source code | Download Jupyter notebook
Plot the airfoil dataset. Merge the multi-block and then plot the airfoil’s
"ViscosityEddy". Convert the cell data to point data as in this
dataset, the solution is stored within the cells.
>>> from pyvista import examples
>>> import pyvista as pv
>>> dataset = examples.download_cgns_multi()
>>> ugrid = dataset.combine()
>>> ugrid = ugrid = ugrid.cell_data_to_point_data()
>>> ugrid.plot(
... cmap='bwr',
... scalars='ViscosityEddy',
... zoom=4,
... cpos='xz',
... show_scalar_bar=False,
... )
See Also#
- Cgns Multi Dataset
See this dataset in the Dataset Gallery for more info.
Used In#
Docstring Examples
CGNSReader(1 use)CGNSReader.disable_all_bases(1 use)CGNSReader.disable_all_families(1 use)CGNSReader.distribute_blocks(1 use)CGNSReader.enable_all_bases(1 use)8 more
CGNSReader.enable_all_families(1 use)CGNSReader.load_boundary_patch(1 use)CGNSReader.unsteady_pattern(1 use)CGNSReader.vector_3d(1 use)MultiBlock.block_types(1 use)MultiBlock.is_homogeneous(1 use)MultiBlock.nested_block_types(1 use)MultiBlock.replace(1 use)