48 if (
mag(nf & nr) < 1 - SMALL)
84 separation_.setSize(0);
86 forwardT_.setSize(size());
87 reverseT_.setSize(size());
95 if (
sum(
mag(forwardT_ - forwardT_[0])) < SMALL)
103 forwardT_.setSize(0);
104 reverseT_.setSize(0);
106 separation_ = (nf&(Cr - Cf))*nf;
108 if (
sum(
mag(separation_)) < SMALL)
112 else if (
sum(
mag(separation_ - separation_[0])) < SMALL)
114 separation_.setSize(1);
void setSize(const label n)
Alias for resize()
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.
void calcTransformTensors(const vector &Cf, const vector &Cr, const vector &nf, const vector &nr) const
Calculate the uniform transformation tensors.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
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.
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
#define forAll(list, i)
Loop across all elements in list.