ReynoldsStress Class Reference

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

#include <ReynoldsStress.H>

Inheritance diagram for amr_wind::averaging::ReynoldsStress:
[legend]
Collaboration diagram for amr_wind::averaging::ReynoldsStress:
[legend]

Public Member Functions

 ReynoldsStress (CFDSim &, const std::string &avgname, const std::string &fname)
void operator() (const SimTime &, const amrex::Real, const amrex::Real, const amrex::Real) override
const std::string & average_field_name () override

Static Public Member Functions

static std::string identifier ()

Static Private Member Functions

static std::string stress_name (const std::string &fname, const std::string &avgname)
 Generate the Reynolds stress field name based on the field name and label.
static std::string re_stress_name (const std::string &fname, const std::string &avgname)

Private Attributes

const Fieldm_field
 Fluctuating field.
const Fieldm_average
 Reynolds averaged field.
Fieldm_stress
 The stresses < AB >
Fieldm_re_stress
 The reynolds stresses < ab > = < AB > - < A > < B >

Detailed Description

Compute correlation from 2 CFD fields The formula used to compute the correlations between two fields: A = < A > + a and B = < B > + b is < ab > = < AB > -< A >< B > where A and B are the mean values and a and b are the fluctuations

Constructor & Destructor Documentation

◆ ReynoldsStress()

amr_wind::averaging::ReynoldsStress::ReynoldsStress ( CFDSim & sim,
const std::string & avgname,
const std::string & fname )

Member Function Documentation

◆ average_field_name()

const std::string & amr_wind::averaging::ReynoldsStress::average_field_name ( )
override

◆ identifier()

std::string amr_wind::averaging::ReynoldsStress::identifier ( )
inlinestatic

◆ operator()()

void amr_wind::averaging::ReynoldsStress::operator() ( const SimTime & time,
const amrex::Real filter_width,
const amrex::Real avg_time_interval,
const amrex::Real elapsed_time )
override

Update field averaging at a given timestep

Parameters
timeSimTime instance
filter_widthTime-averaging window specified by user
avg_time_intervalTime interval at which averaging is performed
elapsed_timeTime elapsed since averaging was initiated

◆ re_stress_name()

std::string amr_wind::averaging::ReynoldsStress::re_stress_name ( const std::string & fname,
const std::string & avgname )
inlinestaticprivate

◆ stress_name()

std::string amr_wind::averaging::ReynoldsStress::stress_name ( const std::string & fname,
const std::string & avgname )
inlinestaticprivate

Generate the Reynolds stress field name based on the field name and label.

Member Data Documentation

◆ m_average

const Field& amr_wind::averaging::ReynoldsStress::m_average
private

Reynolds averaged field.

◆ m_field

const Field& amr_wind::averaging::ReynoldsStress::m_field
private

Fluctuating field.

◆ m_re_stress

Field& amr_wind::averaging::ReynoldsStress::m_re_stress
private

The reynolds stresses < ab > = < AB > - < A > < B >

◆ m_stress

Field& amr_wind::averaging::ReynoldsStress::m_stress
private

The stresses < AB >


The documentation for this class was generated from the following files: