48 if (
mag(nf & nr) < 1 - SMALL)
82 if (
sum(
mag(nf & nr)) < Cf.size() - 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)
110 separation_.setSize(0);
112 else if (
sum(
mag(separation_ - separation_[0])) < SMALL)
114 separation_.setSize(1);
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const vectorField & separation() const
Return the offset (distance) vector from one side of the couple.
tensor rotationTensor(const vector &n1, const vector &n2)
Rotational transformation tensor from vector n1 to n2.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
#define forAll(list, i)
Loop across all elements in list.
void setSize(const label n)
Alias for resize()
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineTypeNameAndDebug(combustionModel, 0)
Field< tensor > tensorField
Specialisation of Field<T> for tensor.
coupledFaPatch is an abstract base class for patches that couple regions of the computational domain ...
Field< vector > vectorField
Specialisation of Field<T> for vector.
void calcTransformTensors(const vector &Cf, const vector &Cr, const vector &nf, const vector &nr) const
Calculate the uniform transformation tensors.