Generic templated field type. More...
#include <OpenFOAM/Field.H>
Generic templated field type.
Public Types | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. | |
typedef SubField< Type > | subField |
Declare type of subField. | |
![]() | |
typedef SubList< Type > | subList |
Declare type of subList. | |
![]() | |
typedef Type | value_type |
Type of values the UList contains. | |
typedef Type & | reference |
Type that can be used for storing into. | |
typedef const Type & | const_reference |
Type that can be used for storing into. | |
typedef label | difference_type |
The type that can represent the difference between any two. | |
typedef label | size_type |
The type that can represent the size of a UList. | |
typedef Type * | iterator |
Random access iterator for traversing UList. | |
typedef const Type * | const_iterator |
Random access iterator for traversing UList. | |
typedef Type * | reverse_iterator |
Reverse iterator for reverse traversal of UList. | |
typedef const Type * | const_reverse_iterator |
Reverse iterator for reverse traversal of constant UList. |
Public Member Functions | |
Field () | |
Construct null. | |
Field (const label) | |
Construct given size. | |
Field (const label, const Type &) | |
Construct given size and initial value. | |
Field (const UList< Type > &) | |
Construct as copy of a UList<Type> | |
Field (const Xfer< List< Type > > &) | |
Construct by transferring the List contents. | |
Field (const UList< Type > &mapF, const unallocLabelList &mapAddressing) | |
Construct by 1 to 1 mapping from the given field. | |
Field (const tmp< Field< Type > > &tmapF, const unallocLabelList &mapAddressing) | |
Construct by 1 to 1 mapping from the given tmp field. | |
Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) | |
Construct by interpolative mapping from the given field. | |
Field (const tmp< Field< Type > > &tmapF, const labelListList &mapAddressing, const scalarListList &weights) | |
Construct by interpolative mapping from the given tmp field. | |
Field (const UList< Type > &mapF, const FieldMapper &map) | |
Construct by mapping from the given field. | |
Field (const tmp< Field< Type > > &tmapF, const FieldMapper &map) | |
Construct by mapping from the given tmp field. | |
Field (const Field< Type > &) | |
Construct as copy. | |
Field (Field< Type > &, bool reUse) | |
Construct as copy or re-use as specified. | |
Field (const Xfer< Field< Type > > &) | |
Construct by transferring the Field contents. | |
Field (const typename Field< Type >::subField &) | |
Construct as copy of subField. | |
Field (Istream &) | |
Construct as copy of tmp<Field> | |
Field (const word &keyword, const dictionary &dict, const label size) | |
Construct from a dictionary entry. | |
tmp< Field< Type > > | clone () const |
Clone. | |
void | map (const UList< Type > &mapF, const unallocLabelList &mapAddressing) |
1 to 1 map from the given field | |
void | map (const tmp< Field< Type > > &tmapF, const unallocLabelList &mapAddressing) |
1 to 1 map from the given tmp field | |
void | map (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) |
Interpolative map from the given field. | |
void | map (const tmp< Field< Type > > &tmapF, const labelListList &mapAddressing, const scalarListList &weights) |
Interpolative map from the given tmp field. | |
void | map (const UList< Type > &mapF, const FieldMapper &map) |
Map from the given field. | |
void | map (const tmp< Field< Type > > &tmapF, const FieldMapper &map) |
Map from the given tmp field. | |
void | autoMap (const FieldMapper &map) |
Map from self. | |
void | rmap (const UList< Type > &mapF, const unallocLabelList &mapAddressing) |
1 to 1 reverse-map from the given field | |
void | rmap (const tmp< Field< Type > > &tmapF, const unallocLabelList &mapAddressing) |
1 to 1 reverse-map from the given tmp field | |
void | rmap (const UList< Type > &mapF, const unallocLabelList &mapAddressing, const scalarList &weights) |
Interpolative reverse map from the given field. | |
void | rmap (const tmp< Field< Type > > &tmapF, const unallocLabelList &mapAddressing, const scalarList &weights) |
Interpolative reverse map from the given tmp field. | |
void | negate () |
Negate this field. | |
tmp< Field< cmptType > > | component (const direction) const |
Return a component field of the field. | |
void | replace (const direction, const UList< cmptType > &) |
Replace a component field of the field. | |
void | replace (const direction, const tmp< Field< cmptType > > &) |
Replace a component field of the field. | |
void | replace (const direction, const cmptType &) |
Replace a component field of the field. | |
tmp< Field< Type > > | T () const |
Return the field transpose (only defined for second rank tensors) | |
void | writeEntry (const word &keyword, Ostream &os) const |
Write the field as a dictionary entry. | |
void | operator= (const Field< Type > &) |
void | operator= (const UList< Type > &) |
Assignment from UList operator. Takes linear time. | |
void | operator= (const SubField< Type > &) |
void | operator= (const tmp< Field< Type > > &) |
void | operator= (const Type &) |
Assignment of all entries to the given value. | |
template<class Form , class Cmpt , int nCmpt> | |
void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator+= (const UList< Type > &) |
void | operator+= (const tmp< Field< Type > > &) |
void | operator-= (const UList< Type > &) |
void | operator-= (const tmp< Field< Type > > &) |
void | operator*= (const UList< scalar > &) |
void | operator*= (const tmp< Field< scalar > > &) |
void | operator/= (const UList< scalar > &) |
void | operator/= (const tmp< Field< scalar > > &) |
void | operator+= (const Type &) |
void | operator-= (const Type &) |
void | operator*= (const scalar &) |
void | operator/= (const scalar &) |
template<class Type> | |
void | operator= (const tmp< Field > &rhs) |
![]() | |
refCount () | |
Construct null with zero count. | |
int | count () const |
Return the reference count. | |
bool | okToDelete () const |
Return true if the reference count is zero. | |
void | resetRefCount () |
Reset the reference count to zero. | |
void | operator++ () |
Increment the reference count. | |
void | operator++ (int) |
Increment the reference count. | |
void | operator-- () |
Decrement the reference count. | |
void | operator-- (int) |
Decrement the reference count. | |
![]() | |
label | size () const |
Return the number of elements in the UList. | |
List () | |
Null constructor. | |
List (const label) | |
Construct with given size. | |
List (const label, const Type &) | |
Construct with given size and value for all elements. | |
List (const List< Type > &) | |
Copy constructor. | |
List (const Xfer< List< Type > > &) | |
Construct by transferring the parameter contents. | |
List (List< Type > &, bool reUse) | |
Construct as copy or re-use as specified. | |
List (const UList< Type > &, const unallocLabelList &mapAddressing) | |
Construct as subset. | |
List (InputIterator first, InputIterator last) | |
Construct given start and end iterators. | |
List (const FixedList< Type, Size > &) | |
Construct as copy of FixedList<T, Size> | |
List (const PtrList< Type > &) | |
Construct as copy of PtrList<T> | |
List (const SLList< Type > &) | |
Construct as copy of SLList<T> | |
List (const IndirectList< Type > &) | |
Construct as copy of IndirectList<T> | |
List (const UIndirectList< Type > &) | |
Construct as copy of UIndirectList<T> | |
List (const BiIndirectList< Type > &) | |
Construct as copy of BiIndirectList<T> | |
List (Istream &) | |
Construct from Istream. | |
~List () | |
void | resize (const label) |
Reset size of List. | |
void | resize (const label, const Type &) |
Reset size of List and value for new elements. | |
void | setSize (const label) |
Reset size of List. | |
void | setSize (const label, const Type &) |
Reset size of List and value for new elements. | |
void | clear () |
Clear the list, i.e. set size to zero. | |
void | append (const UList< Type > &) |
Append a List at the end of this list. | |
void | append (const UIndirectList< Type > &) |
Append a UIndirectList at the end of this list. | |
void | transfer (List< Type > &) |
Transfer the contents of the argument List into this list. | |
void | transfer (DynamicList< Type, SizeInc, SizeMult, SizeDiv > &) |
Transfer the contents of the argument List into this list. | |
void | transfer (SortableList< Type > &) |
Transfer the contents of the argument List into this list. | |
Xfer< List< Type > > | xfer () |
Transfer contents to the Xfer container. | |
Type & | newElmt (const label) |
Return subscript-checked element of UList. | |
void | operator= (const List< Type > &) |
Assignment operator. Takes linear time. | |
void | operator= (const SLList< Type > &) |
Assignment from SLList operator. Takes linear time. | |
void | operator= (const IndirectList< Type > &) |
Assignment from IndirectList operator. Takes linear time. | |
void | operator= (const UIndirectList< Type > &) |
Assignment from UIndirectList operator. Takes linear time. | |
void | operator= (const BiIndirectList< Type > &) |
Assignment from BiIndirectList operator. Takes linear time. | |
![]() | |
UList () | |
Null constructor. | |
UList (Type *__restrict__ v, label size) | |
Construct from components. | |
label | fcIndex (const label i) const |
Return the forward circular index, i.e. the next index. | |
label | rcIndex (const label i) const |
Return the reverse circular index, i.e. the previous index. | |
label | byteSize () const |
Return the binary size in number of characters of the UList. | |
const Type * | cdata () const |
Return a const pointer to the first data element,. | |
Type * | data () |
Return a pointer to the first data element,. | |
void | checkStart (const label start) const |
Check start is within valid range (0 ... size-1). | |
void | checkSize (const label size) const |
Check size is within valid range (0 ... size). | |
void | checkIndex (const label i) const |
Check index i is within valid range (0 ... size-1). | |
void | writeEntry (Ostream &) const |
Write the UList as a dictionary entry. | |
void | assign (const UList< Type > &) |
Assign elements to those from UList. | |
Type & | operator[] (const label) |
Return element of UList. | |
const Type & | operator[] (const label) const |
Return element of constant UList. | |
operator const Foam::List< Type > & () const | |
Allow cast to a const List<T>&. | |
iterator | begin () |
Return an iterator to begin traversing the UList. | |
const_iterator | begin () const |
Return const_iterator to begin traversing the constant UList. | |
iterator | end () |
Return an iterator to end traversing the UList. | |
const_iterator | end () const |
Return const_iterator to end traversing the constant UList. | |
const_iterator | cbegin () const |
Return const_iterator to begin traversing the constant UList. | |
const_iterator | cend () const |
Return const_iterator to end traversing the constant UList. | |
reverse_iterator | rbegin () |
Return reverse_iterator to begin reverse traversing the UList. | |
const_reverse_iterator | rbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. | |
reverse_iterator | rend () |
Return reverse_iterator to end reverse traversing the UList. | |
const_reverse_iterator | rend () const |
Return const_reverse_iterator to end reverse traversing the UList. | |
const_reverse_iterator | crbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. | |
const_reverse_iterator | crend () const |
Return const_reverse_iterator to end reverse traversing the UList. | |
label | max_size () const |
Return size of the largest possible UList. | |
bool | empty () const |
Return true if the UList is empty (ie, size() is zero). | |
void | swap (UList< Type > &) |
Swap two ULists of the same type in constant time. | |
bool | operator== (const UList< Type > &) const |
Equality operation on ULists of the same type. | |
bool | operator!= (const UList< Type > &) const |
The opposite of the equality operation. Takes linear time. | |
bool | operator< (const UList< Type > &) const |
Compare two ULists lexicographically. Takes linear time. | |
bool | operator> (const UList< Type > &) const |
Compare two ULists lexicographically. Takes linear time. | |
bool | operator<= (const UList< Type > &) const |
Return true if !(a > b). Takes linear time. | |
bool | operator>= (const UList< Type > &) const |
Return true if !(a < b). Takes linear time. |
Static Public Member Functions | |
static const Field< Type > & | null () |
Return a null field. | |
template<class Type2 > | |
static tmp< Field< Type > > | NewCalculatedType (const Field< Type2 > &f) |
Return a pointer to a new calculatedFvPatchFieldField created on. |
Static Public Attributes | |
static const char *const | typeName |
Friends | |
Ostream & | operator (Ostream &, const Field< Type > &) |
Ostream & | operator (Ostream &, const tmp< Field< Type > > &) |
Additional Inherited Members | |
![]() | |
void | size (const label) |
Override size to be inconsistent with allocated storage. |
Component type.
Reimplemented in GeometricField< Type, PatchField, GeoMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Type, fvsPatchField, surfaceMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< vector, pointPatchField, pointMesh >, GeometricField< Type, fvPatchField, volMesh >, DimensionedField< Type, GeoMesh >, DimensionedField< tensor, volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< Type, volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< vector, volMesh >, DimensionedField< Type, surfaceMesh >, and DimensionedField< Type, pointMesh >.
Field | ( | ) |
|
explicit |
Field | ( | const label | size, |
const Type & | t | ||
) |
Field | ( | const UList< Type > & | mapF, |
const unallocLabelList & | mapAddressing | ||
) |
Field | ( | const tmp< Field< Type > > & | tmapF, |
const unallocLabelList & | mapAddressing | ||
) |
Field | ( | const UList< Type > & | mapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | weights | ||
) |
Field | ( | const tmp< Field< Type > > & | tmapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | weights | ||
) |
Field | ( | const UList< Type > & | mapF, |
const FieldMapper & | map | ||
) |
Field | ( | const tmp< Field< Type > > & | tmapF, |
const FieldMapper & | map | ||
) |
Field | ( | const word & | keyword, |
const dictionary & | dict, | ||
const label | size | ||
) |
Construct from a dictionary entry.
Definition at line 206 of file Field.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, token::info(), IOWarningIn, token::isWord(), dictionary::lookup(), Istream::putBack(), setSize(), IOstream::version(), and token::wordToken().
|
inlinestatic |
Return a null field.
Reimplemented from List< Type >.
Reimplemented in GeometricField< Type, PatchField, GeoMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Type, fvsPatchField, surfaceMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< vector, pointPatchField, pointMesh >, GeometricField< Type, fvPatchField, volMesh >, DimensionedField< Type, GeoMesh >, DimensionedField< tensor, volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< Type, volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< vector, volMesh >, DimensionedField< Type, surfaceMesh >, DimensionedField< Type, pointMesh >, and DynamicField< T, SizeInc, SizeMult, SizeDiv >.
Definition at line 101 of file Field.H.
Referenced by slicedFvPatchField< Type >::gradientBoundaryCoeffs(), slicedFvPatchField< Type >::gradientInternalCoeffs(), pointPatchField< Type >::NewCalculatedType(), fvsPatchField< Type >::NewCalculatedType(), slicedFvPatchField< Type >::patchInternalField(), slicedFvPatchField< Type >::patchNeighbourField(), slicedFvPatchField< Type >::snGrad(), slicedFvPatchField< Type >::valueBoundaryCoeffs(), and slicedFvPatchField< Type >::valueInternalCoeffs().
Clone.
Reimplemented from List< Type >.
Reimplemented in sampledSet, DimensionedField< Type, GeoMesh >, DimensionedField< tensor, volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< Type, volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< vector, volMesh >, DimensionedField< Type, surfaceMesh >, DimensionedField< Type, pointMesh >, timeVaryingMappedFixedValueFvPatchField< Type >, fvPatchField< Type >, fvPatchField< scalar >, fvsPatchField< Type >, omegaWallFunctionFvPatchScalarField, omegaWallFunctionFvPatchScalarField, curve, DynamicField< T, SizeInc, SizeMult, SizeDiv >, advectiveFvPatchField< Type >, epsilonWallFunctionFvPatchScalarField, epsilonWallFunctionFvPatchScalarField, sixDoFRigidBodyDisplacementPointPatchVectorField, timeVaryingUniformFixedValueFvPatchField< Type >, timeVaryingUniformInletOutletFvPatchField< Type >, oscillatingFixedValueFvPatchField< Type >, turbulentInletFvPatchField< Type >, cyclicFvPatchField< Type >, directMappedFixedValueFvPatchField< Type >, surfaceSlipDisplacementFvPatchField< Type >, processorFvPatchField< Type >, kqRWallFunctionFvPatchField< Type >, kqRWallFunctionFvPatchField< Type >, genericFvPatchField< Type >, mixedFvPatchField< Type >, slicedFvPatchField< Type >, outletMappedUniformInletFvPatchField< Type >, slicedFvsPatchField< Type >, processorFvsPatchField< Type >, coupledFvPatchField< Type >, waveTransmissiveFvPatchField< Type >, mixedFixedValueSlipFvPatchField< Type >, mixedPointPatchField< Type >, timeVaryingUniformFixedValuePointPatchField< Type >, fanFvPatchField< Type >, coupledFvsPatchField< Type >, inletOutletFvPatchField< Type >, directionMixedFvPatchField< Type >, fixedNormalSlipFvPatchField< Type >, uniformFixedValueFvPatchField< Type >, cyclicFvsPatchField< Type >, fixedGradientFvPatchField< Type >, partialSlipFvPatchField< Type >, uniformFixedValuePointPatchField< Type >, fixedInternalValueFvPatchField< Type >, angularOscillatingDisplacementPointPatchVectorField, angularOscillatingVelocityPointPatchVectorField, fixedInternalValueFvPatchField< scalar >, cellMotionFvPatchField< Type >, uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField, basicSymmetryFvPatchField< Type >, calculatedFvPatchField< Type >, fixedValueFvPatchField< Type >, zeroGradientFvPatchField< Type >, emptyFvPatchField< Type >, symmetryFvPatchField< Type >, wedgeFvPatchField< Type >, fixedValueFvsPatchField< Type >, emptyFvsPatchField< Type >, symmetryFvsPatchField< Type >, wedgeFvsPatchField< Type >, zeroGradientFvPatchField< scalar >, transformFvPatchField< Type >, freestreamFvPatchField< Type >, outletInletFvPatchField< Type >, slipFvPatchField< Type >, calculatedFvsPatchField< Type >, oscillatingVelocityPointPatchVectorField, valuePointPatchField< Type >, valuePointPatchField< vector >, oscillatingDisplacementPointPatchVectorField, fixedValuePointPatchField< Type >, fixedValuePointPatchField< vector >, and phase.
void map | ( | const UList< Type > & | mapF, |
const unallocLabelList & | mapAddressing | ||
) |
1 to 1 map from the given field
Definition at line 298 of file Field.C.
References f(), forAll, List< Type >::setSize(), List< Type >::size(), and UList< T >::size().
Referenced by polyMesh::updateMesh().
void map | ( | const tmp< Field< Type > > & | tmapF, |
const unallocLabelList & | mapAddressing | ||
) |
void map | ( | const UList< Type > & | mapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | weights | ||
) |
Interpolative map from the given field.
Definition at line 339 of file Field.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorIn, forAll, List< Type >::setSize(), List< Type >::size(), and List< T >::size().
void map | ( | const tmp< Field< Type > > & | tmapF, |
const labelListList & | mapAddressing, | ||
const scalarListList & | weights | ||
) |
void map | ( | const UList< Type > & | mapF, |
const FieldMapper & | map | ||
) |
Map from the given field.
Definition at line 396 of file Field.C.
References FieldMapper::addressing(), FieldMapper::direct(), FieldMapper::directAddressing(), List< T >::size(), UList< T >::size(), and FieldMapper::weights().
void map | ( | const tmp< Field< Type > > & | tmapF, |
const FieldMapper & | map | ||
) |
void autoMap | ( | const FieldMapper & | map | ) |
Map from self.
Definition at line 430 of file Field.C.
References FieldMapper::addressing(), FieldMapper::direct(), FieldMapper::directAddressing(), setSize(), FieldMapper::size(), List< T >::size(), and UList< T >::size().
Referenced by valuePointPatchField< Type >::autoMap(), mixedPointPatchField< Type >::autoMap(), and fvsPatchField< Type >::autoMap().
void rmap | ( | const UList< Type > & | mapF, |
const unallocLabelList & | mapAddressing | ||
) |
1 to 1 reverse-map from the given field
Definition at line 456 of file Field.C.
Referenced by valuePointPatchField< Type >::rmap(), mixedPointPatchField< Type >::rmap(), and fvsPatchField< Type >::rmap().
void rmap | ( | const tmp< Field< Type > > & | tmapF, |
const unallocLabelList & | mapAddressing | ||
) |
void rmap | ( | const UList< Type > & | mapF, |
const unallocLabelList & | mapAddressing, | ||
const scalarList & | weights | ||
) |
void rmap | ( | const tmp< Field< Type > > & | tmapF, |
const unallocLabelList & | mapAddressing, | ||
const scalarList & | weights | ||
) |
void negate | ( | ) |
Negate this field.
Reimplemented in GeometricField< Type, PatchField, GeoMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Type, fvsPatchField, surfaceMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< vector, pointPatchField, pointMesh >, and GeometricField< Type, fvPatchField, volMesh >.
Definition at line 518 of file Field.C.
References TFOR_ALL_F_OP_OP_F.
Referenced by fvMatrix< Type >::H().
Return a component field of the field.
Reimplemented in GeometricField< Type, PatchField, GeoMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Type, fvsPatchField, surfaceMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< vector, pointPatchField, pointMesh >, GeometricField< Type, fvPatchField, volMesh >, DimensionedField< Type, GeoMesh >, DimensionedField< tensor, volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< Type, volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< vector, volMesh >, DimensionedField< Type, surfaceMesh >, DimensionedField< Type, pointMesh >, GeometricField< Type, PatchField, GeoMesh >, and GeometricField< Type, PatchField, GeoMesh >.
Definition at line 526 of file Field.C.
References Foam::component().
Referenced by simpleGeomDecomp::decompose(), displacementInterpolationFvMotionSolver::displacementInterpolationFvMotionSolver(), sphericalCS::globalToLocal(), cylindricalCS::globalToLocal(), fvMatrix< Type >::H(), parabolicCylindricalCS::localToGlobal(), sphericalCS::localToGlobal(), cylindricalCS::localToGlobal(), fvMatrix< Type >::residual(), basicSymmetryFvPatchField< Type >::snGradTransformDiag(), partialSlipFvPatchField< Type >::snGradTransformDiag(), fixedNormalSlipFvPatchField< Type >::snGradTransformDiag(), fvMatrix< Type >::solve(), displacementComponentLaplacianFvMotionSolver::updateMesh(), Foam::writeCellGraph(), and ensightPart::writeField().
Replace a component field of the field.
Definition at line 538 of file Field.C.
References TFOR_ALL_F_OP_FUNC_S_F.
Referenced by fvMatrix< Type >::flux(), sphericalCS::globalToLocal(), cylindricalCS::globalToLocal(), fvMatrix< Type >::H(), sphericalCS::localToGlobal(), parabolicCylindricalCS::localToGlobal(), cylindricalCS::localToGlobal(), Foam::operator&(), fvMatrix< Type >::residual(), and dynamicInkJetFvMesh::update().
Replace a component field of the field.
Definition at line 562 of file Field.C.
References TFOR_ALL_F_OP_FUNC_S_S.
Return the field transpose (only defined for second rank tensors)
Reimplemented in GeometricField< Type, PatchField, GeoMesh >, GeometricField< symmTensor, fvPatchField, volMesh >, GeometricField< tensor, fvPatchField, volMesh >, GeometricField< scalar, fvPatchField, volMesh >, GeometricField< scalar, fvsPatchField, surfaceMesh >, GeometricField< Type, fvsPatchField, surfaceMesh >, GeometricField< Type, pointPatchField, pointMesh >, GeometricField< scalar, pointPatchField, pointMesh >, GeometricField< vector, fvPatchField, volMesh >, GeometricField< vector, pointPatchField, pointMesh >, GeometricField< Type, fvPatchField, volMesh >, DimensionedField< Type, GeoMesh >, DimensionedField< tensor, volMesh >, DimensionedField< scalar, volMesh >, DimensionedField< vector, pointMesh >, DimensionedField< scalar, pointMesh >, DimensionedField< Type, volMesh >, DimensionedField< symmTensor, volMesh >, DimensionedField< scalar, surfaceMesh >, DimensionedField< vector, volMesh >, DimensionedField< Type, surfaceMesh >, and DimensionedField< Type, pointMesh >.
Definition at line 573 of file Field.C.
References Foam::T().
Referenced by noiseFFT::noiseFFT().
Write the field as a dictionary entry.
Reimplemented from UList< Type >.
Definition at line 582 of file Field.C.
References token::END_STATEMENT, Foam::endl(), forAll, UList< T >::writeEntry(), and Ostream::writeKeyword().
Referenced by surfaceSlipDisplacementFvPatchField< Type >::write(), surfaceNormalFixedValueFvPatchVectorField::write(), oscillatingVelocityPointPatchVectorField::write(), SRFVelocityFvPatchVectorField::write(), pressureInletOutletVelocityFvPatchVectorField::write(), sixDoFRigidBodyDisplacementPointPatchVectorField::write(), nutRoughWallFunctionFvPatchScalarField::write(), pressureDirectedInletVelocityFvPatchVectorField::write(), pressureDirectedInletOutletVelocityFvPatchVectorField::write(), and DimensionedField< Type, GeoMesh >::writeData().
Reimplemented in directionMixedFvPatchField< Type >, valuePointPatchField< Type >, valuePointPatchField< vector >, fixedValuePointPatchField< Type >, fixedValuePointPatchField< vector >, IOField< Type >, and IOField< vector >.
Definition at line 620 of file Field.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, and List< T >::operator=().
Referenced by directionMixedFvPatchField< Type >::evaluate(), noiseFFT::noiseFFT(), IOField< Type >::operator=(), valuePointPatchField< Type >::operator=(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::operator=(), DimensionedField< Type, GeoMesh >::operator=(), fvsPatchField< Type >::operator=(), valuePointPatchField< Type >::operator==(), fvsPatchField< Type >::operator==(), uniformFixedValuePointPatchField< Type >::uniformFixedValuePointPatchField(), and valuePointPatchField< Type >::valuePointPatchField().
Assignment from UList operator. Takes linear time.
Reimplemented from List< Type >.
Reimplemented in fvPatchField< Type >, fvPatchField< scalar >, fvsPatchField< Type >, mixedFvPatchField< Type >, DynamicField< T, SizeInc, SizeMult, SizeDiv >, slicedFvPatchField< Type >, mixedFixedValueSlipFvPatchField< Type >, fixedNormalSlipFvPatchField< Type >, partialSlipFvPatchField< Type >, fixedValueFvPatchField< Type >, fixedValueFvsPatchField< Type >, and slicedFvsPatchField< Type >.
Definition at line 641 of file Field.C.
References List< T >::operator=().
Definition at line 634 of file Field.C.
References List< T >::operator=().
void operator= | ( | const Type & | ) |
Assignment of all entries to the given value.
Reimplemented from List< Type >.
Reimplemented in fvPatchField< Type >, fvPatchField< scalar >, fvsPatchField< Type >, mixedFvPatchField< Type >, directionMixedFvPatchField< Type >, DynamicField< T, SizeInc, SizeMult, SizeDiv >, slicedFvPatchField< Type >, mixedFixedValueSlipFvPatchField< Type >, fixedNormalSlipFvPatchField< Type >, partialSlipFvPatchField< Type >, valuePointPatchField< Type >, valuePointPatchField< vector >, fixedValueFvPatchField< Type >, fixedValueFvsPatchField< Type >, slicedFvsPatchField< Type >, fixedValuePointPatchField< Type >, and fixedValuePointPatchField< vector >.
Definition at line 665 of file Field.C.
References List< T >::operator=().
void operator= | ( | const VectorSpace< Form, Cmpt, nCmpt > & | vs | ) |
Definition at line 673 of file Field.C.
References TFOR_ALL_F_OP_S.
Definition at line 701 of file Field.C.
Referenced by fvsPatchField< Type >::operator+=().
Definition at line 702 of file Field.C.
Referenced by fvsPatchField< Type >::operator-=().
Definition at line 703 of file Field.C.
Referenced by fvsPatchField< Type >::operator*=().
Definition at line 704 of file Field.C.
Referenced by fvsPatchField< Type >::operator/=().
void operator+= | ( | const Type & | t | ) |
Reimplemented in fvPatchField< Type >, fvPatchField< scalar >, fvsPatchField< Type >, mixedFvPatchField< Type >, directionMixedFvPatchField< Type >, slicedFvPatchField< Type >, mixedFixedValueSlipFvPatchField< Type >, fixedNormalSlipFvPatchField< Type >, partialSlipFvPatchField< Type >, fixedValueFvPatchField< Type >, fixedValueFvsPatchField< Type >, and slicedFvsPatchField< Type >.
void operator-= | ( | const Type & | t | ) |
Reimplemented in fvPatchField< Type >, fvPatchField< scalar >, fvsPatchField< Type >, mixedFvPatchField< Type >, directionMixedFvPatchField< Type >, slicedFvPatchField< Type >, mixedFixedValueSlipFvPatchField< Type >, fixedNormalSlipFvPatchField< Type >, partialSlipFvPatchField< Type >, fixedValueFvPatchField< Type >, fixedValueFvsPatchField< Type >, and slicedFvsPatchField< Type >.
Definition at line 648 of file Field.C.
References Foam::abort(), Foam::FatalError, FatalErrorIn, tmp< T >::ptr(), and List< T >::transfer().
|
static |
Definition at line 95 of file Field.H.
Referenced by fvMeshDistribute::distribute(), IOField< Type >::IOField(), and Foam::MapGeometricFields().