#include <KineticEnergy.H>
kinetic energy object
A concrete implementation of the post-processing interface that deals with integrating total kinetic energy
◆ KineticEnergy()
amr_wind::kinetic_energy::KineticEnergy::KineticEnergy |
( |
CFDSim & | sim, |
|
|
std::string | label ) |
◆ ~KineticEnergy()
amr_wind::kinetic_energy::KineticEnergy::~KineticEnergy |
( |
| ) |
|
|
overridedefault |
◆ calculate_kinetic_energy()
amrex::Real amr_wind::kinetic_energy::KineticEnergy::calculate_kinetic_energy |
( |
| ) |
|
calculate the L2 norm of a given field and component
◆ identifier()
static std::string amr_wind::kinetic_energy::KineticEnergy::identifier |
( |
| ) |
|
|
inlinestatic |
◆ initialize()
void amr_wind::kinetic_energy::KineticEnergy::initialize |
( |
| ) |
|
|
override |
Read user inputs and create the different data probe instances.
◆ post_advance_work()
void amr_wind::kinetic_energy::KineticEnergy::post_advance_work |
( |
| ) |
|
|
override |
Interpolate fields at a given timestep and output to disk.
◆ post_regrid_actions()
void amr_wind::kinetic_energy::KineticEnergy::post_regrid_actions |
( |
| ) |
|
|
inlineoverride |
◆ pre_init_actions()
void amr_wind::kinetic_energy::KineticEnergy::pre_init_actions |
( |
| ) |
|
|
inlineoverride |
Perform actions before mesh is created.
◆ prepare_ascii_file()
void amr_wind::kinetic_energy::KineticEnergy::prepare_ascii_file |
( |
| ) |
|
|
private |
prepare ASCII file and directory
◆ write_ascii()
void amr_wind::kinetic_energy::KineticEnergy::write_ascii |
( |
| ) |
|
|
private |
Output sampled data in ASCII format.
◆ m_density
const Field& amr_wind::kinetic_energy::KineticEnergy::m_density |
|
private |
◆ m_label
const std::string amr_wind::kinetic_energy::KineticEnergy::m_label |
|
private |
Name of this sampling object.
The label is used to read user inputs from file and is also used for naming files directories depending on the output format.
◆ m_out_fname
std::string amr_wind::kinetic_energy::KineticEnergy::m_out_fname |
|
private |
filename for ASCII output
◆ m_out_freq
int amr_wind::kinetic_energy::KineticEnergy::m_out_freq {10} |
|
private |
Frequency of data sampling and output.
◆ m_precision
int amr_wind::kinetic_energy::KineticEnergy::m_precision {12} |
|
private |
precision in ASCII output
◆ m_sim
CFDSim& amr_wind::kinetic_energy::KineticEnergy::m_sim |
|
private |
Reference to the CFD sim.
◆ m_total_kinetic_energy
amrex::Real amr_wind::kinetic_energy::KineticEnergy::m_total_kinetic_energy {0.0} |
|
private |
store the total kinetic energy
◆ m_velocity
const Field& amr_wind::kinetic_energy::KineticEnergy::m_velocity |
|
private |
◆ m_width
int amr_wind::kinetic_energy::KineticEnergy::m_width {22} |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/KineticEnergy.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/KineticEnergy.cpp