Skip to main content

Rocky Solver SDK 2024 R2

rocky_time_curve_data

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

Connect with Ansys