Interface Class Reference

Kynema API: kynema_fmb::interfaces::cfd::Interface Class Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
kynema_fmb::interfaces::cfd::Interface Class Reference

The main interface for controlling the CFD problem. More...

#include <interface.hpp>

Public Types

using DeviceType = Kokkos::Device< Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space >
 

Public Member Functions

 Interface (const InterfaceInput &input)
 Create an Interface from an InterfaceInput configuration object.
 
bool Step ()
 Step forward in time one time step.
 
void SaveState ()
 Save state for correction step.
 
void RestoreState ()
 Restore state for correction step.
 
void WriteRestart (const std::filesystem::path &filename) const
 Write restart file.
 
void ReadRestart (const std::filesystem::path &filename)
 Read restart file.
 
void WriteOutputs () const
 Write current state to output file if configured.
 

Public Attributes

Model model
 Kynema class used for model construction.
 
Turbine turbine
 Turbine model input/output data.
 
State< DeviceTypestate
 Kynema class for storing system state.
 
Elements< DeviceTypeelements
 Kynema class for model elements (beams, masses, springs)
 
Constraints< DeviceTypeconstraints
 Kynema class for constraints tying elements together.
 
StepParameters parameters
 Kynema class containing solution parameters.
 
Solver< DeviceTypesolver
 Kynema class for solving the dynamic system.
 
State< DeviceTypestate_save
 Kynema class state class for temporarily saving state.
 
kynema_fmb::interfaces::HostState< DeviceTypehost_state
 Host local copy of State.
 
size_t current_timestep_ {0}
 Current timestep index.
 
std::unique_ptr< interfaces::Outputsoutputs_
 Optional NetCDF output writer.
 

Detailed Description

The main interface for controlling the CFD problem.

Member Typedef Documentation

◆ DeviceType

using kynema_fmb::interfaces::cfd::Interface::DeviceType = Kokkos::Device<Kokkos::DefaultExecutionSpace, Kokkos::DefaultExecutionSpace::memory_space>

Constructor & Destructor Documentation

◆ Interface()

kynema_fmb::interfaces::cfd::Interface::Interface ( const InterfaceInput input)
explicit

Create an Interface from an InterfaceInput configuration object.

Parameters
inputThe input configuration object

Member Function Documentation

◆ ReadRestart()

void kynema_fmb::interfaces::cfd::Interface::ReadRestart ( const std::filesystem::path &  filename)

Read restart file.

Parameters
filenameThe name of the restart file

◆ RestoreState()

void kynema_fmb::interfaces::cfd::Interface::RestoreState ( )

Restore state for correction step.

◆ SaveState()

void kynema_fmb::interfaces::cfd::Interface::SaveState ( )

Save state for correction step.

◆ Step()

bool kynema_fmb::interfaces::cfd::Interface::Step ( )

Step forward in time one time step.

◆ WriteOutputs()

void kynema_fmb::interfaces::cfd::Interface::WriteOutputs ( ) const

Write current state to output file if configured.

◆ WriteRestart()

void kynema_fmb::interfaces::cfd::Interface::WriteRestart ( const std::filesystem::path &  filename) const

Write restart file.

Parameters
filenameThe name of the restart file

Member Data Documentation

◆ constraints

Constraints<DeviceType> kynema_fmb::interfaces::cfd::Interface::constraints

Kynema class for constraints tying elements together.

◆ current_timestep_

size_t kynema_fmb::interfaces::cfd::Interface::current_timestep_ {0}

Current timestep index.

◆ elements

Elements<DeviceType> kynema_fmb::interfaces::cfd::Interface::elements

Kynema class for model elements (beams, masses, springs)

◆ host_state

kynema_fmb::interfaces::HostState<DeviceType> kynema_fmb::interfaces::cfd::Interface::host_state

Host local copy of State.

◆ model

Model kynema_fmb::interfaces::cfd::Interface::model

Kynema class used for model construction.

◆ outputs_

std::unique_ptr<interfaces::Outputs> kynema_fmb::interfaces::cfd::Interface::outputs_

Optional NetCDF output writer.

◆ parameters

StepParameters kynema_fmb::interfaces::cfd::Interface::parameters

Kynema class containing solution parameters.

◆ solver

Solver<DeviceType> kynema_fmb::interfaces::cfd::Interface::solver

Kynema class for solving the dynamic system.

◆ state

State<DeviceType> kynema_fmb::interfaces::cfd::Interface::state

Kynema class for storing system state.

◆ state_save

State<DeviceType> kynema_fmb::interfaces::cfd::Interface::state_save

Kynema class state class for temporarily saving state.

◆ turbine

Turbine kynema_fmb::interfaces::cfd::Interface::turbine

Turbine model input/output data.


The documentation for this class was generated from the following files:
  • /home/runner/work/kynema-fmb/kynema-fmb/kynema-fmb/src/interfaces/cfd/interface.hpp
  • /home/runner/work/kynema-fmb/kynema-fmb/kynema-fmb/src/interfaces/cfd/interface.cpp