/home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/Sampling.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
Sampling.H
Go to the documentation of this file.
Definition CFDSim.H:47
Definition SamplingContainer.H:65
Definition Sampling.H:41
void write_info_file(const std::string &fname)
Output extra information for certain formats.
Definition Sampling.cpp:423
std::unique_ptr< DerivedQtyMgr > m_derived_mgr
List of derived fields to be sampled for this collection of probes.
Definition Sampling.H:133
amrex::Vector< IntField * > m_int_fields
List of IntFields to be sampled for this collection of probes.
Definition Sampling.H:130
int num_netcdf_output_particles() const
Definition Sampling.H:78
SamplingContainer & sampling_container()
Definition Sampling.H:115
int m_out_freq
Frequency of data sampling and output.
Definition Sampling.H:175
void post_advance_work() override
Interpolate fields at a given timestep and output to disk.
Definition Sampling.cpp:180
virtual void impl_write_native()
Write sampled data in binary format.
Definition Sampling.cpp:385
std::unique_ptr< SamplingContainer > m_scontainer
Definition Sampling.H:120
std::vector< double > m_output_buf
Definition Sampling.H:151
std::vector< double > m_sample_buf
Definition Sampling.H:148
~Sampling() override
size_t m_total_particles
Number of sampling container particles:
Definition Sampling.H:172
void post_regrid_actions() override
Actions to perform post regrid e.g. redistribute particles.
Definition Sampling.cpp:241
int num_total_particles() const
Definition Sampling.H:72
void initialize() override
Read user inputs and create the different data probe instances.
Definition Sampling.cpp:21
size_t m_netcdf_output_particles
Number of output particles in netcdf.
Definition Sampling.H:154
void update_sampling_locations()
Conduct work to update the particles.
Definition Sampling.cpp:163
void update_container()
Update the container by re-initializing the particles.
Definition Sampling.cpp:145
void convert_velocity_lineofsight()
Definition Sampling.cpp:252
virtual void process_output()
Output data based on user-defined format.
Definition Sampling.cpp:371
void write_netcdf()
Write sampled data into a NetCDF file.
Definition Sampling.cpp:520
amrex::Vector< Field * > m_fields
List of fields to be sampled for this collection of probes.
Definition Sampling.H:127
amrex::Vector< std::string > m_var_names
List of variable names for output.
Definition Sampling.H:124
amrex::Vector< std::unique_ptr< SamplerBase > > m_samplers
Definition Sampling.H:121
void pre_init_actions() override
Perform actions before mesh is created.
Definition Sampling.H:50
std::string m_out_fmt
Format of the data output (native, ascii, netcdf, etc.)
Definition Sampling.H:144
virtual void prepare_netcdf_file()
Prepare NetCDF metadata.
Definition Sampling.cpp:446
int m_out_delay
Delay number of timestep before output.
Definition Sampling.H:178
void create_output_buffer()
Definition Sampling.cpp:314
const amrex::Vector< std::string > & var_names() const
Definition Sampling.H:87
Definition DTUSpinnerSampler.cpp:16
Generated by 1.12.0