Templated vector space. More...
Classes | |
class | ConstBlock |
Const sub-block type. More... | |
Public Types | |
typedef VectorSpace< Form, Cmpt, Ncmpts > | vsType |
VectorSpace type. More... | |
typedef Cmpt | cmptType |
Component type. More... | |
Public Member Functions | |
VectorSpace () | |
Construct null. More... | |
VectorSpace (const Foam::zero) | |
Construct initialised to zero. More... | |
VectorSpace (Istream &) | |
Construct from Istream. More... | |
template<class Form2 , class Cmpt2 > | |
VectorSpace (const VectorSpace< Form2, Cmpt2, Ncmpts > &) | |
Construct as copy of a VectorSpace with the same size. More... | |
const Cmpt & | component (const direction) const |
Cmpt & | component (const direction) |
void | component (Cmpt &, const direction) const |
void | replace (const direction, const Cmpt &) |
template<class SubVector , direction BStart> | |
const ConstBlock< SubVector, BStart > | block () const |
const Cmpt & | operator[] (const direction) const |
Cmpt & | operator[] (const direction) |
void | operator+= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator-= (const VectorSpace< Form, Cmpt, Ncmpts > &) |
void | operator= (const Foam::zero) |
template<class Type , class Enable = EnableRank0<Type>> | |
void | operator*= (const Type) |
template<class Type , class Enable = EnableRank0<Type>> | |
void | operator/= (const Type) |
template<class SubVector , direction BStart> | |
const VectorSpace< Form, Cmpt, Ncmpts >::template ConstBlock< SubVector, BStart > | block () const |
Static Public Member Functions | |
static direction | size () |
Return the number of elements in the VectorSpace = Ncmpts. More... | |
static Form | uniform (const Cmpt &s) |
Return a VectorSpace with all elements = s. More... | |
Public Attributes | |
Cmpt | v_ [Ncmpts] |
The components of this vector space. More... | |
Static Public Attributes | |
static const direction | dim = 3 |
Dimensionality of space. More... | |
static const direction | nComponents = Ncmpts |
Number of components in this vector space. More... | |
static const direction | mRows = Ncmpts |
static const direction | nCols = 1 |
static const char *const | typeName = "vectorVector" |
static const char *const | componentNames [] = {"x", "y", "z"} |
static const Form | zero |
static const Form | one |
static const Form | max |
static const Form | min |
static const Form | rootMax |
static const Form | rootMin |
static const Form | nan |
Friends | |
Istream & | operator>> (Istream &, VectorSpace< Form, Cmpt, Ncmpts > &) |
Ostream & | operator (Ostream &, const VectorSpace< Form, Cmpt, Ncmpts > &) |
Templated vector space.
Template arguments are the Form the vector space will be used to create, the type of the elements and the number of elements.
Definition at line 84 of file VectorSpace.H.
typedef VectorSpace<Form, Cmpt, Ncmpts> vsType |
VectorSpace type.
Definition at line 93 of file VectorSpace.H.
typedef Cmpt cmptType |
Component type.
Definition at line 96 of file VectorSpace.H.
|
inline |
Construct null.
Definition at line 40 of file VectorSpaceI.H.
|
inline |
Construct initialised to zero.
Definition at line 45 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOpS(), and Foam::Zero.
VectorSpace | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 34 of file VectorSpace.C.
References IOstream::check(), Istream::readBegin(), and Istream::readEnd().
|
inlineexplicit |
Construct as copy of a VectorSpace with the same size.
Definition at line 53 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOp().
|
inlinestatic |
Return the number of elements in the VectorSpace = Ncmpts.
Definition at line 83 of file VectorSpaceI.H.
Referenced by MPLICface::Cf().
|
inline |
Definition at line 90 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and VectorSpace< Form, Cmpt, Ncmpts >::v_.
Referenced by Foam::component(), EulerCoordinateRotation::EulerCoordinateRotation(), cellMDLimitedGrad< Type >::limitFace(), Foam::setComponent(), symmetryPlaneFvPatchField< Type >::snGradTransformDiag(), STARCDCoordinateRotation::STARCDCoordinateRotation(), cyclicLduInterfaceField::transformCoupleField(), and processorLduInterfaceField::transformCoupleField().
|
inline |
Definition at line 109 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and VectorSpace< Form, Cmpt, Ncmpts >::v_.
|
inline |
Definition at line 128 of file VectorSpaceI.H.
References Foam::abort(), Foam::constant::universal::c, Foam::FatalError, FatalErrorInFunction, and VectorSpace< Form, Cmpt, Ncmpts >::v_.
|
inline |
Definition at line 148 of file VectorSpaceI.H.
Referenced by particle::trackToMovingTri(), and particle::trackToStationaryTri().
|
inlinestatic |
Return a VectorSpace with all elements = s.
Definition at line 168 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOpS(), and s().
Referenced by triangle< Point, PointRef >::circumCircle(), tetrahedron< Point, PointRef >::circumSphere(), treeBoundBox::extend(), InjectionModel< CloudType >::inject(), InjectionModel< CloudType >::injectSteadyState(), coordSet::pointCoord(), patchInjectionBase::setPositionAndCell(), Foam::triIntersect::solveProjection(), and volFieldValue::writeValues().
|
inline |
Definition at line 189 of file VectorSpaceI.H.
Definition at line 208 of file VectorSpaceI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and VectorSpace< Form, Cmpt, Ncmpts >::v_.
|
inline |
Definition at line 279 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOp().
|
inline |
Definition at line 289 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOp().
|
inline |
Definition at line 299 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOpS().
Referenced by MatrixSpace< Form, Cmpt, Mrows, Ncols >::operator=().
|
inline |
Definition at line 307 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOpS(), and s().
|
inline |
Definition at line 318 of file VectorSpaceI.H.
References VectorSpaceOps< N, I >::eqOpS(), and s().
|
inline |
Definition at line 180 of file VectorSpaceI.H.
|
friend |
|
friend |
Cmpt v_[Ncmpts] |
The components of this vector space.
Definition at line 90 of file VectorSpace.H.
Referenced by Foam::cmptMax(), Foam::cmptMin(), Foam::cmptProduct(), Foam::cmptSum(), VectorSpace< Form, Cmpt, Ncmpts >::component(), Foam::magSqr(), and VectorSpace< Form, Cmpt, Ncmpts >::operator[]().
|
static |
Dimensionality of space.
Definition at line 102 of file VectorSpace.H.
Referenced by Foam::cof(), and Foam::det().
|
static |
Number of components in this vector space.
Definition at line 105 of file VectorSpace.H.
Referenced by porosityModel::adjustNegativeResistance(), anisotropicFilter::anisotropicFilter(), Foam::ComplexField(), VectorSpace< Form, Cmpt, Ncmpts >::ConstBlock< SubVector, BStart >::ConstBlock(), searchableBox::findLine(), searchableBox::findNearestOnEdge(), fft::forwardTransform(), get_geom_list(), searchableBox::getVolumeType(), Foam::Im(), Foam::ImComplexField(), Foam::less(), anisotropicFilter::operator()(), boundBox::overlaps(), radiativeIntensityRay::radiativeIntensityRay(), Foam::Re(), Foam::ReComplexField(), Foam::ReImSum(), sphericalAngularSpring::restrain(), fft::reverseTransform(), surfaceDisplacementPointPatchVectorField::updateCoeffs(), writeCellCentres::write(), ensightSetWriter::write(), and ensightPart::writeGeometry().
|
static |
Definition at line 110 of file VectorSpace.H.
Referenced by Matrix< SymmetricSquareMatrix< Type >, Type >::checkj().
|
static |
Definition at line 111 of file VectorSpace.H.
Referenced by Matrix< SymmetricSquareMatrix< Type >, Type >::checkj().
|
static |
Definition at line 116 of file VectorSpace.H.
|
static |
Definition at line 117 of file VectorSpace.H.
Referenced by searchablePlate::searchablePlate(), and writeCellCentres::write().
|
static |
Definition at line 118 of file VectorSpace.H.
Referenced by snappySnapDriver::avgCellCentres(), pointMVCWeight::calcWeights(), motionSmootherAlgo::correctBoundaryConditions(), motionSmootherAlgo::curPoints(), particle::deviationFromMeshCentre(), cylindrical::e1(), cylindrical::e2(), Foam::eigenValues(), meshRefinement::isGap(), meshRefinement::isNormalGap(), movingMappedWallVelocityFvPatchVectorField::map(), noSlipFvPatchVectorField::map(), movingMappedWallVelocityFvPatchVectorField::movingMappedWallVelocityFvPatchVectorField(), noSlipFvPatchVectorField::noSlipFvPatchVectorField(), areaOp::operator()(), plane::plane(), projectCurveEdge::position(), projectEdge::position(), projectFace::project(), radiativeIntensityRay::radiativeIntensityRay(), transformer::rotation(), motionSmootherAlgo::scaleMesh(), transformer::scaling(), motionSmootherAlgo::setDisplacement(), rigidBodyMeshMotion::solve(), rigidBodyMeshMotionSolver::solve(), meshRefinement::testSyncPointList(), plane::valid(), waveSuperposition::velocity(), and irregular::velocity().
|
static |
Definition at line 119 of file VectorSpace.H.
Referenced by snappyLayerDriver::addLayers(), treeBoundBox::contains(), Foam::functionObjects::layerAverage::symmetricCoeff< Foam::vector >(), motionDirectionalDiffusivity::operator()(), primitiveMesh::pointInCellBB(), searchableSphere::searchableSphere(), meshRefinement::splitMesh(), meshRefinement::splitMeshRegions(), and nearby::srcBox().
|
static |
Definition at line 120 of file VectorSpace.H.
Referenced by boundBox::boundBox(), decompositionMethod::decompose(), snappySnapDriver::doSnap(), removePoints::getUnrefimentSet(), pointEdgeStructuredWalk::inZone(), treeDataEdge::findNearestOp::operator()(), treeDataPoint::findNearestOp::operator()(), plane::plane(), polyTopoChange::pointRemoved(), polyTopoChange::removePoint(), searchableSurfaceCollection::searchableSurfaceCollection(), ConeInjection< CloudType >::setProperties(), addPatchCellLayer::setRefinement(), removePoints::setUnrefinement(), PatchTools::sortedEdgeFaces(), plane::valid(), pointEdgeDist::valid(), patchEdgeFacePoint::valid(), pointEdgePoint::valid(), and pointEdgeStructuredWalk::valid().
|
static |
Definition at line 121 of file VectorSpace.H.
Referenced by boundBox::boundBox(), treeDataEdge::findNearestOp::operator()(), treeDataPoint::findNearestOp::operator()(), and searchableSurfaceCollection::searchableSurfaceCollection().
|
static |
Definition at line 122 of file VectorSpace.H.
Referenced by symmetryPlanePolyPatch::calcGeometry(), and wedgePolyPatch::calcGeometry().
|
static |
Definition at line 123 of file VectorSpace.H.
|
static |
Definition at line 124 of file VectorSpace.H.