ScratchField Class Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
#include <ScratchField.H>
Public Member Functions | |
ScratchField (const ScratchField &)=delete | |
ScratchField & | operator= (const ScratchField &)=delete |
const std::string & | name () const |
Name if available for this scratch field. | |
int | num_comp () const |
Number of components for this field. | |
const amrex::IntVect & | num_grow () const |
Ghost cells. | |
FieldLoc | field_location () const |
Cell, node, face where the field is stored. | |
amrex::MultiFab & | operator() (int lev) |
Return the field data for a given level. | |
const amrex::MultiFab & | operator() (int lev) const |
amrex::Vector< amrex::MultiFab * > | vec_ptrs () noexcept |
amrex::Vector< const amrex::MultiFab * > | vec_const_ptrs () const noexcept |
const FieldRepo & | repo () const |
Return a reference to the field repository that created this field. | |
ViewField< ScratchField > | subview (const int scomp=0, const int ncomp=1) |
void | fillpatch (const amrex::Real time) noexcept |
void | fillpatch (const amrex::Real time, const amrex::IntVect &ng) noexcept |
void | fillpatch (const int lev, const amrex::Real time, amrex::MultiFab &mfab, const amrex::IntVect &nghost) noexcept |
void | fillpatch (const int lev, const amrex::Real time, amrex::MultiFab &mfab, const amrex::IntVect &nghost, amrex::Vector< amrex::BCRec > &bcrec) noexcept |
Protected Member Functions | |
ScratchField (const FieldRepo &repo, std::string name, const int ncomp=1, const int ngrow=1, const FieldLoc floc=FieldLoc::CELL) | |
Protected Attributes | |
const FieldRepo & | m_repo |
std::string | m_name |
int | m_ncomp |
amrex::IntVect | m_ngrow |
FieldLoc | m_floc |
amrex::Vector< amrex::MultiFab > | m_data |
Friends | |
class | FieldRepo |
Detailed Description
A temporary computational field
A ScratchField is similar to a Field in usage, but is temporary in nature. It is used as a scratch buffer to compute intermediate quantities. However, unlike fields these don't have multiple states, and cannot survive across a regrid. By default, FieldRepo returns a unique pointer to this instance and it is not safe to hold this pointer across timesteps.
At present, ScratchField cannot be used for I/O and/or post-processing utilities.
Constructor & Destructor Documentation
◆ ScratchField() [1/2]
|
delete |
◆ ScratchField() [2/2]
|
inlineprotected |
Member Function Documentation
◆ field_location()
|
inline |
Cell, node, face where the field is stored.
◆ fillpatch() [1/4]
|
noexcept |
◆ fillpatch() [2/4]
|
noexcept |
◆ fillpatch() [3/4]
|
noexcept |
◆ fillpatch() [4/4]
|
noexcept |
◆ name()
|
inline |
Name if available for this scratch field.
◆ num_comp()
|
inline |
Number of components for this field.
◆ num_grow()
|
inline |
Ghost cells.
◆ operator()() [1/2]
|
inline |
Return the field data for a given level.
◆ operator()() [2/2]
|
inline |
◆ operator=()
|
delete |
◆ repo()
|
inline |
Return a reference to the field repository that created this field.
◆ subview()
|
inline |
Return a sub-view of the ScratchField instance
◆ vec_const_ptrs()
|
inlinenoexcept |
◆ vec_ptrs()
|
inlinenoexcept |
Friends And Related Symbol Documentation
◆ FieldRepo
|
friend |
Member Data Documentation
◆ m_data
|
protected |
◆ m_floc
|
protected |
◆ m_name
|
protected |
◆ m_ncomp
|
protected |
◆ m_ngrow
|
protected |
◆ m_repo
|
protected |
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/core/ScratchField.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/core/ScratchField.cpp
Generated by 1.12.0