api_device_cfd_coupling
Last update: 16.07.2025 4// Includes =================================================================================================
15 const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data,
137 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
171 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
183 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
189// Operator defined with drag laws implementation with light weight code, with less impact of performance.
215 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
219 case cfd_drag_law_SchillerNaumann1933: DragLaw<SchillerNaumann1933Operator>(particle, cfd, output, data); break;
220 case cfd_drag_law_Dallavalle1948: DragLaw<Dallavalle1948Operator>(particle, cfd, output, data); break;
221 case cfd_drag_law_HaiderLevenspiel1989: DragLaw<HaiderLevenspiel1989Operator>(particle, cfd, output, data); break;
222 case cfd_drag_law_MorsiAlexander1972: DragLaw<MorsiAlexander1972Operator>(particle, cfd, output, data); break;
225 case cfd_drag_law_GidaspowBezburuahDing1992: DragLaw<GidaspowBezburuahDing1992Operator>(particle, cfd, output, data); break;
226 case cfd_drag_law_HuilinGidaspow2003: DragLaw<HuilinGidaspow2003Operator>(particle, cfd, output, data); break;
227 case cfd_drag_law_DiFelice1994: DragLaw<DiFelice1994Operator>(particle, cfd, output, data); break;
228 case cfd_drag_law_HillKochLadd2001: DragLaw<HillKochLadd2001Operator>(particle, cfd, output, data); break;
229 case cfd_drag_law_HillKoch2001: DragLaw<HillKoch2001Operator>(particle, cfd, output, data); break;
230 case cfd_drag_law_SyamlalOBrien1987: DragLaw<SyamlalOBrien1987Operator>(particle, cfd, output, data); break;
235// Operator defined with drag laws implementation with light weight code, with less impact of performance.
251 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
256 case cfd_drag_law_MarheinekeWegener2011: MarheinekeWegener2011Operator::DragLaw(particle, cfd, output); break;
264 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
274 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
285 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
288 device_data->particle_scalars->get_virtual_mass(particle._impl.particle_index) = output.virtual_mass;
298 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
301 device_data->particle_scalars->get_virtual_mass(particle._impl.particle_index) = output.virtual_mass;
308 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
318 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
329 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
332 device_data->particle_transfer_scalars->get_heat_transfer(particle._impl.particle_index) += output.heat_transfer;
342 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
345 device_data->particle_transfer_scalars->get_heat_transfer(particle._impl.particle_index) += output.heat_transfer;
354 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
426 void operator()(const IRockyParticle& particle, const IRockyCFDProperties& cfd, CFDCouplingOutput& output, void* data)
449Dispatch function, a sequence of selector function calls, that will at the end collected all operators in a
490void select_turbulence_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, Operators... operators)
499void select_coupling_mode_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, Operators... operators)
509void select_cfd_data_recorder_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, Operators... operators)
513 select_coupling_mode_and(data, h_gen_cfd, operators..., CFDDataRecorderOperator{ data.device_data });
517 // When compiling the kernel with custom laws, we must limit the number of times we instantiate the coupling kernel.
530void select_convection_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, const CFDParticleGroup& group, Operators... operators)
539 select_cfd_data_recorder_and(data, h_gen_cfd, operators..., custom_convection_operator<Plugin>(data.device_data));
543 select_cfd_data_recorder_and(data, h_gen_cfd, operators..., HeatConvectionOperator{ data.device_data });
548void select_torque_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, const CFDParticleGroup& group, Operators... operators)
556 select_convection_and<Plugin>(data, h_gen_cfd, group, operators..., TorqueParametricOperator<DennisSinghIngham1980Operator>());
560 select_convection_and<Plugin>(data, h_gen_cfd, group, operators..., custom_torque_operator<Plugin>());
567void select_virtual_mass_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, const CFDParticleGroup& group, Operators... operators)
576 select_torque_and<Plugin>(data, h_gen_cfd, group, operators..., custom_virtual_mass_operator<Plugin>(data.device_data));
580 select_torque_and<Plugin>(data, h_gen_cfd, group, operators..., VirtualMassOperator{ data.device_data });
585void select_lift_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, const CFDParticleGroup& h_group, Operators... operators)
593 // select_virtual_mass_and<Plugin>(data, h_gen_cfd, h_group, operators..., LiftOperator<Mei1992Operator>());
596 // select_virtual_mass_and<Plugin>(data, h_gen_cfd, h_group, operators..., LiftOperator<Saffman1968Operator>());
600 select_virtual_mass_and<Plugin>(data, h_gen_cfd, h_group, operators..., custom_lift_operator<Plugin>());
609void select_drag_and(CouplingDispatchData& data, const cuda_general_cfd& h_gen_cfd, const CFDParticleGroup& h_group)
641 CouplingDispatchData data{ is_cuda, collect_cfd_data, device_data, particle_indexes, n_particles, udf_data };
Definition rocky_cfd.hpp:27
ROCKY_FUNCTIONS double3 get_relative_velocity() const
Definition rocky_cfd.hpp:113
ROCKY_FUNCTIONS double get_fluid_temperature() const
Definition rocky_cfd.hpp:55
Definition rocky_model_api.hpp:20
Definition rocky_particle_api.hpp:28
ROCKY_FUNCTIONS IRockyParticleScalars get_scalars()
Definition rocky_particle_api.hpp:536
ROCKY_FUNCTIONS double3 get_translational_velocity() const
Definition rocky_particle_api.hpp:415