FieldBase Class Reference

Template invariant parts for Field and SubField. More...

Inheritance diagram for FieldBase:
Collaboration diagram for FieldBase:

Public Member Functions

constexpr FieldBase () noexcept
 Default construct. More...
 
- Public Member Functions inherited from refCount
constexpr refCount () noexcept
 Default construct, initializing count to 0. More...
 
int use_count () const noexcept
 Return the current reference count. More...
 
bool unique () const noexcept
 Return true if the reference count is zero. More...
 
void operator++ () noexcept
 Increment the reference count. More...
 
void operator++ (int) noexcept
 Increment the reference count. More...
 
void operator-- () noexcept
 Decrement the reference count. More...
 
void operator-- (int) noexcept
 Decrement the reference count. More...
 

Static Public Member Functions

static void warnLocalBoundaryConsistencyCompat (const dictionary &)
 Warn about keyword changes for local boundary consistency checks. More...
 
static int localBoundaryConsistency () noexcept
 Get flag for local boundary consistency checks. More...
 
static int localBoundaryConsistency (int val) noexcept
 Set flag for local boundary consistency checks. More...
 

Static Public Attributes

static const char *const typeName
 Typename for Field. More...
 
static bool allowConstructFromLargerSize = false
 Permit read construct from a larger size. More...
 
static bool unifiedGeometricField
 GeometricField with extra capacity for flattened boundary fields. Uses opt-switch "unifiedGeometricField". More...
 
static int localBoundaryConsistency_
 Local boundary field consistency checks. Uses opt-switch "localBoundaryConsistency". More...
 
static scalar localBoundaryTolerance_
 Tolerance for local boundary field consistency checks. Uses opt-switch "localBoundaryConsistency::tolerance". More...
 

Detailed Description

Template invariant parts for Field and SubField.

Definition at line 76 of file Field.H.

Constructor & Destructor Documentation

◆ FieldBase()

constexpr FieldBase ( )
inlinenoexcept

Default construct.

Definition at line 150 of file Field.H.

Member Function Documentation

◆ warnLocalBoundaryConsistencyCompat()

void warnLocalBoundaryConsistencyCompat ( const dictionary dict)
static

Warn about keyword changes for local boundary consistency checks.

The supplied dictionary corresponds to the optimisationSwitches

Definition at line 77 of file FieldBase.C.

References dict, Foam::constant::electromagnetic::e, Foam::endl(), Foam::nl, and Foam::foamVersion::version.

Referenced by argList::parse(), and Time::readDict().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ localBoundaryConsistency() [1/2]

static int localBoundaryConsistency ( )
inlinestaticnoexcept

Get flag for local boundary consistency checks.

Definition at line 127 of file Field.H.

References FieldBase::localBoundaryConsistency_.

Referenced by setFlow::execute(), and SRFModel::U().

Here is the caller graph for this function:

◆ localBoundaryConsistency() [2/2]

static int localBoundaryConsistency ( int  val)
inlinestaticnoexcept

Set flag for local boundary consistency checks.

Returns
the previous value

Definition at line 137 of file Field.H.

References FieldBase::localBoundaryConsistency_.

Member Data Documentation

◆ typeName

const char *const typeName
static

Typename for Field.

Definition at line 87 of file Field.H.

Referenced by basicThermo::heBoundaryTypes(), and foamWriter::writeTemplate().

◆ allowConstructFromLargerSize

bool allowConstructFromLargerSize = false
static

Permit read construct from a larger size.

Mostly required for things like column mesh, for example.

Definition at line 94 of file Field.H.

Referenced by if(), dynamicFvMesh::New(), and points0MotionSolver::points0MotionSolver().

◆ unifiedGeometricField

bool unifiedGeometricField
static

GeometricField with extra capacity for flattened boundary fields. Uses opt-switch "unifiedGeometricField".

Definition at line 100 of file Field.H.

◆ localBoundaryConsistency_

int localBoundaryConsistency_
static

Local boundary field consistency checks. Uses opt-switch "localBoundaryConsistency".

Definition at line 106 of file Field.H.

Referenced by FieldBase::localBoundaryConsistency().

◆ localBoundaryTolerance_

Foam::scalar localBoundaryTolerance_
static

Tolerance for local boundary field consistency checks. Uses opt-switch "localBoundaryConsistency::tolerance".

Definition at line 112 of file Field.H.


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