    

 ## On this page

  

 

 # rocky\_time\_curve\_data

 Last update: 16.07.2025 

<a id="l00001" name="l00001"></a> 1// (C) 2024 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.

<a id="l00002" name="l00002"></a> 2\#pragma once

<a id="l00003" name="l00003"></a> 3 

<a id="l00004" name="l00004"></a> 4\#include &lt;rocky20/addins/rocky\_addin.h&gt;

<a id="l00005" name="l00005"></a> 5 

<a id="l00006" name="l00006"></a> 6// Forward declaration

<a id="l00007" name="l00007"></a> 7namespace rocky20 {

<a id="l00008" name="l00008"></a> 8class RockyAddinCurvesWriter;

<a id="l00009" name="l00009"></a> 9}

<a id="l00010" name="l00010"></a> 10 

<a id="l00011" name="l00011"></a> 11struct RockyCurveCollectionData

<a id="l00012" name="l00012"></a> 12{

<a id="l00013" name="l00013"></a> 13public:

<a id="l00014" name="l00014"></a> 14 explicit RockyCurveCollectionData(

<a id="l00015" name="l00015"></a> 15 std::shared_ptr&lt;rocky20::RockyAddinCurvesWriter&gt; datasets_writer);

<a id="l00016" name="l00016"></a> 16 

<a id="l00017" name="l00017"></a> 17 void create_particles_dataset(const std::string&amp; name, const std::string&amp; unit);

<a id="l00018" name="l00018"></a> 18 void create_solver_dataset(const std::string&amp; name, const std::string&amp; unit);

<a id="l00019" name="l00019"></a> 19 void create_geometry_dataset(const std::string&amp; name, const std::string&amp; unit, int geometry_id);

<a id="l00020" name="l00020"></a> 20 void create_custom_dataset(

<a id="l00021" name="l00021"></a> 21 const std::string&amp; domain_name, const std::string&amp; unit, const std::string&amp; owner_name);

<a id="l00022" name="l00022"></a> 22 

<a id="l00023" name="l00023"></a> 23 void create_particles_curve(const std::string&amp; domain_name, const std::string&amp; image_name);

<a id="l00024" name="l00024"></a> 24 void create_solver_curve(const std::string&amp; domain_name, const std::string&amp; image_name);

<a id="l00025" name="l00025"></a> 25 void create_geometry_curve(

<a id="l00026" name="l00026"></a> 26 const std::string&amp; domain_name, const std::string&amp; image_name, int geometry_id);

<a id="l00027" name="l00027"></a> 27 void create_custom_curve(

<a id="l00028" name="l00028"></a> 28 const std::string&amp; domain_name, const std::string&amp; image_name, const std::string&amp; owner_name);

<a id="l00029" name="l00029"></a> 29 

<a id="l00030" name="l00030"></a> 30 void create_particles_time_curve(const std::string&amp; name, const std::string&amp; unit);

<a id="l00031" name="l00031"></a> 31 void create_solver_time_curve(const std::string&amp; name, const std::string&amp; unit);

<a id="l00032" name="l00032"></a> 32 void create_geometry_time_curve(const std::string&amp; name, const std::string&amp; unit, int geometry_id);

<a id="l00033" name="l00033"></a> 33 void create_custom_time_curve(const std::string&amp; name, const std::string&amp; unit, const std::string&amp; owner_name);

<a id="l00034" name="l00034"></a> 34 

<a id="l00035" name="l00035"></a> 35 void setup_particles_dataset_dimension(const std::string&amp; name, double dimension);

<a id="l00036" name="l00036"></a> 36 void setup_solver_dataset_dimension(const std::string&amp; name, double dimension);

<a id="l00037" name="l00037"></a> 37 void setup_geometry_dataset_dimension(

<a id="l00038" name="l00038"></a> 38 const std::string&amp; name, double dimension, int geometry_id);

<a id="l00039" name="l00039"></a> 39 void setup_custom_dataset_dimension(const std::string&amp; name, double dimension, const std::string&amp; owner_name);

<a id="l00040" name="l00040"></a> 40 

<a id="l00041" name="l00041"></a> 41 void update_particles_dataset(const std::string&amp; name, const double* dataset, size\_t size);

<a id="l00042" name="l00042"></a> 42 void update_solver_dataset(const std::string&amp; name, const double* dataset, size\_t size);

<a id="l00043" name="l00043"></a> 43 void update_geometry_dataset(

<a id="l00044" name="l00044"></a> 44 const std::string&amp; name, const double* dataset, size\_t size, int geometry_id);

<a id="l00045" name="l00045"></a> 45 void update_custom_dataset(

<a id="l00046" name="l00046"></a> 46 const std::string&amp; name, const double* dataset, size\_t size, const std::string&amp; owner_name);

<a id="l00047" name="l00047"></a> 47 

<a id="l00048" name="l00048"></a> 48 std::shared_ptr&lt;rocky20::RockyAddinCurvesWriter&gt; _datasets_writer;

<a id="l00049" name="l00049"></a> 49};