/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/FreeSurfaceSampler.H Source File
|
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
FreeSurfaceSampler.H
Go to the documentation of this file.
Definition CFDSim.H:54
Definition Field.H:116
int m_gc0
Grid coordinates, determined as a function of m_coorddir.
Definition FreeSurfaceSampler.H:103
amrex::Vector< int > m_npts_dir
Number or points on 2D grid in each direction.
Definition FreeSurfaceSampler.H:93
amrex::Vector< amrex::Array< amrex::Real, 2 > > grid_locations() const
Locations.
Definition FreeSurfaceSampler.H:79
amrex::Vector< amrex::Real > m_out
Output coordinate.
Definition FreeSurfaceSampler.H:111
void initialize(const std::string &key) override
Read user inputs and create mesh-based information for locating interface.
Definition FreeSurfaceSampler.cpp:18
static std::string identifier()
Definition FreeSurfaceSampler.H:12
amrex::Vector< amrex::Array< amrex::Real, 2 > > m_grid_locs
Locations of points in 2D grid.
Definition FreeSurfaceSampler.H:109
std::string label() const override
Name of this sampling object.
Definition FreeSurfaceSampler.H:54
std::string m_label
Definition FreeSurfaceSampler.H:123
int m_coorddir
Coordinate direction to search along, default is z (this also determines the meaning of start and end...
Definition FreeSurfaceSampler.H:101
void output_locations(SampleLocType &sample_locs) const override
Definition FreeSurfaceSampler.H:34
void output_netcdf_data(const ncutils::NCGroup &, const size_t) const override
Definition FreeSurfaceSampler.cpp:871
FreeSurfaceSampler(CFDSim &)
Definition FreeSurfaceSampler.cpp:12
long num_points() const override
Number of points, total.
Definition FreeSurfaceSampler.H:70
std::string sampletype() const override
Type of this sampling object.
Definition FreeSurfaceSampler.H:58
int num_gridpoints() const
Output functions for private variables Number of 2D grid points.
Definition FreeSurfaceSampler.H:66
amrex::Vector< amrex::Real > m_end
Definition FreeSurfaceSampler.H:107
amrex::Real m_lx_linear
Parameter for optional linear interpolation.
Definition FreeSurfaceSampler.H:116
amrex::Vector< amrex::Real > heights() const
Outputs (heights)
Definition FreeSurfaceSampler.H:84
long num_output_points() const override
Definition FreeSurfaceSampler.H:74
void check_bounds() override
Check and fix the bounds of the sampler so the probes are in the domain.
Definition FreeSurfaceSampler.cpp:343
bool m_use_linear
Flag to use linear interpolation for surface finding in part of domain.
Definition FreeSurfaceSampler.H:114
void sampling_locations(SampleLocType &) const override
Populate and return a vector of probe locations to be sampled.
Definition FreeSurfaceSampler.cpp:376
int num_instances() const
Number of instances.
Definition FreeSurfaceSampler.H:68
std::string & label() override
Definition FreeSurfaceSampler.H:55
bool update_sampling_locations() override
Find heights associated with 2D sample locations.
Definition FreeSurfaceSampler.cpp:412
int m_ncomp
Max number of sample points found in a single cell.
Definition FreeSurfaceSampler.H:119
const Field & m_vof
reference to VOF
Definition FreeSurfaceSampler.H:90
void define_netcdf_metadata(const ncutils::NCGroup &) const override
Definition FreeSurfaceSampler.cpp:855
~FreeSurfaceSampler() override
int m_ninst
Number of instances (possible sampling points per location, like in the case of a breaking wave)
Definition FreeSurfaceSampler.H:97
int m_ncmax
Max number of sample points allowed in a single cell.
Definition FreeSurfaceSampler.H:121
void post_regrid_actions() override
Redo some of the initialization work when the grid changes.
Definition FreeSurfaceSampler.cpp:708
amrex::Vector< amrex::Real > m_start
Parameters to set up plane.
Definition FreeSurfaceSampler.H:107
int id() const override
Unique identifier for this set of probe locations.
Definition FreeSurfaceSampler.H:61
void populate_netcdf_metadata(const ncutils::NCGroup &) const override
Definition FreeSurfaceSampler.cpp:868
Definition DTUSpinnerSampler.cpp:16
Definition SamplerBase.H:16
Generated by