Skip to main content

Rocky Solver SDK 2025 R2

rocky_time_curve_data

Last update: 16.07.2025
1// (C) 2024 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
2#pragma once
3
4#include <rocky20/addins/rocky_addin.h>
5
6// Forward declaration
7namespace rocky20 {
8class RockyAddinCurvesWriter;
9}
10
11struct RockyCurveCollectionData
12{
13public:
14 explicit RockyCurveCollectionData(
15 std::shared_ptr<rocky20::RockyAddinCurvesWriter> datasets_writer);
16
17 void create_particles_dataset(const std::string& name, const std::string& unit);
18 void create_solver_dataset(const std::string& name, const std::string& unit);
19 void create_geometry_dataset(const std::string& name, const std::string& unit, int geometry_id);
20 void create_custom_dataset(
21 const std::string& domain_name, const std::string& unit, const std::string& owner_name);
22
23 void create_particles_curve(const std::string& domain_name, const std::string& image_name);
24 void create_solver_curve(const std::string& domain_name, const std::string& image_name);
25 void create_geometry_curve(
26 const std::string& domain_name, const std::string& image_name, int geometry_id);
27 void create_custom_curve(
28 const std::string& domain_name, const std::string& image_name, const std::string& owner_name);
29
30 void create_particles_time_curve(const std::string& name, const std::string& unit);
31 void create_solver_time_curve(const std::string& name, const std::string& unit);
32 void create_geometry_time_curve(const std::string& name, const std::string& unit, int geometry_id);
33 void create_custom_time_curve(const std::string& name, const std::string& unit, const std::string& owner_name);
34
35 void setup_particles_dataset_dimension(const std::string& name, double dimension);
36 void setup_solver_dataset_dimension(const std::string& name, double dimension);
37 void setup_geometry_dataset_dimension(
38 const std::string& name, double dimension, int geometry_id);
39 void setup_custom_dataset_dimension(const std::string& name, double dimension, const std::string& owner_name);
40
41 void update_particles_dataset(const std::string& name, const double* dataset, size_t size);
42 void update_solver_dataset(const std::string& name, const double* dataset, size_t size);
43 void update_geometry_dataset(
44 const std::string& name, const double* dataset, size_t size, int geometry_id);
45 void update_custom_dataset(
46 const std::string& name, const double* dataset, size_t size, const std::string& owner_name);
47
48 std::shared_ptr<rocky20::RockyAddinCurvesWriter> _datasets_writer;
49};

Connect with Ansys