Enstrophy Class Reference

AMR-Wind API: amr_wind::enstrophy::Enstrophy Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <Enstrophy.H>

Inheritance diagram for amr_wind::enstrophy::Enstrophy:
[legend]
Collaboration diagram for amr_wind::enstrophy::Enstrophy:
[legend]

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
 
CFDSimm_sim
 Reference to the CFD sim.
 
const std::string m_label
 
const Fieldm_velocity
 reference to velocity
 
const Fieldm_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()

amr_wind::enstrophy::Enstrophy::~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()

static std::string amr_wind::enstrophy::Enstrophy::identifier ( )
inlinestatic

◆ initialize()

void amr_wind::enstrophy::Enstrophy::initialize ( )
override

Read user inputs and create the different data probe instances.

◆ post_advance_work()

void amr_wind::enstrophy::Enstrophy::post_advance_work ( )
override

Interpolate fields at a given timestep and output to disk.

◆ post_regrid_actions()

void amr_wind::enstrophy::Enstrophy::post_regrid_actions ( )
inlineoverride

◆ pre_init_actions()

void amr_wind::enstrophy::Enstrophy::pre_init_actions ( )
inlineoverride

Perform actions before mesh is created.

◆ prepare_ascii_file()

void amr_wind::enstrophy::Enstrophy::prepare_ascii_file ( )
private

prepare ASCII file and directory

◆ write_ascii()

void amr_wind::enstrophy::Enstrophy::write_ascii ( )
private

Output sampled data in ASCII format.

Member Data Documentation

◆ m_density

const Field& amr_wind::enstrophy::Enstrophy::m_density
private

reference to density

◆ m_label

const std::string amr_wind::enstrophy::Enstrophy::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::enstrophy::Enstrophy::m_out_fname
private

filename for ASCII output

◆ m_out_freq

int amr_wind::enstrophy::Enstrophy::m_out_freq {10}
private

Frequency of data sampling and output.

◆ m_precision

int amr_wind::enstrophy::Enstrophy::m_precision {12}
private

precision in ASCII output

◆ m_sim

CFDSim& amr_wind::enstrophy::Enstrophy::m_sim
private

Reference to the CFD sim.

◆ m_total_enstrophy

amrex::Real amr_wind::enstrophy::Enstrophy::m_total_enstrophy {0.0}
private

store the total enstrophy

◆ m_velocity

const Field& amr_wind::enstrophy::Enstrophy::m_velocity
private

reference to velocity

◆ m_width

int amr_wind::enstrophy::Enstrophy::m_width {22}
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