49 if (
mag(nf & nr) < 1 - SMALL)
86 if (
sum(
mag(nf & nr)) < Cf.size() - SMALL)
90 forwardT_.resize_nocopy(size());
91 reverseT_.resize_nocopy(size());
99 if (
sum(
mag(forwardT_ - forwardT_[0])) < SMALL)
110 separation_ = (nf&(Cr - Cf))*nf;
112 if (
sum(
mag(separation_)) < SMALL)
116 else if (
sum(
mag(separation_ - separation_[0])) < SMALL)
118 separation_.resize(1);
Info<< " "<< writer.output().name()<< nl;}{ const Field< vector > edgeCentres(faMeshTools::flattenEdgeField(aMesh.edgeCentres(), true))
void resize(const label len)
Adjust allocated size of list.
void clear()
Clear the list, i.e. set size to zero.
void size(const label n)
Older name for setAddressableSize.
coupledFaPatch is an abstract base class for patches that couple regions of the computational domain ...
const vectorField & separation() const
Return the offset (distance) vector from one side of the couple.
coupledFaPatch(const word &name, const labelUList &edgeLabels, const label index, const faBoundaryMesh &bm, const label nbrPolyPatchIndex, const word &patchType)
Construct from components.
void calcTransformTensors(const vector &Cf, const vector &Cr, const vector &nf, const vector &nr) const
Calculate the uniform transformation tensors.
virtual tmp< vectorField > delta() const =0
Return delta (P to N) vectors across coupled patch.
virtual label size() const
Patch size is the number of edge labels, but can be overloaded.
tmp< vectorField > edgeFaceCentres() const
Return neighbour face centres.
A class for managing temporary objects.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#define defineTypeName(Type)
Define the typeName.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from vector n1 to n2.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1, const label comm)
#define forAll(list, i)
Loop across all elements in list.