35bool Foam::functionObjects::zeroGradient::accept
37 const GeometricField<Type, fvPatchField, volMesh>& input
57 const word& inputName,
61 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
66 if (state || !foundObject<VolFieldType>(inputName))
71 const VolFieldType&
input = lookupObject<VolFieldType>(inputName);
83 results_.set(
outputName, VolFieldType::typeName);
98 dimensioned<Type>(
input.dimensions(),
Zero),
108 output.correctBoundaryConditions();
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
virtual void apply()=0
Apply bins.
virtual const word & constraintType() const
Return the constraint type this pointPatch implements.
virtual const word & type() const =0
Runtime type information.
const polyBoundaryMesh & patches
word outputName("finiteArea-edges.obj")
const std::string patch
OpenFOAM patch number as a std::string.
static Istream & input(Istream &is, IntRange< T > &range)
static Ostream & output(Ostream &os, const IntRange< T > &range)
static constexpr const zero Zero
Global zero (0)
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
#define forAll(list, i)
Loop across all elements in list.
static const char *const typeName
The type name used in ensight case files.