GradientMagRefinement Class Reference

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

#include <GradientMagRefinement.H>

Inheritance diagram for amr_wind::GradientMagRefinement:
[legend]
Collaboration diagram for amr_wind::GradientMagRefinement:
[legend]

Public Member Functions

 GradientMagRefinement (const CFDSim &sim)
 
 ~GradientMagRefinement () override=default
 
void initialize (const std::string &key) override
 Read input file and initialize boxarray used to refine each level.
 
void operator() (int level, amrex::TagBoxArray &tags, amrex::Real time, int ngrow) override
 

Static Public Member Functions

static std::string identifier ()
 

Private Attributes

const CFDSimm_sim
 
Fieldm_field {nullptr}
 
amrex::Vector< amrex::Real > m_gradmag_value
 
int m_max_lev_field {-1}
 

Detailed Description

AMR refinement using a given field (e.g., density)

tagging.labels = t1
tagging/t1.type = GradientMagRefinement
tagging/t1.field_name = density
# Tagging based on field's gradient magnitude value
# tagging/t1.values = 10.0 10.0
Definition GradientMagRefinement.H:22

Constructor & Destructor Documentation

◆ GradientMagRefinement()

amr_wind::GradientMagRefinement::GradientMagRefinement ( const CFDSim & sim)
explicit

◆ ~GradientMagRefinement()

amr_wind::GradientMagRefinement::~GradientMagRefinement ( )
overridedefault

Member Function Documentation

◆ identifier()

static std::string amr_wind::GradientMagRefinement::identifier ( )
inlinestatic

◆ initialize()

void amr_wind::GradientMagRefinement::initialize ( const std::string & key)
override

Read input file and initialize boxarray used to refine each level.

◆ operator()()

void amr_wind::GradientMagRefinement::operator() ( int level,
amrex::TagBoxArray & tags,
amrex::Real time,
int ngrow )
override

Member Data Documentation

◆ m_field

Field* amr_wind::GradientMagRefinement::m_field {nullptr}
private

◆ m_gradmag_value

amrex::Vector<amrex::Real> amr_wind::GradientMagRefinement::m_gradmag_value
private

◆ m_max_lev_field

int amr_wind::GradientMagRefinement::m_max_lev_field {-1}
private

◆ m_sim

const CFDSim& amr_wind::GradientMagRefinement::m_sim
private

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