/home/runner/work/kynema/kynema/kynema/src/step/update_system_variables.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/step/update_system_variables.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
update_system_variables.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Kokkos_Core.hpp>
4#include <Kokkos_Profiling_ScopedRegion.hpp>
5
7#include "state/state.hpp"
11
12namespace kynema::step {
13
14template <typename DeviceType>
16 StepParameters& parameters, const Elements<DeviceType>& elements, State<DeviceType>& state
17) {
18 auto region = Kokkos::Profiling::ScopedRegion("Update System Variables");
19
20 if (elements.beams.num_elems > 0) {
21 UpdateSystemVariablesBeams(parameters, elements.beams, state);
22 }
23 if (elements.masses.num_elems > 0) {
24 UpdateSystemVariablesMasses(parameters, elements.masses, state);
25 }
26 if (elements.springs.num_elems > 0) {
28 }
29}
30
31} // namespace kynema::step
Definition assemble_constraints_matrix.hpp:11
void UpdateSystemVariablesMasses(const StepParameters &parameters, const Masses< DeviceType > &masses, State< DeviceType > &state)
Definition update_system_variables_masses.hpp:14
void UpdateSystemVariablesSprings(const Springs< DeviceType > &springs, State< DeviceType > &state)
Definition update_system_variables_springs.hpp:13
void UpdateSystemVariablesBeams(StepParameters &parameters, const Beams< DeviceType > &beams, State< DeviceType > &state)
Definition update_system_variables_beams.hpp:13
void UpdateSystemVariables(StepParameters &parameters, const Elements< DeviceType > &elements, State< DeviceType > &state)
Definition update_system_variables.hpp:15
A container providing handle to all structural elements present in the model.
Definition elements.hpp:20
Masses< DeviceType > masses
Definition elements.hpp:22
Springs< DeviceType > springs
Definition elements.hpp:23
Beams< DeviceType > beams
Definition elements.hpp:21
Container for storing the complete system state of the simulation at a given time increment.
Definition state.hpp:18
A Struct containing the paramters used to control the time stepping process.
Definition step_parameters.hpp:12