Shared VTK dump utilities for SPH-based models.
More...
Go to the source code of this file.
Shared VTK dump utilities for SPH-based models.
- Author
- Guo Yansong (guo.y.nosp@m.anso.nosp@m.ng.ng.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om)
-
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)
Contains common helper functions for VTK output that are shared between SPH and GSPH models.
Definition in file VTKDumpUtils.hpp.
◆ start_dump()
Start a VTK dump by writing particle positions.
- Template Parameters
-
| Tvec | Vector type (e.g., f64_3) |
- Parameters
-
| sched | Patch scheduler |
| dump_name | Output filename |
- Returns
- VTK writer ready for additional fields
Definition at line 42 of file VTKDumpUtils.hpp.
◆ vtk_dump_add_compute_field()
Add a compute field to VTK dump.
- Template Parameters
-
| T | Field type (scalar or vector) |
- Parameters
-
| sched | Patch scheduler |
| writer | VTK writer |
| field | Compute field to write |
| field_dump_name | Name of the field in VTK output |
Definition at line 143 of file VTKDumpUtils.hpp.
◆ vtk_dump_add_field()
Add a data field to VTK dump.
- Template Parameters
-
| T | Field type (scalar or vector) |
- Parameters
-
| sched | Patch scheduler |
| writer | VTK writer |
| field_idx | Field index in patch data |
| field_dump_name | Name of the field in VTK output |
Definition at line 172 of file VTKDumpUtils.hpp.
◆ vtk_dump_add_patch_id()
Add patch ID field to VTK dump.
- Parameters
-
| sched | Patch scheduler |
| writer | VTK writer |
Definition at line 66 of file VTKDumpUtils.hpp.
◆ vtk_dump_add_worldrank()
Add world rank field to VTK dump.
- Parameters
-
| sched | Patch scheduler |
| writer | VTK writer |
Definition at line 103 of file VTKDumpUtils.hpp.