ViewField< T > Class Template Reference
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
Public Member Functions |
Public Attributes |
Private Member Functions |
Private Attributes |
List of all members
amr_wind::ViewField< T > Class Template Reference
#include <ViewField.H>
Public Member Functions | |
ViewField (const ViewField &)=delete | |
ViewField & | operator= (const ViewField &)=delete |
ViewField (ViewField &&)=default | |
ViewField & | operator= (ViewField &&)=default |
std::string | name () const |
int | num_comp () const |
Number of components in this subview. | |
const amrex::IntVect & | num_grow () const |
FieldLoc | field_location () const |
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. | |
T & | source_field () |
Return a reference to the source field from which this view is derived. | |
const T & | source_field () const |
Public Attributes | |
friend | T |
Private Member Functions | |
ViewField (T &src, const int scomp=0, const int ncomp=1) | |
Private Attributes | |
T & | m_src |
The base field. | |
int | m_scomp |
Index of the starting component. | |
int | m_ncomp |
Number of sub-components in this view. | |
amrex::Vector< amrex::MultiFab > | m_data |
MultiFabs holding the alias views. | |
Detailed Description
template<typename T>
class amr_wind::ViewField< T >
class amr_wind::ViewField< T >
Subview of a Field or a ScratchField
A ViewField instance holds MultiFab corresponding to a subview of a Field or a ScratchField. As the data is managed by the source Field or ScratchField, subview instances cannot be created directly but instead must be created using the Field::subview() and ScratchField::subview() methods.
Constructor & Destructor Documentation
◆ ViewField() [1/3]
template<typename T >
|
delete |
◆ ViewField() [2/3]
template<typename T >
|
default |
◆ ViewField() [3/3]
template<typename T >
|
private |
Member Function Documentation
◆ field_location()
template<typename T >
|
inline |
◆ name()
template<typename T >
|
inline |
◆ num_comp()
template<typename T >
|
inline |
Number of components in this subview.
◆ num_grow()
template<typename T >
|
inline |
◆ operator()() [1/2]
template<typename T >
|
inline |
Return the field data for a given level.
◆ operator()() [2/2]
template<typename T >
|
inline |
◆ operator=() [1/2]
template<typename T >
|
delete |
◆ operator=() [2/2]
◆ repo()
template<typename T >
|
inline |
Return a reference to the field repository that created this field.
◆ source_field() [1/2]
template<typename T >
|
inline |
Return a reference to the source field from which this view is derived.
◆ source_field() [2/2]
template<typename T >
|
inline |
◆ vec_const_ptrs()
template<typename T >
|
inlinenoexcept |
◆ vec_ptrs()
template<typename T >
|
inlinenoexcept |
Member Data Documentation
◆ m_data
template<typename T >
|
private |
MultiFabs holding the alias views.
◆ m_ncomp
template<typename T >
|
private |
Number of sub-components in this view.
◆ m_scomp
template<typename T >
|
private |
Index of the starting component.
◆ m_src
template<typename T >
|
private |
The base field.
◆ T
template<typename T >
friend amr_wind::ViewField< T >::T |
The documentation for this class was generated from the following files:
- /home/runner/work/amr-wind/amr-wind/amr-wind/core/ViewField.H
- /home/runner/work/amr-wind/amr-wind/amr-wind/core/ViewField.cpp
Generated by 1.12.0