ConstraintData Struct Reference
|
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
Loading...
Searching...
No Matches
kynema::interfaces::ConstraintData Struct Reference
A wrapper around the Constraint ID of a given constraint. More...
#include <constraint_data.hpp>
Public Types | |
| using | DeviceType = Kokkos::Device< Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space > |
Public Member Functions | |
| ConstraintData (size_t id_) | |
| Constraint data constructor. | |
| void | GetLoads (const HostConstraints< DeviceType > &host_constraints) |
| Populates constraint Loads from state data. | |
| void | GetOutputs (const HostConstraints< DeviceType > &host_constraints) |
| Populates constraint outputs from state data. | |
| void | SetInputs (HostConstraints< DeviceType > &host_constraints) const |
| Sets the constraint inputs in the host constraints. | |
Public Attributes | |
| size_t | id |
| Constraint identifier in model. | |
| std::array< double, 6 > | inputs {0., 0., 0., 0., 0., 0.} |
| Constraint inputs. | |
| std::array< double, 3 > | outputs {0., 0., 0.} |
| Constraint outputs. | |
| std::array< double, 6 > | loads {0., 0., 0., 0., 0., 0.} |
| Point loads/moment applied by constraint in global coordinates. | |
Detailed Description
A wrapper around the Constraint ID of a given constraint.
Member Typedef Documentation
◆ DeviceType
| using kynema::interfaces::ConstraintData::DeviceType = Kokkos::Device<Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space> |
Constructor & Destructor Documentation
◆ ConstraintData()
|
inlineexplicit |
Constraint data constructor.
- Parameters
-
id_ Constraint identifier in model
Member Function Documentation
◆ GetLoads()
| void kynema::interfaces::ConstraintData::GetLoads | ( | const HostConstraints< DeviceType > & | host_constraints | ) |
Populates constraint Loads from state data.
- Parameters
-
host_constraints Host constraints from which to obtain data
◆ GetOutputs()
| void kynema::interfaces::ConstraintData::GetOutputs | ( | const HostConstraints< DeviceType > & | host_constraints | ) |
Populates constraint outputs from state data.
- Parameters
-
host_constraints Host constraints from which to obtain data
◆ SetInputs()
| void kynema::interfaces::ConstraintData::SetInputs | ( | HostConstraints< DeviceType > & | host_constraints | ) | const |
Sets the constraint inputs in the host constraints.
- Parameters
-
host_constraints Host constraints to update
Member Data Documentation
◆ id
| size_t kynema::interfaces::ConstraintData::id |
Constraint identifier in model.
◆ inputs
| std::array<double, 6> kynema::interfaces::ConstraintData::inputs {0., 0., 0., 0., 0., 0.} |
Constraint inputs.
◆ loads
| std::array<double, 6> kynema::interfaces::ConstraintData::loads {0., 0., 0., 0., 0., 0.} |
Point loads/moment applied by constraint in global coordinates.
◆ outputs
| std::array<double, 3> kynema::interfaces::ConstraintData::outputs {0., 0., 0.} |
Constraint outputs.
The documentation for this struct was generated from the following files:
- /home/runner/work/kynema/kynema/kynema/src/interfaces/constraint_data.hpp
- /home/runner/work/kynema/kynema/kynema/src/interfaces/constraint_data.cpp
Generated by