Shortcuts

Struct FOExtrapLoader

Inheritance Relationships

Base Type

Struct Documentation

struct ripple::FOExtrapLoader : public ripple::PaddingLoader<FOExtrapLoader>

The FOExtrapLoader is an implementation of an BoundaryLoader which copies the data from the closest valid cell inside the domain to all padding cells.

It performs a first order extrapolation of the data in an iterator into the padding data for the iterator.

Public Functions

template<typename Iterator, typename Dim>
constexpr auto load_front(Iterator &&it, int index, Dim &&dim) const noexcept -> void

Loads the front padding in the dim dimension, using the value of the index in the dimension to find the appropriate cell.

Parameters
  • it: An iterator to the padding cell to load.

  • index: The index of the padding cell in the dimension.

  • dim: The dimension to load the padding in.

Template Parameters
  • Iterator: The type of the iterator.

  • Dim: The type of the dimension specifier.

template<typename Iterator, typename Dim>
constexpr auto load_back(Iterator &&it, int index, Dim &&dim) const noexcept -> void

Loads the back padding in the dim dimension, using the value of the index in the dimension to find the appropriate cell.

Parameters
  • it: An iterator to the padding cell to load.

  • index: The index of the padding cell in the dimension.

  • dim: The dimension to load the padding in.

Template Parameters
  • Iterator: The type of the iterator.

  • Dim: The type of the dimension specifier.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples