Commit f6767301 authored by Henry Weller's avatar Henry Weller
Browse files

geometricOneField: Added support for DimensionedInternalField

parent 49adef64
......@@ -70,13 +70,18 @@ public:
};
inline const oneField& operator*(const oneField&, const oneField&);
inline const oneField& operator/(const oneField&, const oneField&);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "oneFieldI.H"
#include "oneFieldI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -39,4 +39,24 @@ inline Foam::oneField Foam::oneField::field() const
}
inline const Foam::oneField& Foam::operator*
(
const oneField& of,
const oneField&
)
{
return of;
}
inline const Foam::oneField& Foam::operator/
(
const oneField& of,
const oneField&
)
{
return of;
}
// ************************************************************************* //
......@@ -59,6 +59,7 @@ public:
// Public typedefs
typedef oneField DimensionedInternalField;
typedef oneField InternalField;
typedef oneField PatchFieldType;
typedef oneFieldField GeometricBoundaryField;
......@@ -83,6 +84,8 @@ public:
inline InternalField internalField() const;
inline DimensionedInternalField v() const;
inline GeometricBoundaryField boundaryField() const;
};
......@@ -93,12 +96,36 @@ inline const geometricOneField& operator*
const geometricOneField&
);
inline const geometricOneField::DimensionedInternalField& operator*
(
const geometricOneField::DimensionedInternalField&,
const geometricOneField&
);
inline const geometricOneField::DimensionedInternalField& operator*
(
const geometricOneField&,
const geometricOneField::DimensionedInternalField&
);
inline const geometricOneField& operator/
(
const geometricOneField&,
const geometricOneField&
);
inline const geometricOneField::DimensionedInternalField& operator/
(
const geometricOneField::DimensionedInternalField&,
const geometricOneField&
);
inline const geometricOneField::DimensionedInternalField& operator/
(
const geometricOneField&,
const geometricOneField::DimensionedInternalField&
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......@@ -106,7 +133,7 @@ inline const geometricOneField& operator/
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "geometricOneFieldI.H"
#include "geometricOneFieldI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
......@@ -32,27 +32,39 @@ inline const Foam::dimensionSet& Foam::geometricOneField::dimensions() const
return dimless;
}
inline Foam::one Foam::geometricOneField::operator[](const label) const
{
return one();
}
inline Foam::oneField Foam::geometricOneField::field() const
{
return oneField();
}
inline Foam::oneField Foam::geometricOneField::oldTime() const
{
return oneField();
}
inline Foam::geometricOneField::InternalField
Foam::geometricOneField::internalField() const
{
return InternalField();
}
inline Foam::geometricOneField::DimensionedInternalField
Foam::geometricOneField::v() const
{
return DimensionedInternalField();
}
inline Foam::geometricOneField::GeometricBoundaryField
Foam::geometricOneField::boundaryField() const
{
......@@ -69,6 +81,27 @@ inline const Foam::geometricOneField& Foam::operator*
return gof;
}
inline const Foam::geometricOneField::DimensionedInternalField& Foam::operator*
(
const geometricOneField::DimensionedInternalField& of,
const geometricOneField&
)
{
return of;
}
inline const Foam::geometricOneField::DimensionedInternalField& Foam::operator*
(
const geometricOneField&,
const geometricOneField::DimensionedInternalField& of
)
{
return of;
}
inline const Foam::geometricOneField& Foam::operator/
(
const geometricOneField& gof,
......@@ -79,4 +112,24 @@ inline const Foam::geometricOneField& Foam::operator/
}
inline const Foam::geometricOneField::DimensionedInternalField& Foam::operator/
(
const geometricOneField::DimensionedInternalField& of,
const geometricOneField&
)
{
return of;
}
inline const Foam::geometricOneField::DimensionedInternalField& Foam::operator/
(
const geometricOneField&,
const geometricOneField::DimensionedInternalField& of
)
{
return of;
}
// ************************************************************************* //
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment