/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
std::unique_ptr< DerivedQtyMgr > m_derived_mgr
List of derived fields to be sampled for this collection of probes.
Definition Sampling.H:130
amrex::Vector< IntField * > m_int_fields
List of IntFields to be sampled for this collection of probes.
Definition Sampling.H:127
int num_netcdf_output_particles() const
Definition Sampling.H:78
SamplingContainer & sampling_container()
Definition Sampling.H:112
int m_out_freq
Frequency of data sampling and output.
Definition Sampling.H:172
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:117
std::vector< double > m_output_buf
Definition Sampling.H:148
std::vector< double > m_sample_buf
Definition Sampling.H:145
~Sampling() override
size_t m_total_particles
Number of sampling container particles:
Definition Sampling.H:169
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:151
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:492
amrex::Vector< Field * > m_fields
List of fields to be sampled for this collection of probes.
Definition Sampling.H:124
amrex::Vector< std::string > m_var_names
List of variable names for output.
Definition Sampling.H:121
amrex::Vector< std::unique_ptr< SamplerBase > > m_samplers
Definition Sampling.H:118
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:141
virtual void prepare_netcdf_file()
Prepare NetCDF metadata.
Definition Sampling.cpp:418
int m_out_delay
Delay number of timestep before output.
Definition Sampling.H:175
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