MovingVolumeSampler Class Reference

Kynema-SGF API: kynema_sgf::sampling::MovingVolumeSampler Class Reference
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <MovingVolumeSampler.H>

Inheritance diagram for kynema_sgf::sampling::MovingVolumeSampler:
[legend]
Collaboration diagram for kynema_sgf::sampling::MovingVolumeSampler:
[legend]

Classes

struct  VolumeGeometry

Public Member Functions

 MovingVolumeSampler (const CFDSim &sim)
void initialize (const std::string &key) override
void check_bounds () override
void sampling_locations (SampleLocType &sample_locs) const override
void sampling_locations (SampleLocType &sample_locs, const amrex::Box &box) const override
bool update_sampling_locations () override
std::string sampletype () const override
void define_netcdf_metadata (const ncutils::NCGroup &grp) const override
void output_netcdf_data (const ncutils::NCGroup &grp, size_t nt) const override
void populate_info_file (std::ostream &fh) const override
Public Member Functions inherited from kynema_sgf::sampling::VolumeSampler
 VolumeSampler (const CFDSim &)
 ~VolumeSampler () override
void initialize (const std::string &key) override
void check_bounds () override
 Check and fix the bounds of the sampler so the probes are in the domain.
void sampling_locations (SampleLocType &) const override
 Populate and return a vector of probe locations to be sampled.
void sampling_locations (SampleLocType &, const amrex::Box &) const override
 Populate the vector with coordinates of the sampling locations inside a box.
void output_locations (SampleLocType &sample_locs) const override
void define_netcdf_metadata (const ncutils::NCGroup &) const override
void populate_netcdf_metadata (const ncutils::NCGroup &) const override
std::string label () const override
 Name of this sampling object.
std::string & label () override
std::string sampletype () const override
 Type of this sampling object.
int id () const override
 Unique identifier for this set of probe locations.
int & id () override
long num_points () const override
 Number of probe locations along the line.
long num_output_points () const override
 Number of output probe locations (after data reduction etc.)

Static Public Member Functions

static std::string identifier ()
Static Public Member Functions inherited from kynema_sgf::sampling::VolumeSampler
static std::string identifier ()

Private Member Functions

bool update_geometry (amrex::Real time)

Private Attributes

VolumeGeometry m_reference
VolumeGeometry m_geometry
const ::kynema_sgf::actuator::ActuatorModel * m_actuator {nullptr}
std::string m_actuator_label
bool m_defer_bounds_check {true}

Additional Inherited Members

Protected Attributes inherited from kynema_sgf::sampling::VolumeSampler
const CFDSim & m_sim
amrex::Vector< amrex::Real > m_hi
amrex::Vector< amrex::Real > m_lo
amrex::Vector< int > m_npts_dir
bool m_snap_to_cell_center {false}

Detailed Description

Volume sampler expressed in and moving with an actuator reference frame.

Constructor & Destructor Documentation

◆ MovingVolumeSampler()

kynema_sgf::sampling::MovingVolumeSampler::MovingVolumeSampler ( const CFDSim & sim)
explicit

Member Function Documentation

◆ check_bounds()

void kynema_sgf::sampling::MovingVolumeSampler::check_bounds ( )
override

◆ define_netcdf_metadata()

void kynema_sgf::sampling::MovingVolumeSampler::define_netcdf_metadata ( const ncutils::NCGroup & grp) const
override

◆ identifier()

std::string kynema_sgf::sampling::MovingVolumeSampler::identifier ( )
inlinestatic

◆ initialize()

void kynema_sgf::sampling::MovingVolumeSampler::initialize ( const std::string & key)
override

◆ output_netcdf_data()

void kynema_sgf::sampling::MovingVolumeSampler::output_netcdf_data ( const ncutils::NCGroup & grp,
size_t nt ) const
override

◆ populate_info_file()

void kynema_sgf::sampling::MovingVolumeSampler::populate_info_file ( std::ostream & fh) const
override

◆ sampletype()

std::string kynema_sgf::sampling::MovingVolumeSampler::sampletype ( ) const
inlinenodiscardoverride

◆ sampling_locations() [1/2]

void kynema_sgf::sampling::MovingVolumeSampler::sampling_locations ( SampleLocType & sample_locs) const
override

◆ sampling_locations() [2/2]

void kynema_sgf::sampling::MovingVolumeSampler::sampling_locations ( SampleLocType & sample_locs,
const amrex::Box & box ) const
override

◆ update_geometry()

bool kynema_sgf::sampling::MovingVolumeSampler::update_geometry ( amrex::Real time)
private

◆ update_sampling_locations()

bool kynema_sgf::sampling::MovingVolumeSampler::update_sampling_locations ( )
override

Member Data Documentation

◆ m_actuator

const ::kynema_sgf::actuator::ActuatorModel* kynema_sgf::sampling::MovingVolumeSampler::m_actuator {nullptr}
private

◆ m_actuator_label

std::string kynema_sgf::sampling::MovingVolumeSampler::m_actuator_label
private

◆ m_defer_bounds_check

bool kynema_sgf::sampling::MovingVolumeSampler::m_defer_bounds_check {true}
private

◆ m_geometry

VolumeGeometry kynema_sgf::sampling::MovingVolumeSampler::m_geometry
private

◆ m_reference

VolumeGeometry kynema_sgf::sampling::MovingVolumeSampler::m_reference
private

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