RefinementCriteria Class Reference

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

#include <RefinementCriteria.H>

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

Public Member Functions

 RefinementCriteria ()=default
 
 ~RefinementCriteria () override=default
 
virtual void initialize (const std::string &key)=0
 
virtual void operator() (int level, amrex::TagBoxArray &tags, amrex::Real time, int ngrow)=0
 
- Public Member Functions inherited from amr_wind::Factory< RefinementCriteria, CFDSim & >
virtual ~Factory ()=default
 

Static Public Member Functions

static std::string base_identifier ()
 
- Static Public Member Functions inherited from amr_wind::Factory< RefinementCriteria, CFDSim & >
static std::unique_ptr< RefinementCriteriacreate (const std::string &key, Args... args)
 
static void print (std::ostream &os)
 

Additional Inherited Members

- Public Attributes inherited from amr_wind::Factory< RefinementCriteria, CFDSim & >
friend Base
 

Detailed Description

Abstract interface for tagging cells for refinement

This class provides an API that can be used by concrete implementations to tag cells that must be refined based on a pre-defined criteria. The criteria can be a heuristic determined from the solution (e.g., vorticity magntiude or gradients), or some user defined criteria (e.g., static, nested refinements).

Constructor & Destructor Documentation

◆ RefinementCriteria()

amr_wind::RefinementCriteria::RefinementCriteria ( )
default

◆ ~RefinementCriteria()

amr_wind::RefinementCriteria::~RefinementCriteria ( )
overridedefault

Member Function Documentation

◆ base_identifier()

static std::string amr_wind::RefinementCriteria::base_identifier ( )
inlinestatic

◆ initialize()

virtual void amr_wind::RefinementCriteria::initialize ( const std::string & key)
pure virtual

Perform initialization tasks (e.g., read from file etc.). Called before mesh is initialized

◆ operator()()

virtual void amr_wind::RefinementCriteria::operator() ( int level,
amrex::TagBoxArray & tags,
amrex::Real time,
int ngrow )
pure virtual

Perform tagging operation based on refinement criteria

Interface is the same as amrex::AmrCore::ErrorEst


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