Enstrophy Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
#include <Enstrophy.H>
Public Member Functions | |
Enstrophy (CFDSim &, std::string) | |
~Enstrophy () override | |
void | pre_init_actions () override |
Perform actions before mesh is created. | |
void | initialize () override |
Read user inputs and create the different data probe instances. | |
void | post_advance_work () override |
Interpolate fields at a given timestep and output to disk. | |
void | post_regrid_actions () override |
amrex::Real | calculate_enstrophy () |
calculate the L2 norm of a given field and component | |
Static Public Member Functions | |
static std::string | identifier () |
Private Member Functions | |
void | prepare_ascii_file () |
prepare ASCII file and directory | |
void | write_ascii () |
Output sampled data in ASCII format. | |
Private Attributes | |
amrex::Real | m_total_enstrophy {0.0} |
store the total enstrophy | |
CFDSim & | m_sim |
Reference to the CFD sim. | |
const std::string | m_label |
const Field & | m_velocity |
reference to velocity | |
const Field & | m_density |
reference to density | |
std::string | m_out_fname |
filename for ASCII output | |
int | m_out_freq {10} |
Frequency of data sampling and output. | |
int | m_width {22} |
width in ASCII output | |
int | m_precision {12} |
precision in ASCII output | |
Detailed Description
enstrophy object
A concrete implementation of the post-processing interface that deals with the total enstrophy
Constructor & Destructor Documentation
◆ Enstrophy()
amr_wind::enstrophy::Enstrophy::Enstrophy | ( | CFDSim & | sim, |
std::string | label ) |
◆ ~Enstrophy()
|
overridedefault |
Member Function Documentation
◆ calculate_enstrophy()
amrex::Real amr_wind::enstrophy::Enstrophy::calculate_enstrophy | ( | ) |
calculate the L2 norm of a given field and component
◆ identifier()
|
inlinestatic |
◆ initialize()
|
override |
Read user inputs and create the different data probe instances.
◆ post_advance_work()
|
override |
Interpolate fields at a given timestep and output to disk.
◆ post_regrid_actions()
|
inlineoverride |
◆ pre_init_actions()
|
inlineoverride |
Perform actions before mesh is created.
◆ prepare_ascii_file()
|
private |
prepare ASCII file and directory
◆ write_ascii()
|
private |
Output sampled data in ASCII format.
Member Data Documentation
◆ m_density
|
private |
reference to density
◆ 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
|
private |
filename for ASCII output
◆ m_out_freq
|
private |
Frequency of data sampling and output.
◆ m_precision
|
private |
precision in ASCII output
◆ m_sim
|
private |
Reference to the CFD sim.
◆ m_total_enstrophy
|
private |
store the total enstrophy
◆ m_velocity
|
private |
reference to velocity
◆ m_width
|
private |
width in ASCII output
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/Enstrophy.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/utilities/sampling/Enstrophy.cpp
Generated by 1.12.0