Skip to main content

Rocky Solver SDK 2025 R2

rocky_boundary_deformation

Last update: 16.07.2025
1// (C) 2024 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
2#pragma once
3
4#include "rocky20/cuda/cuda_basics.hpp"
5
6#include <string>
7
8class cuda_host;
9typedef cuda_host RockyModel;
10
11template<class Model>
12struct RockyBoundaryTriangle;
13
14struct RockyDeformableWallsModel
15{
20 explicit RockyDeformableWallsModel(RockyModel& model);
21
22 explicit RockyDeformableWallsModel(RockyModel& model, int impulse_scalar_idx);
23
29 void set_displacement_timestep(double time);
30
35 double get_displacement_timestep() const;
36
40 bool is_displacement_timestep_completed() const;
41
48 void fetch_triangle_impulses() const;
49
53 void reset_triangles_impulses();
54
61 const double3& get_triangle_impulse(const RockyBoundaryTriangle<RockyModel>& triangle) const;
62
69 void set_vertex_incremental_displacements(
70 int wall_index, int vertex_index, const double3& displacement);
71
72 RockyModel& _model;
73 const int _impulse_scalar_idx;
74 static const std::string IMPULSE_SCALAR_NAME;
75};

Connect with Ansys