SolutionBuilder Struct Reference

Kynema-FMB API: kynema_fmb::interfaces::components::SolutionBuilder Struct Reference
Kynema-FMB API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
kynema_fmb::interfaces::components::SolutionBuilder Struct Reference

A factory class for building a solution input, which is used by interfaces to control the time stepping proceedure. More...

#include <solution_builder.hpp>

Public Member Functions

SolutionBuilder & EnableStaticSolve ()
 solves this problem with the static solver
 
SolutionBuilder & EnableDynamicSolve ()
 Solves this problem with the dynamic solver.
 
SolutionBuilder & SetGravity (const std::array< double, 3 > &gravity)
 Sets the gravity vector for the problem.
 
SolutionBuilder & SetRelativeErrorTolerance (double rtol)
 Sets the relative error used to determine if nonlinear iterations have converged.
 
SolutionBuilder & SetAbsoluteErrorTolerance (double atol)
 Sets the absolute error used to determine if nonlinear iterations have converged.
 
SolutionBuilder & SetMaximumNonlinearIterations (size_t max_iter)
 Sets the maximum number of nonlinear iterations to take at each time step.
 
SolutionBuilder & SetTimeStep (double time_step)
 Sets the timestep size.
 
SolutionBuilder & SetDampingFactor (double rho_inf)
 Sets the numerical damping factor for the generalized alpha solver.
 
const SolutionInput & Input () const
 Creates a SolutionInput object based on the previously set parameters.
 

Detailed Description

A factory class for building a solution input, which is used by interfaces to control the time stepping proceedure.

Each of the methods returns a reference to this SolutionBuilder object, which allows chaining multiple calls together in a single statement.

Member Function Documentation

◆ EnableDynamicSolve()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::EnableDynamicSolve ( )

Solves this problem with the dynamic solver.

Returns
A reference to this solution builder object to allow chaining

◆ EnableStaticSolve()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::EnableStaticSolve ( )

solves this problem with the static solver

Returns
A reference to this solution builder object to allow chaining

◆ Input()

const SolutionInput & kynema_fmb::interfaces::components::SolutionBuilder::Input ( ) const

Creates a SolutionInput object based on the previously set parameters.

Returns
The completed SolutionInput object

◆ SetAbsoluteErrorTolerance()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::SetAbsoluteErrorTolerance ( double  atol)

Sets the absolute error used to determine if nonlinear iterations have converged.

Parameters
atolThe absolute error tolerance
Returns
A reference to this solution builder object to allow chaining

◆ SetDampingFactor()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::SetDampingFactor ( double  rho_inf)

Sets the numerical damping factor for the generalized alpha solver.

Ranged from 0 to 1

Parameters
rho_infThe damping factor
Returns
A reference to this solution builder object to allow chaining

◆ SetGravity()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::SetGravity ( const std::array< double, 3 > &  gravity)

Sets the gravity vector for the problem.

Parameters
gravityThe gravity vector
Returns
A reference to this solution builder object to allow chaining

◆ SetMaximumNonlinearIterations()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::SetMaximumNonlinearIterations ( size_t  max_iter)

Sets the maximum number of nonlinear iterations to take at each time step.

Parameters
max_iterThe maximum number of nonlinear iterations
Returns
A reference to this solution builder object to allow chaining

◆ SetRelativeErrorTolerance()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::SetRelativeErrorTolerance ( double  rtol)

Sets the relative error used to determine if nonlinear iterations have converged.

Parameters
rtolthe relative error tolerance
Returns
A reference to this solution builder object to allow chaining

◆ SetTimeStep()

SolutionBuilder & kynema_fmb::interfaces::components::SolutionBuilder::SetTimeStep ( double  time_step)

Sets the timestep size.

Parameters
time_stepThe time step size
Returns
A reference to this solution builder object to allow chaining

The documentation for this struct was generated from the following files: