/home/runner/work/kynema/kynema/kynema/src/interfaces/components/solution_input.hpp Source File

Kynema API: /home/runner/work/kynema/kynema/kynema/src/interfaces/components/solution_input.hpp Source File
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
solution_input.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <string>
5
7
9
15 std::array<double, 3> gravity{0., 0., 0.};
16
18 bool dynamic_solve{true};
19
21 double time_step{0.01};
22
24 double rho_inf{0.0};
25
27 size_t max_iter{5U};
28
31
34
36 std::string output_file_path;
37
40 [[nodiscard]] StepParameters Parameters() const {
41 return {
42 this->dynamic_solve,
43 this->max_iter,
44 this->time_step,
45 this->rho_inf,
48 };
49 }
50};
51
52} // namespace kynema::interfaces::components
Definition aerodynamics.cpp:3
A Struct containing the paramters used to control the time stepping process.
Definition step_parameters.hpp:12
A configuration object used to create the low level StepParameters object.
Definition solution_input.hpp:13
double rho_inf
Solver numerical damping factor (0 = maximum damping)
Definition solution_input.hpp:24
std::string output_file_path
Output file path for NetCDF results (empty = no outputs will be written)
Definition solution_input.hpp:36
bool dynamic_solve
Flag to toggle between static and dynamic solve.
Definition solution_input.hpp:18
std::array< double, 3 > gravity
Array of gravity components (XYZ)
Definition solution_input.hpp:15
size_t max_iter
Maximum number of convergence iterations.
Definition solution_input.hpp:27
double absolute_error_tolerance
Absolute error tolerance.
Definition solution_input.hpp:30
double relative_error_tolerance
Relative error tolerance.
Definition solution_input.hpp:33
StepParameters Parameters() const
Construct step parameters from inputs.
Definition solution_input.hpp:40
double time_step
Solver time step.
Definition solution_input.hpp:21