Skip to main content

Rocky Solver SDK 2025 R2

rocky_material_api

Last update: 16.07.2025
1// (C) 2024 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
2#pragma once
3
4// Includes =======================================================================================
5#include <rocky20/device/device_model.hpp>
6
7
8// ================================================================================================
9// IRockyMaterial
10// ================================================================================================
11
21{
29 inline ROCKY_FUNCTIONS double get_young_modulus() const;
30
34 inline ROCKY_FUNCTIONS double get_poisson_ratio() const;
35
39 inline ROCKY_FUNCTIONS double get_density() const;
40
44 inline ROCKY_FUNCTIONS double get_specific_heat() const;
45
49 inline ROCKY_FUNCTIONS double get_thermal_conductivity() const;
50
53 ROCKY_FUNCTIONS IRockyMaterial(const cuda_material &__impl) : _impl(__impl) {}
54
55 const cuda_material &_impl;
56
58};
59
60// ================================================================================================
61// IRockyMaterialInteraction
62// ================================================================================================
63
72{
81 inline ROCKY_FUNCTIONS double get_restitution_coefficient() const;
82
90 inline ROCKY_FUNCTIONS double get_minimum_restitution_coefficient() const;
91
97 inline ROCKY_FUNCTIONS double get_static_friction_coefficient() const;
98
104 inline ROCKY_FUNCTIONS double get_dynamic_friction_coefficient() const;
105
110 inline ROCKY_FUNCTIONS double get_stiffness_multiplier() const;
111
117 inline ROCKY_FUNCTIONS double get_tangential_stiffness_ratio() const;
118
121 ROCKY_FUNCTIONS IRockyMaterialInteraction(const MaterialInteraction &__impl) : _impl(__impl) {}
122
123 const MaterialInteraction &_impl;
124
126};
127
128
129// ================================================================================================
130// IRockyMaterial
131// ================================================================================================
132inline ROCKY_FUNCTIONS double IRockyMaterial::get_young_modulus() const
133{
134 return this->_impl.kn_load;
135}
136
137inline ROCKY_FUNCTIONS double IRockyMaterial::get_poisson_ratio() const
138{
139 return this->_impl.poisson_ratio;
140}
141
142inline ROCKY_FUNCTIONS double IRockyMaterial::get_density() const
143{
144 return this->_impl.dens;
145}
146
147inline ROCKY_FUNCTIONS double IRockyMaterial::get_specific_heat() const
148{
149 return this->_impl.specific_heat;
150}
151
152inline ROCKY_FUNCTIONS double IRockyMaterial::get_thermal_conductivity() const
153{
154 return this->_impl.thermal_conductivity;
155}
156
157// ================================================================================================
158// RockyMaterialInteraction
159// ================================================================================================
161{
162 return this->_impl.rest;
163}
164
166{
167 return this->_impl.minimum_rest;
168}
169
171{
172 return this->_impl.mu_st;
173}
174
176{
177 return this->_impl.mu_dn;
178}
179
180inline ROCKY_FUNCTIONS double IRockyMaterialInteraction::get_stiffness_multiplier() const
181{
182 return this->_impl.contact_stiff_ratio;
183}
184
186{
187 return this->_impl.kt_kn;
188}
189
Definition rocky_material_api.hpp:72
ROCKY_FUNCTIONS double get_static_friction_coefficient() const
Definition rocky_material_api.hpp:170
ROCKY_FUNCTIONS double get_tangential_stiffness_ratio() const
Definition rocky_material_api.hpp:185
ROCKY_FUNCTIONS double get_restitution_coefficient() const
Definition rocky_material_api.hpp:160
ROCKY_FUNCTIONS double get_minimum_restitution_coefficient() const
Definition rocky_material_api.hpp:165
ROCKY_FUNCTIONS double get_dynamic_friction_coefficient() const
Definition rocky_material_api.hpp:175
ROCKY_FUNCTIONS double get_stiffness_multiplier() const
Definition rocky_material_api.hpp:180
Definition rocky_material_api.hpp:21
ROCKY_FUNCTIONS double get_thermal_conductivity() const
Definition rocky_material_api.hpp:152
ROCKY_FUNCTIONS double get_poisson_ratio() const
Definition rocky_material_api.hpp:137
ROCKY_FUNCTIONS double get_specific_heat() const
Definition rocky_material_api.hpp:147
ROCKY_FUNCTIONS double get_young_modulus() const
Definition rocky_material_api.hpp:132
ROCKY_FUNCTIONS double get_density() const
Definition rocky_material_api.hpp:142

Connect with Ansys