![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shammodels/sph/modules/io/VTKDump.hpp"#include "shambackends/kernel_call.hpp"#include "shammodels/common/io/VTKDumpUtils.hpp"#include "shammodels/sph/math/density.hpp"#include "shamrock/io/LegacyVtkWriter.hpp"#include "shamrock/patch/PatchDataFieldSpan.hpp"#include "shamrock/scheduler/SchedulerUtility.hpp"Go to the source code of this file.
Namespaces | |
| namespace | shammodels |
| namespace for models | |
| namespace | shammodels::sph |
| namespace for the sph model | |
| namespace | shammodels::sph::modules |
| namespace for the sph model modules | |
Functions | |
| template<class Tvec> | |
| shamrock::LegacyVtkWriter | start_dump (PatchScheduler &sched, const std::string &dump_name) |
| Start a VTK dump by writing particle positions. | |
| template<class T> | |
| void | vtk_dump_add_compute_field (PatchScheduler &sched, shamrock::LegacyVtkWriter &writer, shamrock::ComputeField< T > &field, const std::string &field_dump_name) |
| Add a compute field to VTK dump. | |
| template<class T> | |
| void | vtk_dump_add_field (PatchScheduler &sched, shamrock::LegacyVtkWriter &writer, u32 field_idx, const std::string &field_dump_name) |
| Add a data field to VTK dump. | |
| void | vtk_dump_add_patch_id (PatchScheduler &sched, shamrock::LegacyVtkWriter &writer) |
| Add patch ID field to VTK dump. | |
| void | vtk_dump_add_worldrank (PatchScheduler &sched, shamrock::LegacyVtkWriter &writer) |
| Add world rank field to VTK dump. | |
Definition in file VTKDump.cpp.
|
inline |
Start a VTK dump by writing particle positions.
| Tvec | Vector type (e.g., f64_3) |
| sched | Patch scheduler |
| dump_name | Output filename |
Definition at line 42 of file VTKDumpUtils.hpp.
|
inline |
Add a compute field to VTK dump.
| T | Field type (scalar or vector) |
| 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.
|
inline |
Add a data field to VTK dump.
| T | Field type (scalar or vector) |
| 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.
|
inline |
Add patch ID field to VTK dump.
| sched | Patch scheduler |
| writer | VTK writer |
Definition at line 66 of file VTKDumpUtils.hpp.
|
inline |
Add world rank field to VTK dump.
| sched | Patch scheduler |
| writer | VTK writer |
Definition at line 103 of file VTKDumpUtils.hpp.