IntScratchField Class Reference

Kynema-SGF API: kynema_sgf::IntScratchField Class Reference
Kynema-SGF API v0.1.0
CFD solver for wind plant simulations
Loading...
Searching...
No Matches

#include <IntScratchField.H>

Collaboration diagram for kynema_sgf::IntScratchField:
[legend]

Public Member Functions

 IntScratchField (const IntScratchField &)=delete
IntScratchFieldoperator= (const IntScratchField &)=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::iMultiFab & operator() (int lev)
 Return the field data for a given level.
const amrex::iMultiFab & operator() (int lev) const
amrex::Vector< amrex::iMultiFab * > vec_ptrs ()
amrex::Vector< const amrex::iMultiFab * > vec_const_ptrs () const
const FieldReporepo () const
 Return a reference to the field repository that created this field.
void setVal (int value)

Protected Member Functions

 IntScratchField (const FieldRepo &repo, std::string name, const int ncomp=1, const int ngrow=1, const FieldLoc floc=FieldLoc::CELL)

Protected Attributes

const FieldRepom_repo
std::string m_name
int m_ncomp
amrex::IntVect m_ngrow
FieldLoc m_floc
amrex::Vector< amrex::iMultiFab > m_data

Friends

class FieldRepo

Detailed Description

Integer version of ScratchField that works with iMultiFab

Constructor & Destructor Documentation

◆ IntScratchField() [1/2]

kynema_sgf::IntScratchField::IntScratchField ( const IntScratchField & )
delete

◆ IntScratchField() [2/2]

kynema_sgf::IntScratchField::IntScratchField ( const FieldRepo & repo,
std::string name,
const int ncomp = 1,
const int ngrow = 1,
const FieldLoc floc = FieldLoc::CELL )
inlineprotected

Member Function Documentation

◆ field_location()

FieldLoc kynema_sgf::IntScratchField::field_location ( ) const
inlinenodiscard

Cell, node, face where the field is stored.

◆ name()

const std::string & kynema_sgf::IntScratchField::name ( ) const
inlinenodiscard

Name if available for this scratch field.

◆ num_comp()

int kynema_sgf::IntScratchField::num_comp ( ) const
inlinenodiscard

Number of components for this field.

◆ num_grow()

const amrex::IntVect & kynema_sgf::IntScratchField::num_grow ( ) const
inlinenodiscard

Ghost cells.

◆ operator()() [1/2]

amrex::iMultiFab & kynema_sgf::IntScratchField::operator() ( int lev)
inline

Return the field data for a given level.

◆ operator()() [2/2]

const amrex::iMultiFab & kynema_sgf::IntScratchField::operator() ( int lev) const
inline

◆ operator=()

IntScratchField & kynema_sgf::IntScratchField::operator= ( const IntScratchField & )
delete

◆ repo()

const FieldRepo & kynema_sgf::IntScratchField::repo ( ) const
inlinenodiscard

Return a reference to the field repository that created this field.

◆ setVal()

void kynema_sgf::IntScratchField::setVal ( int value)

◆ vec_const_ptrs()

amrex::Vector< const amrex::iMultiFab * > kynema_sgf::IntScratchField::vec_const_ptrs ( ) const
inlinenodiscard

◆ vec_ptrs()

amrex::Vector< amrex::iMultiFab * > kynema_sgf::IntScratchField::vec_ptrs ( )
inline

◆ FieldRepo

friend class FieldRepo
friend

Member Data Documentation

◆ m_data

amrex::Vector<amrex::iMultiFab> kynema_sgf::IntScratchField::m_data
protected

◆ m_floc

FieldLoc kynema_sgf::IntScratchField::m_floc
protected

◆ m_name

std::string kynema_sgf::IntScratchField::m_name
protected

◆ m_ncomp

int kynema_sgf::IntScratchField::m_ncomp
protected

◆ m_ngrow

amrex::IntVect kynema_sgf::IntScratchField::m_ngrow
protected

◆ m_repo

const FieldRepo& kynema_sgf::IntScratchField::m_repo
protected

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