Skip to main content

Rocky Solver SDK 2024 R2

rocky_model

Last update: 17.07.2025
1#pragma once
2
3// Includes =======================================================================================
4#include <rocky20/device/device_model.hpp>
5#include <rocky20/api/rocky_point_cloud_api.hpp>
6#include <rocky20/api/rocky_pair_scalars.hpp>
7#include <rocky20/api/rocky_boundary_scalars.hpp>
8
9// ================================================================================================
10// RockyDeviceModel
11// ================================================================================================
12struct RockyDeviceModel
13{
14 ROCKY_FUNCTIONS const cuda_solver_dimensions & get_dimensions() const
15 {
16 return *(this->model->dims);
17 }
18
19 double current_time = 0.0;
20
21 ROCKY_FUNCTIONS double get_timestep() const
22 {
23 return this->model->gen->dt;
24 }
25
26 ROCKY_FUNCTIONS double get_current_time() const
27 {
28 return this->current_time;
29 }
30
31 SDeviceModel *model;
32};

Connect with Ansys