/home/runner/work/amr-wind/amr-wind/amr-wind/wind_energy/ABLStats.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
ABLStats.H
Go to the documentation of this file.
Definition ABLStats.H:35
void register_forcing_term(pde::icns::ABLForcing *forcing) const override
Definition ABLStats.H:84
void write_netcdf()
Write sampled data into a NetCDF file.
Definition ABLStats.cpp:494
pde::temperature::ABLMesoForcingTemp * m_abl_meso_temp_forcing
Definition ABLStats.H:158
~ABLStats() override
amrex::Real m_ref_theta
Reference surface temperature.
Definition ABLStats.H:180
virtual void prepare_ascii_file()
Prepare ASCII file.
Definition ABLStats.cpp:364
void calc_tke_diffusion(ScratchField &diffusion, const Field &buoy_prod, const Field &shear_prod, const Field &dissipation, const amrex::Real dt)
Calculate tke diffusion term by eliminating other terms.
Definition ABLStats.cpp:152
amrex::Real m_zi
Variable to store capping inversion height.
Definition ABLStats.H:183
virtual void prepare_netcdf_file()
Prepare NetCDF metadata.
Definition ABLStats.cpp:389
const VelPlaneAveragingFine & vel_profile() const override
Return vel plane averaging instance.
Definition ABLStats.H:61
void initialize()
Read user inputs and create the necessary files.
Definition ABLStats.cpp:47
pde::icns::ABLMesoForcingMom * m_abl_meso_mom_forcing
Definition ABLStats.H:157
amrex::Real m_dn
Cell spacing at the coarsest level.
Definition ABLStats.H:189
const FieldPlaneAveragingFine & theta_profile_fine() const override
Return instance that handles temperature statistics.
Definition ABLStats.H:79
int m_out_freq
Frequency of data sampling and output.
Definition ABLStats.H:171
ABLStats(CFDSim &, const ABLWallFunction &, const int dir)
Definition ABLStats.cpp:22
const VelPlaneAveraging & vel_profile_coarse() const override
Return vel plane averaging instance.
Definition ABLStats.H:67
void register_meso_mom_forcing(pde::icns::ABLMesoForcingMom *forcing) const override
Definition ABLStats.H:89
std::string m_out_fmt
Format of the data output (ascii, netcdf, etc.)
Definition ABLStats.H:163
const FieldPlaneAveraging & theta_profile() const override
Return instance that handles temperature statistics.
Definition ABLStats.H:73
void register_meso_temp_forcing(pde::temperature::ABLMesoForcingTemp *forcing) const override
Definition ABLStats.H:95
int m_normal_dir
Wall-normal direction axis.
Definition ABLStats.H:186
void pre_advance_work() override
Perform actions before a new timestep.
Definition ABLStats.H:52
pde::icns::ABLForcing * m_abl_forcing
Reference to ABL forcing term if present.
Definition ABLStats.H:155
virtual void process_output()
Output data based on user-defined format.
Definition ABLStats.cpp:283
size_t m_ncells_h1
Number of cells in the horizontal direction.
Definition ABLStats.H:192
void compute_zi()
Compute height of capping inversion.
Definition ABLStats.cpp:233
amrex::Real m_gravity
Acceleration due to gravity magnitude.
Definition ABLStats.H:174
void post_advance_work() override
Process fields given timestep and output to disk.
Definition ABLStats.cpp:209
void calc_averages()
Calculate plane average profiles.
Definition ABLStats.cpp:93
void calc_sfs_stress_avgs(ScratchField &sfs_stress, ScratchField &t_sfs_stress)
Calculate sfs stress averages.
Definition ABLStats.cpp:103
bool m_do_energy_budget
Do energy budget.
Definition ABLStats.H:196
Definition ABLWallFunction.H:20
Definition CFDSim.H:47
Definition Field.H:116
Definition ScratchField.H:30
Definition SecondMomentAveraging.H:26
Definition ThirdMomentAveraging.H:16
Definition FieldPlaneAveragingFine.H:114
Definition FieldPlaneAveraging.H:140
Definition ABLForcing.H:17
Definition ABLMesoForcingMom.H:26
Definition ABLMesoForcingTemp.H:19
Definition BCInterface.cpp:7
@ computed
Definition diffusion.H:8
Generated by 1.12.0